Home
last modified time | relevance | path

Searched refs:thermal_zone_device (Results 1 - 25 of 181) sorted by relevance

12345678

/kernel/linux/linux-5.10/include/linux/
H A Dthermal.h35 struct thermal_zone_device;
62 int (*bind) (struct thermal_zone_device *,
64 int (*unbind) (struct thermal_zone_device *,
66 int (*get_temp) (struct thermal_zone_device *, int *);
67 int (*set_trips) (struct thermal_zone_device *, int, int);
68 int (*change_mode) (struct thermal_zone_device *,
70 int (*get_trip_type) (struct thermal_zone_device *, int,
72 int (*get_trip_temp) (struct thermal_zone_device *, int, int *);
73 int (*set_trip_temp) (struct thermal_zone_device *, int, int);
74 int (*get_trip_hyst) (struct thermal_zone_device *, in
150 struct thermal_zone_device { global() struct
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dthermal.h32 struct thermal_zone_device;
71 int (*bind) (struct thermal_zone_device *,
73 int (*unbind) (struct thermal_zone_device *,
75 int (*get_temp) (struct thermal_zone_device *, int *);
76 int (*set_trips) (struct thermal_zone_device *, int, int);
77 int (*change_mode) (struct thermal_zone_device *,
79 int (*set_trip_temp) (struct thermal_zone_device *, int, int);
80 int (*set_trip_hyst) (struct thermal_zone_device *, int, int);
81 int (*get_crit_temp) (struct thermal_zone_device *, int *);
82 int (*set_emul_temp) (struct thermal_zone_device *, in
155 struct thermal_zone_device { global() struct
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dthermal_core.h46 int for_each_thermal_zone(int (*cb)(struct thermal_zone_device *, void *),
55 struct thermal_zone_device *thermal_zone_get_by_id(int id);
88 int get_tz_trend(struct thermal_zone_device *tz, int trip);
91 get_thermal_instance(struct thermal_zone_device *tz,
103 struct thermal_zone_device *tz;
120 container_of(_dev, struct thermal_zone_device, device)
127 void thermal_zone_device_rebind_exception(struct thermal_zone_device *,
129 void thermal_zone_device_unbind_exception(struct thermal_zone_device *,
131 int thermal_zone_device_set_policy(struct thermal_zone_device *, char *);
135 void thermal_zone_set_trips(struct thermal_zone_device *t
[all...]
H A Dthermal_hwmon.h19 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
20 int devm_thermal_add_hwmon_sysfs(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 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_of.c87 static int of_thermal_get_temp(struct thermal_zone_device *tz, in of_thermal_get_temp()
98 static int of_thermal_set_trips(struct thermal_zone_device *tz, in of_thermal_set_trips()
119 int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips()
140 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid()
162 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points()
184 static int of_thermal_set_emul_temp(struct thermal_zone_device *tz, in of_thermal_set_emul_temp()
195 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend()
206 static int of_thermal_bind(struct thermal_zone_device *thermal, in of_thermal_bind()
241 static int of_thermal_unbind(struct thermal_zone_device *thermal, in of_thermal_unbind()
273 static int of_thermal_get_trip_type(struct thermal_zone_device *t
[all...]
H A Dthermal_core.c69 * @tz: a valid pointer to a struct thermal_zone_device
75 static void bind_previous_governor(struct thermal_zone_device *tz, in bind_previous_governor()
90 * @tz: a valid pointer to a struct thermal_zone_device
97 static int thermal_set_governor(struct thermal_zone_device *tz, in thermal_set_governor()
123 struct thermal_zone_device *pos; in thermal_register_governor()
175 struct thermal_zone_device *pos; in thermal_unregister_governor()
199 int thermal_zone_device_set_policy(struct thermal_zone_device *tz, in thermal_zone_device_set_policy()
290 static void thermal_zone_device_set_polling(struct thermal_zone_device *tz, in thermal_zone_device_set_polling()
305 static inline bool should_stop_polling(struct thermal_zone_device *tz) in should_stop_polling()
310 static void monitor_thermal_zone(struct thermal_zone_device *t
[all...]
H A Dthermal_hwmon.c39 struct thermal_zone_device *tz;
58 struct thermal_zone_device *tz = temp->tz; in temp_input_show()
76 struct thermal_zone_device *tz = temp->tz; in temp_crit_show()
89 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type()
111 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp()
126 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) in thermal_zone_crit_temp_valid()
132 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs()
216 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
256 thermal_remove_hwmon_sysfs(*(struct thermal_zone_device **)res); in devm_thermal_hwmon_release()
259 int devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *t
[all...]
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()
61 struct thermal_zone_device *tz = to_thermal_zone(dev); in mode_store()
81 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_type_show()
113 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_temp_store()
152 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_temp_show()
174 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_hyst_store()
204 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_hyst_show()
223 struct thermal_zone_device *t in passive_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()
158 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_exit()
H A Dthermal_helpers.c26 int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend()
45 get_thermal_instance(struct thermal_zone_device *tz, in get_thermal_instance()
70 * @tz: a valid pointer to a struct thermal_zone_device
78 int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in thermal_zone_get_temp()
129 void thermal_zone_set_trips(struct thermal_zone_device *tz) in thermal_zone_set_trips()
226 int thermal_zone_get_slope(struct thermal_zone_device *tz) in thermal_zone_get_slope()
241 int thermal_zone_get_offset(struct thermal_zone_device *tz) in thermal_zone_get_offset()
H A Dkirkwood_thermal.c26 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp()
65 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe()
100 struct thermal_zone_device *kirkwood_thermal = in kirkwood_thermal_exit()
H A Dgov_fair_share.c22 static int get_trip_level(struct thermal_zone_device *tz) in get_trip_level()
49 static long get_target_state(struct thermal_zone_device *tz, in get_target_state()
61 * @tz: thermal_zone_device
78 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle()
/kernel/linux/linux-6.6/drivers/thermal/
H A Dthermal_core.h48 int for_each_thermal_zone(int (*cb)(struct thermal_zone_device *, void *),
57 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)
113 int thermal_zone_device_set_policy(struct thermal_zone_device *, char *);
115 void __thermal_zone_device_update(struct thermal_zone_device *tz,
119 void __thermal_zone_set_trips(struct thermal_zone_device *tz);
120 int __thermal_zone_get_trip(struct thermal_zone_device *t
[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.c65 * @tz: a valid pointer to a struct thermal_zone_device
71 static void bind_previous_governor(struct thermal_zone_device *tz, in bind_previous_governor()
86 * @tz: a valid pointer to a struct thermal_zone_device
93 static int thermal_set_governor(struct thermal_zone_device *tz, in thermal_set_governor()
119 struct thermal_zone_device *pos; in thermal_register_governor()
171 struct thermal_zone_device *pos; in thermal_unregister_governor()
195 int thermal_zone_device_set_policy(struct thermal_zone_device *tz, in thermal_zone_device_set_policy()
288 static void thermal_zone_device_set_polling(struct thermal_zone_device *tz, in thermal_zone_device_set_polling()
298 static void monitor_thermal_zone(struct thermal_zone_device *tz) in monitor_thermal_zone()
308 static void handle_non_critical_trips(struct thermal_zone_device *t
1427 struct device *thermal_zone_device(struct thermal_zone_device *tzd) thermal_zone_device() function
1431 EXPORT_SYMBOL_GPL(thermal_zone_device); global() variable
[all...]
H A Dthermal_of.c269 static struct device_node *thermal_of_zone_get_by_name(struct thermal_zone_device *tz) in thermal_of_zone_get_by_name()
288 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) in __thermal_of_unbind()
319 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) in __thermal_of_bind()
354 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, in thermal_of_for_each_cooling_device()
356 struct thermal_zone_device *, struct thermal_cooling_device *)) in thermal_of_for_each_cooling_device()
386 static int thermal_of_for_each_cooling_maps(struct thermal_zone_device *tz, in thermal_of_for_each_cooling_maps()
389 struct thermal_zone_device *, struct thermal_cooling_device *)) in thermal_of_for_each_cooling_maps()
419 static int thermal_of_bind(struct thermal_zone_device *tz, in thermal_of_bind()
425 static int thermal_of_unbind(struct thermal_zone_device *tz, in thermal_of_unbind()
439 static void thermal_of_zone_unregister(struct thermal_zone_device *t
[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 *t
[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()
72 * @tz: a valid pointer to a struct thermal_zone_device
84 int __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in __thermal_zone_get_temp()
121 * @tz: a valid pointer to a struct thermal_zone_device
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 *t in policy_store()
[all...]
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 *t
[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_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()
51 * @tz: thermal_zone_device
68 static int fair_share_throttle(struct thermal_zone_device *tz, int trip_index) in fair_share_throttle()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c91 struct thermal_zone_device *tzdev;
99 struct thermal_zone_device *tzdev;
109 struct thermal_zone_device *tz_highest_dev;
198 struct thermal_zone_device *tzdev, in mlxsw_thermal_tz_score_update()
225 static int mlxsw_thermal_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_bind()
251 static int mlxsw_thermal_unbind(struct thermal_zone_device *tzdev, in mlxsw_thermal_unbind()
273 static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_temp()
298 static int mlxsw_thermal_get_trip_type(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_trip_type()
311 static int mlxsw_thermal_get_trip_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_trip_temp()
323 static int mlxsw_thermal_set_trip_temp(struct thermal_zone_device *tzde
[all...]
/kernel/linux/linux-5.10/drivers/thermal/intel/
H A Dintel_quark_dts_thermal.c106 struct thermal_zone_device *tzone;
118 static int soc_dts_enable(struct thermal_zone_device *tzd) in soc_dts_enable()
146 static int soc_dts_disable(struct thermal_zone_device *tzd) in soc_dts_disable()
200 static inline int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp()
206 static inline int sys_get_crit_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_crit_temp()
259 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp()
265 static int sys_get_trip_type(struct thermal_zone_device *thermal, in sys_get_trip_type()
276 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp()
301 static int sys_change_mode(struct thermal_zone_device *tzd, in sys_change_mode()

Completed in 14 milliseconds

12345678