/linux-6.12.1/include/linux/ |
D | thermal.h | 32 struct thermal_zone_device; 86 struct thermal_zone_device; 95 bool (*should_bind) (struct thermal_zone_device *, 99 int (*get_temp) (struct thermal_zone_device *, int *); 100 int (*set_trips) (struct thermal_zone_device *, int, int); 101 int (*change_mode) (struct thermal_zone_device *, 103 int (*set_trip_temp) (struct thermal_zone_device *, 105 int (*get_crit_temp) (struct thermal_zone_device *, int *); 106 int (*set_emul_temp) (struct thermal_zone_device *, int); 107 int (*get_trend) (struct thermal_zone_device *, [all …]
|
/linux-6.12.1/drivers/thermal/ |
D | thermal_netlink.h | 26 struct thermal_zone_device; 37 int thermal_notify_tz_create(const struct thermal_zone_device *tz); 38 int thermal_notify_tz_delete(const struct thermal_zone_device *tz); 39 int thermal_notify_tz_enable(const struct thermal_zone_device *tz); 40 int thermal_notify_tz_disable(const struct thermal_zone_device *tz); 41 int thermal_notify_tz_trip_down(const struct thermal_zone_device *tz, 43 int thermal_notify_tz_trip_up(const struct thermal_zone_device *tz, 45 int thermal_notify_tz_trip_change(const struct thermal_zone_device *tz, 51 int thermal_notify_tz_gov_change(const struct thermal_zone_device *tz, 62 static inline int thermal_notify_tz_create(const struct thermal_zone_device *tz) in thermal_notify_tz_create() [all …]
|
D | thermal_core.h | 53 int (*bind_to_tz)(struct thermal_zone_device *tz); 54 void (*unbind_from_tz)(struct thermal_zone_device *tz); 55 void (*trip_crossed)(struct thermal_zone_device *tz, 58 void (*manage)(struct thermal_zone_device *tz); 59 void (*update_tz)(struct thermal_zone_device *tz, 107 struct thermal_zone_device { struct 186 int for_each_thermal_zone(int (*cb)(struct thermal_zone_device *, void *), 195 struct thermal_zone_device *thermal_zone_get_by_id(int id); 197 DEFINE_CLASS(thermal_zone_get_by_id, struct thermal_zone_device *, 209 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip); [all …]
|
D | thermal_debugfs.h | 8 void thermal_debug_tz_add(struct thermal_zone_device *tz); 9 void thermal_debug_tz_remove(struct thermal_zone_device *tz); 10 void thermal_debug_tz_resume(struct thermal_zone_device *tz); 11 void thermal_debug_tz_trip_up(struct thermal_zone_device *tz, 13 void thermal_debug_tz_trip_down(struct thermal_zone_device *tz, 15 void thermal_debug_update_trip_stats(struct thermal_zone_device *tz); 22 static inline void thermal_debug_tz_add(struct thermal_zone_device *tz) {} in thermal_debug_tz_add() 23 static inline void thermal_debug_tz_remove(struct thermal_zone_device *tz) {} in thermal_debug_tz_remove() 24 static inline void thermal_debug_tz_resume(struct thermal_zone_device *tz) {} in thermal_debug_tz_resume() 25 static inline void thermal_debug_tz_trip_up(struct thermal_zone_device *tz, in thermal_debug_tz_trip_up() [all …]
|
D | thermal_hwmon.h | 19 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz); 20 int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz); 21 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz); 24 thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs() 30 devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_add_hwmon_sysfs() 36 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
|
D | thermal_core.c | 72 static void bind_previous_governor(struct thermal_zone_device *tz, in bind_previous_governor() 94 static int thermal_set_governor(struct thermal_zone_device *tz, in thermal_set_governor() 120 struct thermal_zone_device *pos; in thermal_register_governor() 172 struct thermal_zone_device *pos; in thermal_unregister_governor() 196 int thermal_zone_device_set_policy(struct thermal_zone_device *tz, in thermal_zone_device_set_policy() 275 static int __thermal_zone_device_set_mode(struct thermal_zone_device *tz, in __thermal_zone_device_set_mode() 291 static void thermal_zone_broken_disable(struct thermal_zone_device *tz) in thermal_zone_broken_disable() 323 static void thermal_zone_device_set_polling(struct thermal_zone_device *tz, in thermal_zone_device_set_polling() 332 static void thermal_zone_recheck(struct thermal_zone_device *tz, int error) in thermal_zone_recheck() 360 static void monitor_thermal_zone(struct thermal_zone_device *tz) in monitor_thermal_zone() [all …]
|
D | thermal_hwmon.c | 40 struct thermal_zone_device *tz; 59 struct thermal_zone_device *tz = temp->tz; in temp_input_show() 77 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() 95 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type() 117 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp() 132 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) in thermal_zone_crit_temp_valid() 138 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs() 221 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs() 261 thermal_remove_hwmon_sysfs(*(struct thermal_zone_device **)res); in devm_thermal_hwmon_release() 264 int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_add_hwmon_sysfs() [all …]
|
D | thermal_trip.c | 27 int for_each_thermal_trip(struct thermal_zone_device *tz, in for_each_thermal_trip() 44 int thermal_zone_for_each_trip(struct thermal_zone_device *tz, in thermal_zone_for_each_trip() 58 void thermal_zone_set_trips(struct thermal_zone_device *tz, int low, int high) in thermal_zone_set_trips() 86 int thermal_zone_trip_id(const struct thermal_zone_device *tz, in thermal_zone_trip_id() 96 void thermal_zone_set_trip_hyst(struct thermal_zone_device *tz, in thermal_zone_set_trip_hyst() 103 void thermal_zone_set_trip_temp(struct thermal_zone_device *tz, in thermal_zone_set_trip_temp()
|
D | thermal_helpers.c | 25 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip) in get_tz_trend() 42 static bool thermal_instance_present(struct thermal_zone_device *tz, in thermal_instance_present() 56 bool thermal_trip_is_bound_to_cdev(struct thermal_zone_device *tz, in thermal_trip_is_bound_to_cdev() 88 int __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in __thermal_zone_get_temp() 133 int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in thermal_zone_get_temp() 219 int thermal_zone_get_slope(struct thermal_zone_device *tz) in thermal_zone_get_slope() 234 int thermal_zone_get_offset(struct thermal_zone_device *tz) in thermal_zone_get_offset()
|
D | thermal_of.c | 243 static struct device_node *thermal_of_zone_get_by_name(struct thermal_zone_device *tz) in thermal_of_zone_get_by_name() 295 static bool thermal_of_should_bind(struct thermal_zone_device *tz, in thermal_of_should_bind() 352 static void thermal_of_zone_unregister(struct thermal_zone_device *tz) in thermal_of_zone_unregister() 378 static struct thermal_zone_device *thermal_of_zone_register(struct device_node *sensor, int id, voi… in thermal_of_zone_register() 382 struct thermal_zone_device *tz; in thermal_of_zone_register() 455 thermal_of_zone_unregister(*(struct thermal_zone_device **)res); in devm_thermal_of_zone_release() 461 struct thermal_zone_device **r = res; in devm_thermal_of_zone_match() 479 struct thermal_zone_device *devm_thermal_of_zone_register(struct device *dev, int sensor_id, void *… in devm_thermal_of_zone_register() 482 struct thermal_zone_device **ptr, *tzd; in devm_thermal_of_zone_register() 515 void devm_thermal_of_zone_unregister(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_of_zone_unregister()
|
D | thermal_sysfs.c | 30 struct thermal_zone_device *tz = to_thermal_zone(dev); in type_show() 38 struct thermal_zone_device *tz = to_thermal_zone(dev); in temp_show() 52 struct thermal_zone_device *tz = to_thermal_zone(dev); in mode_show() 66 struct thermal_zone_device *tz = to_thermal_zone(dev); in mode_store() 105 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_temp_store() 154 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_hyst_store() 205 struct thermal_zone_device *tz = to_thermal_zone(dev); in policy_store() 221 struct thermal_zone_device *tz = to_thermal_zone(dev); in policy_show() 238 struct thermal_zone_device *tz = to_thermal_zone(dev); in emul_temp_store() 266 struct thermal_zone_device *tz = to_thermal_zone(dev); in sustainable_power_show() [all …]
|
D | gov_power_allocator.c | 118 static u32 estimate_sustainable_power(struct thermal_zone_device *tz) in estimate_sustainable_power() 150 static void estimate_pid_constants(struct thermal_zone_device *tz, in estimate_pid_constants() 198 static u32 get_sustainable_power(struct thermal_zone_device *tz, in get_sustainable_power() 240 static u32 pid_controller(struct thermal_zone_device *tz, in pid_controller() 400 static void allocate_power(struct thermal_zone_device *tz, int control_temp) in allocate_power() 493 static void get_governor_trips(struct thermal_zone_device *tz, in get_governor_trips() 538 static void allow_maximum_power(struct thermal_zone_device *tz) in allow_maximum_power() 581 static int check_power_actors(struct thermal_zone_device *tz, in check_power_actors() 634 static void power_allocator_update_tz(struct thermal_zone_device *tz, in power_allocator_update_tz() 674 static int power_allocator_bind(struct thermal_zone_device *tz) in power_allocator_bind() [all …]
|
D | spear_thermal.c | 31 static inline int thermal_get_temp(struct thermal_zone_device *thermal, in thermal_get_temp() 50 struct thermal_zone_device *spear_thermal = dev_get_drvdata(dev); in spear_thermal_suspend() 66 struct thermal_zone_device *spear_thermal = dev_get_drvdata(dev); in spear_thermal_resume() 91 struct thermal_zone_device *spear_thermal = NULL; in spear_thermal_probe() 156 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_exit()
|
D | loongson2_thermal.c | 74 static int loongson2_2k1000_get_temp(struct thermal_zone_device *tz, int *temp) in loongson2_2k1000_get_temp() 85 static int loongson2_2k2000_get_temp(struct thermal_zone_device *tz, int *temp) in loongson2_2k2000_get_temp() 98 struct thermal_zone_device *tzd = dev; in loongson2_thermal_irq_thread() 108 static int loongson2_thermal_set_trips(struct thermal_zone_device *tz, int low, int high) in loongson2_thermal_set_trips() 124 struct thermal_zone_device *tzd; in loongson2_thermal_probe()
|
D | kirkwood_thermal.c | 26 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp() 62 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe() 95 struct thermal_zone_device *kirkwood_thermal = in kirkwood_thermal_exit()
|
D | gov_bang_bang.c | 66 static void bang_bang_control(struct thermal_zone_device *tz, in bang_bang_control() 84 static void bang_bang_manage(struct thermal_zone_device *tz) in bang_bang_manage() 116 static void bang_bang_update_tz(struct thermal_zone_device *tz, in bang_bang_update_tz()
|
D | gov_fair_share.c | 18 static int get_trip_level(struct thermal_zone_device *tz) in get_trip_level() 63 static void fair_share_throttle(struct thermal_zone_device *tz, in fair_share_throttle() 104 static void fair_share_manage(struct thermal_zone_device *tz) in fair_share_manage()
|
D | thermal_netlink.c | 304 int thermal_notify_tz_create(const struct thermal_zone_device *tz) in thermal_notify_tz_create() 311 int thermal_notify_tz_delete(const struct thermal_zone_device *tz) in thermal_notify_tz_delete() 318 int thermal_notify_tz_enable(const struct thermal_zone_device *tz) in thermal_notify_tz_enable() 325 int thermal_notify_tz_disable(const struct thermal_zone_device *tz) in thermal_notify_tz_disable() 332 int thermal_notify_tz_trip_down(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_down() 342 int thermal_notify_tz_trip_up(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_up() 352 int thermal_notify_tz_trip_change(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_change() 387 int thermal_notify_tz_gov_change(const struct thermal_zone_device *tz, in thermal_notify_tz_gov_change() 406 static int __thermal_genl_cmd_tz_get_id(struct thermal_zone_device *tz, in __thermal_genl_cmd_tz_get_id()
|
D | dove_thermal.c | 86 static int dove_get_temp(struct thermal_zone_device *thermal, in dove_get_temp() 120 struct thermal_zone_device *thermal = NULL; in dove_thermal_probe() 163 struct thermal_zone_device *dove_thermal = in dove_thermal_exit()
|
/linux-6.12.1/drivers/thermal/intel/ |
D | intel_quark_dts_thermal.c | 103 struct thermal_zone_device *tzone; 115 static int soc_dts_enable(struct thermal_zone_device *tzd) in soc_dts_enable() 143 static int soc_dts_disable(struct thermal_zone_device *tzd) in soc_dts_disable() 245 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, in sys_set_trip_temp() 267 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp() 292 static int sys_change_mode(struct thermal_zone_device *tzd, in sys_change_mode()
|
/linux-6.12.1/drivers/thermal/ti-soc-thermal/ |
D | ti-thermal-common.c | 31 struct thermal_zone_device *ti_thermal; 32 struct thermal_zone_device *pcb_tz; 70 static inline int __ti_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in __ti_thermal_get_temp() 72 struct thermal_zone_device *pcb_tz = NULL; in __ti_thermal_get_temp() 112 static int __ti_thermal_get_trend(struct thermal_zone_device *tz, in __ti_thermal_get_trend()
|
/linux-6.12.1/drivers/thermal/intel/int340x_thermal/ |
D | int340x_thermal_zone.c | 14 static int int340x_thermal_get_zone_temp(struct thermal_zone_device *zone, in int340x_thermal_get_zone_temp() 41 static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_set_trip_temp() 60 static void int340x_thermal_critical(struct thermal_zone_device *zone) in int340x_thermal_critical() 62 dev_dbg(thermal_zone_device(zone), "%s: critical temperature reached\n", in int340x_thermal_critical() 113 int (*get_temp) (struct thermal_zone_device *, int *)) in int340x_thermal_zone_add()
|
D | int340x_thermal_zone.h | 24 struct thermal_zone_device *zone; 30 int (*get_temp) (struct thermal_zone_device *, int *));
|
/linux-6.12.1/drivers/thermal/broadcom/ |
D | bcm2711_thermal.c | 31 struct thermal_zone_device *thermal; 34 static int bcm2711_get_temp(struct thermal_zone_device *tz, int *temp) in bcm2711_get_temp() 69 struct thermal_zone_device *thermal; in bcm2711_thermal_probe()
|
/linux-6.12.1/drivers/platform/x86/ |
D | acerhdf.c | 82 static struct thermal_zone_device *thz_dev; 331 static void acerhdf_check_param(struct thermal_zone_device *thermal) in acerhdf_check_param() 366 static int acerhdf_get_ec_temp(struct thermal_zone_device *thermal, int *t) in acerhdf_get_ec_temp() 381 static bool acerhdf_should_bind(struct thermal_zone_device *thermal, in acerhdf_should_bind() 410 static int acerhdf_change_mode(struct thermal_zone_device *thermal, in acerhdf_change_mode() 421 static int acerhdf_get_crit_temp(struct thermal_zone_device *thermal, in acerhdf_get_crit_temp()
|