Home
last modified time | relevance | path

Searched refs:thermal_zone_device (Results 1 – 25 of 56) sorted by relevance

123

/linux/drivers/thermal/
H A Dthermal_debugfs.h8 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 …]
H A Dthermal_hwmon.h19 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()
H A Dthermal_hwmon.c40 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()
92 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type()
114 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp()
129 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) in thermal_zone_crit_temp_valid()
135 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs()
218 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
258 thermal_remove_hwmon_sysfs(*(struct thermal_zone_device **)res); in devm_thermal_hwmon_release()
261 int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_add_hwmon_sysfs()
[all …]
H A Dthermal_helpers.c25 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()
57 bool thermal_trip_is_bound_to_cdev(struct thermal_zone_device *tz, in thermal_trip_is_bound_to_cdev()
82 int __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in __thermal_zone_get_temp()
127 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()
H A Dthermal_thresholds.c16 int thermal_thresholds_init(struct thermal_zone_device *tz) in thermal_thresholds_init()
23 static void __thermal_thresholds_flush(struct thermal_zone_device *tz) in __thermal_thresholds_flush()
34 void thermal_thresholds_flush(struct thermal_zone_device *tz) in thermal_thresholds_flush()
45 void thermal_thresholds_exit(struct thermal_zone_device *tz) in thermal_thresholds_exit()
128 void thermal_thresholds_handle(struct thermal_zone_device *tz, int *low, int *high) in thermal_thresholds_handle()
168 int thermal_thresholds_add(struct thermal_zone_device *tz, in thermal_thresholds_add()
202 int thermal_thresholds_delete(struct thermal_zone_device *tz, in thermal_thresholds_delete()
228 int thermal_thresholds_for_each(struct thermal_zone_device *tz, in thermal_thresholds_for_each()
H A Dthermal_sysfs.c30 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()
150 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_hyst_store()
195 struct thermal_zone_device *tz = to_thermal_zone(dev); in policy_store()
211 struct thermal_zone_device *tz = to_thermal_zone(dev); in policy_show()
228 struct thermal_zone_device *tz = to_thermal_zone(dev); in emul_temp_store()
257 struct thermal_zone_device *tz = to_thermal_zone(dev); in sustainable_power_show()
[all …]
H A Dthermal_of.c225 static struct device_node *thermal_of_zone_get_by_name(struct thermal_zone_device *tz) in thermal_of_zone_get_by_name()
305 static bool thermal_of_should_bind(struct thermal_zone_device *tz, in thermal_of_should_bind()
341 static void thermal_of_zone_unregister(struct thermal_zone_device *tz) in thermal_of_zone_unregister()
367 static struct thermal_zone_device *thermal_of_zone_register(struct device_node *sensor, int id, voi… in thermal_of_zone_register()
371 struct thermal_zone_device *tz; in thermal_of_zone_register()
444 thermal_of_zone_unregister(*(struct thermal_zone_device **)res); in devm_thermal_of_zone_release()
450 struct thermal_zone_device **r = res; in devm_thermal_of_zone_match()
468 struct thermal_zone_device *devm_thermal_of_zone_register(struct device *dev, int sensor_id, void *… in devm_thermal_of_zone_register()
471 struct thermal_zone_device **ptr, *tzd; in devm_thermal_of_zone_register()
504 void devm_thermal_of_zone_unregister(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_of_zone_unregister()
H A Dthermal_trip.c27 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()
54 void thermal_zone_set_trips(struct thermal_zone_device *tz, int low, int high) in thermal_zone_set_trips()
82 int thermal_zone_trip_id(const struct thermal_zone_device *tz, in thermal_zone_trip_id()
H A Dgov_power_allocator.c116 static u32 estimate_sustainable_power(struct thermal_zone_device *tz) in estimate_sustainable_power()
149 static void estimate_pid_constants(struct thermal_zone_device *tz, in estimate_pid_constants()
197 static u32 get_sustainable_power(struct thermal_zone_device *tz, in get_sustainable_power()
239 static u32 pid_controller(struct thermal_zone_device *tz, in pid_controller()
406 static void allocate_power(struct thermal_zone_device *tz, int control_temp) in allocate_power()
500 static void get_governor_trips(struct thermal_zone_device *tz, in get_governor_trips()
545 static void allow_maximum_power(struct thermal_zone_device *tz) in allow_maximum_power()
588 static int check_power_actors(struct thermal_zone_device *tz, in check_power_actors()
660 static void power_allocator_update_tz(struct thermal_zone_device *tz, in power_allocator_update_tz()
697 static int power_allocator_bind(struct thermal_zone_device *tz) in power_allocator_bind()
[all …]
H A Dloongson2_thermal.c74 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()
H A Dthermal_netlink.c351 int thermal_notify_tz_create(const struct thermal_zone_device *tz) in thermal_notify_tz_create()
358 int thermal_notify_tz_delete(const struct thermal_zone_device *tz) in thermal_notify_tz_delete()
365 int thermal_notify_tz_enable(const struct thermal_zone_device *tz) in thermal_notify_tz_enable()
372 int thermal_notify_tz_disable(const struct thermal_zone_device *tz) in thermal_notify_tz_disable()
379 int thermal_notify_tz_trip_down(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_down()
389 int thermal_notify_tz_trip_up(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_up()
399 int thermal_notify_tz_trip_change(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_change()
434 int thermal_notify_tz_gov_change(const struct thermal_zone_device *tz, in thermal_notify_tz_gov_change()
451 int thermal_notify_threshold_add(const struct thermal_zone_device *tz, in thermal_notify_threshold_add()
459 int thermal_notify_threshold_delete(const struct thermal_zone_device *tz, in thermal_notify_threshold_delete()
[all …]
H A Dthermal_debugfs.c152 struct thermal_zone_device *tz;
556 static struct tz_episode *thermal_debugfs_tz_event_alloc(struct thermal_zone_device *tz, in thermal_debugfs_tz_event_alloc()
579 void thermal_debug_tz_trip_up(struct thermal_zone_device *tz, in thermal_debug_tz_trip_up()
672 void thermal_debug_tz_trip_down(struct thermal_zone_device *tz, in thermal_debug_tz_trip_down()
727 void thermal_debug_update_trip_stats(struct thermal_zone_device *tz) in thermal_debug_update_trip_stats()
789 struct thermal_zone_device *tz = thermal_dbg->tz_dbg.tz; in tze_seq_show()
866 void thermal_debug_tz_add(struct thermal_zone_device *tz) in thermal_debug_tz_add()
893 static struct thermal_debugfs *thermal_debug_tz_clear(struct thermal_zone_device *tz) in thermal_debug_tz_clear()
906 void thermal_debug_tz_remove(struct thermal_zone_device *tz) in thermal_debug_tz_remove()
934 void thermal_debug_tz_resume(struct thermal_zone_device *tz) in thermal_debug_tz_resume()
H A Dthermal_trace_ipa.h13 TP_PROTO(struct thermal_zone_device *tz, u32 total_req_power,
47 TP_PROTO(struct thermal_zone_device *tz, int actor_id, u32 req_power,
69 TP_PROTO(struct thermal_zone_device *tz, s32 err, s32 err_integral,
H A Dthermal_mmio.c23 static int thermal_mmio_get_temperature(struct thermal_zone_device *tz, int *temp) in thermal_mmio_get_temperature()
45 struct thermal_zone_device *thermal_zone; in thermal_mmio_probe()
/linux/drivers/thermal/ti-soc-thermal/
H A Dti-thermal-common.c31 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/drivers/thermal/broadcom/
H A Dbcm2711_thermal.c31 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()
H A Dbrcmstb_thermal.c114 struct thermal_zone_device *thermal;
153 static int brcmstb_get_temp(struct thermal_zone_device *tz, int *temp) in brcmstb_get_temp()
261 static int brcmstb_set_trips(struct thermal_zone_device *tz, int low, int high) in brcmstb_set_trips()
320 struct thermal_zone_device *thermal; in brcmstb_thermal_probe()
H A Dsr-thermal.c33 static int sr_get_temp(struct thermal_zone_device *tz, int *temp) in sr_get_temp()
50 struct thermal_zone_device *tz; in sr_thermal_probe()
/linux/drivers/platform/x86/
H A Dacerhdf.c82 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()
/linux/drivers/thermal/intel/int340x_thermal/
H A Dint340x_thermal_zone.h24 struct thermal_zone_device *zone;
30 int (*get_temp) (struct thermal_zone_device *, int *));
/linux/drivers/thermal/intel/
H A Dx86_pkg_temp_thermal.c55 struct thermal_zone_device *tzone;
107 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp()
122 sys_set_trip_temp(struct thermal_zone_device *tzd, in sys_set_trip_temp()
211 struct thermal_zone_device *tzone = NULL; in pkg_temp_thermal_threshold_work_fn()
389 struct thermal_zone_device *tzone = zonedev->tzone; in pkg_thermal_cpu_offline()
H A Dintel_pch_thermal.c86 struct thermal_zone_device *tzd;
121 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp()
129 static void pch_critical(struct thermal_zone_device *tzd) in pch_critical()
131 dev_dbg(thermal_zone_device(tzd), "%s: critical temperature reached\n", in pch_critical()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c111 struct thermal_zone_device *tzdev;
130 struct thermal_zone_device *tzdev;
168 static bool mlxsw_thermal_should_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_should_bind()
186 static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_temp()
217 static bool mlxsw_thermal_module_should_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_should_bind()
236 static int mlxsw_thermal_module_temp_get(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_temp_get()
260 static int mlxsw_thermal_gearbox_temp_get(struct thermal_zone_device *tzdev, in mlxsw_thermal_gearbox_temp_get()
381 static void mlxsw_thermal_module_tz_fini(struct thermal_zone_device *tzdev) in mlxsw_thermal_module_tz_fini()
/linux/drivers/acpi/
H A Dthermal.c117 struct thermal_zone_device *thermal_zone;
478 static int thermal_get_temp(struct thermal_zone_device *thermal, int *temp) in thermal_get_temp()
495 static int thermal_get_trend(struct thermal_zone_device *thermal, in thermal_get_trend()
541 static void acpi_thermal_zone_device_hot(struct thermal_zone_device *thermal) in acpi_thermal_zone_device_hot()
550 static void acpi_thermal_zone_device_critical(struct thermal_zone_device *thermal) in acpi_thermal_zone_device_critical()
561 static bool acpi_thermal_should_bind_cdev(struct thermal_zone_device *thermal, in acpi_thermal_should_bind_cdev()
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()
/linux/drivers/thermal/tegra/
H A Dtegra30-tsensor.c77 struct thermal_zone_device *tzd;
161 static int tegra_tsensor_get_temp(struct thermal_zone_device *tz, int *temp) in tegra_tsensor_get_temp()
219 static int tegra_tsensor_set_trips(struct thermal_zone_device *tz, int low, int high) in tegra_tsensor_set_trips()
284 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_disable_hw_channel()
323 static void tegra_tsensor_get_hw_channel_trips(struct thermal_zone_device *tzd, in tegra_tsensor_get_hw_channel_trips()
352 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_enable_hw_channel()

123