Lines Matching defs:cdev
149 thermal_cooling_device_update(pr->cdev);
165 thermal_cooling_device_update(pr->cdev);
202 processor_get_max_state(struct thermal_cooling_device *cdev,
205 struct acpi_device *device = cdev->devdata;
220 processor_get_cur_state(struct thermal_cooling_device *cdev,
223 struct acpi_device *device = cdev->devdata;
240 processor_set_cur_state(struct thermal_cooling_device *cdev,
243 struct acpi_device *device = cdev->devdata;
283 pr->cdev = thermal_cooling_device_register("Processor", device,
285 if (IS_ERR(pr->cdev)) {
286 result = PTR_ERR(pr->cdev);
291 pr->cdev->id);
294 &pr->cdev->device.kobj,
302 result = sysfs_create_link(&pr->cdev->device.kobj,
306 dev_err(&pr->cdev->device,
316 thermal_cooling_device_unregister(pr->cdev);
324 if (pr->cdev) {
326 sysfs_remove_link(&pr->cdev->device.kobj, "device");
327 thermal_cooling_device_unregister(pr->cdev);
328 pr->cdev = NULL;