Lines Matching +full:cooling +full:- +full:device
1 /* SPDX-License-Identifier: GPL-2.0 */
13 #include <linux/device.h>
40 * struct thermal_governor - structure that holds thermal governor information
50 * thermal cooling instance was added/removed
74 * struct thermal_zone_device - structure for a thermal zone
76 * @type: the thermal zone device type
77 * @device: &struct device for this thermal zone
84 * @devdata: private pointer for device private data
87 * performing passive cooling.
107 * @ida: &struct ida to generate unique id for this zone's cooling
119 struct device device; member
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))
184 /* Initial state of a cooling device during binding */
185 #define THERMAL_NO_TARGET -1UL
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()
230 * a certain cooling device on a certain trip point
239 unsigned long upper; /* Highest cooling state for this trip point */
240 unsigned long lower; /* Lowest cooling state for this trip point */
241 unsigned long target; /* expected cooling state */
246 struct list_head trip_node; /* node in trip->thermal_instances */
247 struct list_head cdev_node; /* node in cdev->thermal_instances */
248 unsigned int weight; /* The weight of the cooling device */
253 container_of(_dev, struct thermal_zone_device, device)
256 container_of(_dev, struct thermal_cooling_device, device)
270 for (__td = __tz->trips; __td - __tz->trips < __tz->num_trips; __td++)
291 ssize_t trip_point_show(struct device *, struct device_attribute *, char *);
292 ssize_t weight_show(struct device *, struct device_attribute *, char *);
293 ssize_t weight_store(struct device *, struct device_attribute *, const char *,