Lines Matching defs:cdev
48 static int memory_get_max_bandwidth(struct thermal_cooling_device *cdev,
51 struct acpi_device *device = cdev->devdata;
74 static int memory_get_cur_bandwidth(struct thermal_cooling_device *cdev,
77 struct acpi_device *device = cdev->devdata;
97 static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev,
100 struct acpi_device *device = cdev->devdata;
108 if (memory_get_max_bandwidth(cdev, &max_state))
142 struct thermal_cooling_device *cdev;
153 cdev = thermal_cooling_device_register("Memory controller", device,
155 if (IS_ERR(cdev)) {
156 result = PTR_ERR(cdev);
160 device->driver_data = cdev;
162 &cdev->device.kobj, "thermal_cooling");
166 result = sysfs_create_link(&cdev->device.kobj,
177 thermal_cooling_device_unregister(cdev);
184 struct thermal_cooling_device *cdev;
189 cdev = acpi_driver_data(device);
190 if (!cdev)
194 sysfs_remove_link(&cdev->device.kobj, "device");
195 thermal_cooling_device_unregister(cdev);