Home
last modified time | relevance | path

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

1234

/linux/drivers/thermal/
H A Dthermal_core.c69 * @tz: a valid pointer to a struct thermal_zone_device
75 static void bind_previous_governor(struct thermal_zone_device *tz, in bind_previous_governor() argument
78 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
79 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
80 dev_err(&tz->device, in bind_previous_governor()
82 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor()
83 tz in bind_previous_governor()
97 thermal_set_governor(struct thermal_zone_device * tz,struct thermal_governor * new_gov) thermal_set_governor() argument
193 thermal_zone_device_set_policy(struct thermal_zone_device * tz,char * policy) thermal_zone_device_set_policy() argument
264 __thermal_zone_device_set_mode(struct thermal_zone_device * tz,enum thermal_device_mode mode) __thermal_zone_device_set_mode() argument
280 thermal_zone_broken_disable(struct thermal_zone_device * tz) thermal_zone_broken_disable() argument
312 thermal_zone_device_set_polling(struct thermal_zone_device * tz,unsigned long delay) thermal_zone_device_set_polling() argument
321 thermal_zone_recheck(struct thermal_zone_device * tz,int error) thermal_zone_recheck() argument
349 monitor_thermal_zone(struct thermal_zone_device * tz) monitor_thermal_zone() argument
357 thermal_get_tz_governor(struct thermal_zone_device * tz) thermal_get_tz_governor() argument
365 thermal_governor_update_tz(struct thermal_zone_device * tz,enum thermal_notify_event reason) thermal_governor_update_tz() argument
374 thermal_zone_device_halt(struct thermal_zone_device * tz,enum hw_protection_action action) thermal_zone_device_halt() argument
389 thermal_zone_device_critical(struct thermal_zone_device * tz) thermal_zone_device_critical() argument
395 thermal_zone_device_critical_shutdown(struct thermal_zone_device * tz) thermal_zone_device_critical_shutdown() argument
400 thermal_zone_device_critical_reboot(struct thermal_zone_device * tz) thermal_zone_device_critical_reboot() argument
405 handle_critical_trips(struct thermal_zone_device * tz,const struct thermal_trip * trip) handle_critical_trips() argument
437 move_to_trips_high(struct thermal_zone_device * tz,struct thermal_trip_desc * td) move_to_trips_high() argument
444 move_to_trips_reached(struct thermal_zone_device * tz,struct thermal_trip_desc * td) move_to_trips_reached() argument
451 move_to_trips_invalid(struct thermal_zone_device * tz,struct thermal_trip_desc * td) move_to_trips_invalid() argument
459 thermal_governor_trip_crossed(struct thermal_governor * governor,struct thermal_zone_device * tz,const struct thermal_trip * trip,bool upward) thermal_governor_trip_crossed() argument
470 thermal_trip_crossed(struct thermal_zone_device * tz,struct thermal_trip_desc * td,struct thermal_governor * governor,bool upward) thermal_trip_crossed() argument
497 thermal_zone_set_trip_hyst(struct thermal_zone_device * tz,struct thermal_trip * trip,int hyst) thermal_zone_set_trip_hyst() argument
514 thermal_zone_set_trip_temp(struct thermal_zone_device * tz,struct thermal_trip * trip,int temp) thermal_zone_set_trip_temp() argument
563 thermal_zone_handle_trips(struct thermal_zone_device * tz,struct thermal_governor * governor,int * low,int * high) thermal_zone_handle_trips() argument
611 __thermal_zone_device_update(struct thermal_zone_device * tz,enum thermal_notify_event event) __thermal_zone_device_update() argument
661 thermal_zone_device_set_mode(struct thermal_zone_device * tz,enum thermal_device_mode mode) thermal_zone_device_set_mode() argument
686 thermal_zone_device_enable(struct thermal_zone_device * tz) thermal_zone_device_enable() argument
692 thermal_zone_device_disable(struct thermal_zone_device * tz) thermal_zone_device_disable() argument
698 thermal_zone_device_update(struct thermal_zone_device * tz,enum thermal_notify_event event) thermal_zone_device_update() argument
746 struct thermal_zone_device *tz; for_each_thermal_zone() local
763 struct thermal_zone_device *tz; thermal_zone_get_by_id() local
820 thermal_bind_cdev_to_trip(struct thermal_zone_device * tz,struct thermal_trip_desc * td,struct thermal_cooling_device * cdev,struct cooling_spec * cool_spec) thermal_bind_cdev_to_trip() argument
927 thermal_unbind_cdev_from_trip(struct thermal_zone_device * tz,struct thermal_trip_desc * td,struct thermal_cooling_device * cdev) thermal_unbind_cdev_from_trip() argument
954 struct thermal_zone_device *tz; thermal_release() local
982 print_bind_err_msg(struct thermal_zone_device * tz,const struct thermal_trip_desc * td,struct thermal_cooling_device * cdev,int ret) print_bind_err_msg() argument
990 __thermal_zone_cdev_bind(struct thermal_zone_device * tz,struct thermal_cooling_device * cdev) __thermal_zone_cdev_bind() argument
1022 thermal_zone_cdev_bind(struct thermal_zone_device * tz,struct thermal_cooling_device * cdev) thermal_zone_cdev_bind() argument
1033 struct thermal_zone_device *tz; thermal_cooling_device_init_complete() local
1318 __thermal_zone_cdev_unbind(struct thermal_zone_device * tz,struct thermal_cooling_device * cdev) __thermal_zone_cdev_unbind() argument
1327 thermal_zone_cdev_unbind(struct thermal_zone_device * tz,struct thermal_cooling_device * cdev) thermal_zone_cdev_unbind() argument
1337 struct thermal_zone_device *tz; thermal_cooling_device_exit() local
1368 thermal_zone_get_crit_temp(struct thermal_zone_device * tz,int * temp) thermal_zone_get_crit_temp() argument
1394 struct thermal_zone_device *tz = container_of(work, struct thermal_zone_device_check() local
1400 thermal_zone_device_init(struct thermal_zone_device * tz) thermal_zone_device_init() argument
1433 thermal_zone_init_governor(struct thermal_zone_device * tz) thermal_zone_init_governor() argument
1447 thermal_zone_init_complete(struct thermal_zone_device * tz) thermal_zone_init_complete() argument
1507 struct thermal_zone_device *tz; thermal_zone_device_register_with_trips() local
1692 thermal_zone_exit(struct thermal_zone_device * tz) thermal_zone_exit() argument
1717 thermal_zone_device_unregister(struct thermal_zone_device * tz) thermal_zone_device_unregister() argument
1785 struct thermal_zone_device *tz; thermal_zone_device_resume() local
1805 thermal_zone_pm_prepare(struct thermal_zone_device * tz) thermal_zone_pm_prepare() argument
1828 struct thermal_zone_device *tz; __thermal_pm_prepare() local
1851 thermal_zone_pm_complete(struct thermal_zone_device * tz) thermal_zone_pm_complete() argument
1869 struct thermal_zone_device *tz; thermal_pm_complete() local
[all...]
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()
82 int __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) in __thermal_zone_get_temp() argument
[all …]
H A Dgov_power_allocator.c116 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()
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()
197 static u32 get_sustainable_power(struct thermal_zone_device *tz, in get_sustainable_power() argument
203 if (!tz->tzp->sustainable_power) in get_sustainable_power()
204 sustainable_power = estimate_sustainable_power(tz); in get_sustainable_power()
[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 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_hwmon.c34 struct thermal_zone_device *tz;
45 struct thermal_zone_device *tz = hwmon->tz;
49 ret = thermal_zone_get_temp(tz, &temperature);
60 struct thermal_zone_device *tz = hwmon->tz; in temp_input_show()
64 guard(thermal_zone)(tz); in temp_input_show()
66 ret = tz->ops.get_crit_temp(tz, &temperature); in temp_input_show()
90 struct thermal_zone_device *tz
40 struct thermal_zone_device *tz; global() member
59 struct thermal_zone_device *tz = temp->tz; temp_input_show() local
77 struct thermal_zone_device *tz = temp->tz; temp_crit_show() local
92 thermal_hwmon_lookup_by_type(const struct thermal_zone_device * tz) thermal_hwmon_lookup_by_type() argument
114 thermal_hwmon_lookup_temp(const struct thermal_hwmon_device * hwmon,const struct thermal_zone_device * tz) thermal_hwmon_lookup_temp() argument
129 thermal_zone_crit_temp_valid(struct thermal_zone_device * tz) thermal_zone_crit_temp_valid() argument
135 thermal_add_hwmon_sysfs(struct thermal_zone_device * tz) thermal_add_hwmon_sysfs() argument
218 thermal_remove_hwmon_sysfs(struct thermal_zone_device * tz) thermal_remove_hwmon_sysfs() argument
261 devm_thermal_add_hwmon_sysfs(struct device * dev,struct thermal_zone_device * tz) devm_thermal_add_hwmon_sysfs() argument
[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_debugfs.c152 struct thermal_zone_device *tz; member
556 static struct tz_episode *thermal_debugfs_tz_event_alloc(struct thermal_zone_device *tz, in thermal_debugfs_tz_event_alloc() argument
562 tze = kzalloc_flex(*tze, trip_stats, tz->num_trips); in thermal_debugfs_tz_event_alloc()
571 for (i = 0; i < tz->num_trips; i++) { in thermal_debugfs_tz_event_alloc()
579 void thermal_debug_tz_trip_up(struct thermal_zone_device *tz, in thermal_debug_tz_trip_up() argument
582 struct thermal_debugfs *thermal_dbg = tz->debugfs; in thermal_debug_tz_trip_up()
583 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_up()
630 tze = thermal_debugfs_tz_event_alloc(tz, now); in thermal_debug_tz_trip_up()
672 void thermal_debug_tz_trip_down(struct thermal_zone_device *tz, in thermal_debug_tz_trip_down() argument
675 struct thermal_debugfs *thermal_dbg = tz->debugfs; in thermal_debug_tz_trip_down()
[all …]
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 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 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 in imx_thermal_probe()
[all...]
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 …]
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 Dairoha_thermal.c201 struct thermal_zone_device *tz; member
231 static int airoha_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in airoha_thermal_get_temp() argument
233 struct airoha_thermal_priv *priv = thermal_zone_device_priv(tz); in airoha_thermal_get_temp()
256 static int airoha_thermal_set_trips(struct thermal_zone_device *tz, int low, in airoha_thermal_set_trips() argument
259 struct airoha_thermal_priv *priv = thermal_zone_device_priv(tz); in airoha_thermal_set_trips()
324 thermal_zone_device_update(priv->tz, event); in airoha_thermal_irq()
456 priv->tz = devm_thermal_of_zone_register(dev, 0, priv, &thdev_ops); in airoha_thermal_probe()
457 if (IS_ERR(priv->tz)) { in airoha_thermal_probe()
459 return PTR_ERR(priv->tz); in airoha_thermal_probe()
/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 in acpi_thermal_get_temperature()
150 acpi_thermal_get_polling_frequency(struct acpi_thermal * tz) acpi_thermal_get_polling_frequency() argument
169 acpi_thermal_temp(struct acpi_thermal * tz,int temp_deci_k) acpi_thermal_temp() argument
189 active_trip_index(struct acpi_thermal * tz,struct acpi_thermal_trip * acpi_trip) active_trip_index() argument
198 get_passive_temp(struct acpi_thermal * tz) get_passive_temp() argument
208 get_active_temp(struct acpi_thermal * tz,int index) get_active_temp() argument
228 acpi_thermal_update_trip(struct acpi_thermal * tz,const struct thermal_trip * trip) acpi_thermal_update_trip() argument
248 update_trip_devices(struct acpi_thermal * tz,struct acpi_thermal_trip * acpi_trip,int index,bool compare) update_trip_devices() argument
278 acpi_thermal_update_trip_devices(struct acpi_thermal * tz,const struct thermal_trip * trip) acpi_thermal_update_trip_devices() argument
293 struct acpi_thermal *tz; global() member
301 struct acpi_thermal *tz = atd->tz; acpi_thermal_adjust_trip() local
322 acpi_queue_thermal_check(struct acpi_thermal * tz) acpi_queue_thermal_check() argument
328 acpi_thermal_trips_update(struct acpi_thermal * tz,u32 event) acpi_thermal_trips_update() argument
347 acpi_thermal_get_critical_trip(struct acpi_thermal * tz) acpi_thermal_get_critical_trip() argument
377 acpi_thermal_get_hot_trip(struct acpi_thermal * tz) acpi_thermal_get_hot_trip() argument
390 passive_trip_params_init(struct acpi_thermal * tz) passive_trip_params_init() argument
422 acpi_thermal_init_trip(struct acpi_thermal * tz,int index) acpi_thermal_init_trip() argument
461 acpi_thermal_get_trip_points(struct acpi_thermal * tz) acpi_thermal_get_trip_points() argument
480 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); thermal_get_temp() local
499 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); thermal_get_trend() local
543 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); acpi_thermal_zone_device_hot() local
552 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); acpi_thermal_zone_device_critical() local
592 acpi_thermal_zone_sysfs_add(struct acpi_thermal * tz) acpi_thermal_zone_sysfs_add() argument
610 acpi_thermal_zone_sysfs_remove(struct acpi_thermal * tz) acpi_thermal_zone_sysfs_remove() argument
618 acpi_thermal_register_thermal_zone(struct acpi_thermal * tz,const struct thermal_trip * trip_table,unsigned int trip_count,int passive_delay) acpi_thermal_register_thermal_zone() argument
658 acpi_thermal_unregister_thermal_zone(struct acpi_thermal * tz) acpi_thermal_unregister_thermal_zone() argument
673 struct acpi_thermal *tz = data; acpi_thermal_notify() local
705 acpi_thermal_aml_dependency_fix(struct acpi_thermal * tz) acpi_thermal_aml_dependency_fix() argument
735 acpi_thermal_guess_offset(struct acpi_thermal * tz,long crit_temp) acpi_thermal_guess_offset() argument
745 struct acpi_thermal *tz = container_of(work, struct acpi_thermal, acpi_thermal_check_fn() local
768 acpi_thermal_free_thermal_zone(struct acpi_thermal * tz) acpi_thermal_free_thermal_zone() argument
785 struct acpi_thermal *tz; acpi_thermal_probe() local
900 struct acpi_thermal *tz = platform_get_drvdata(pdev); acpi_thermal_remove() local
[all...]
/linux/tools/testing/selftests/timers/
H 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()
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
53 memset(&tz, 0, sizeof(tz)); in get_tz_dst()
[all …]
/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/drivers/thermal/testing/
H A Dzone.c31 * @tz: Test thermal zone based on this template, if present.
44 struct thermal_zone_device *tz; member
116 if (!tt_zone->tz) in tt_zone_tz_temp_get()
129 if (!tt_zone->tz) in tt_zone_tz_temp_set()
133 thermal_zone_device_update(tt_zone->tz, THERMAL_EVENT_TEMP_SAMPLE); in tt_zone_tz_temp_set()
167 snprintf(f_name, TT_MAX_FILE_NAME_LENGTH, "tz%d", tt_zone->id); in tt_add_tz_work_fn()
230 if (tt_zone->tz) { in tt_zone_unregister_tz()
231 thermal_zone_device_unregister(tt_zone->tz); in tt_zone_unregister_tz()
232 tt_zone->tz = NULL; in tt_zone_unregister_tz()
366 static int tt_zone_get_temp(struct thermal_zone_device *tz, in argument
384 struct thermal_zone_device *tz; tt_zone_register_tz() local
[all...]
/linux/kernel/time/
H A Dtime.c141 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument
151 if (unlikely(tz != NULL)) { in SYSCALL_DEFINE2()
152 if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) in SYSCALL_DEFINE2()
169 int do_sys_settimeofday64(const struct timespec64 *tv, const struct timezone *tz) in do_sys_settimeofday64() argument
177 error = security_settime64(tv, tz); in do_sys_settimeofday64()
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()
[all …]
/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
25 (void) tz; /* Non-NULL tz is undefined behaviour */ in sys_gettimeofday()
40 int gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday()
42 return __sysret(_sys_gettimeofday(tv, tz));
44 gettimeofday(struct timeval * tv,struct timezone * tz) gettimeofday() argument
/linux/drivers/thermal/broadcom/
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()
H A Dbcm2711_thermal.c34 static int bcm2711_get_temp(struct thermal_zone_device *tz, int *temp) in bcm2711_get_temp() argument
36 struct bcm2711_thermal_priv *priv = thermal_zone_device_priv(tz); in bcm2711_get_temp()
37 int slope = thermal_zone_get_slope(tz); in bcm2711_get_temp()
38 int offset = thermal_zone_get_offset(tz); in bcm2711_get_temp()
/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()

1234