Lines Matching defs:cdev
60 * @cdev: thermal_cooling_device pointer to keep track of the
181 * @cpufreq_cdev: &cpufreq_cooling_device for this cdev
198 * @cdev: &thermal_cooling_device pointer
218 static int cpufreq_get_requested_power(struct thermal_cooling_device *cdev,
224 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
250 * cpufreq_state2power() - convert a cpu cdev state to power consumed
251 * @cdev: &thermal_cooling_device pointer
262 static int cpufreq_state2power(struct thermal_cooling_device *cdev,
266 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
283 * @cdev: &thermal_cooling_device pointer
287 * Calculate a cooling device state for the cpus described by @cdev
296 static int cpufreq_power2state(struct thermal_cooling_device *cdev,
301 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
400 * @cdev: thermal cooling device pointer.
408 static int cpufreq_get_max_state(struct thermal_cooling_device *cdev,
411 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
419 * @cdev: thermal cooling device pointer.
427 static int cpufreq_get_cur_state(struct thermal_cooling_device *cdev,
430 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
439 * @cdev: thermal cooling device pointer.
447 static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev,
450 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
496 struct thermal_cooling_device *cdev;
530 cdev = ERR_PTR(ret);
553 cdev = ERR_PTR(-EINVAL);
563 cdev = ERR_PTR(ret);
567 cdev = ERR_PTR(-ENOMEM);
572 cdev = thermal_of_cooling_device_register(np, name, cpufreq_cdev,
576 if (IS_ERR(cdev))
579 return cdev;
587 return cdev;
628 struct thermal_cooling_device *cdev = NULL;
639 cdev = __cpufreq_cooling_register(np, policy, em);
640 if (IS_ERR(cdev)) {
642 policy->cpu, PTR_ERR(cdev));
643 cdev = NULL;
648 return cdev;
654 * @cdev: thermal cooling device pointer.
658 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
662 if (!cdev)
665 cpufreq_cdev = cdev->devdata;
667 thermal_cooling_device_unregister(cdev);