Lines Matching defs:cdev
33 * @cdev: Pointer to associated thermal cooling device.
56 struct thermal_cooling_device *cdev;
68 static int devfreq_cooling_get_max_state(struct thermal_cooling_device *cdev,
71 struct devfreq_cooling_device *dfc = cdev->devdata;
78 static int devfreq_cooling_get_cur_state(struct thermal_cooling_device *cdev,
81 struct devfreq_cooling_device *dfc = cdev->devdata;
88 static int devfreq_cooling_set_cur_state(struct thermal_cooling_device *cdev,
91 struct devfreq_cooling_device *dfc = cdev->devdata;
231 static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cdev,
234 struct devfreq_cooling_device *dfc = cdev->devdata;
280 trace_thermal_power_devfreq_get_power(cdev, status, freq, dyn_power,
290 static int devfreq_cooling_state2power(struct thermal_cooling_device *cdev,
294 struct devfreq_cooling_device *dfc = cdev->devdata;
308 static int devfreq_cooling_power2state(struct thermal_cooling_device *cdev,
311 struct devfreq_cooling_device *dfc = cdev->devdata;
346 trace_thermal_power_devfreq_limit(cdev, freq, *state, power);
463 struct thermal_cooling_device *cdev;
500 cdev = thermal_of_cooling_device_register(np, dev_name, dfc,
502 if (IS_ERR(cdev)) {
503 err = PTR_ERR(cdev);
510 dfc->cdev = cdev;
512 return cdev;
555 * @cdev: Pointer to devfreq cooling device to unregister.
557 void devfreq_cooling_unregister(struct thermal_cooling_device *cdev)
561 if (!cdev)
564 dfc = cdev->devdata;
566 thermal_cooling_device_unregister(dfc->cdev);