Home
last modified time | relevance | path

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

123456

/linux/drivers/acpi/
A Dthermal.c187 if (!tz) in acpi_thermal_get_temperature()
190 tz->last_temperature = tz->temperature; in acpi_thermal_get_temperature()
209 if (!tz) in acpi_thermal_get_polling_frequency()
225 if (!tz) in acpi_thermal_set_cooling_mode()
506 if (!tz) in thermal_get_temp()
643 tz->temperature, tz->kelvin_offset); in thermal_get_trend()
660 i = (tz->trips.passive.tc1 * (tz->temperature - tz->last_temperature)) in thermal_get_trend()
886 if (!tz) in acpi_thermal_notify()
949 if (!tz) in acpi_thermal_get_info()
1032 if (!tz) in acpi_thermal_add()
[all …]
/linux/drivers/thermal/
A Dthermal_core.c77 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
101 tz->governor->unbind_from_tz(tz); in thermal_set_governor()
323 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
356 tz->ops->hot(tz); in handle_critical_trips()
358 tz->ops->critical(tz); in handle_critical_trips()
445 ret = tz->ops->change_mode(tz, mode); in thermal_zone_device_set_mode()
662 dev->tz = tz; in thermal_zone_bind_cooling_device()
1095 tz->ops->unbind(tz, cdev); in thermal_cooling_device_unregister()
1099 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1135 ret = tz->ops->bind(tz, pos); in bind_tz()
[all …]
A Dthermal_helpers.c30 if (tz->emul_temperature || !tz->ops->get_trend || in get_tz_trend()
31 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend()
32 if (tz->temperature > tz->last_temperature) in get_tz_trend()
34 else if (tz->temperature < tz->last_temperature) in get_tz_trend()
85 if (!tz || IS_ERR(tz) || !tz->ops->get_temp) in thermal_zone_get_temp()
90 ret = tz->ops->get_temp(tz, temp); in thermal_zone_get_temp()
96 ret = tz->ops->get_trip_temp(tz, count, in thermal_zone_get_temp()
144 tz->ops->get_trip_temp(tz, i, &trip_temp); in thermal_zone_set_trips()
170 ret = tz->ops->set_trips(tz, low, high); in thermal_zone_set_trips()
242 if (tz && tz->tzp) in thermal_zone_get_slope()
[all …]
A Dthermal_sysfs.c91 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
127 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
132 ret = tz->ops->get_trip_hyst(tz, trip, &hyst); in trip_point_temp_store()
137 ret = tz->ops->get_trip_type(tz, trip, &type); in trip_point_temp_store()
192 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
268 ret = tz->ops->set_emul_temp(tz, temperature); in emul_temp_store()
422 tz->trip_type_attrs = kcalloc(tz->trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs()
427 tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs()
435 tz->trip_hyst_attrs = kcalloc(tz->trips, in create_trip_attrs()
517 if (!tz) in destroy_trip_attrs()
[all …]
A Dgov_power_allocator.c133 ret = tz->ops->get_trip_temp(tz, trip_switch_on, &switch_on_temp); in estimate_pid_constants()
234 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err); in pid_controller()
534 ret = tz->ops->get_trip_type(tz, i, &type); in get_governor_trips()
656 if (!tz->tzp) { in power_allocator_bind()
657 tz->tzp = kzalloc(sizeof(*tz->tzp), GFP_KERNEL); in power_allocator_bind()
658 if (!tz->tzp) { in power_allocator_bind()
672 ret = tz->ops->get_trip_temp(tz, in power_allocator_bind()
676 estimate_pid_constants(tz, tz->tzp->sustainable_power, in power_allocator_bind()
700 kfree(tz->tzp); in power_allocator_unbind()
701 tz->tzp = NULL; in power_allocator_unbind()
[all …]
A Dthermal_of.c395 tz->ops = ops; in thermal_zone_of_add_sensor()
562 if (!tz) in thermal_zone_of_sensor_unregister()
573 tz->ops = NULL; in thermal_zone_of_sensor_unregister()
868 tz = kzalloc(sizeof(*tz), GFP_KERNEL); in thermal_of_build_thermal_zone()
869 if (!tz) in thermal_of_build_thermal_zone()
911 tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
937 tz->tbps = kcalloc(tz->num_tbps, sizeof(*tz->tbps), GFP_KERNEL); in thermal_of_build_thermal_zone()
946 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
954 return tz; in thermal_of_build_thermal_zone()
974 kfree(tz); in thermal_of_build_thermal_zone()
[all …]
A Dthermal_hwmon.c39 struct thermal_zone_device *tz; member
58 struct thermal_zone_device *tz = temp->tz; in temp_input_show() local
76 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() local
80 ret = tz->ops->get_crit_temp(tz, &temperature); in temp_crit_show()
96 strcpy(type, tz->type); in thermal_hwmon_lookup_by_type()
117 if (temp->tz == tz) { in thermal_hwmon_lookup_temp()
129 return tz->ops->get_crit_temp && !tz->ops->get_crit_temp(tz, &temp); in thermal_zone_crit_temp_valid()
166 temp->tz = tz; in thermal_add_hwmon_sysfs()
268 ret = thermal_add_hwmon_sysfs(tz); in devm_thermal_add_hwmon_sysfs()
274 *ptr = tz; in devm_thermal_add_hwmon_sysfs()
[all …]
A Dgov_bang_bang.c21 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
23 if (!tz->ops->get_trip_hyst) { in thermal_zone_trip_update()
25 "running with default hysteresis zero\n", tz->type); in thermal_zone_trip_update()
28 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
31 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
34 mutex_lock(&tz->lock); in thermal_zone_trip_update()
58 tz->temperature <= trip_temp - trip_hyst) in thermal_zone_trip_update()
69 mutex_unlock(&tz->lock); in thermal_zone_trip_update()
103 thermal_zone_trip_update(tz, trip); in bang_bang_control()
105 mutex_lock(&tz->lock); in bang_bang_control()
[all …]
A Dgov_fair_share.c22 static int get_trip_level(struct thermal_zone_device *tz) in get_trip_level() argument
28 if (tz->trips == 0 || !tz->ops->get_trip_temp) in get_trip_level()
31 for (count = 0; count < tz->trips; count++) { in get_trip_level()
32 tz->ops->get_trip_temp(tz, count, &trip_temp); in get_trip_level()
33 if (tz->temperature < trip_temp) in get_trip_level()
42 tz->ops->get_trip_type(tz, count - 1, &trip_type); in get_trip_level()
43 trace_thermal_zone_trip(tz, count - 1, trip_type); in get_trip_level()
49 static long get_target_state(struct thermal_zone_device *tz, in get_target_state() argument
83 int cur_trip_level = get_trip_level(tz); in fair_share_throttle()
85 mutex_lock(&tz->lock); in fair_share_throttle()
[all …]
A Dgov_step_wise.c113 tz->passive += value; in update_passive_instance()
125 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
126 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update()
128 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
130 if (tz->temperature >= trip_temp) { in thermal_zone_trip_update()
138 mutex_lock(&tz->lock); in thermal_zone_trip_update()
155 update_passive_instance(tz, trip_type, 1); in thermal_zone_trip_update()
167 mutex_unlock(&tz->lock); in thermal_zone_trip_update()
185 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
187 mutex_lock(&tz->lock); in step_wise_throttle()
[all …]
A Dgov_user_space.c18 static int user_space_bind(struct thermal_zone_device *tz) in user_space_bind() argument
33 static int notify_user_space(struct thermal_zone_device *tz, int trip) in notify_user_space() argument
38 mutex_lock(&tz->lock); in notify_user_space()
39 thermal_prop[0] = kasprintf(GFP_KERNEL, "NAME=%s", tz->type); in notify_user_space()
40 thermal_prop[1] = kasprintf(GFP_KERNEL, "TEMP=%d", tz->temperature); in notify_user_space()
42 thermal_prop[3] = kasprintf(GFP_KERNEL, "EVENT=%d", tz->notify_event); in notify_user_space()
44 kobject_uevent_env(&tz->device.kobj, KOBJ_CHANGE, thermal_prop); in notify_user_space()
47 mutex_unlock(&tz->lock); in notify_user_space()
A Dimx_thermal.c198 struct thermal_zone_device *tz; member
251 struct imx_thermal_data *data = tz->devdata; in imx_get_temp()
337 struct imx_thermal_data *data = tz->devdata; in imx_change_mode()
422 dev_err(&tz->device, in imx_bind()
424 tz->type, cdev->type, ret); in imx_bind()
438 dev_err(&tz->device, in imx_unbind()
440 tz->type, cdev->type, ret); in imx_unbind()
776 if (IS_ERR(data->tz)) { in imx_thermal_probe()
777 ret = PTR_ERR(data->tz); in imx_thermal_probe()
820 thermal_zone_device_unregister(data->tz); in imx_thermal_probe()
[all …]
A Dthermal_netlink.c410 if (!tz) in thermal_genl_cmd_tz_get_trip()
417 mutex_lock(&tz->lock); in thermal_genl_cmd_tz_get_trip()
424 tz->ops->get_trip_type(tz, i, &type); in thermal_genl_cmd_tz_get_trip()
425 tz->ops->get_trip_temp(tz, i, &temp); in thermal_genl_cmd_tz_get_trip()
426 tz->ops->get_trip_hyst(tz, i, &hyst); in thermal_genl_cmd_tz_get_trip()
435 mutex_unlock(&tz->lock); in thermal_genl_cmd_tz_get_trip()
442 mutex_unlock(&tz->lock); in thermal_genl_cmd_tz_get_trip()
459 if (!tz) in thermal_genl_cmd_tz_get_temp()
485 if (!tz) in thermal_genl_cmd_tz_get_gov()
488 mutex_lock(&tz->lock); in thermal_genl_cmd_tz_get_gov()
[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() argument
30 devm_thermal_add_hwmon_sysfs(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
A Dthermal_core.h85 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; member
128 void thermal_zone_set_trips(struct thermal_zone_device *tz);
160 static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips() argument
164 static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, in of_thermal_is_trip_valid() argument
170 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points() argument
176 int thermal_zone_device_is_enabled(struct thermal_zone_device *tz);
A Ddb8500_thermal.c55 struct thermal_zone_device *tz; member
132 dev_dbg(&th->tz->device, in prcmu_low_irq_handler()
135 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_low_irq_handler()
155 dev_dbg(&th->tz->device, in prcmu_high_irq_handler()
161 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_high_irq_handler()
205 th->tz = devm_thermal_zone_of_sensor_register(dev, 0, th, &thdev_ops); in db8500_thermal_probe()
206 if (IS_ERR(th->tz)) { in db8500_thermal_probe()
208 return PTR_ERR(th->tz); in db8500_thermal_probe()
/linux/tools/testing/selftests/timers/
A Dset-tz.c30 struct timezone tz; in set_tz() local
32 tz.tz_minuteswest = min; in set_tz()
33 tz.tz_dsttime = dst; 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
53 memset(&tz, 0, sizeof(tz)); in get_tz_dst()
54 gettimeofday(&tv, &tz); in get_tz_dst()
[all …]
/linux/include/linux/
A Dthermal.h193 int (*bind_to_tz)(struct thermal_zone_device *tz);
194 void (*unbind_from_tz)(struct thermal_zone_device *tz);
230 int (*match) (struct thermal_zone_device *tz,
320 struct thermal_zone_device *tz);
325 struct thermal_zone_device *tz);
343 struct thermal_zone_device *tz) in thermal_zone_of_sensor_unregister() argument
356 struct thermal_zone_device *tz) in devm_thermal_zone_of_sensor_unregister() argument
404 struct thermal_zone_device *tz) in thermal_zone_device_unregister() argument
430 struct thermal_zone_device *tz, int *temp) in thermal_zone_get_temp() argument
433 struct thermal_zone_device *tz) in thermal_zone_get_slope() argument
[all …]
/linux/drivers/thermal/broadcom/
A Dbcm2835_thermal.c67 struct thermal_zone_device *tz; member
103 thermal_zone_get_offset(data->tz), in bcm2835_thermal_get_temp()
104 thermal_zone_get_slope(data->tz)); in bcm2835_thermal_get_temp()
167 struct thermal_zone_device *tz; in bcm2835_thermal_probe() local
211 if (IS_ERR(tz)) { in bcm2835_thermal_probe()
212 err = PTR_ERR(tz); in bcm2835_thermal_probe()
235 err = tz->ops->get_trip_temp(tz, 0, &trip_temp); in bcm2835_thermal_probe()
263 data->tz = tz; in bcm2835_thermal_probe()
271 tz->tzp->no_hwmon = false; in bcm2835_thermal_probe()
272 err = thermal_add_hwmon_sysfs(tz); in bcm2835_thermal_probe()
[all …]
A Dns-thermal.c18 struct thermal_zone_device *tz; member
25 int offset = thermal_zone_get_offset(ns_thermal->tz); in ns_thermal_get_temp()
26 int slope = thermal_zone_get_slope(ns_thermal->tz); in ns_thermal_get_temp()
63 ns_thermal->tz = devm_thermal_zone_of_sensor_register(dev, 0, in ns_thermal_probe()
66 if (IS_ERR(ns_thermal->tz)) { in ns_thermal_probe()
68 return PTR_ERR(ns_thermal->tz); in ns_thermal_probe()
/linux/fs/isofs/
A Dutil.c21 int year, month, day, hour, minute, second, tz; in iso_date() local
30 if (flag == 0) tz = p[6]; /* High sierra has no time zone */ in iso_date()
31 else tz = 0; in iso_date()
39 if (tz & 0x80) in iso_date()
40 tz |= (-1 << 8); in iso_date()
67 if (-52 <= tz && tz <= 52) in iso_date()
68 crtime -= tz * 15 * 60; in iso_date()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_thermal.c144 struct mlxsw_thermal_module *tz, in mlxsw_thermal_module_trips_update() argument
168 tz->tzdev->type, crit_temp, emerg_temp); in mlxsw_thermal_module_trips_update()
376 struct mlxsw_thermal *thermal = tz->parent; in mlxsw_thermal_module_bind()
405 struct mlxsw_thermal *thermal = tz->parent; in mlxsw_thermal_module_unbind()
450 struct mlxsw_thermal *thermal = tz->parent; in mlxsw_thermal_module_temp_get()
486 *p_type = tz->trips[trip].type; in mlxsw_thermal_module_trip_type_get()
499 *p_temp = tz->trips[trip].temp; in mlxsw_thermal_module_trip_temp_get()
512 tz->trips[trip].temp = temp; in mlxsw_thermal_module_trip_temp_set()
522 *p_hyst = tz->trips[trip].hyst; in mlxsw_thermal_module_trip_hyst_get()
532 tz->trips[trip].hyst = hyst; in mlxsw_thermal_module_trip_hyst_set()
[all …]
/linux/include/trace/events/
A Dthermal.h26 TP_PROTO(struct thermal_zone_device *tz),
28 TP_ARGS(tz),
31 __string(thermal_zone, tz->type)
38 __assign_str(thermal_zone, tz->type);
39 __entry->id = tz->id;
40 __entry->temp_prev = tz->last_temperature;
41 __entry->temp = tz->temperature;
73 TP_ARGS(tz, trip, trip_type),
76 __string(thermal_zone, tz->type)
83 __assign_str(thermal_zone, tz->type);
[all …]
/linux/kernel/time/
A Dtime.c141 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument
151 if (unlikely(tz != NULL)) { in SYSCALL_DEFINE2()
181 if (tz) { in do_sys_settimeofday64()
183 if (tz->tz_minuteswest > 15*60 || tz->tz_minuteswest < -15*60) in do_sys_settimeofday64()
186 sys_tz = *tz; in do_sys_settimeofday64()
200 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument
215 if (tz) { in SYSCALL_DEFINE2()
216 if (copy_from_user(&new_tz, tz, sizeof(*tz))) in SYSCALL_DEFINE2()
235 if (tz) { in COMPAT_SYSCALL_DEFINE2()
259 if (tz) { in COMPAT_SYSCALL_DEFINE2()
[all …]
/linux/arch/sparc/vdso/
A Dvclock_gettime.c81 register long o1 __asm__("o1") = (long) tz; in vdso_fallback_gettimeofday()
307 __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
329 if (unlikely(tz != NULL)) { in __vdso_gettimeofday()
331 tz->tz_minuteswest = vvd->tz_minuteswest; in __vdso_gettimeofday()
332 tz->tz_dsttime = vvd->tz_dsttime; in __vdso_gettimeofday()
336 return vdso_fallback_gettimeofday(tv, tz); in __vdso_gettimeofday()
343 __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday_stick() argument
365 if (unlikely(tz != NULL)) { in __vdso_gettimeofday_stick()
367 tz->tz_minuteswest = vvd->tz_minuteswest; in __vdso_gettimeofday_stick()
368 tz->tz_dsttime = vvd->tz_dsttime; in __vdso_gettimeofday_stick()
[all …]

Completed in 67 milliseconds

123456