Lines Matching full:cooling
29 * Cooling state <-> CPUFreq frequency
31 * Cooling states are translated to frequencies throughout this driver and this
34 * Highest cooling state corresponds to lowest possible frequency.
53 * struct cpufreq_cooling_device - data for cooling device with cpufreq
56 * cooling devices.
57 * @max_level: maximum cooling level. One less than total number of valid
61 * @cooling_ops: cpufreq callbacks to thermal cooling device ops
264 * @state: cooling device state to be converted
267 * Convert cooling device state @state into power consumption in
271 * Return: 0 on success, -EINVAL if the cooling device state is bigger
300 * cpufreq_power2state() - convert power to a cooling device state
305 * Calculate a cooling device state for the cpus described by @cdev
309 * as input can yield different cooling device states depending on those
350 …pr_err("The number of performance states in pd %*pbl (%u) doesn't match the number of cooling leve… in em_is_sane()
423 /* cpufreq cooling device callback functions are defined below */
426 * cpufreq_get_max_state - callback function to get the max cooling state.
427 * @cdev: thermal cooling device pointer.
428 * @state: fill this variable with the max cooling state.
430 * Callback for the thermal cooling device to return the cpufreq
431 * max cooling state.
445 * cpufreq_get_cur_state - callback function to get the current cooling state.
446 * @cdev: thermal cooling device pointer.
447 * @state: fill this variable with the current cooling state.
449 * Callback for the thermal cooling device to return the cpufreq
450 * current cooling state.
465 * cpufreq_set_cur_state - callback function to set the current cooling state.
466 * @cdev: thermal cooling device pointer.
467 * @state: set this variable to the current cooling state.
469 * Callback for the thermal cooling device to change the cpufreq
470 * current cooling state.
485 /* Check if the old cooling action is same as new cooling action */ in cpufreq_set_cur_state()
501 * __cpufreq_cooling_register - helper function to create cpufreq cooling device
502 * @np: a valid struct device_node to the cooling device tree node
507 * This interface function registers the cpufreq cooling device with the name
509 * cooling devices. It also gives the opportunity to link the cooling device
615 * cpufreq_cooling_register - function to create cpufreq cooling device.
618 * This interface function registers the cpufreq cooling device with the name
619 * "cpufreq-%s". This API can support multiple instances of cpufreq cooling
633 * of_cpufreq_cooling_register - function to create cpufreq cooling device.
636 * This interface function registers the cpufreq cooling device with the name
637 * "cpufreq-%s". This API can support multiple instances of cpufreq cooling
638 * devices. Using this API, the cpufreq cooling device will be linked to the
641 * Using this function, the cooling device will implement the power
660 if (of_property_present(np, "#cooling-cells")) { in of_cpufreq_cooling_register()
665 pr_err("cpufreq_cooling: cpu%d failed to register as cooling device: %ld\n", in of_cpufreq_cooling_register()
677 * cpufreq_cooling_unregister - function to remove cpufreq cooling device.
678 * @cdev: thermal cooling device pointer.
680 * This interface function unregisters the "cpufreq-%x" cooling device.