• Home
  • Raw
  • Download

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

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * thermal.h ($Revision: 0 $)
18 #include <uapi/linux/thermal.h>
20 #define THERMAL_TRIPS_NONE -1
24 #define THERMAL_CSTATE_INVALID -1UL
33 #define THERMAL_TEMP_INVALID -274000
48 /* Thermal notification reason */
54 THERMAL_DEVICE_DOWN, /* Thermal device is down */
55 THERMAL_DEVICE_UP, /* Thermal device is up after a down event */
57 THERMAL_TABLE_CHANGED, /* Thermal table(s) changed */
108 * struct thermal_zone_device - structure for a thermal zone
109 * @id: unique id number for each thermal zone
110 * @type: the thermal zone device type
111 * @device: &struct device for this thermal zone
115 * @mode: current mode of this thermal zone
117 * @trips: number of trip points the thermal zone supports
136 * step-wise governor.
139 * @tzp: thermal zone parameters
140 * @governor: pointer to the governor for this thermal zone
142 * @thermal_instances: list of &struct thermal_instance of this thermal zone
143 * @ida: &struct ida to generate unique id for this zone's cooling
185 * struct thermal_governor - structure that holds thermal governor information
187 * @bind_to_tz: callback called when binding to a thermal zone. If it
188 * returns 0, the governor is bound to the thermal zone,
191 * thermal zone.
204 /* Structure that holds binding parameters for a zone */
210 * cool 'this' thermal zone. It shall be determined by
214 * effective. See Documentation/driver-api/thermal/sysfs-api.rst for more
221 * thermal zone and cdev, for a particular trip point.
222 * See Documentation/driver-api/thermal/sysfs-api.rst for more information.
229 * of tuples <lower-state upper-state> of state limits. Each trip
239 /* Structure to define Thermal Zone parameters */
244 * a boolean to indicate if the thermal to hwmon sysfs interface
254 * Sustainable power (heat) that this thermal zone can dissipate in
282 * Used by thermal zone drivers.
287 * Used by thermal zone drivers (default 0).
293 * struct thermal_zone_of_device_ops - scallbacks for handling DT based zones
301 * this window is left the driver must inform the thermal core via
337 return -ENOENT; in thermal_zone_of_get_sensor_id()
343 return ERR_PTR(-ENODEV); in thermal_zone_of_sensor_register()
356 return ERR_PTR(-ENODEV); in devm_thermal_zone_of_sensor_register()
408 { return ERR_PTR(-ENODEV); } in thermal_zone_device_register()
415 { return ERR_PTR(-ENODEV); } in thermal_cooling_device_register()
420 { return ERR_PTR(-ENODEV); } in thermal_of_cooling_device_register()
427 return ERR_PTR(-ENODEV); in devm_thermal_of_cooling_device_register()
434 { return ERR_PTR(-ENODEV); } in thermal_zone_get_zone_by_name()
437 { return -ENODEV; } in thermal_zone_get_temp()
440 { return -ENODEV; } in thermal_zone_get_slope()
443 { return -ENODEV; } in thermal_zone_get_offset()
452 { return -ENODEV; } in thermal_zone_device_enable()
455 { return -ENODEV; } in thermal_zone_device_disable()