Home
last modified time | relevance | path

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

/linux-6.6.21/tools/lib/thermal/include/
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-6.6.21/tools/lib/thermal/
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()
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-6.6.21/drivers/thermal/
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()
Dthermal_trace.h31 __string(thermal_zone, tz->type)
38 __assign_str(thermal_zone, tz->type);
45 __get_str(thermal_zone), __entry->id, __entry->temp_prev,
76 __string(thermal_zone, tz->type)
83 __assign_str(thermal_zone, tz->type);
90 __get_str(thermal_zone), __entry->id, __entry->trip,
/linux-6.6.21/tools/thermal/thermal-engine/
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-6.6.21/drivers/acpi/
Dthermal.c130 struct thermal_zone_device *thermal_zone; member
427 for_each_thermal_trip(tz->thermal_zone, acpi_thermal_adjust_trip, tz); in acpi_thermal_adjust_thermal_zone()
447 thermal_zone_device_exec(tz->thermal_zone, in acpi_thermal_trips_update()
658 struct device *tzdev = thermal_zone_device(tz->thermal_zone); in acpi_thermal_zone_sysfs_add()
676 struct device *tzdev = thermal_zone_device(tz->thermal_zone); in acpi_thermal_zone_sysfs_remove()
743 tz->thermal_zone = thermal_zone_device_register_with_trips("acpitz", in acpi_thermal_register_thermal_zone()
751 if (IS_ERR(tz->thermal_zone)) { in acpi_thermal_register_thermal_zone()
752 result = PTR_ERR(tz->thermal_zone); in acpi_thermal_register_thermal_zone()
760 result = thermal_zone_device_enable(tz->thermal_zone); in acpi_thermal_register_thermal_zone()
765 thermal_zone_device_id(tz->thermal_zone)); in acpi_thermal_register_thermal_zone()
[all …]
/linux-6.6.21/drivers/acpi/acpica/
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()
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"}
Dacobject.h383 struct acpi_object_thermal_zone thermal_zone; member
/linux-6.6.21/include/linux/power/
Dcharger-manager.h184 const char *thermal_zone; member
/linux-6.6.21/drivers/gpu/drm/tiny/
Drepaper.c943 const char *thermal_zone; in repaper_probe() local
1014 &thermal_zone)) { in repaper_probe()
1015 epd->thermal = thermal_zone_get_zone_by_name(thermal_zone); in repaper_probe()
1017 DRM_DEV_ERROR(dev, "Failed to get thermal zone: %s\n", thermal_zone); in repaper_probe()
/linux-6.6.21/Documentation/driver-api/thermal/
Dexynos_thermal_emulation.rst20 /sys/devices/virtual/thermal/thermal_zone'zone id'/emul_temp.
Dsysfs-api.rst49 /sys/class/thermal folder as `thermal_zone[0-*]`. It tries to bind all the
340 /sys/class/thermal/thermal_zone[0-*]:
379 /sys/class/thermal/thermal_zone[0-*]:
471 {thermal_zone, cooling_device, trip_point} combination. Returns NULL
Dintel_dptf.rst120 DPTF Sensor drivers are presented as standard thermal sysfs thermal_zone.
/linux-6.6.21/drivers/power/supply/
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()
/linux-6.6.21/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.yaml190 cm-thermal-zone = "thermal_zone.1";