Lines Matching defs:cdev

61  * @cdev: thermal_cooling_device pointer to keep track of the
167 * @cpufreq_cdev: &cpufreq_cooling_device for this cdev
184 * @cdev: &thermal_cooling_device pointer
204 static int cpufreq_get_requested_power(struct thermal_cooling_device *cdev,
210 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
252 * cpufreq_state2power() - convert a cpu cdev state to power consumed
253 * @cdev: &thermal_cooling_device pointer
265 static int cpufreq_state2power(struct thermal_cooling_device *cdev,
269 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
286 * @cdev: &thermal_cooling_device pointer
290 * Calculate a cooling device state for the cpus described by @cdev
303 static int cpufreq_power2state(struct thermal_cooling_device *cdev,
308 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
377 * @cdev: thermal cooling device pointer.
385 static int cpufreq_get_max_state(struct thermal_cooling_device *cdev,
388 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
396 * @cdev: thermal cooling device pointer.
404 static int cpufreq_get_cur_state(struct thermal_cooling_device *cdev,
407 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
416 * @cdev: thermal cooling device pointer.
424 static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev,
427 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
485 struct thermal_cooling_device *cdev;
522 cdev = ERR_PTR(-ENOMEM);
531 cdev = ERR_PTR(ret);
552 cdev = ERR_PTR(-EINVAL);
562 cdev = ERR_PTR(ret);
566 cdev = thermal_of_cooling_device_register(np, dev_name, cpufreq_cdev,
568 if (IS_ERR(cdev))
575 return cdev;
585 return cdev;
629 struct thermal_cooling_device *cdev = NULL;
640 cdev = __cpufreq_cooling_register(np, policy, em);
641 if (IS_ERR(cdev)) {
643 policy->cpu, PTR_ERR(cdev));
644 cdev = NULL;
649 return cdev;
655 * @cdev: thermal cooling device pointer.
659 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
663 if (!cdev)
666 cpufreq_cdev = cdev->devdata;
672 thermal_cooling_device_unregister(cdev);