Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Dthermal.h71 struct thermal_zone_device;
96 int (*bind) (struct thermal_zone_device *,
98 int (*unbind) (struct thermal_zone_device *,
100 int (*get_temp) (struct thermal_zone_device *, int *);
101 int (*get_mode) (struct thermal_zone_device *,
103 int (*set_mode) (struct thermal_zone_device *,
105 int (*get_trip_type) (struct thermal_zone_device *, int,
107 int (*get_trip_temp) (struct thermal_zone_device *, int, int *);
108 int (*set_trip_temp) (struct thermal_zone_device *, int, int);
109 int (*get_trip_hyst) (struct thermal_zone_device *, int, int *);
[all …]
Dpower_supply.h250 struct thermal_zone_device *tzd;
/linux-4.4.14/drivers/thermal/
Dthermal_core.h41 struct thermal_zone_device *tz;
104 int of_thermal_get_ntrips(struct thermal_zone_device *);
105 bool of_thermal_is_trip_valid(struct thermal_zone_device *, int);
107 of_thermal_get_trip_points(struct thermal_zone_device *);
111 static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips()
115 static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, in of_thermal_is_trip_valid()
121 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points()
Dthermal_hwmon.h34 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
35 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
38 thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs()
44 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
Dof-thermal.c93 static int of_thermal_get_temp(struct thermal_zone_device *tz, in of_thermal_get_temp()
114 int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips()
135 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid()
157 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points()
179 static int of_thermal_set_emul_temp(struct thermal_zone_device *tz, in of_thermal_set_emul_temp()
190 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend()
215 static int of_thermal_bind(struct thermal_zone_device *thermal, in of_thermal_bind()
244 static int of_thermal_unbind(struct thermal_zone_device *thermal, in of_thermal_unbind()
270 static int of_thermal_get_mode(struct thermal_zone_device *tz, in of_thermal_get_mode()
280 static int of_thermal_set_mode(struct thermal_zone_device *tz, in of_thermal_set_mode()
[all …]
Dthermal_core.c89 static void bind_previous_governor(struct thermal_zone_device *tz, in bind_previous_governor()
111 static int thermal_set_governor(struct thermal_zone_device *tz, in thermal_set_governor()
137 struct thermal_zone_device *pos; in thermal_register_governor()
184 struct thermal_zone_device *pos; in thermal_unregister_governor()
233 int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend()
251 struct thermal_instance *get_thermal_instance(struct thermal_zone_device *tz, in get_thermal_instance()
274 static void print_bind_err_msg(struct thermal_zone_device *tz, in print_bind_err_msg()
281 static void __bind(struct thermal_zone_device *tz, int mask, in __bind()
307 static void __unbind(struct thermal_zone_device *tz, int mask, in __unbind()
321 struct thermal_zone_device *pos = NULL; in bind_cdev()
[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.c52 struct thermal_zone_device *tz;
79 struct thermal_zone_device *tz = temp->tz; in temp_input_show()
97 struct thermal_zone_device *tz = temp->tz; in temp_crit_show()
110 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type()
128 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp()
143 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) in thermal_zone_crit_temp_valid()
149 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs()
236 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs()
Dspear_thermal.c40 static inline int thermal_get_temp(struct thermal_zone_device *thermal, in thermal_get_temp()
61 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_suspend()
78 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_resume()
104 struct thermal_zone_device *spear_thermal = NULL; in spear_thermal_probe()
164 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()
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()
546 static int power_allocator_bind(struct thermal_zone_device *tz) in power_allocator_bind()
593 static void power_allocator_unbind(struct thermal_zone_device *tz) in power_allocator_unbind()
608 static int power_allocator_throttle(struct thermal_zone_device *tz, int trip) in power_allocator_throttle()
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()
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()
89 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle()
Dimx_thermal.c91 struct thermal_zone_device *tz;
133 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) in imx_get_temp()
208 static int imx_get_mode(struct thermal_zone_device *tz, in imx_get_mode()
218 static int imx_set_mode(struct thermal_zone_device *tz, in imx_set_mode()
254 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type()
262 static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) in imx_get_crit_temp()
270 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp()
280 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp()
300 static int imx_bind(struct thermal_zone_device *tz, in imx_bind()
319 static int imx_unbind(struct thermal_zone_device *tz, in imx_unbind()
Dintel_pch_thermal.c62 struct thermal_zone_device *tzd;
144 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp()
151 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type()
166 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp()
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()
Dstep_wise.c116 static void update_passive_instance(struct thermal_zone_device *tz, in update_passive_instance()
127 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update()
196 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle()
Dgov_bang_bang.c26 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update()
101 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control()
Drcar_thermal.c61 struct thermal_zone_device *zone;
203 static int rcar_thermal_get_temp(struct thermal_zone_device *zone, int *temp) in rcar_thermal_get_temp()
217 static int rcar_thermal_get_trip_type(struct thermal_zone_device *zone, in rcar_thermal_get_trip_type()
236 static int rcar_thermal_get_trip_temp(struct thermal_zone_device *zone, in rcar_thermal_get_trip_temp()
255 static int rcar_thermal_notify(struct thermal_zone_device *zone, in rcar_thermal_notify()
Dx86_pkg_temp_thermal.c68 struct thermal_zone_device *tzone;
167 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp()
185 static int sys_get_trip_temp(struct thermal_zone_device *tzd, in sys_get_trip_temp()
222 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp()
267 static int sys_get_trip_type(struct thermal_zone_device *thermal, in sys_get_trip_type()
Darmada_thermal.c157 static int armada_get_temp(struct thermal_zone_device *thermal, in armada_get_temp()
258 struct thermal_zone_device *thermal; in armada_thermal_probe()
299 struct thermal_zone_device *armada_thermal = in armada_thermal_exit()
Dintel_soc_dts_iosf.c82 static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_get_trip_temp()
198 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp()
216 static int sys_get_trip_type(struct thermal_zone_device *tzd, in sys_get_trip_type()
228 static int sys_get_curr_temp(struct thermal_zone_device *tzd, in sys_get_curr_temp()
Duser_space.c35 static int notify_user_space(struct thermal_zone_device *tz, int trip) in notify_user_space()
Dintel_soc_dts_iosf.h42 struct thermal_zone_device *tzone;
Ddevfreq_cooling.c275 struct thermal_zone_device *tz, in devfreq_cooling_get_requested_power()
307 struct thermal_zone_device *tz, in devfreq_cooling_state2power()
326 struct thermal_zone_device *tz, in devfreq_cooling_power2state()
Dcpu_cooling.c422 struct thermal_zone_device *tz, unsigned long freq, in get_static_power()
571 struct thermal_zone_device *tz, in cpufreq_get_requested_power()
651 struct thermal_zone_device *tz, in cpufreq_state2power()
703 struct thermal_zone_device *tz, u32 power, in cpufreq_power2state()
Dhisi_thermal.c45 struct thermal_zone_device *tzd;
276 struct thermal_zone_device *tzd = sensor->tzd; in hisi_thermal_toggle_sensor()
Dtegra_soctherm.c171 struct thermal_zone_device *thermctl_tzs[4];
345 struct thermal_zone_device *tz; in tegra_soctherm_probe()
Dqcom-spmi-temp-alarm.c60 struct thermal_zone_device *tz_dev;
Drockchip_thermal.c116 struct thermal_zone_device *tzd;
496 struct thermal_zone_device *tzd = sensor->tzd; in rockchip_thermal_toggle_sensor()
/linux-4.4.14/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c40 struct thermal_zone_device *ti_thermal;
41 struct thermal_zone_device *pcb_tz;
81 struct thermal_zone_device *pcb_tz = NULL; in __ti_thermal_get_temp()
121 static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal, in ti_thermal_get_temp()
130 static int ti_thermal_bind(struct thermal_zone_device *thermal, in ti_thermal_bind()
154 static int ti_thermal_unbind(struct thermal_zone_device *thermal, in ti_thermal_unbind()
171 static int ti_thermal_get_mode(struct thermal_zone_device *thermal, in ti_thermal_get_mode()
183 static int ti_thermal_set_mode(struct thermal_zone_device *thermal, in ti_thermal_set_mode()
216 static int ti_thermal_get_trip_type(struct thermal_zone_device *thermal, in ti_thermal_get_trip_type()
231 static int ti_thermal_get_trip_temp(struct thermal_zone_device *thermal, in ti_thermal_get_trip_temp()
[all …]
/linux-4.4.14/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 …]
Dintel_mid_thermal.c89 struct thermal_zone_device *tzd[MSIC_THERMAL_SENSORS];
177 static int mid_read_temp(struct thermal_zone_device *tzd, int *temp) in mid_read_temp()
455 static int read_curr_temp(struct thermal_zone_device *tzd, int *temp) in read_curr_temp()
Dintel_menlow.c423 struct thermal_zone_device *thermal; in intel_menlow_register_sensor()
/linux-4.4.14/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()
Dint3400_thermal.c34 struct thermal_zone_device *thermal;
188 static int int3400_thermal_get_temp(struct thermal_zone_device *thermal, in int3400_thermal_get_temp()
195 static int int3400_thermal_get_mode(struct thermal_zone_device *thermal, in int3400_thermal_get_mode()
208 static int int3400_thermal_set_mode(struct thermal_zone_device *thermal, in int3400_thermal_set_mode()
Dint340x_thermal_zone.h40 struct thermal_zone_device *zone;
Dprocessor_thermal_device.c179 static int proc_thermal_get_zone_temp(struct thermal_zone_device *zone, in proc_thermal_get_zone_temp()
/linux-4.4.14/drivers/acpi/
Dthermal.c187 struct thermal_zone_device *thermal_zone;
528 static int thermal_get_temp(struct thermal_zone_device *thermal, int *temp) in thermal_get_temp()
545 static int thermal_get_mode(struct thermal_zone_device *thermal, in thermal_get_mode()
559 static int thermal_set_mode(struct thermal_zone_device *thermal, in thermal_set_mode()
589 static int thermal_get_trip_type(struct thermal_zone_device *thermal, in thermal_get_trip_type()
634 static int thermal_get_trip_temp(struct thermal_zone_device *thermal, in thermal_get_trip_temp()
687 static int thermal_get_crit_temp(struct thermal_zone_device *thermal, in thermal_get_crit_temp()
701 static int thermal_get_trend(struct thermal_zone_device *thermal, in thermal_get_trend()
745 static int thermal_notify(struct thermal_zone_device *thermal, int trip, in thermal_notify()
767 static int acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal, in acpi_thermal_cooling_device_cb()
[all …]
/linux-4.4.14/drivers/thermal/st/
Dst_thermal.c114 static int st_thermal_get_temp(struct thermal_zone_device *th, int *temperature) in st_thermal_get_temp()
142 static int st_thermal_get_trip_type(struct thermal_zone_device *th, in st_thermal_get_trip_type()
160 static int st_thermal_get_trip_temp(struct thermal_zone_device *th, in st_thermal_get_trip_temp()
Dst_thermal.h84 struct thermal_zone_device *thermal_dev;
/linux-4.4.14/drivers/thermal/samsung/
Dexynos_tmu.c205 struct thermal_zone_device *tzd;
217 struct thermal_zone_device *tz = p->tzd; in exynos_report_trigger()
316 struct thermal_zone_device *tz = data->tzd; in get_th_reg()
398 struct thermal_zone_device *tz = data->tzd; in exynos4210_tmu_initialize()
516 struct thermal_zone_device *tz = data->tzd; in exynos5433_tmu_initialize()
661 struct thermal_zone_device *tz = data->tzd; in exynos7_tmu_initialize()
739 struct thermal_zone_device *tz = data->tzd; in exynos4210_tmu_control()
770 struct thermal_zone_device *tz = data->tzd; in exynos5433_tmu_control()
812 struct thermal_zone_device *tz = data->tzd; in exynos5440_tmu_control()
841 struct thermal_zone_device *tz = data->tzd; in exynos7_tmu_control()
[all …]
/linux-4.4.14/include/trace/events/
Dthermal_power_allocator.h10 TP_PROTO(struct thermal_zone_device *tz, u32 *req_power,
58 TP_PROTO(struct thermal_zone_device *tz, s32 err, s32 err_integral,
Dthermal.h13 TP_PROTO(struct thermal_zone_device *tz),
57 TP_PROTO(struct thermal_zone_device *tz, int trip,
/linux-4.4.14/include/linux/power/
Dcharger-manager.h235 struct thermal_zone_device *tzd_batt;
/linux-4.4.14/Documentation/thermal/
Dsysfs-api.txt34 1.1.1 struct thermal_zone_device *thermal_zone_device_register(char *type,
69 1.1.2 void thermal_zone_device_unregister(struct thermal_zone_device *tz)
96 1.3.1 int thermal_zone_bind_cooling_device(struct thermal_zone_device *tz,
116 1.3.2 int thermal_zone_unbind_cooling_device(struct thermal_zone_device *tz,
410 thermal_zone_device (thermal_zone1) with 4 trip points in all.
464 (originator, event). The originator is a pointer to struct thermal_zone_device
Dpower_allocator.txt182 struct thermal_zone_device *tz, u32 *power);
194 thermal_zone_device *tz, unsigned long state, u32 *power);
/linux-4.4.14/drivers/hwmon/
Dscpi-hwmon.c37 struct thermal_zone_device *tzd;
Dtmp102.c56 struct thermal_zone_device *tz;
Dlm75.c80 struct thermal_zone_device *tz;
Dntc_thermistor.c224 struct thermal_zone_device *tz;
/linux-4.4.14/drivers/input/touchscreen/
Dsun4i-ts.c118 struct thermal_zone_device *tz;
/linux-4.4.14/drivers/power/
Dpower_supply_core.c559 static int power_supply_read_temp(struct thermal_zone_device *tzd, in power_supply_read_temp()