Lines Matching +full:thermal +full:- +full:zone

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * thermal.h ($Revision: 0 $)
19 #include <uapi/linux/thermal.h>
21 #define THERMAL_TRIPS_NONE -1
25 #define THERMAL_CSTATE_INVALID -1UL
34 #define THERMAL_TEMP_INVALID -274000
49 /* Thermal notification reason */
55 THERMAL_DEVICE_DOWN, /* Thermal device is down */
56 THERMAL_DEVICE_UP, /* Thermal device is up after a down event */
58 THERMAL_TABLE_CHANGED, /* Thermal table(s) changed */
114 * struct thermal_zone_device - structure for a thermal zone
115 * @id: unique id number for each thermal zone
116 * @type: the thermal zone device type
117 * @device: &struct device for this thermal zone
121 * @mode: current mode of this thermal zone
123 * @trips: number of trip points the thermal zone supports
142 * step-wise governor.
145 * @tzp: thermal zone parameters
146 * @governor: pointer to the governor for this thermal zone
148 * @thermal_instances: list of &struct thermal_instance of this thermal zone
149 * @ida: &struct ida to generate unique id for this zone's cooling
193 * struct thermal_governor - structure that holds thermal governor information
195 * @bind_to_tz: callback called when binding to a thermal zone. If it
196 * returns 0, the governor is bound to the thermal zone,
199 * thermal zone.
214 /* Structure that holds binding parameters for a zone */
220 * cool 'this' thermal zone. It shall be determined by
224 * effective. See Documentation/driver-api/thermal/sysfs-api.rst for more
231 * thermal zone and cdev, for a particular trip point.
232 * See Documentation/driver-api/thermal/sysfs-api.rst for more information.
239 * of tuples <lower-state upper-state> of state limits. Each trip
251 /* Structure to define Thermal Zone parameters */
256 * a boolean to indicate if the thermal to hwmon sysfs interface
266 * Sustainable power (heat) that this thermal zone can dissipate in
294 * Used by thermal zone drivers.
299 * Used by thermal zone drivers (default 0).
307 * struct thermal_zone_of_device_ops - scallbacks for handling DT based zones
315 * this window is left the driver must inform the thermal core via
353 return -ENOENT; in thermal_zone_of_get_sensor_id()
359 return ERR_PTR(-ENODEV); in thermal_zone_of_sensor_register()
372 return ERR_PTR(-ENODEV); in devm_thermal_zone_of_sensor_register()
425 { return ERR_PTR(-ENODEV); } in thermal_zone_device_register()
432 { return ERR_PTR(-ENODEV); } in thermal_cooling_device_register()
437 { return ERR_PTR(-ENODEV); } in thermal_of_cooling_device_register()
444 return ERR_PTR(-ENODEV); in devm_thermal_of_cooling_device_register()
451 { return ERR_PTR(-ENODEV); } in thermal_zone_get_zone_by_name()
454 { return -ENODEV; } in thermal_zone_get_temp()
457 { return -ENODEV; } in thermal_zone_get_slope()
460 { return -ENODEV; } in thermal_zone_get_offset()
469 { return -ENODEV; } in thermal_zone_device_enable()
472 { return -ENODEV; } in thermal_zone_device_disable()
476 { return -ENODEV; } in thermal_zone_device_is_enabled()