Lines Matching defs:cdev

30  * @cdev:	Pointer to associated thermal cooling device.
51 struct thermal_cooling_device *cdev;
64 static int devfreq_cooling_get_max_state(struct thermal_cooling_device *cdev,
67 struct devfreq_cooling_device *dfc = cdev->devdata;
74 static int devfreq_cooling_get_cur_state(struct thermal_cooling_device *cdev,
77 struct devfreq_cooling_device *dfc = cdev->devdata;
84 static int devfreq_cooling_set_cur_state(struct thermal_cooling_device *cdev,
87 struct devfreq_cooling_device *dfc = cdev->devdata;
178 static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cdev,
181 struct devfreq_cooling_device *dfc = cdev->devdata;
235 trace_thermal_power_devfreq_get_power(cdev, &status, freq, *power);
244 static int devfreq_cooling_state2power(struct thermal_cooling_device *cdev,
247 struct devfreq_cooling_device *dfc = cdev->devdata;
260 static int devfreq_cooling_power2state(struct thermal_cooling_device *cdev,
263 struct devfreq_cooling_device *dfc = cdev->devdata;
302 trace_thermal_power_devfreq_limit(cdev, freq, *state, power);
365 struct thermal_cooling_device *cdev;
426 cdev = thermal_of_cooling_device_register(np, name, dfc, ops);
429 if (IS_ERR(cdev)) {
430 err = PTR_ERR(cdev);
437 dfc->cdev = cdev;
439 return cdev;
495 struct thermal_cooling_device *cdev;
509 cdev = of_devfreq_cooling_register_power(dev->of_node, df, dfc_power);
511 if (IS_ERR_OR_NULL(cdev))
514 return cdev;
520 * @cdev: Pointer to devfreq cooling device to unregister.
525 void devfreq_cooling_unregister(struct thermal_cooling_device *cdev)
530 if (IS_ERR_OR_NULL(cdev))
533 dfc = cdev->devdata;
536 thermal_cooling_device_unregister(dfc->cdev);