Home
last modified time | relevance | path

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

1234

/linux/include/linux/
A Dthermal.h34 struct thermal_zone_device;
61 int (*bind) (struct thermal_zone_device *,
63 int (*unbind) (struct thermal_zone_device *,
79 void (*hot)(struct thermal_zone_device *);
146 struct thermal_zone_device { struct
316 struct thermal_zone_device *
325 struct thermal_zone_device *tz);
356 struct thermal_zone_device *tz) in devm_thermal_zone_of_sensor_unregister()
404 struct thermal_zone_device *tz) in thermal_zone_device_unregister()
433 struct thermal_zone_device *tz) in thermal_zone_get_slope()
[all …]
/linux/drivers/thermal/
A Dthermal_core.h55 struct thermal_zone_device *thermal_zone_get_by_id(int id);
85 int get_tz_trend(struct thermal_zone_device *tz, int trip);
88 get_thermal_instance(struct thermal_zone_device *tz,
100 struct thermal_zone_device *tz;
117 container_of(_dev, struct thermal_zone_device, device)
128 void thermal_zone_set_trips(struct thermal_zone_device *tz);
154 int of_thermal_get_ntrips(struct thermal_zone_device *);
155 bool of_thermal_is_trip_valid(struct thermal_zone_device *, int);
157 of_thermal_get_trip_points(struct thermal_zone_device *);
170 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points()
[all …]
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()
A Dthermal_of.c377 static struct thermal_zone_device *
382 struct thermal_zone_device *tzd; in thermal_zone_of_add_sensor()
492 struct thermal_zone_device *
497 struct thermal_zone_device *tzd = ERR_PTR(-ENODEV); in thermal_zone_of_sensor_register()
552 struct thermal_zone_device *tzd) in thermal_zone_of_sensor_unregister()
582 *(struct thermal_zone_device **)res); in devm_thermal_zone_of_sensor_release()
588 struct thermal_zone_device **r = res; in devm_thermal_zone_of_sensor_match()
619 struct thermal_zone_device **ptr, *tzd; in devm_thermal_zone_of_sensor_register()
653 struct thermal_zone_device *tzd) in devm_thermal_zone_of_sensor_unregister()
1019 struct thermal_zone_device *zone; in of_thermal_destroy_zones()
[all …]
A Dthermal_core.c121 struct thermal_zone_device *pos; in thermal_register_governor()
173 struct thermal_zone_device *pos; in thermal_unregister_governor()
516 thermal_zone_device, in thermal_zone_device_check()
558 struct thermal_zone_device *tz; in for_each_thermal_zone()
628 struct thermal_zone_device *pos1; in thermal_zone_bind_cooling_device()
779 struct thermal_zone_device *tz; in thermal_release()
837 struct thermal_zone_device *pos = NULL; in bind_cdev()
1075 struct thermal_zone_device *tz; in thermal_cooling_device_unregister()
1185 struct thermal_zone_device *
1191 struct thermal_zone_device *tz; in thermal_zone_device_register()
[all …]
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()
215 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
255 thermal_remove_hwmon_sysfs(*(struct thermal_zone_device **)res); in devm_thermal_hwmon_release()
258 int devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in devm_thermal_add_hwmon_sysfs()
[all …]
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 *tz = to_thermal_zone(dev); in policy_store()
[all …]
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()
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()
240 int thermal_zone_get_slope(struct thermal_zone_device *tz) in thermal_zone_get_slope()
255 int thermal_zone_get_offset(struct thermal_zone_device *tz) in thermal_zone_get_offset()
A Dgov_power_allocator.c89 static u32 estimate_sustainable_power(struct thermal_zone_device *tz) in estimate_sustainable_power()
124 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()
520 static void get_governor_trips(struct thermal_zone_device *tz, in get_governor_trips()
573 static void allow_maximum_power(struct thermal_zone_device *tz, bool update) in allow_maximum_power()
616 static int check_power_actors(struct thermal_zone_device *tz) in check_power_actors()
642 static int power_allocator_bind(struct thermal_zone_device *tz) in power_allocator_bind()
693 static void power_allocator_unbind(struct thermal_zone_device *tz) in power_allocator_unbind()
[all …]
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()
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()
78 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle()
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()
A Dda9062-thermal.c51 struct thermal_zone_device *zone;
123 static int da9062_thermal_get_trip_type(struct thermal_zone_device *z, in da9062_thermal_get_trip_type()
142 static int da9062_thermal_get_trip_temp(struct thermal_zone_device *z, in da9062_thermal_get_trip_temp()
161 static int da9062_thermal_get_temp(struct thermal_zone_device *z, in da9062_thermal_get_temp()
A Dimx_thermal.c198 struct thermal_zone_device *tz;
249 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) in imx_get_temp()
334 static int imx_change_mode(struct thermal_zone_device *tz, in imx_change_mode()
366 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type()
374 static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) in imx_get_crit_temp()
382 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp()
392 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp()
412 static int imx_bind(struct thermal_zone_device *tz, in imx_bind()
431 static int imx_unbind(struct thermal_zone_device *tz, in imx_unbind()
A Ddove_thermal.c86 static int dove_get_temp(struct thermal_zone_device *thermal, in dove_get_temp()
123 struct thermal_zone_device *thermal = NULL; in dove_thermal_probe()
169 struct thermal_zone_device *dove_thermal = in dove_thermal_exit()
A Dgov_user_space.c18 static int user_space_bind(struct thermal_zone_device *tz) in user_space_bind()
33 static int notify_user_space(struct thermal_zone_device *tz, int trip) in notify_user_space()
A Dgov_step_wise.c105 static void update_passive_instance(struct thermal_zone_device *tz, in update_passive_instance()
116 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update()
181 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_thermal.c82 struct thermal_zone_device *tzdev;
90 struct thermal_zone_device *tzdev;
100 struct thermal_zone_device *tz_highest_dev;
190 struct thermal_zone_device *tzdev, in mlxsw_thermal_tz_score_update()
217 static int mlxsw_thermal_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_bind()
243 static int mlxsw_thermal_unbind(struct thermal_zone_device *tzdev, in mlxsw_thermal_unbind()
265 static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev, in mlxsw_thermal_get_temp()
345 static int mlxsw_thermal_trend_get(struct thermal_zone_device *tzdev, in mlxsw_thermal_trend_get()
372 static int mlxsw_thermal_module_bind(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_bind()
491 mlxsw_thermal_module_trip_temp_get(struct thermal_zone_device *tzdev, in mlxsw_thermal_module_trip_temp_get()
[all …]
/linux/drivers/thermal/intel/
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()
A Dx86_pkg_temp_thermal.c55 struct thermal_zone_device *tzone;
126 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp()
141 static int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp()
176 sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp) in sys_set_trip_temp()
215 static int sys_get_trip_type(struct thermal_zone_device *thermal, int trip, in sys_get_trip_type()
265 struct thermal_zone_device *tzone = NULL; in pkg_temp_thermal_threshold_work_fn()
402 struct thermal_zone_device *tzone = zonedev->tzone; in pkg_thermal_cpu_offline()
/linux/drivers/platform/x86/
A Dacerhdf.c81 static struct thermal_zone_device *thz_dev;
321 static void acerhdf_check_param(struct thermal_zone_device *thermal) in acerhdf_check_param()
352 static int acerhdf_get_ec_temp(struct thermal_zone_device *thermal, int *t) in acerhdf_get_ec_temp()
367 static int acerhdf_bind(struct thermal_zone_device *thermal, in acerhdf_bind()
383 static int acerhdf_unbind(struct thermal_zone_device *thermal, in acerhdf_unbind()
416 static int acerhdf_change_mode(struct thermal_zone_device *thermal, in acerhdf_change_mode()
427 static int acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_type()
440 static int acerhdf_get_trip_hyst(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_hyst()
451 static int acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_temp()
464 static int acerhdf_get_crit_temp(struct thermal_zone_device *thermal, in acerhdf_get_crit_temp()
/linux/drivers/thermal/intel/int340x_thermal/
A Dint340x_thermal_zone.c14 static int int340x_thermal_get_zone_temp(struct thermal_zone_device *zone, in int340x_thermal_get_zone_temp()
43 static int int340x_thermal_get_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_get_trip_temp()
75 static int int340x_thermal_get_trip_type(struct thermal_zone_device *zone, in int340x_thermal_get_trip_type()
108 static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_set_trip_temp()
130 static int int340x_thermal_get_trip_hyst(struct thermal_zone_device *zone, in int340x_thermal_get_trip_hyst()
149 static void int340x_thermal_critical(struct thermal_zone_device *zone) in int340x_thermal_critical()
A Dprocessor_thermal_device_pci.c21 struct thermal_zone_device *tzone;
104 struct thermal_zone_device *tzone = pci_info->tzone; in proc_thermal_threshold_work_fn()
136 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp()
147 static int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp()
167 static int sys_get_trip_type(struct thermal_zone_device *tzd, int trip, in sys_get_trip_type()
175 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp) in sys_set_trip_temp()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_thermal.c12 static int cxgb4_thermal_get_temp(struct thermal_zone_device *tzdev, in cxgb4_thermal_get_temp()
32 static int cxgb4_thermal_get_trip_type(struct thermal_zone_device *tzdev, in cxgb4_thermal_get_trip_type()
44 static int cxgb4_thermal_get_trip_temp(struct thermal_zone_device *tzdev, in cxgb4_thermal_get_trip_temp()
/linux/drivers/thermal/ti-soc-thermal/
A Dti-thermal-common.c28 struct thermal_zone_device *ti_thermal;
29 struct thermal_zone_device *pcb_tz;
69 struct thermal_zone_device *pcb_tz = NULL; in __ti_thermal_get_temp()
109 static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal, in ti_thermal_get_temp()

Completed in 54 milliseconds

1234