Lines Matching refs:device
52 * struct cpufreq_cooling_device - data for cooling device with cpufreq
60 * @em: Reference on the Energy Model of the device
62 * registered cooling device.
254 * @state: cooling device state to be converted
257 * Convert cooling device state @state into power consumption in
261 * Return: 0 on success, -EINVAL if the cooling device state could not
285 * cpufreq_power2state() - convert power to a cooling device state
290 * Calculate a cooling device state for the cpus described by @cdev
295 * device states depending on those external factors.
301 * device.
373 /* cpufreq cooling device callback functions are defined below */
377 * @cdev: thermal cooling device pointer.
380 * Callback for the thermal cooling device to return the cpufreq
396 * @cdev: thermal cooling device pointer.
399 * Callback for the thermal cooling device to return the cpufreq
416 * @cdev: thermal cooling device pointer.
419 * Callback for the thermal cooling device to change the cpufreq
457 /* Bind cpufreq callbacks to thermal cooling device ops */
466 * __cpufreq_cooling_register - helper function to create cpufreq cooling device
467 * @np: a valid struct device_node to the cooling device device tree node
472 * This interface function registers the cpufreq cooling device with the name
474 * cooling devices. It also gives the opportunity to link the cooling device
475 * with a device tree node, in order to bind it via the thermal DT code.
489 struct device *dev;
495 pr_warn("No cpu device for cpu %d\n", policy->cpu);
589 * cpufreq_cooling_register - function to create cpufreq cooling device.
592 * This interface function registers the cpufreq cooling device with the name
607 * of_cpufreq_cooling_register - function to create cpufreq cooling device.
610 * This interface function registers the cpufreq cooling device with the name
612 * cooling devices. Using this API, the cpufreq cooling device will be
613 * linked to the device tree node provided.
615 * Using this function, the cooling device will implement the power
642 pr_err("cpufreq_cooling: cpu%d failed to register as cooling device: %ld\n",
654 * cpufreq_cooling_unregister - function to remove cpufreq cooling device.
655 * @cdev: thermal cooling device pointer.
657 * This interface function unregisters the "thermal-cpufreq-%x" cooling device.