| /linux-6.15/tools/lib/thermal/include/ |
| H A D | thermal.h | 67 struct thermal_zone { struct 91 typedef int (*cb_tz_t)(struct thermal_zone *, void *); argument 107 LIBTHERMAL_API struct thermal_zone *thermal_zone_find_by_name(struct thermal_zone *tz, 110 LIBTHERMAL_API struct thermal_zone *thermal_zone_find_by_id(struct thermal_zone *tz, int id); 137 struct thermal_zone **tz); 143 struct thermal_zone *tz); 146 struct thermal_zone *tz); 149 struct thermal_zone *tz); 152 struct thermal_zone *tz); 155 struct thermal_zone *tz, [all …]
|
| /linux-6.15/tools/lib/thermal/ |
| H A D | thermal.c | 48 int for_each_thermal_zone(struct thermal_zone *tz, cb_tz_t cb, void *arg) in for_each_thermal_zone() 61 struct thermal_zone *thermal_zone_find_by_name(struct thermal_zone *tz, in thermal_zone_find_by_name() 77 struct thermal_zone *thermal_zone_find_by_id(struct thermal_zone *tz, int id) in thermal_zone_find_by_id() 92 static int __thermal_zone_discover(struct thermal_zone *tz, void *th) in __thermal_zone_discover() 106 struct thermal_zone *thermal_zone_discover(struct thermal_handler *th) in thermal_zone_discover() 108 struct thermal_zone *tz; in thermal_zone_discover()
|
| H A D | commands.c | 44 static int parse_tz_get(struct genl_info *info, struct thermal_zone **tz) in parse_tz_get() 47 struct thermal_zone *__tz = NULL; in parse_tz_get() 118 static int parse_tz_get_trip(struct genl_info *info, struct thermal_zone *tz) in parse_tz_get_trip() 156 static int parse_tz_get_temp(struct genl_info *info, struct thermal_zone *tz) in parse_tz_get_temp() 172 static int parse_tz_get_gov(struct genl_info *info, struct thermal_zone *tz) in parse_tz_get_gov() 191 static int parse_threshold_get(struct genl_info *info, struct thermal_zone *tz) in parse_threshold_get() 404 thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz) in thermal_cmd_get_tz() 441 struct thermal_zone *tz) in thermal_cmd_threshold_get() 450 struct thermal_zone *tz, in thermal_cmd_threshold_add() 461 struct thermal_zone *tz, in thermal_cmd_threshold_delete() [all …]
|
| /linux-6.15/drivers/thermal/ |
| H A D | thermal_mmio.c | 45 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 D | thermal_trace.h | 33 __string(thermal_zone, tz->type) 40 __assign_str(thermal_zone); 47 __get_str(thermal_zone), __entry->id, __entry->temp_prev, 78 __string(thermal_zone, tz->type) 85 __assign_str(thermal_zone); 92 __get_str(thermal_zone), __entry->id, __entry->trip,
|
| H A D | thermal_helpers.c | 61 guard(thermal_zone)(tz); in thermal_trip_is_bound_to_cdev() local 134 guard(thermal_zone)(tz); in thermal_zone_get_temp() local
|
| H A D | thermal_core.c | 198 guard(thermal_zone)(tz); in thermal_zone_device_set_policy() local 664 guard(thermal_zone)(tz); in thermal_zone_device_set_mode() local 704 guard(thermal_zone)(tz); in thermal_zone_device_update() local 1023 guard(thermal_zone)(tz); in thermal_zone_cdev_bind() local 1329 guard(thermal_zone)(tz); in thermal_zone_cdev_unbind() local 1375 guard(thermal_zone)(tz); in thermal_zone_get_crit_temp() local 1454 guard(thermal_zone)(tz); in thermal_zone_init_complete() local 1693 guard(thermal_zone)(tz); in thermal_zone_exit() local 1782 guard(thermal_zone)(tz); in thermal_zone_device_resume() local 1796 guard(thermal_zone)(tz); in thermal_zone_pm_prepare() local [all …]
|
| H A D | thermal_sysfs.c | 54 guard(thermal_zone)(tz); in mode_show() local 111 guard(thermal_zone)(tz); in trip_point_temp_store() local 156 guard(thermal_zone)(tz); in trip_point_hyst_store() local 234 guard(thermal_zone)(tz); in emul_temp_store() local 873 guard(thermal_zone)(tz); in weight_store() local
|
| H A D | thermal_trip.c | 48 guard(thermal_zone)(tz); in thermal_zone_for_each_trip() local
|
| H A D | thermal_netlink.c | 546 guard(thermal_zone)(tz); in thermal_genl_cmd_tz_get_trip() local 603 guard(thermal_zone)(tz); in thermal_genl_cmd_tz_get_gov() local 709 guard(thermal_zone)(tz); in thermal_genl_cmd_threshold_add() local 734 guard(thermal_zone)(tz); in thermal_genl_cmd_threshold_delete() local 755 guard(thermal_zone)(tz); in thermal_genl_cmd_threshold_flush() local
|
| H A D | thermal_thresholds.c | 235 guard(thermal_zone)(tz); in thermal_thresholds_for_each() local
|
| H A D | thermal_core.h | 155 DEFINE_GUARD(thermal_zone, struct thermal_zone_device *, mutex_lock(&_T->lock),
|
| H A D | thermal_hwmon.c | 81 guard(thermal_zone)(tz); in temp_crit_show() local
|
| H A D | thermal_debugfs.c | 897 guard(thermal_zone)(tz); in thermal_debug_tz_clear() local
|
| /linux-6.15/tools/thermal/thermal-engine/ |
| H A D | thermal-engine.c | 37 struct thermal_zone *tz; 57 static int show_temp(struct thermal_zone *tz, __maybe_unused void *arg) in show_temp() 66 static int show_governor(struct thermal_zone *tz, __maybe_unused void *arg) in show_governor() 75 static int show_tz(struct thermal_zone *tz, __maybe_unused void *arg) in show_tz() 90 static int set_threshold(struct thermal_zone *tz, __maybe_unused void *arg) in set_threshold() 131 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_disable() 141 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_enable() 151 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_high() 162 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_low() 189 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_change() [all …]
|
| /linux-6.15/drivers/acpi/ |
| H A D | thermal.c | 117 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() 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() 646 thermal_zone_device_id(tz->thermal_zone)); in acpi_thermal_register_thermal_zone() 653 thermal_zone_device_unregister(tz->thermal_zone); in acpi_thermal_register_thermal_zone() 660 thermal_zone_device_disable(tz->thermal_zone); in acpi_thermal_unregister_thermal_zone() 662 thermal_zone_device_unregister(tz->thermal_zone); in acpi_thermal_unregister_thermal_zone() [all …]
|
| /linux-6.15/drivers/acpi/acpica/ |
| H A D | dbstats.c | 189 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 D | exdump.c | 152 {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 D | acobject.h | 418 struct acpi_object_thermal_zone thermal_zone; member
|
| /linux-6.15/include/linux/power/ |
| H A D | charger-manager.h | 184 const char *thermal_zone; member
|
| /linux-6.15/drivers/gpu/drm/tiny/ |
| H A D | repaper.c | 948 const char *thermal_zone; in repaper_probe() local 1019 &thermal_zone)) { in repaper_probe() 1020 epd->thermal = thermal_zone_get_zone_by_name(thermal_zone); in repaper_probe() 1022 DRM_DEV_ERROR(dev, "Failed to get thermal zone: %s\n", thermal_zone); in repaper_probe()
|
| /linux-6.15/Documentation/driver-api/thermal/ |
| H A D | exynos_thermal_emulation.rst | 20 /sys/devices/virtual/thermal/thermal_zone'zone id'/emul_temp.
|
| H A D | sysfs-api.rst | 49 /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-*]:
|
| /linux-6.15/drivers/power/supply/ |
| H A D | charger-manager.c | 1250 if (ret && desc->thermal_zone) { in cm_init_thermal_data() 1252 thermal_zone_get_zone_by_name(desc->thermal_zone); in cm_init_thermal_data() 1332 of_property_read_string(np, "cm-thermal-zone", &desc->thermal_zone); in of_cm_parse_desc()
|
| /linux-6.15/Documentation/devicetree/bindings/power/supply/ |
| H A D | charger-manager.yaml | 190 cm-thermal-zone = "thermal_zone.1";
|