thermal_zone
struct acpi_object_thermal_zone thermal_zone;
acpi_db_enumerate_object(obj_desc->thermal_zone.notify_list[0]);
acpi_db_enumerate_object(obj_desc->thermal_zone.notify_list[1]);
acpi_db_enumerate_object(obj_desc->thermal_zone.handler);
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.notify_list[0]),
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.notify_list[1]),
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.handler), "Handler"}
struct thermal_zone_device *thermal_zone;
thermal_zone_set_trip_temp(tz->thermal_zone, trip, temp);
thermal_zone_for_each_trip(tz->thermal_zone,
struct device *tzdev = thermal_zone_device(tz->thermal_zone);
struct device *tzdev = thermal_zone_device(tz->thermal_zone);
tz->thermal_zone = thermal_zone_device_register_with_trips(
tz->thermal_zone = thermal_tripless_zone_device_register(
if (IS_ERR(tz->thermal_zone))
return PTR_ERR(tz->thermal_zone);
result = thermal_zone_device_enable(tz->thermal_zone);
thermal_zone_device_id(tz->thermal_zone));
thermal_zone_device_unregister(tz->thermal_zone);
thermal_zone_device_disable(tz->thermal_zone);
thermal_zone_device_unregister(tz->thermal_zone);
tz->thermal_zone = NULL;
thermal_zone_device_update(tz->thermal_zone, THERMAL_EVENT_UNSPECIFIED);
&thermal_zone)) {
epd->thermal = thermal_zone_get_zone_by_name(thermal_zone);
DRM_DEV_ERROR(dev, "Failed to get thermal zone: %s\n", thermal_zone);
const char *thermal_zone;
if (ret && desc->thermal_zone) {
thermal_zone_get_zone_by_name(desc->thermal_zone);
of_property_read_string(np, "cm-thermal-zone", &desc->thermal_zone);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
DEFINE_GUARD(thermal_zone, struct thermal_zone_device *, mutex_lock(&_T->lock),
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
struct thermal_zone_device *thermal_zone;
thermal_zone = devm_thermal_of_zone_register(&pdev->dev,
if (IS_ERR(thermal_zone)) {
PTR_ERR(thermal_zone));
return PTR_ERR(thermal_zone);
thermal_mmio_get_temperature(thermal_zone, &temperature);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
guard(thermal_zone)(tz);
__string(thermal_zone, tz->type)
__assign_str(thermal_zone);
__get_str(thermal_zone), __entry->id, __entry->temp_prev,
__string(thermal_zone, tz->type)
__assign_str(thermal_zone);
__get_str(thermal_zone), __entry->id, __entry->trip,
guard(thermal_zone)(tz);
const char *thermal_zone;
static int parse_tz_get_trip(struct genl_info *info, struct thermal_zone *tz)
static int parse_tz_get_temp(struct genl_info *info, struct thermal_zone *tz)
static int parse_tz_get_gov(struct genl_info *info, struct thermal_zone *tz)
static int parse_threshold_get(struct genl_info *info, struct thermal_zone *tz)
thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz)
thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, struct thermal_zone *tz)
thermal_error_t thermal_cmd_get_governor(struct thermal_handler *th, struct thermal_zone *tz)
thermal_error_t thermal_cmd_get_temp(struct thermal_handler *th, struct thermal_zone *tz)
static int parse_tz_get(struct genl_info *info, struct thermal_zone **tz)
struct thermal_zone *tz)
struct thermal_zone *tz,
struct thermal_zone *tz,
struct thermal_zone *__tz = NULL;
struct thermal_zone *tz)
LIBTHERMAL_API struct thermal_zone *thermal_zone_find_by_name(struct thermal_zone *tz,
LIBTHERMAL_API struct thermal_zone *thermal_zone_find_by_id(struct thermal_zone *tz, int id);
LIBTHERMAL_API struct thermal_zone *thermal_zone_discover(struct thermal_handler *th);
struct thermal_zone **tz);
struct thermal_zone *tz);
struct thermal_zone *tz);
struct thermal_zone *tz);
struct thermal_zone *tz);
struct thermal_zone *tz,
struct thermal_zone *tz,
struct thermal_zone *tz);
typedef int (*cb_tz_t)(struct thermal_zone *, void *);
LIBTHERMAL_API int for_each_thermal_zone(struct thermal_zone *tz, cb_tz_t cb, void *arg);
struct thermal_zone *thermal_zone_discover(struct thermal_handler *th)
struct thermal_zone *tz;
int for_each_thermal_zone(struct thermal_zone *tz, cb_tz_t cb, void *arg)
struct thermal_zone *thermal_zone_find_by_name(struct thermal_zone *tz,
struct thermal_zone *thermal_zone_find_by_id(struct thermal_zone *tz, int id)
static int __thermal_zone_discover(struct thermal_zone *tz, void *th)
struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id);
struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id);
struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id);
struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id);
struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id);
struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id);
struct thermal_zone *tz;
static int show_temp(struct thermal_zone *tz, __maybe_unused void *arg)
static int show_governor(struct thermal_zone *tz, __maybe_unused void *arg)
static int show_tz(struct thermal_zone *tz, __maybe_unused void *arg)
static int set_threshold(struct thermal_zone *tz, __maybe_unused void *arg)