Home
last modified time | relevance | path

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

1234

/Linux-v4.19/include/linux/
Dthermal.h57 struct thermal_zone_device;
94 int (*bind) (struct thermal_zone_device *,
96 int (*unbind) (struct thermal_zone_device *,
98 int (*get_temp) (struct thermal_zone_device *, int *);
99 int (*set_trips) (struct thermal_zone_device *, int, int);
100 int (*get_mode) (struct thermal_zone_device *,
102 int (*set_mode) (struct thermal_zone_device *,
104 int (*get_trip_type) (struct thermal_zone_device *, int,
106 int (*get_trip_temp) (struct thermal_zone_device *, int, int *);
107 int (*set_trip_temp) (struct thermal_zone_device *, int, int);
[all …]
/Linux-v4.19/drivers/thermal/
Dthermal_core.h26 struct thermal_zone_device *tz;
43 container_of(_dev, struct thermal_zone_device, device)
50 void thermal_zone_device_rebind_exception(struct thermal_zone_device *,
52 void thermal_zone_device_unbind_exception(struct thermal_zone_device *,
54 int thermal_zone_device_set_policy(struct thermal_zone_device *, char *);
58 int thermal_zone_create_device_groups(struct thermal_zone_device *, int);
59 void thermal_zone_destroy_device_groups(struct thermal_zone_device *);
121 int of_thermal_get_ntrips(struct thermal_zone_device *);
122 bool of_thermal_is_trip_valid(struct thermal_zone_device *, int);
124 of_thermal_get_trip_points(struct thermal_zone_device *);
[all …]
Dof-thermal.c75 static int of_thermal_get_temp(struct thermal_zone_device *tz, in of_thermal_get_temp()
86 static int of_thermal_set_trips(struct thermal_zone_device *tz, in of_thermal_set_trips()
107 int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips()
128 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid()
150 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points()
172 static int of_thermal_set_emul_temp(struct thermal_zone_device *tz, in of_thermal_set_emul_temp()
180 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend()
191 static int of_thermal_bind(struct thermal_zone_device *thermal, in of_thermal_bind()
220 static int of_thermal_unbind(struct thermal_zone_device *thermal, in of_thermal_unbind()
246 static int of_thermal_get_mode(struct thermal_zone_device *tz, in of_thermal_get_mode()
[all …]
Dthermal_hwmon.h19 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
20 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
23 thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs()
29 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
Dthermal_core.c81 static void bind_previous_governor(struct thermal_zone_device *tz, in bind_previous_governor()
103 static int thermal_set_governor(struct thermal_zone_device *tz, in thermal_set_governor()
129 struct thermal_zone_device *pos; in thermal_register_governor()
181 struct thermal_zone_device *pos; in thermal_unregister_governor()
205 int thermal_zone_device_set_policy(struct thermal_zone_device *tz, in thermal_zone_device_set_policy()
289 static void thermal_zone_device_set_polling(struct thermal_zone_device *tz, in thermal_zone_device_set_polling()
302 static void monitor_thermal_zone(struct thermal_zone_device *tz) in monitor_thermal_zone()
316 static void handle_non_critical_trips(struct thermal_zone_device *tz, in handle_non_critical_trips()
372 static void handle_critical_trips(struct thermal_zone_device *tz, in handle_critical_trips()
406 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip()
[all …]
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()
70 struct thermal_zone_device *tz = to_thermal_zone(dev); in mode_store()
93 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_type_show()
125 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_temp_store()
151 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_temp_show()
173 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_hyst_store()
203 struct thermal_zone_device *tz = to_thermal_zone(dev); in trip_point_hyst_show()
222 struct thermal_zone_device *tz = to_thermal_zone(dev); in passive_store()
[all …]
Dintel_quark_dts_thermal.c110 struct thermal_zone_device *tzone;
122 static int soc_dts_enable(struct thermal_zone_device *tzd) in soc_dts_enable()
155 static int soc_dts_disable(struct thermal_zone_device *tzd) in soc_dts_disable()
214 static inline int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp()
220 static inline int sys_get_crit_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_crit_temp()
273 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp()
279 static int sys_get_trip_type(struct thermal_zone_device *thermal, in sys_get_trip_type()
290 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp()
315 static int sys_get_mode(struct thermal_zone_device *tzd, in sys_get_mode()
323 static int sys_set_mode(struct thermal_zone_device *tzd, in sys_set_mode()
Dthermal_hwmon.c37 struct thermal_zone_device *tz;
56 struct thermal_zone_device *tz = temp->tz; in temp_input_show()
74 struct thermal_zone_device *tz = temp->tz; in temp_crit_show()
87 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type()
105 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp()
120 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) in thermal_zone_crit_temp_valid()
126 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs()
210 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
Dthermal_helpers.c25 int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend()
44 get_thermal_instance(struct thermal_zone_device *tz, in get_thermal_instance()
77 int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in thermal_zone_get_temp()
116 void thermal_zone_set_trips(struct thermal_zone_device *tz) in thermal_zone_set_trips()
205 int thermal_zone_get_slope(struct thermal_zone_device *tz) in thermal_zone_get_slope()
220 int thermal_zone_get_offset(struct thermal_zone_device *tz) in thermal_zone_get_offset()
Dspear_thermal.c40 static inline int thermal_get_temp(struct thermal_zone_device *thermal, in thermal_get_temp()
60 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_suspend()
77 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_resume()
102 struct thermal_zone_device *spear_thermal = NULL; in spear_thermal_probe()
162 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_exit()
Ddb8500_thermal.c34 struct thermal_zone_device *therm_dev;
62 static int db8500_cdev_bind(struct thermal_zone_device *thermal, in db8500_cdev_bind()
89 static int db8500_cdev_unbind(struct thermal_zone_device *thermal, in db8500_cdev_unbind()
110 static int db8500_sys_get_temp(struct thermal_zone_device *thermal, int *temp) in db8500_sys_get_temp()
125 static int db8500_sys_get_trend(struct thermal_zone_device *thermal, in db8500_sys_get_trend()
136 static int db8500_sys_get_mode(struct thermal_zone_device *thermal, in db8500_sys_get_mode()
149 static int db8500_sys_set_mode(struct thermal_zone_device *thermal, in db8500_sys_set_mode()
166 static int db8500_sys_get_trip_type(struct thermal_zone_device *thermal, in db8500_sys_get_trip_type()
181 static int db8500_sys_get_trip_temp(struct thermal_zone_device *thermal, in db8500_sys_get_trip_temp()
196 static int db8500_sys_get_crit_temp(struct thermal_zone_device *thermal, in db8500_sys_get_crit_temp()
Dkirkwood_thermal.c35 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp()
74 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe()
102 struct thermal_zone_device *kirkwood_thermal = in kirkwood_thermal_exit()
Dda9062-thermal.c60 struct thermal_zone_device *zone;
133 static int da9062_thermal_get_mode(struct thermal_zone_device *z, in da9062_thermal_get_mode()
141 static int da9062_thermal_get_trip_type(struct thermal_zone_device *z, in da9062_thermal_get_trip_type()
160 static int da9062_thermal_get_trip_temp(struct thermal_zone_device *z, in da9062_thermal_get_trip_temp()
179 static int da9062_thermal_get_temp(struct thermal_zone_device *z, in da9062_thermal_get_temp()
Dpower_allocator.c93 static u32 estimate_sustainable_power(struct thermal_zone_device *tz) in estimate_sustainable_power()
134 static void estimate_pid_constants(struct thermal_zone_device *tz, in estimate_pid_constants()
192 static u32 pid_controller(struct thermal_zone_device *tz, in pid_controller()
332 static int allocate_power(struct thermal_zone_device *tz, in allocate_power()
468 static void get_governor_trips(struct thermal_zone_device *tz, in get_governor_trips()
521 static void allow_maximum_power(struct thermal_zone_device *tz) in allow_maximum_power()
550 static int power_allocator_bind(struct thermal_zone_device *tz) in power_allocator_bind()
597 static void power_allocator_unbind(struct thermal_zone_device *tz) in power_allocator_unbind()
612 static int power_allocator_throttle(struct thermal_zone_device *tz, int trip) in power_allocator_throttle()
Dfair_share.c34 static int get_trip_level(struct thermal_zone_device *tz) in get_trip_level()
61 static long get_target_state(struct thermal_zone_device *tz, in get_target_state()
90 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle()
Dx86_pkg_temp_thermal.c65 struct thermal_zone_device *tzone;
151 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp()
165 static int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp()
200 sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp) in sys_set_trip_temp()
238 static int sys_get_trip_type(struct thermal_zone_device *thermal, int trip, in sys_get_trip_type()
288 struct thermal_zone_device *tzone = NULL; in pkg_temp_thermal_threshold_work_fn()
419 struct thermal_zone_device *tzone = pkgdev->tzone; in pkg_thermal_cpu_offline()
Ddove_thermal.c95 static int dove_get_temp(struct thermal_zone_device *thermal, in dove_get_temp()
132 struct thermal_zone_device *thermal = NULL; in dove_thermal_probe()
172 struct thermal_zone_device *dove_thermal = in dove_thermal_exit()
Dimx_thermal.c205 struct thermal_zone_device *tz;
257 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) in imx_get_temp()
341 static int imx_get_mode(struct thermal_zone_device *tz, in imx_get_mode()
351 static int imx_set_mode(struct thermal_zone_device *tz, in imx_set_mode()
392 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type()
400 static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) in imx_get_crit_temp()
408 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp()
418 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp()
438 static int imx_bind(struct thermal_zone_device *tz, in imx_bind()
457 static int imx_unbind(struct thermal_zone_device *tz, in imx_unbind()
Dstep_wise.c117 static void update_passive_instance(struct thermal_zone_device *tz, in update_passive_instance()
128 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update()
198 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle()
/Linux-v4.19/drivers/platform/x86/
Dacerhdf.c93 static struct thermal_zone_device *thz_dev;
322 static void acerhdf_check_param(struct thermal_zone_device *thermal) in acerhdf_check_param()
349 static int acerhdf_get_ec_temp(struct thermal_zone_device *thermal, int *t) in acerhdf_get_ec_temp()
366 static int acerhdf_bind(struct thermal_zone_device *thermal, in acerhdf_bind()
382 static int acerhdf_unbind(struct thermal_zone_device *thermal, in acerhdf_unbind()
412 static int acerhdf_get_mode(struct thermal_zone_device *thermal, in acerhdf_get_mode()
430 static int acerhdf_set_mode(struct thermal_zone_device *thermal, in acerhdf_set_mode()
441 static int acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_type()
454 static int acerhdf_get_trip_hyst(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_hyst()
465 static int acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_temp()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c69 struct thermal_zone_device *tzdev;
99 static int mlxsw_thermal_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_bind()
125 static int mlxsw_thermal_unbind(struct thermal_zone_device *tzdev, in mlxsw_thermal_unbind()
147 static int mlxsw_thermal_get_mode(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_mode()
157 static int mlxsw_thermal_set_mode(struct thermal_zone_device *tzdev, in mlxsw_thermal_set_mode()
177 static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_temp()
199 static int mlxsw_thermal_get_trip_type(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_trip_type()
212 static int mlxsw_thermal_get_trip_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_trip_temp()
224 static int mlxsw_thermal_set_trip_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_set_trip_temp()
/Linux-v4.19/drivers/thermal/broadcom/
Dbrcmstb_thermal.c117 struct thermal_zone_device *thermal;
120 static void avs_tmon_get_coeffs(struct thermal_zone_device *tz, int *slope, in avs_tmon_get_coeffs()
128 static inline int avs_tmon_code_to_temp(struct thermal_zone_device *tz, in avs_tmon_code_to_temp()
145 static inline u32 avs_tmon_temp_to_code(struct thermal_zone_device *tz, in avs_tmon_temp_to_code()
315 struct thermal_zone_device *thermal; in brcmstb_thermal_probe()
367 struct thermal_zone_device *thermal = priv->thermal; in brcmstb_thermal_exit()
Dbcm2835_thermal.c74 struct thermal_zone_device *tz;
129 struct thermal_zone_device *tz = platform_get_drvdata(pdev); in bcm2835_thermal_debugfs()
177 struct thermal_zone_device *tz; in bcm2835_thermal_probe()
291 struct thermal_zone_device *tz = platform_get_drvdata(pdev); in bcm2835_thermal_remove()
/Linux-v4.19/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c22 static int int340x_thermal_get_zone_temp(struct thermal_zone_device *zone, in int340x_thermal_get_zone_temp()
51 static int int340x_thermal_get_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_get_trip_temp()
83 static int int340x_thermal_get_trip_type(struct thermal_zone_device *zone, in int340x_thermal_get_trip_type()
116 static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_set_trip_temp()
138 static int int340x_thermal_get_trip_hyst(struct thermal_zone_device *zone, in int340x_thermal_get_trip_hyst()
/Linux-v4.19/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c42 struct thermal_zone_device *ti_thermal;
43 struct thermal_zone_device *pcb_tz;
83 struct thermal_zone_device *pcb_tz = NULL; in __ti_thermal_get_temp()
123 static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal, in ti_thermal_get_temp()

1234