Home
last modified time | relevance | path

Searched refs:thermal_zone (Results 1 – 16 of 16) sorted by relevance

/linux/tools/lib/thermal/include/
H A Dthermal.h48 struct thermal_zone { struct
71 typedef int (*cb_tz_t)(struct thermal_zone *, void *); argument
77 LIBTHERMAL_API int for_each_thermal_zone(struct thermal_zone *tz, cb_tz_t cb, void *arg);
83 LIBTHERMAL_API struct thermal_zone *thermal_zone_find_by_name(struct thermal_zone *tz,
86 LIBTHERMAL_API struct thermal_zone *thermal_zone_find_by_id(struct thermal_zone *tz, int id);
88 LIBTHERMAL_API struct thermal_zone *thermal_zone_discover(struct thermal_handler *th);
113 struct thermal_zone **tz);
119 struct thermal_zone *tz);
122 struct thermal_zone *tz);
125 struct thermal_zone *tz);
/linux/tools/lib/thermal/
H A Dthermal.c34 int for_each_thermal_zone(struct thermal_zone *tz, cb_tz_t cb, void *arg) in for_each_thermal_zone()
47 struct thermal_zone *thermal_zone_find_by_name(struct thermal_zone *tz, in thermal_zone_find_by_name()
63 struct thermal_zone *thermal_zone_find_by_id(struct thermal_zone *tz, int id) in thermal_zone_find_by_id()
78 static int __thermal_zone_discover(struct thermal_zone *tz, void *th) in __thermal_zone_discover()
89 struct thermal_zone *thermal_zone_discover(struct thermal_handler *th) in thermal_zone_discover()
91 struct thermal_zone *tz; in thermal_zone_discover()
H A Dcommands.c38 static int parse_tz_get(struct genl_info *info, struct thermal_zone **tz) in parse_tz_get()
41 struct thermal_zone *__tz = NULL; in parse_tz_get()
112 static int parse_tz_get_trip(struct genl_info *info, struct thermal_zone *tz) in parse_tz_get_trip()
150 static int parse_tz_get_temp(struct genl_info *info, struct thermal_zone *tz) in parse_tz_get_temp()
166 static int parse_tz_get_gov(struct genl_info *info, struct thermal_zone *tz) in parse_tz_get_gov()
290 thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz) in thermal_cmd_get_tz()
302 thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_trip()
308 thermal_error_t thermal_cmd_get_governor(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_governor()
313 thermal_error_t thermal_cmd_get_temp(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_temp()
/linux/drivers/thermal/
H A Dthermal_mmio.c45 struct thermal_zone_device *thermal_zone; in thermal_mmio_probe() local
68 thermal_zone = devm_thermal_of_zone_register(&pdev->dev, in thermal_mmio_probe()
72 if (IS_ERR(thermal_zone)) { in thermal_mmio_probe()
75 PTR_ERR(thermal_zone)); in thermal_mmio_probe()
76 return PTR_ERR(thermal_zone); in thermal_mmio_probe()
79 thermal_mmio_get_temperature(thermal_zone, &temperature); in thermal_mmio_probe()
H A Dthermal_trace.h33 __string(thermal_zone, tz->type)
40 __assign_str(thermal_zone);
46 TP_printk("thermal_zone=%s id=%d temp_prev=%d temp=%d",
47 __get_str(thermal_zone), __entry->id, __entry->temp_prev,
78 __string(thermal_zone, tz->type)
85 __assign_str(thermal_zone);
91 TP_printk("thermal_zone=%s id=%d trip=%d trip_type=%s",
92 __get_str(thermal_zone), __entry->id, __entry->trip,
/linux/tools/thermal/thermal-engine/
H A Dthermal-engine.c37 struct thermal_zone *tz;
49 static int show_temp(struct thermal_zone *tz, __maybe_unused void *arg) in show_temp()
58 static int show_governor(struct thermal_zone *tz, __maybe_unused void *arg) in show_governor()
67 static int show_tz(struct thermal_zone *tz, __maybe_unused void *arg) in show_tz()
97 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_disable()
107 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_enable()
117 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_high()
128 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_low()
155 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_change()
191 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in gov_change()
/linux/drivers/acpi/
H A Dthermal.c117 struct thermal_zone_device *thermal_zone; member
317 thermal_zone_set_trip_temp(tz->thermal_zone, trip, temp); in acpi_thermal_adjust_trip()
340 thermal_zone_for_each_trip(tz->thermal_zone, in acpi_thermal_trips_update()
594 struct device *tzdev = thermal_zone_device(tz->thermal_zone); in acpi_thermal_zone_sysfs_add()
612 struct device *tzdev = thermal_zone_device(tz->thermal_zone); in acpi_thermal_zone_sysfs_remove()
626 tz->thermal_zone = thermal_zone_device_register_with_trips( in acpi_thermal_register_thermal_zone()
631 tz->thermal_zone = thermal_tripless_zone_device_register( in acpi_thermal_register_thermal_zone()
634 if (IS_ERR(tz->thermal_zone)) in acpi_thermal_register_thermal_zone()
635 return PTR_ERR(tz->thermal_zone); in acpi_thermal_register_thermal_zone()
641 result = thermal_zone_device_enable(tz->thermal_zone); in acpi_thermal_register_thermal_zone()
[all …]
/linux/drivers/acpi/acpica/
H A Ddbstats.c189 acpi_db_enumerate_object(obj_desc->thermal_zone.notify_list[0]); in acpi_db_enumerate_object()
190 acpi_db_enumerate_object(obj_desc->thermal_zone.notify_list[1]); in acpi_db_enumerate_object()
191 acpi_db_enumerate_object(obj_desc->thermal_zone.handler); in acpi_db_enumerate_object()
H A Dexdump.c152 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.notify_list[0]),
154 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.notify_list[1]),
156 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.handler), "Handler"}
H A Dacobject.h418 struct acpi_object_thermal_zone thermal_zone; member
/linux/include/linux/power/
H A Dcharger-manager.h184 const char *thermal_zone; member
/linux/drivers/gpu/drm/tiny/
H A Drepaper.c947 const char *thermal_zone; in repaper_probe() local
1018 &thermal_zone)) { in repaper_probe()
1019 epd->thermal = thermal_zone_get_zone_by_name(thermal_zone); in repaper_probe()
1021 DRM_DEV_ERROR(dev, "Failed to get thermal zone: %s\n", thermal_zone); in repaper_probe()
/linux/Documentation/driver-api/thermal/
H A Dexynos_thermal_emulation.rst20 /sys/devices/virtual/thermal/thermal_zone'zone id'/emul_temp.
H A Dsysfs-api.rst49 /sys/class/thermal folder as `thermal_zone[0-*]`. It tries to bind all the
284 /sys/class/thermal/thermal_zone[0-*]:
321 /sys/class/thermal/thermal_zone[0-*]:
H A Dintel_dptf.rst120 DPTF Sensor drivers are presented as standard thermal sysfs thermal_zone.
/linux/drivers/power/supply/
H A Dcharger-manager.c1249 if (ret && desc->thermal_zone) { in cm_init_thermal_data()
1251 thermal_zone_get_zone_by_name(desc->thermal_zone); in cm_init_thermal_data()
1331 of_property_read_string(np, "cm-thermal-zone", &desc->thermal_zone); in of_cm_parse_desc()