Home
last modified time | relevance | path

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

1234

/openbmc/linux/include/linux/
H A Dthermal.h32 struct thermal_zone_device;
71 int (*bind) (struct thermal_zone_device *,
73 int (*unbind) (struct thermal_zone_device *,
83 int (*get_trend) (struct thermal_zone_device *,
85 void (*hot)(struct thermal_zone_device *);
155 struct thermal_zone_device { struct
277 struct thermal_zone_device *tz) in devm_thermal_of_zone_unregister()
325 struct device *thermal_zone_device(struct thermal_zone_device *tzd);
405 struct thermal_zone_device *tz, int *temp) in thermal_zone_get_temp()
408 struct thermal_zone_device *tz) in thermal_zone_get_slope()
[all …]
/openbmc/linux/drivers/thermal/
H A Dthermal_core.h57 struct thermal_zone_device *thermal_zone_get_by_id(int id);
73 int get_tz_trend(struct thermal_zone_device *tz, int trip_index);
76 get_thermal_instance(struct thermal_zone_device *tz,
88 struct thermal_zone_device *tz;
106 container_of(_dev, struct thermal_zone_device, device)
115 void __thermal_zone_device_update(struct thermal_zone_device *tz,
119 void __thermal_zone_set_trips(struct thermal_zone_device *tz);
122 int thermal_zone_trip_id(struct thermal_zone_device *tz,
124 int __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp);
128 void thermal_zone_destroy_device_groups(struct thermal_zone_device *);
[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_core.c119 struct thermal_zone_device *pos; in thermal_register_governor()
171 struct thermal_zone_device *pos; in thermal_unregister_governor()
522 thermal_zone_device, in thermal_zone_device_check()
564 struct thermal_zone_device *tz; in for_each_thermal_zone()
634 struct thermal_zone_device *pos1; in thermal_zone_bind_cooling_device()
795 struct thermal_zone_device *tz; in thermal_release()
1127 struct thermal_zone_device *tz; in thermal_cooling_device_unregister()
1230 struct thermal_zone_device *
1236 struct thermal_zone_device *tz; in thermal_zone_device_register_with_trips()
1427 struct device *thermal_zone_device(struct thermal_zone_device *tzd) in thermal_zone_device() function
[all …]
H A Dthermal_of.c323 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) in __thermal_of_bind()
360 struct thermal_zone_device *, struct thermal_cooling_device *)) in thermal_of_for_each_cooling_device()
390 static int thermal_of_for_each_cooling_maps(struct thermal_zone_device *tz, in thermal_of_for_each_cooling_maps() argument
393 struct thermal_zone_device *, struct thermal_cooling_device *)) in thermal_of_for_each_cooling_maps()
423 static int thermal_of_bind(struct thermal_zone_device *tz, in thermal_of_bind()
429 static int thermal_of_unbind(struct thermal_zone_device *tz, in thermal_of_unbind()
443 static void thermal_of_zone_unregister(struct thermal_zone_device *tz) in thermal_of_zone_unregister()
477 struct thermal_zone_device *tz; in thermal_of_zone_register()
547 thermal_of_zone_unregister(*(struct thermal_zone_device **)res); in devm_thermal_of_zone_release()
553 struct thermal_zone_device **r = res; in devm_thermal_of_zone_match()
[all …]
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()
98 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type()
120 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp()
135 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) in thermal_zone_crit_temp_valid()
141 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs()
224 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
264 thermal_remove_hwmon_sysfs(*(struct thermal_zone_device **)res); in devm_thermal_hwmon_release()
267 int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_add_hwmon_sysfs()
[all …]
H A Dthermal_trip.c12 int for_each_thermal_trip(struct thermal_zone_device *tz, in for_each_thermal_trip()
30 int thermal_zone_get_num_trips(struct thermal_zone_device *tz) in thermal_zone_get_num_trips()
51 void __thermal_zone_set_trips(struct thermal_zone_device *tz) in __thermal_zone_set_trips()
113 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, in __thermal_zone_get_trip()
124 int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, in thermal_zone_get_trip()
137 int thermal_zone_set_trip(struct thermal_zone_device *tz, int trip_id, in thermal_zone_set_trip()
176 int thermal_zone_trip_id(struct thermal_zone_device *tz, in thermal_zone_trip_id()
H A Dthermal_helpers.c25 int get_tz_trend(struct thermal_zone_device *tz, int trip_index) in get_tz_trend()
44 get_thermal_instance(struct thermal_zone_device *tz, in get_thermal_instance()
84 int __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in __thermal_zone_get_temp()
129 int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in thermal_zone_get_temp()
209 int thermal_zone_get_slope(struct thermal_zone_device *tz) in thermal_zone_get_slope()
224 int thermal_zone_get_offset(struct thermal_zone_device *tz) in thermal_zone_get_offset()
H A Dthermal_sysfs.c29 struct thermal_zone_device *tz = to_thermal_zone(dev); in type_show()
37 struct thermal_zone_device *tz = to_thermal_zone(dev); in temp_show()
51 struct thermal_zone_device *tz = to_thermal_zone(dev); in mode_show()
65 struct thermal_zone_device *tz = to_thermal_zone(dev); in mode_store()
85 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_type_show()
122 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_temp_store()
155 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_temp_show()
181 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_hyst_store()
214 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_hyst_show()
237 struct thermal_zone_device *tz = to_thermal_zone(dev); in policy_store()
[all …]
H A Dspear_thermal.c31 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()
H A Dgov_power_allocator.c88 static u32 estimate_sustainable_power(struct thermal_zone_device *tz) in estimate_sustainable_power()
125 static void estimate_pid_constants(struct thermal_zone_device *tz, in estimate_pid_constants()
175 static u32 get_sustainable_power(struct thermal_zone_device *tz, in get_sustainable_power()
217 static u32 pid_controller(struct thermal_zone_device *tz, in pid_controller()
383 static int allocate_power(struct thermal_zone_device *tz, in allocate_power()
513 static void get_governor_trips(struct thermal_zone_device *tz, in get_governor_trips()
566 static void allow_maximum_power(struct thermal_zone_device *tz, bool update) in allow_maximum_power()
609 static int check_power_actors(struct thermal_zone_device *tz) in check_power_actors()
635 static int power_allocator_bind(struct thermal_zone_device *tz) in power_allocator_bind()
685 static void power_allocator_unbind(struct thermal_zone_device *tz) in power_allocator_unbind()
[all …]
H A Dgov_fair_share.c22 static int get_trip_level(struct thermal_zone_device *tz) in get_trip_level()
43 static long get_target_state(struct thermal_zone_device *tz, in get_target_state()
68 static int fair_share_throttle(struct thermal_zone_device *tz, int trip_index) in fair_share_throttle()
H A Dkirkwood_thermal.c26 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()
H A Dloongson2_thermal.c61 static int loongson2_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in loongson2_thermal_get_temp()
74 struct thermal_zone_device *tzd = dev; in loongson2_thermal_irq_thread()
85 static int loongson2_thermal_set_trips(struct thermal_zone_device *tz, int low, int high) in loongson2_thermal_set_trips()
101 struct thermal_zone_device *tzd; in loongson2_thermal_probe()
H A Dgov_user_space.c18 static int user_space_bind(struct thermal_zone_device *tz) in user_space_bind()
32 static int notify_user_space(struct thermal_zone_device *tz, int trip) in notify_user_space()
H A Dgov_step_wise.c71 static void update_passive_instance(struct thermal_zone_device *tz, in update_passive_instance()
82 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id) in thermal_zone_trip_update()
139 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle()
H A Ddove_thermal.c86 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()
/openbmc/linux/drivers/thermal/intel/
H A Dintel_quark_dts_thermal.c107 struct thermal_zone_device *tzone;
120 static int soc_dts_enable(struct thermal_zone_device *tzd) in soc_dts_enable()
148 static int soc_dts_disable(struct thermal_zone_device *tzd) in soc_dts_disable()
250 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp()
256 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp()
281 static int sys_change_mode(struct thermal_zone_device *tzd, in sys_change_mode()
/openbmc/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 Dns-thermal.c17 static int ns_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in ns_thermal_get_temp()
48 struct thermal_zone_device *tz; in ns_thermal_probe()
/openbmc/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()
/openbmc/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 int acerhdf_bind(struct thermal_zone_device *thermal, in acerhdf_bind()
397 static int acerhdf_unbind(struct thermal_zone_device *thermal, in acerhdf_unbind()
430 static int acerhdf_change_mode(struct thermal_zone_device *thermal, in acerhdf_change_mode()
441 static int acerhdf_get_crit_temp(struct thermal_zone_device *thermal, in acerhdf_get_crit_temp()
/openbmc/linux/drivers/thermal/intel/int340x_thermal/
H A Dint340x_thermal_zone.h25 struct thermal_zone_device *zone;
32 int (*get_temp) (struct thermal_zone_device *, int *));
H A Dint340x_thermal_zone.c14 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()
59 static void int340x_thermal_critical(struct thermal_zone_device *zone) in int340x_thermal_critical()
116 int (*get_temp) (struct thermal_zone_device *, int *)) in int340x_thermal_zone_add()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c101 struct thermal_zone_device *tzdev;
120 struct thermal_zone_device *tzdev;
158 static int mlxsw_thermal_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_bind()
184 static int mlxsw_thermal_unbind(struct thermal_zone_device *tzdev, in mlxsw_thermal_unbind()
206 static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_temp()
238 static int mlxsw_thermal_module_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_bind()
267 static int mlxsw_thermal_module_unbind(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_unbind()
286 static int mlxsw_thermal_module_temp_get(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_temp_get()
311 static int mlxsw_thermal_gearbox_temp_get(struct thermal_zone_device *tzdev, in mlxsw_thermal_gearbox_temp_get()
440 static void mlxsw_thermal_module_tz_fini(struct thermal_zone_device *tzdev) in mlxsw_thermal_module_tz_fini()

1234