Home
last modified time | relevance | path

Searched refs:tz (Results 1 – 47 of 47) sorted by relevance

/linux-4.1.27/drivers/thermal/
Dthermal_core.c174 int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend() argument
178 if (tz->emul_temperature || !tz->ops->get_trend || in get_tz_trend()
179 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend()
180 if (tz->temperature > tz->last_temperature) in get_tz_trend()
182 else if (tz->temperature < tz->last_temperature) in get_tz_trend()
192 struct thermal_instance *get_thermal_instance(struct thermal_zone_device *tz, in get_thermal_instance() argument
198 mutex_lock(&tz->lock); in get_thermal_instance()
201 list_for_each_entry(pos, &tz->thermal_instances, tz_node) { in get_thermal_instance()
202 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance()
209 mutex_unlock(&tz->lock); in get_thermal_instance()
[all …]
Dof-thermal.c89 static int of_thermal_get_temp(struct thermal_zone_device *tz, in of_thermal_get_temp() argument
92 struct __thermal_zone *data = tz->devdata; in of_thermal_get_temp()
110 int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips() argument
112 struct __thermal_zone *data = tz->devdata; in of_thermal_get_ntrips()
131 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid() argument
133 struct __thermal_zone *data = tz->devdata; in of_thermal_is_trip_valid()
153 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points() argument
155 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trip_points()
175 static int of_thermal_set_emul_temp(struct thermal_zone_device *tz, in of_thermal_set_emul_temp() argument
178 struct __thermal_zone *data = tz->devdata; in of_thermal_set_emul_temp()
[all …]
Dfair_share.c34 static int get_trip_level(struct thermal_zone_device *tz) in get_trip_level() argument
40 if (tz->trips == 0 || !tz->ops->get_trip_temp) in get_trip_level()
43 for (count = 0; count < tz->trips; count++) { in get_trip_level()
44 tz->ops->get_trip_temp(tz, count, &trip_temp); in get_trip_level()
45 if (tz->temperature < trip_temp) in get_trip_level()
54 tz->ops->get_trip_type(tz, count - 1, &trip_type); in get_trip_level()
55 trace_thermal_zone_trip(tz, count - 1, trip_type); in get_trip_level()
61 static long get_target_state(struct thermal_zone_device *tz, in get_target_state() argument
68 return (long)(weight * level * max_state) / (100 * tz->trips); in get_target_state()
89 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument
[all …]
Dgov_bang_bang.c26 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
32 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
33 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
35 dev_dbg(&tz->device, "Trip%d[temp=%ld]:temp=%d:hyst=%ld\n", in thermal_zone_trip_update()
36 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
39 mutex_lock(&tz->lock); in thermal_zone_trip_update()
41 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
60 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
63 tz->temperature < trip_temp - trip_hyst) in thermal_zone_trip_update()
72 mutex_unlock(&tz->lock); in thermal_zone_trip_update()
[all …]
Dstep_wise.c116 static void update_passive_instance(struct thermal_zone_device *tz, in update_passive_instance() argument
124 tz->passive += value; in update_passive_instance()
127 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
137 trip_temp = tz->forced_passive; in thermal_zone_trip_update()
140 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
141 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update()
144 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
146 if (tz->temperature >= trip_temp) { in thermal_zone_trip_update()
148 trace_thermal_zone_trip(tz, trip, trip_type); in thermal_zone_trip_update()
151 dev_dbg(&tz->device, "Trip%d[type=%d,temp=%ld]:trend=%d,throttle=%d\n", in thermal_zone_trip_update()
[all …]
Dthermal_hwmon.c52 struct thermal_zone_device *tz; member
79 struct thermal_zone_device *tz = temp->tz; in temp_input_show() local
81 ret = thermal_zone_get_temp(tz, &temperature); in temp_input_show()
97 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() local
101 ret = tz->ops->get_trip_temp(tz, 0, &temperature); in temp_crit_show()
110 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type() argument
116 if (!strcmp(hwmon->type, tz->type)) { in thermal_hwmon_lookup_by_type()
128 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp() argument
134 if (temp->tz == 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() argument
[all …]
Dimx_thermal.c96 struct thermal_zone_device *tz; member
136 static int imx_get_temp(struct thermal_zone_device *tz, unsigned long *temp) in imx_get_temp() argument
138 struct imx_thermal_data *data = tz->devdata; in imx_get_temp()
175 dev_dbg(&tz->device, "temp measurement never finished\n"); in imx_get_temp()
192 dev_dbg(&tz->device, "thermal alarm off: T < %lu\n", in imx_get_temp()
198 dev_dbg(&tz->device, "millicelsius: %ld\n", *temp); in imx_get_temp()
211 static int imx_get_mode(struct thermal_zone_device *tz, in imx_get_mode() argument
214 struct imx_thermal_data *data = tz->devdata; in imx_get_mode()
221 static int imx_set_mode(struct thermal_zone_device *tz, in imx_set_mode() argument
224 struct imx_thermal_data *data = tz->devdata; in imx_set_mode()
[all …]
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() argument
44 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs() argument
Duser_space.c35 static int notify_user_space(struct thermal_zone_device *tz, int trip) in notify_user_space() argument
37 mutex_lock(&tz->lock); in notify_user_space()
38 kobject_uevent(&tz->device.kobj, KOBJ_CHANGE); in notify_user_space()
39 mutex_unlock(&tz->lock); in notify_user_space()
Dthermal_core.h41 struct thermal_zone_device *tz; member
100 static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips() argument
104 static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, in of_thermal_is_trip_valid() argument
110 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points() argument
Dtegra_soctherm.c345 struct thermal_zone_device *tz; in tegra_soctherm_probe() local
422 tz = thermal_zone_of_sensor_register(&pdev->dev, i, zone, in tegra_soctherm_probe()
424 if (IS_ERR(tz)) { in tegra_soctherm_probe()
425 err = PTR_ERR(tz); in tegra_soctherm_probe()
431 tegra->thermctl_tzs[i] = tz; in tegra_soctherm_probe()
/linux-4.1.27/drivers/acpi/
Dthermal.c201 static int acpi_thermal_get_temperature(struct acpi_thermal *tz) in acpi_thermal_get_temperature() argument
206 if (!tz) in acpi_thermal_get_temperature()
209 tz->last_temperature = tz->temperature; in acpi_thermal_get_temperature()
211 status = acpi_evaluate_integer(tz->device->handle, "_TMP", NULL, &tmp); in acpi_thermal_get_temperature()
215 tz->temperature = tmp; in acpi_thermal_get_temperature()
217 tz->temperature)); in acpi_thermal_get_temperature()
222 static int acpi_thermal_get_polling_frequency(struct acpi_thermal *tz) in acpi_thermal_get_polling_frequency() argument
227 if (!tz) in acpi_thermal_get_polling_frequency()
230 status = acpi_evaluate_integer(tz->device->handle, "_TZP", NULL, &tmp); in acpi_thermal_get_polling_frequency()
234 tz->polling_frequency = tmp; in acpi_thermal_get_polling_frequency()
[all …]
/linux-4.1.27/include/trace/events/
Dthermal.h12 TP_PROTO(struct thermal_zone_device *tz),
14 TP_ARGS(tz),
17 __string(thermal_zone, tz->type)
24 __assign_str(thermal_zone, tz->type);
25 __entry->id = tz->id;
26 __entry->temp_prev = tz->last_temperature;
27 __entry->temp = tz->temperature;
56 TP_PROTO(struct thermal_zone_device *tz, int trip,
59 TP_ARGS(tz, trip, trip_type),
62 __string(thermal_zone, tz->type)
[all …]
/linux-4.1.27/fs/isofs/
Dutil.c20 int year, month, day, hour, minute, second, tz; in iso_date() local
29 if (flag == 0) tz = p[6]; /* High sierra has no time zone */ in iso_date()
30 else tz = 0; in iso_date()
38 if (tz & 0x80) in iso_date()
39 tz |= (-1 << 8); in iso_date()
66 if (-52 <= tz && tz <= 52) in iso_date()
67 crtime -= tz * 15 * 60; in iso_date()
/linux-4.1.27/include/linux/
Dthermal.h214 int (*throttle)(struct thermal_zone_device *tz, int trip);
246 int (*match) (struct thermal_zone_device *tz,
308 struct thermal_zone_device *tz);
319 struct thermal_zone_device *tz) in thermal_zone_of_sensor_unregister() argument
345 int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp);
360 struct thermal_zone_device *tz) in thermal_zone_device_unregister() argument
363 struct thermal_zone_device *tz, int trip, in thermal_zone_bind_cooling_device() argument
368 struct thermal_zone_device *tz, int trip, in thermal_zone_unbind_cooling_device() argument
371 static inline void thermal_zone_device_update(struct thermal_zone_device *tz) in thermal_zone_device_update() argument
388 struct thermal_zone_device *tz, unsigned long *temp) in thermal_zone_get_temp() argument
[all …]
Dtimekeeping.h15 const struct timezone *tz);
Dsecurity.h78 extern int cap_settime(const struct timespec *ts, const struct timezone *tz);
1486 int (*settime) (const struct timespec *ts, const struct timezone *tz);
1792 int security_settime(const struct timespec *ts, const struct timezone *tz);
2043 const struct timezone *tz) in security_settime() argument
2045 return cap_settime(ts, tz); in security_settime()
Dcompat.h421 struct timezone __user *tz);
423 struct timezone __user *tz);
Dsyscalls.h213 struct timezone __user *tz);
215 struct timezone __user *tz);
/linux-4.1.27/drivers/thermal/samsung/
Dexynos_tmu.c192 struct thermal_zone_device *tz = p->tzd; in exynos_report_trigger() local
196 if (!tz) { in exynos_report_trigger()
201 thermal_zone_device_update(tz); in exynos_report_trigger()
203 mutex_lock(&tz->lock); in exynos_report_trigger()
205 for (i = 0; i < of_thermal_get_ntrips(tz); i++) { in exynos_report_trigger()
206 tz->ops->get_trip_temp(tz, i, &temp); in exynos_report_trigger()
207 if (tz->last_temperature < temp) in exynos_report_trigger()
212 kobject_uevent_env(&tz->device.kobj, KOBJ_CHANGE, envp); in exynos_report_trigger()
213 mutex_unlock(&tz->lock); in exynos_report_trigger()
291 struct thermal_zone_device *tz = data->tzd; in get_th_reg() local
[all …]
/linux-4.1.27/arch/x86/vdso/
Dvclock_gettime.c26 extern int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz);
54 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument
59 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); in vdso_fallback_gtod()
150 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument
160 : "0" (__NR_gettimeofday), "g" (tv), "c" (tz) in vdso_fallback_gtod()
320 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
324 return vdso_fallback_gtod(tv, tz); in __vdso_gettimeofday()
327 if (unlikely(tz != NULL)) { in __vdso_gettimeofday()
328 tz->tz_minuteswest = gtod->tz_minuteswest; in __vdso_gettimeofday()
329 tz->tz_dsttime = gtod->tz_dsttime; in __vdso_gettimeofday()
/linux-4.1.27/kernel/time/
Dtime.c103 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument
111 if (unlikely(tz != NULL)) { in SYSCALL_DEFINE2()
112 if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) in SYSCALL_DEFINE2()
163 int do_sys_settimeofday(const struct timespec *tv, const struct timezone *tz) in do_sys_settimeofday() argument
171 error = security_settime(tv, tz); in do_sys_settimeofday()
175 if (tz) { in do_sys_settimeofday()
176 sys_tz = *tz; in do_sys_settimeofday()
190 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument
206 if (tz) { in SYSCALL_DEFINE2()
207 if (copy_from_user(&new_tz, tz, sizeof(*tz))) in SYSCALL_DEFINE2()
[all …]
/linux-4.1.27/arch/arm/vdso/
Dvgettimeofday.c232 register struct timezone *tz asm("r1") = _tz; in gettimeofday_fallback()
240 : "r" (tv), "r" (tz), "r" (nr) in gettimeofday_fallback()
246 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
256 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday()
262 if (tz) { in __vdso_gettimeofday()
263 tz->tz_minuteswest = vdata->tz_minuteswest; in __vdso_gettimeofday()
264 tz->tz_dsttime = vdata->tz_dsttime; in __vdso_gettimeofday()
/linux-4.1.27/arch/tile/kernel/vdso/
Dvgettimeofday.c131 struct timezone *tz) in __vdso_gettimeofday() argument
138 if (unlikely(tz != NULL)) { in __vdso_gettimeofday()
141 tz->tz_minuteswest = vdso->tz_minuteswest; in __vdso_gettimeofday()
142 tz->tz_dsttime = vdso->tz_dsttime; in __vdso_gettimeofday()
155 int gettimeofday(struct timeval *tv, struct timezone *tz)
/linux-4.1.27/drivers/hwmon/
Dtmp102.c56 struct thermal_zone_device *tz; member
221 tmp102->tz = thermal_zone_of_sensor_register(hwmon_dev, 0, hwmon_dev, in tmp102_probe()
223 if (IS_ERR(tmp102->tz)) in tmp102_probe()
224 tmp102->tz = NULL; in tmp102_probe()
240 thermal_zone_of_sensor_unregister(tmp102->hwmon_dev, tmp102->tz); in tmp102_remove()
Dlm75.c79 struct thermal_zone_device *tz; member
303 data->tz = thermal_zone_of_sensor_register(data->hwmon_dev, 0, in lm75_probe()
306 if (IS_ERR(data->tz)) in lm75_probe()
307 data->tz = NULL; in lm75_probe()
319 thermal_zone_of_sensor_unregister(data->hwmon_dev, data->tz); in lm75_remove()
Dntc_thermistor.c186 struct thermal_zone_device *tz; member
594 data->tz = thermal_zone_of_sensor_register(data->dev, 0, data->dev, in ntc_thermistor_probe()
596 if (IS_ERR(data->tz)) { in ntc_thermistor_probe()
598 data->tz = NULL; in ntc_thermistor_probe()
617 thermal_zone_of_sensor_unregister(data->dev, data->tz); in ntc_thermistor_remove()
/linux-4.1.27/arch/x86/um/vdso/
Dum_vdso.c31 int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
36 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); in __vdso_gettimeofday()
/linux-4.1.27/drivers/input/touchscreen/
Dsun4i-ts.c118 struct thermal_zone_device *tz; member
369 ts->tz = thermal_zone_of_sensor_register(ts->dev, 0, ts, in sun4i_ts_probe()
371 if (IS_ERR(ts->tz)) in sun4i_ts_probe()
372 ts->tz = NULL; in sun4i_ts_probe()
380 thermal_zone_of_sensor_unregister(ts->dev, ts->tz); in sun4i_ts_probe()
397 thermal_zone_of_sensor_unregister(ts->dev, ts->tz); in sun4i_ts_remove()
/linux-4.1.27/Documentation/timers/
Dhpet_example.c137 struct timezone tz; in hpet_poll() local
182 gettimeofday(&stv, &tz); in hpet_poll()
188 gettimeofday(&etv, &tz); in hpet_poll()
/linux-4.1.27/tools/thermal/tmon/
Dtui.c558 static void draw_tp_line(int tz, int y) in draw_tp_line() argument
563 for (j = 0; j < ptdata.tzi[tz].nr_trip_pts; j++) { in draw_tp_line()
564 x = ptdata.tzi[tz].tp[j].temp / 1000; in draw_tp_line()
566 "%c%d", trip_type_to_char(ptdata.tzi[tz].tp[j].type), in draw_tp_line()
569 tz, j, ptdata.tzi[tz].tp[j].temp); in draw_tp_line()
/linux-4.1.27/Documentation/vDSO/
Dvdso_test.c33 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main()
Dvdso_standalone_test_x86.c90 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in c_main()
/linux-4.1.27/arch/alpha/kernel/
Dosf_sys.c998 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument
1006 if (tz) { in SYSCALL_DEFINE2()
1007 if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) in SYSCALL_DEFINE2()
1014 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument
1024 if (tz) { in SYSCALL_DEFINE2()
1025 if (copy_from_user(&ktz, tz, sizeof(*tz))) in SYSCALL_DEFINE2()
1029 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL); in SYSCALL_DEFINE2()
/linux-4.1.27/kernel/
Dcompat.c92 struct timezone __user *, tz) in COMPAT_SYSCALL_DEFINE2() argument
100 if (tz) { in COMPAT_SYSCALL_DEFINE2()
101 if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) in COMPAT_SYSCALL_DEFINE2()
109 struct timezone __user *, tz) in COMPAT_SYSCALL_DEFINE2() argument
121 if (tz) { in COMPAT_SYSCALL_DEFINE2()
122 if (copy_from_user(&new_tz, tz, sizeof(*tz))) in COMPAT_SYSCALL_DEFINE2()
126 return do_sys_settimeofday(tv ? &new_ts : NULL, tz ? &new_tz : NULL); in COMPAT_SYSCALL_DEFINE2()
/linux-4.1.27/Documentation/thermal/
Dsysfs-api.txt69 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,
103 tz: the thermal zone device
114 1.3.2 int thermal_zone_unbind_cooling_device(struct thermal_zone_device *tz,
120 tz: the thermal zone device
144 .match: This call back returns success(0) if the 'tz and cdev' need to
/linux-4.1.27/drivers/staging/comedi/drivers/
Djr3_pci.h248 tz, enumerator
/linux-4.1.27/Documentation/isdn/
DCREDITS14 Volker Götz (volker@oops.franken.de)
DREADME405 contributed by Michael Knigge (imon), Volker Götz (imontty) and
/linux-4.1.27/include/xen/interface/
Dplatform.h144 int16_t tz; member
/linux-4.1.27/security/
Dcommoncap.c119 int cap_settime(const struct timespec *ts, const struct timezone *tz) in cap_settime() argument
Dsecurity.c227 int security_settime(const struct timespec *ts, const struct timezone *tz) in security_settime() argument
229 return security_ops->settime(ts, tz); in security_settime()
/linux-4.1.27/arch/arm/boot/dts/
Dimx50.dtsi44 tzic: tz-interrupt-controller@0fffc000 {
Dimx51.dtsi41 tzic: tz-interrupt-controller@e0000000 {
Dimx53.dtsi72 tzic: tz-interrupt-controller@0fffc000 {
/linux-4.1.27/Documentation/DocBook/media/
Ddvbstb.png.b64320 Opw/f34ycuTIDvWamj9/fjJu3LiMfgw7duxICgsLk6qqqhZd//08tz/Ia+ek+vr6ZNGiRUlhYeEp
/linux-4.1.27/Documentation/filesystems/
Dvfat.txt107 tz=UTC -- Interpret timestamps as UTC rather than local time.