Home
last modified time | relevance | path

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

/linux-6.1.9/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.1.9/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.1.9/drivers/thermal/
Dthermal_mmio.c46 struct thermal_zone_device *thermal_zone; in thermal_mmio_probe() local
70 thermal_zone = devm_thermal_of_zone_register(&pdev->dev, in thermal_mmio_probe()
74 if (IS_ERR(thermal_zone)) { in thermal_mmio_probe()
77 PTR_ERR(thermal_zone)); in thermal_mmio_probe()
78 return PTR_ERR(thermal_zone); in thermal_mmio_probe()
81 thermal_mmio_get_temperature(thermal_zone, &temperature); in thermal_mmio_probe()
/linux-6.1.9/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.1.9/include/trace/events/
Dthermal.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.1.9/drivers/acpi/
Dthermal.c171 struct thermal_zone_device *thermal_zone; member
810 tz->thermal_zone = thermal_zone_device_register("acpitz", trips, 0, tz, in acpi_thermal_register_thermal_zone()
815 tz->thermal_zone = in acpi_thermal_register_thermal_zone()
820 if (IS_ERR(tz->thermal_zone)) in acpi_thermal_register_thermal_zone()
824 &tz->thermal_zone->device.kobj, "thermal_zone"); in acpi_thermal_register_thermal_zone()
828 result = sysfs_create_link(&tz->thermal_zone->device.kobj, in acpi_thermal_register_thermal_zone()
834 tz->thermal_zone); in acpi_thermal_register_thermal_zone()
840 result = thermal_zone_device_enable(tz->thermal_zone); in acpi_thermal_register_thermal_zone()
845 tz->thermal_zone->id); in acpi_thermal_register_thermal_zone()
852 sysfs_remove_link(&tz->thermal_zone->device.kobj, "device"); in acpi_thermal_register_thermal_zone()
[all …]
/linux-6.1.9/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.1.9/include/linux/power/
Dcharger-manager.h184 const char *thermal_zone; member
/linux-6.1.9/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.1.9/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
333 exactly 2 * thermal_zone.number_of_trip_points. It is an
380 /sys/class/thermal/thermal_zone[0-*]:
419 /sys/class/thermal/thermal_zone[0-*]:
511 {thermal_zone, cooling_device, trip_point} combination. Returns NULL
Dintel_dptf.rst117 DPTF Sensor drivers are presented as standard thermal sysfs thermal_zone.
/linux-6.1.9/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.1.9/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.yaml190 cm-thermal-zone = "thermal_zone.1";