Home
last modified time | relevance | path

Searched full:tz (Results 1 – 25 of 149) sorted by relevance

123456

/linux/drivers/acpi/
H A Dthermal.c59 #define ACPI_THERMAL_TRIPS_EXCEPTION(tz, str) \ argument
61 acpi_handle_info(tz->device->handle, \
128 static int acpi_thermal_get_temperature(struct acpi_thermal *tz) in acpi_thermal_get_temperature() argument
133 if (!tz) in acpi_thermal_get_temperature()
136 tz->last_temp_dk = tz->temp_dk; in acpi_thermal_get_temperature()
138 status = acpi_evaluate_integer(tz->device->handle, "_TMP", NULL, &tmp); in acpi_thermal_get_temperature()
142 tz->temp_dk = tmp; in acpi_thermal_get_temperature()
144 acpi_handle_debug(tz->device->handle, "Temperature is %lu dK\n", in acpi_thermal_get_temperature()
145 tz->temp_dk); in acpi_thermal_get_temperature()
150 static int acpi_thermal_get_polling_frequency(struct acpi_thermal *tz) in acpi_thermal_get_polling_frequency() argument
[all …]
/linux/drivers/thermal/
H A Dthermal_helpers.c25 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip) in get_tz_trend() argument
29 if (tz->emul_temperature || !tz->ops.get_trend || in get_tz_trend()
30 tz->ops.get_trend(tz, trip, &trend)) { in get_tz_trend()
31 if (tz->temperature > tz->last_temperature) in get_tz_trend()
33 else if (tz->temperature < tz->last_temperature) in get_tz_trend()
42 static bool thermal_instance_present(struct thermal_zone_device *tz, in thermal_instance_present() argument
57 bool thermal_trip_is_bound_to_cdev(struct thermal_zone_device *tz, in thermal_trip_is_bound_to_cdev() argument
61 guard(thermal_zone)(tz); in thermal_trip_is_bound_to_cdev()
64 return thermal_instance_present(tz, cdev, trip); in thermal_trip_is_bound_to_cdev()
70 * @tz: a valid pointer to a struct thermal_zone_device
[all …]
H A Dthermal_thresholds.c16 int thermal_thresholds_init(struct thermal_zone_device *tz) in thermal_thresholds_init() argument
18 INIT_LIST_HEAD(&tz->user_thresholds); in thermal_thresholds_init()
23 static void __thermal_thresholds_flush(struct thermal_zone_device *tz) in __thermal_thresholds_flush() argument
25 struct list_head *thresholds = &tz->user_thresholds; in __thermal_thresholds_flush()
34 void thermal_thresholds_flush(struct thermal_zone_device *tz) in thermal_thresholds_flush() argument
36 lockdep_assert_held(&tz->lock); in thermal_thresholds_flush()
38 __thermal_thresholds_flush(tz); in thermal_thresholds_flush()
40 thermal_notify_threshold_flush(tz); in thermal_thresholds_flush()
42 __thermal_zone_device_update(tz, THERMAL_TZ_FLUSH_THRESHOLDS); in thermal_thresholds_flush()
45 void thermal_thresholds_exit(struct thermal_zone_device *tz) in thermal_thresholds_exit() argument
[all …]
H A Dgov_power_allocator.c107 * @tz: thermal zone we are operating in
116 static u32 estimate_sustainable_power(struct thermal_zone_device *tz) in estimate_sustainable_power() argument
118 struct power_allocator_params *params = tz->governor_data; in estimate_sustainable_power()
141 * @tz: thermal zone for which to estimate the constants
149 static void estimate_pid_constants(struct thermal_zone_device *tz, in estimate_pid_constants() argument
171 tz->tzp->k_po = int_to_frac(sustainable_power) / in estimate_pid_constants()
174 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / in estimate_pid_constants()
177 k_i = tz->tzp->k_pu / 10; in estimate_pid_constants()
178 tz->tzp->k_i = k_i > 0 ? k_i : 1; in estimate_pid_constants()
188 * @tz: thermal zone for which to estimate the constants
[all …]
H A Dthermal_sysfs.c30 struct thermal_zone_device *tz = to_thermal_zone(dev); in type_show() local
32 return sprintf(buf, "%s\n", tz->type); in type_show()
38 struct thermal_zone_device *tz = to_thermal_zone(dev); in temp_show() local
41 ret = thermal_zone_get_temp(tz, &temperature); in temp_show()
55 struct thermal_zone_device *tz = to_thermal_zone(dev); in mode_show() local
57 guard(thermal_zone)(tz); in mode_show()
59 if (tz->mode == THERMAL_DEVICE_ENABLED) in mode_show()
69 struct thermal_zone_device *tz = to_thermal_zone(dev); in mode_store() local
73 result = thermal_zone_device_enable(tz); in mode_store()
75 result = thermal_zone_device_disable(tz); in mode_store()
[all …]
H A Dthermal_trip.c27 int for_each_thermal_trip(struct thermal_zone_device *tz, in for_each_thermal_trip() argument
34 for_each_trip_desc(tz, td) { in for_each_thermal_trip()
44 int thermal_zone_for_each_trip(struct thermal_zone_device *tz, in thermal_zone_for_each_trip() argument
48 guard(thermal_zone)(tz); in thermal_zone_for_each_trip()
50 return for_each_thermal_trip(tz, cb, data); in thermal_zone_for_each_trip()
54 void thermal_zone_set_trips(struct thermal_zone_device *tz, int low, int high) in thermal_zone_set_trips() argument
58 lockdep_assert_held(&tz->lock); in thermal_zone_set_trips()
60 if (!tz->ops.set_trips) in thermal_zone_set_trips()
64 if (tz->prev_low_trip == low && tz->prev_high_trip == high) in thermal_zone_set_trips()
67 tz->prev_low_trip = low; in thermal_zone_set_trips()
[all …]
H A Dthermal_netlink.c351 int thermal_notify_tz_create(const struct thermal_zone_device *tz) in thermal_notify_tz_create() argument
353 struct param p = { .tz_id = tz->id, .name = tz->type }; in thermal_notify_tz_create()
358 int thermal_notify_tz_delete(const struct thermal_zone_device *tz) in thermal_notify_tz_delete() argument
360 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_delete()
365 int thermal_notify_tz_enable(const struct thermal_zone_device *tz) in thermal_notify_tz_enable() argument
367 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_enable()
372 int thermal_notify_tz_disable(const struct thermal_zone_device *tz) in thermal_notify_tz_disable() argument
374 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_disable()
379 int thermal_notify_tz_trip_down(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_down() argument
382 struct param p = { .tz_id = tz->id, in thermal_notify_tz_trip_down()
[all …]
H A Dthermal_debugfs.h8 void thermal_debug_tz_add(struct thermal_zone_device *tz);
9 void thermal_debug_tz_remove(struct thermal_zone_device *tz);
10 void thermal_debug_tz_resume(struct thermal_zone_device *tz);
11 void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
13 void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
15 void thermal_debug_update_trip_stats(struct thermal_zone_device *tz);
22 static inline void thermal_debug_tz_add(struct thermal_zone_device *tz) {} in thermal_debug_tz_add() argument
23 static inline void thermal_debug_tz_remove(struct thermal_zone_device *tz) {} in thermal_debug_tz_remove() argument
24 static inline void thermal_debug_tz_resume(struct thermal_zone_device *tz) {} in thermal_debug_tz_resume() argument
25 static inline void thermal_debug_tz_trip_up(struct thermal_zone_device *tz, in thermal_debug_tz_trip_up() argument
[all …]
H A Dthermal_of.c225 static struct device_node *thermal_of_zone_get_by_name(struct thermal_zone_device *tz) in thermal_of_zone_get_by_name() argument
233 tz_np = of_get_child_by_name(np, tz->type); in thermal_of_zone_get_by_name()
305 static bool thermal_of_should_bind(struct thermal_zone_device *tz, in thermal_of_should_bind() argument
313 tz_np = thermal_of_zone_get_by_name(tz); in thermal_of_should_bind()
315 pr_err("Failed to get node tz by name\n"); in thermal_of_should_bind()
339 * @tz: a pointer to the thermal zone structure
341 static void thermal_of_zone_unregister(struct thermal_zone_device *tz) in thermal_of_zone_unregister() argument
343 thermal_zone_device_disable(tz); in thermal_of_zone_unregister()
344 thermal_zone_device_unregister(tz); in thermal_of_zone_unregister()
371 struct thermal_zone_device *tz; in thermal_of_zone_register() local
[all …]
H A Dthermal_trace_ipa.h13 TP_PROTO(struct thermal_zone_device *tz, u32 total_req_power,
16 TP_ARGS(tz, total_req_power, total_granted_power, num_actors,
29 __entry->tz_id = tz->id;
47 TP_PROTO(struct thermal_zone_device *tz, int actor_id, u32 req_power,
49 TP_ARGS(tz, actor_id, req_power, granted_power),
57 __entry->tz_id = tz->id;
69 TP_PROTO(struct thermal_zone_device *tz, s32 err, s32 err_integral,
71 TP_ARGS(tz, err, err_integral, p, i, d, output),
82 __entry->tz_id = tz->id;
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() argument
30 devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_add_hwmon_sysfs() argument
36 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs() argument
H A Ddb8500_thermal.c55 struct thermal_zone_device *tz; member
62 static int db8500_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in db8500_thermal_get_temp() argument
64 struct db8500_thermal_zone *th = thermal_zone_device_priv(tz); in db8500_thermal_get_temp()
121 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_low_irq_handler()
146 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_high_irq_handler()
188 th->tz = devm_thermal_of_zone_register(dev, 0, th, &thdev_ops); in db8500_thermal_probe()
189 if (IS_ERR(th->tz)) { in db8500_thermal_probe()
191 return PTR_ERR(th->tz); in db8500_thermal_probe()
H A Dimx_thermal.c205 struct thermal_zone_device *tz; member
254 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) in imx_get_temp() argument
256 struct imx_thermal_data *data = thermal_zone_device_priv(tz); in imx_get_temp()
310 static int imx_change_mode(struct thermal_zone_device *tz, in imx_change_mode() argument
313 struct imx_thermal_data *data = thermal_zone_device_priv(tz); in imx_change_mode()
334 static int imx_set_trip_temp(struct thermal_zone_device *tz, in imx_set_trip_temp() argument
337 struct imx_thermal_data *data = thermal_zone_device_priv(tz); in imx_set_trip_temp()
356 static bool imx_should_bind(struct thermal_zone_device *tz, in imx_should_bind() argument
523 thermal_zone_device_update(data->tz, THERMAL_EVENT_UNSPECIFIED); in imx_thermal_alarm_irq_thread()
682 data->tz = thermal_zone_device_register_with_trips("imx_thermal_zone", in imx_thermal_probe()
[all …]
H A Dloongson2_thermal.c74 static int loongson2_2k1000_get_temp(struct thermal_zone_device *tz, int *temp) in loongson2_2k1000_get_temp() argument
77 struct loongson2_thermal_data *data = thermal_zone_device_priv(tz); in loongson2_2k1000_get_temp()
85 static int loongson2_2k2000_get_temp(struct thermal_zone_device *tz, int *temp) in loongson2_2k2000_get_temp() argument
88 struct loongson2_thermal_data *data = thermal_zone_device_priv(tz); in loongson2_2k2000_get_temp()
108 static int loongson2_thermal_set_trips(struct thermal_zone_device *tz, int low, int high) in loongson2_thermal_set_trips() argument
110 struct loongson2_thermal_data *data = thermal_zone_device_priv(tz); in loongson2_thermal_set_trips()
H A Darmada_thermal.c121 struct thermal_zone_device *tz; member
415 static int armada_get_temp(struct thermal_zone_device *tz, int *temp) in armada_get_temp() argument
417 struct armada_thermal_sensor *sensor = thermal_zone_device_priv(tz); in armada_get_temp()
796 struct thermal_zone_device *tz, in armada_configure_overheat_int() argument
803 ret = thermal_zone_get_crit_temp(tz, &temperature); in armada_configure_overheat_int()
815 priv->overheat_sensor = tz; in armada_configure_overheat_int()
824 struct thermal_zone_device *tz; in armada_thermal_probe() local
874 tz = thermal_tripless_zone_device_register(priv->zone_name, in armada_thermal_probe()
877 if (IS_ERR(tz)) { in armada_thermal_probe()
880 return PTR_ERR(tz); in armada_thermal_probe()
[all …]
/linux/tools/testing/selftests/timers/
H A Dset-tz.c1 /* Set tz value
30 struct timezone tz; in set_tz() local
32 tz.tz_minuteswest = min; in set_tz()
33 tz.tz_dsttime = dst; in set_tz()
35 return settimeofday(0, &tz); in set_tz()
40 struct timezone tz; in get_tz_min() local
43 memset(&tz, 0, sizeof(tz)); in get_tz_min()
44 gettimeofday(&tv, &tz); in get_tz_min()
45 return tz.tz_minuteswest; in get_tz_min()
50 struct timezone tz; in get_tz_dst() local
[all …]
/linux/drivers/thermal/broadcom/
H A Dbcm2835_thermal.c67 struct thermal_zone_device *tz; member
91 static int bcm2835_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in bcm2835_thermal_get_temp() argument
93 struct bcm2835_thermal_data *data = thermal_zone_device_priv(tz); in bcm2835_thermal_get_temp()
103 thermal_zone_get_offset(data->tz), in bcm2835_thermal_get_temp()
104 thermal_zone_get_slope(data->tz)); in bcm2835_thermal_get_temp()
168 struct thermal_zone_device *tz; in bcm2835_thermal_probe() local
199 tz = devm_thermal_of_zone_register(dev, 0, data, &bcm2835_thermal_ops); in bcm2835_thermal_probe()
200 if (IS_ERR(tz)) in bcm2835_thermal_probe()
201 return dev_err_probe(dev, PTR_ERR(tz), "Failed to register the thermal device\n"); in bcm2835_thermal_probe()
213 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
[all …]
H A Dsr-thermal.c33 static int sr_get_temp(struct thermal_zone_device *tz, int *temp) in sr_get_temp() argument
35 struct sr_tmon *tmon = thermal_zone_device_priv(tz); in sr_get_temp()
50 struct thermal_zone_device *tz; in sr_thermal_probe() local
87 tz = devm_thermal_of_zone_register(dev, i, tmon, in sr_thermal_probe()
89 if (IS_ERR(tz)) in sr_thermal_probe()
90 return PTR_ERR(tz); in sr_thermal_probe()
/linux/tools/include/nolibc/sys/
H A Dtime.h19 * int gettimeofday(struct timeval *tv, struct timezone *tz);
23 int sys_gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday() argument
26 return my_syscall2(__NR_gettimeofday, tv, tz); in sys_gettimeofday()
28 (void) tz; /* Non-NULL tz is undefined behaviour */ in sys_gettimeofday()
44 int gettimeofday(struct timeval *tv, struct timezone *tz) in gettimeofday() argument
46 return __sysret(sys_gettimeofday(tv, tz)); in gettimeofday()
/linux/fs/isofs/
H A Dutil.c21 int year, month, day, hour, minute, second, tz; in iso_date() local
35 tz = p[16]; in iso_date()
45 tz = flags & ISO_DATE_HIGH_SIERRA ? 0 : p[6]; in iso_date()
54 if (tz & 0x80) in iso_date()
55 tz |= (-1 << 8); in iso_date()
82 if (-52 <= tz && tz <= 52) in iso_date()
83 ts.tv_sec -= tz * 15 * 60; in iso_date()
/linux/Documentation/devicetree/bindings/arm/firmware/
H A Dlinaro,optee-tz.yaml4 $id: http://devicetree.org/schemas/arm/firmware/linaro,optee-tz.yaml#
25 const: linaro,optee-tz
55 compatible = "linaro,optee-tz";
64 compatible = "linaro,optee-tz";
/linux/arch/mips/vdso/
H A Dvgettimeofday.c30 struct timezone *tz) in __vdso_gettimeofday() argument
32 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
66 struct timezone *tz) in __vdso_gettimeofday() argument
68 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
/linux/arch/parisc/kernel/vdso64/
H A Dvdso64_generic.c11 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
16 struct timezone *tz) in __vdso_gettimeofday() argument
18 return syscall2(__NR_gettimeofday, (long)tv, (long)tz); in __vdso_gettimeofday()
/linux/arch/arm64/kernel/vdso/
H A Dvgettimeofday.c10 int __kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
20 struct timezone *tz) in __kernel_gettimeofday() argument
22 return __cvdso_gettimeofday(tv, tz); in __kernel_gettimeofday()
/linux/tools/thermal/tmon/
H A Dtui.c56 #define SENSOR_WIN_HIGHT 4 /* one row for tz name, one for trip points */
135 /* two lines to show borders, one line per tz show trip point position in setup_windows()
246 "bind tz%d cdev%d tp%lx %d cdev%lx\n", in show_cooling_device()
549 static void draw_tp_line(int tz, int y) in draw_tp_line() argument
554 for (j = 0; j < ptdata.tzi[tz].nr_trip_pts; j++) { in draw_tp_line()
555 x = ptdata.tzi[tz].tp[j].temp / 1000; in draw_tp_line()
557 "%c%d", trip_type_to_char(ptdata.tzi[tz].tp[j].type), in draw_tp_line()
559 syslog(LOG_INFO, "%s:tz %d tp %d temp = %lu\n", __func__, in draw_tp_line()
560 tz, j, ptdata.tzi[tz].tp[j].temp); in draw_tp_line()
587 /* y at tz temp data line */ in show_data_w()
[all …]

123456