Lines Matching +full:thermal +full:- +full:zone
1 /* SPDX-License-Identifier: GPL-2.0 */
14 #include <linux/thermal.h>
40 * struct thermal_governor - structure that holds thermal governor information
42 * @bind_to_tz: callback called when binding to a thermal zone. If it
43 * returns 0, the governor is bound to the thermal zone,
46 * thermal zone.
48 * @manage: called on thermal zone temperature updates
49 * @update_tz: callback called when thermal zone internals have changed, e.g.
50 * thermal cooling instance was added/removed
74 * struct thermal_zone_device - structure for a thermal zone
75 * @id: unique id number for each thermal zone
76 * @type: the thermal zone device type
77 * @device: &struct device for this thermal zone
80 * @trips_high: trips above the current zone temperature
81 * @trips_reached: trips below or at the current zone temperature
83 * @mode: current mode of this thermal zone
85 * @num_trips: number of trip points the thermal zone supports
91 * @recheck_delay_jiffies: delay after a failed attempt to determine the zone
104 * @tzp: thermal zone parameters
105 * @governor: pointer to the governor for this thermal zone
107 * @ida: &struct ida to generate unique id for this zone's cooling
113 * @state: current state of the thermal zone
155 DEFINE_GUARD(thermal_zone, struct thermal_zone_device *, mutex_lock(&_T->lock),
156 mutex_unlock(&_T->lock))
159 mutex_unlock(&_T->lock), mutex_lock(&_T->lock))
161 /* Initial thermal zone temperature. */
165 * Default and maximum delay after a failed thermal zone temperature check
171 /* Default Thermal Governor */
185 #define THERMAL_NO_TARGET -1UL
187 /* Init section thermal table */
214 if (_T) put_device(&_T->device), thermal_zone_get_by_id(id), int id)
218 return cdev->ops->get_requested_power && cdev->ops->state2power && in cdev_is_power_actor()
219 cdev->ops->power2state; in cdev_is_power_actor()
231 * in a certain thermal zone
246 struct list_head trip_node; /* node in trip->thermal_instances */
247 struct list_head cdev_node; /* node in cdev->thermal_instances */
270 for (__td = __tz->trips; __td - __tz->trips < __tz->num_trips; __td++)