Searched refs:tz (Results 1 - 25 of 125) sorted by last modified time

12345

/linux-master/drivers/thermal/
H A Dthermal_debugfs.c120 * @node: a list element to be added to the list of tz events
142 * @tz: thermal zone this object belongs to
148 struct thermal_zone_device *tz; member in struct:tz_debugfs
531 static struct tz_episode *thermal_debugfs_tz_event_alloc(struct thermal_zone_device *tz, argument
537 tze = kzalloc(struct_size(tze, trip_stats, tz->num_trips), GFP_KERNEL);
544 for (i = 0; i < tz->num_trips; i++) {
552 void thermal_debug_tz_trip_up(struct thermal_zone_device *tz, argument
557 struct thermal_debugfs *thermal_dbg = tz->debugfs;
558 int temperature = tz->temperature;
559 int trip_id = thermal_zone_trip_id(tz, tri
638 thermal_debug_tz_trip_down(struct thermal_zone_device *tz, const struct thermal_trip *trip) argument
696 thermal_debug_update_temp(struct thermal_zone_device *tz) argument
755 struct thermal_zone_device *tz = thermal_dbg->tz_dbg.tz; local
810 thermal_debug_tz_add(struct thermal_zone_device *tz) argument
837 thermal_debug_tz_remove(struct thermal_zone_device *tz) 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) argument
118 struct power_allocator_params *params = tz->governor_data;
124 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
140 * @tz: thermal zone for which to estimate the constants
148 static void estimate_pid_constants(struct thermal_zone_device *tz, argument
170 tz->tzp->k_po = int_to_frac(sustainable_power) /
173 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) /
176 k_i = tz->tzp->k_pu / 10;
177 tz
196 get_sustainable_power(struct thermal_zone_device *tz, struct power_allocator_params *params, int control_temp) argument
238 pid_controller(struct thermal_zone_device *tz, int control_temp, u32 max_allocatable_power) argument
398 allocate_power(struct thermal_zone_device *tz, int control_temp) argument
493 get_governor_trips(struct thermal_zone_device *tz, struct power_allocator_params *params) argument
536 allow_maximum_power(struct thermal_zone_device *tz, bool update) argument
579 check_power_actors(struct thermal_zone_device *tz, struct power_allocator_params *params) argument
632 power_allocator_update_tz(struct thermal_zone_device *tz, enum thermal_notify_event reason) argument
672 power_allocator_bind(struct thermal_zone_device *tz) argument
730 power_allocator_unbind(struct thermal_zone_device *tz) argument
746 power_allocator_throttle(struct thermal_zone_device *tz, const struct thermal_trip *trip) argument
[all...]
H A Dthermal_trip.c12 int for_each_thermal_trip(struct thermal_zone_device *tz, argument
19 for_each_trip(tz, trip) {
29 int thermal_zone_for_each_trip(struct thermal_zone_device *tz, argument
35 mutex_lock(&tz->lock);
36 ret = for_each_thermal_trip(tz, cb, data);
37 mutex_unlock(&tz->lock);
43 int thermal_zone_get_num_trips(struct thermal_zone_device *tz) argument
45 return tz->num_trips;
51 * @tz: a pointer to a thermal zone device structure
59 * This function must be called with tz
64 __thermal_zone_set_trips(struct thermal_zone_device *tz) argument
107 __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, struct thermal_trip *trip) argument
118 thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, struct thermal_trip *trip) argument
131 thermal_zone_trip_id(const struct thermal_zone_device *tz, const struct thermal_trip *trip) argument
140 thermal_zone_trip_updated(struct thermal_zone_device *tz, const struct thermal_trip *trip) argument
147 thermal_zone_set_trip_temp(struct thermal_zone_device *tz, struct thermal_trip *trip, int temp) argument
[all...]
H A Dthermal_of.c174 struct device_node *np, *tz; local
187 for_each_available_child_of_node(np, tz) {
191 count = of_count_phandle_with_args(tz, "thermal-sensors",
194 pr_err("%pOFn: missing thermal sensor\n", tz);
195 tz = ERR_PTR(-EINVAL);
203 ret = of_parse_phandle_with_args(tz, "thermal-sensors",
207 pr_err("%pOFn: Failed to read thermal-sensors cells: %d\n", tz, ret);
208 tz = ERR_PTR(ret);
214 pr_debug("sensor %pOFn id=%d belongs to %pOFn\n", sensor, id, tz);
219 tz
275 thermal_of_zone_get_by_name(struct thermal_zone_device *tz) argument
293 __thermal_of_unbind(struct device_node *map_np, int index, int trip_id, struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
324 __thermal_of_bind(struct device_node *map_np, int index, int trip_id, struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
359 thermal_of_for_each_cooling_device(struct device_node *tz_np, struct device_node *map_np, struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int (*action)(struct device_node *, int, int, struct thermal_zone_device *, struct thermal_cooling_device *)) argument
392 thermal_of_for_each_cooling_maps(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int (*action)(struct device_node *, int, int, struct thermal_zone_device *, struct thermal_cooling_device *)) argument
425 thermal_of_bind(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
431 thermal_of_unbind(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
445 thermal_of_zone_unregister(struct thermal_zone_device *tz) argument
475 struct thermal_zone_device *tz; local
602 devm_thermal_of_zone_unregister(struct device *dev, struct thermal_zone_device *tz) argument
[all...]
H A Dsun8i_thermal.c116 static int sun8i_ths_get_temp(struct thermal_zone_device *tz, int *temp) argument
118 struct tsensor *s = thermal_zone_device_priv(tz);
H A Drcar_gen3_thermal.c171 static int rcar_gen3_thermal_get_temp(struct thermal_zone_device *tz, int *temp) argument
173 struct rcar_gen3_thermal_tsc *tsc = thermal_zone_device_priv(tz);
210 static int rcar_gen3_thermal_set_trips(struct thermal_zone_device *tz, int low, int high) argument
212 struct rcar_gen3_thermal_tsc *tsc = thermal_zone_device_priv(tz);
H A Dqoriq_thermal.c88 static int tmu_get_temp(struct thermal_zone_device *tz, int *temp) argument
90 struct qoriq_sensor *qsensor = thermal_zone_device_priv(tz);
H A Dthermal_sysfs.c29 struct thermal_zone_device *tz = to_thermal_zone(dev); local
31 return sprintf(buf, "%s\n", tz->type);
37 struct thermal_zone_device *tz = to_thermal_zone(dev); local
40 ret = thermal_zone_get_temp(tz, &temperature);
51 struct thermal_zone_device *tz = to_thermal_zone(dev); local
54 mutex_lock(&tz->lock);
55 enabled = thermal_zone_device_is_enabled(tz);
56 mutex_unlock(&tz->lock);
65 struct thermal_zone_device *tz = to_thermal_zone(dev); local
69 result = thermal_zone_device_enable(tz);
85 struct thermal_zone_device *tz = to_thermal_zone(dev); local
109 struct thermal_zone_device *tz = to_thermal_zone(dev); local
147 struct thermal_zone_device *tz = to_thermal_zone(dev); local
160 struct thermal_zone_device *tz = to_thermal_zone(dev); local
191 struct thermal_zone_device *tz = to_thermal_zone(dev); local
204 struct thermal_zone_device *tz = to_thermal_zone(dev); local
220 struct thermal_zone_device *tz = to_thermal_zone(dev); local
237 struct thermal_zone_device *tz = to_thermal_zone(dev); local
265 struct thermal_zone_device *tz = to_thermal_zone(dev); local
277 struct thermal_zone_device *tz = to_thermal_zone(dev); local
394 create_trip_attrs(struct thermal_zone_device *tz) argument
491 destroy_trip_attrs(struct thermal_zone_device *tz) argument
502 thermal_zone_create_device_groups(struct thermal_zone_device *tz) argument
533 thermal_zone_destroy_device_groups(struct thermal_zone_device *tz) argument
[all...]
H A Dthermal_helpers.c25 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip) argument
29 if (tz->emul_temperature || !tz->ops.get_trend ||
30 tz->ops.get_trend(tz, trip, &trend)) {
31 if (tz->temperature > tz->last_temperature)
33 else if (tz->temperature < tz->last_temperature)
43 get_thermal_instance(struct thermal_zone_device *tz, argument
83 __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) argument
126 thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) argument
212 thermal_zone_get_slope(struct thermal_zone_device *tz) argument
227 thermal_zone_get_offset(struct thermal_zone_device *tz) argument
[all...]
H A Dthermal_hwmon.c40 struct thermal_zone_device *tz; member in struct:thermal_hwmon_temp
59 struct thermal_zone_device *tz = temp->tz; local
61 ret = thermal_zone_get_temp(tz, &temperature);
77 struct thermal_zone_device *tz = temp->tz; local
81 mutex_lock(&tz->lock);
83 ret = tz->ops.get_crit_temp(tz, &temperature);
85 mutex_unlock(&tz
95 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) argument
116 thermal_hwmon_lookup_temp(const struct thermal_hwmon_device *hwmon, const struct thermal_zone_device *tz) argument
132 thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) argument
138 thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) argument
221 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) argument
264 devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz) argument
[all...]
H A Dthermal_core.c65 * @tz: a valid pointer to a struct thermal_zone_device
71 static void bind_previous_governor(struct thermal_zone_device *tz, argument
74 if (tz->governor && tz->governor->bind_to_tz) {
75 if (tz->governor->bind_to_tz(tz)) {
76 dev_err(&tz->device,
78 failed_gov_name, tz->governor->name, tz->type);
79 tz
93 thermal_set_governor(struct thermal_zone_device *tz, struct thermal_governor *new_gov) argument
195 thermal_zone_device_set_policy(struct thermal_zone_device *tz, char *policy) argument
284 thermal_zone_device_set_polling(struct thermal_zone_device *tz, unsigned long delay) argument
294 monitor_thermal_zone(struct thermal_zone_device *tz) argument
304 handle_non_critical_trips(struct thermal_zone_device *tz, const struct thermal_trip *trip) argument
311 thermal_governor_update_tz(struct thermal_zone_device *tz, enum thermal_notify_event reason) argument
320 thermal_zone_device_halt(struct thermal_zone_device *tz, bool shutdown) argument
337 thermal_zone_device_critical(struct thermal_zone_device *tz) argument
343 thermal_zone_device_critical_reboot(struct thermal_zone_device *tz) argument
348 handle_critical_trips(struct thermal_zone_device *tz, const struct thermal_trip *trip) argument
363 handle_thermal_trip(struct thermal_zone_device *tz, struct thermal_trip *trip) argument
415 update_temperature(struct thermal_zone_device *tz) argument
439 struct thermal_zone_device *tz = container_of(work, struct local
445 thermal_zone_device_init(struct thermal_zone_device *tz) argument
458 __thermal_zone_device_update(struct thermal_zone_device *tz, enum thermal_notify_event event) argument
481 thermal_zone_device_set_mode(struct thermal_zone_device *tz, enum thermal_device_mode mode) argument
513 thermal_zone_device_enable(struct thermal_zone_device *tz) argument
519 thermal_zone_device_disable(struct thermal_zone_device *tz) argument
525 thermal_zone_device_is_enabled(struct thermal_zone_device *tz) argument
532 thermal_zone_is_present(struct thermal_zone_device *tz) argument
537 thermal_zone_device_update(struct thermal_zone_device *tz, enum thermal_notify_event event) argument
584 struct thermal_zone_device *tz; local
600 struct thermal_zone_device *tz, *match = NULL; local
645 thermal_bind_cdev_to_trip(struct thermal_zone_device *tz, const struct thermal_trip *trip, struct thermal_cooling_device *cdev, unsigned long upper, unsigned long lower, unsigned int weight) argument
760 thermal_zone_bind_cooling_device(struct thermal_zone_device *tz, int trip_index, struct thermal_cooling_device *cdev, unsigned long upper, unsigned long lower, unsigned int weight) argument
786 thermal_unbind_cdev_from_trip(struct thermal_zone_device *tz, const struct thermal_trip *trip, struct thermal_cooling_device *cdev) argument
821 thermal_zone_unbind_cooling_device(struct thermal_zone_device *tz, int trip_index, struct thermal_cooling_device *cdev) argument
834 struct thermal_zone_device *tz; local
856 print_bind_err_msg(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int ret) argument
1168 struct thermal_zone_device *tz; local
1196 bind_tz(struct thermal_zone_device *tz) argument
1222 thermal_zone_get_crit_temp(struct thermal_zone_device *tz, int *temp) argument
1277 struct thermal_zone_device *tz; local
1460 thermal_zone_device_unregister(struct thermal_zone_device *tz) argument
1552 struct thermal_zone_device *tz; local
1569 struct thermal_zone_device *tz; local
[all...]
H A Dthermal_core.h74 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip);
77 get_thermal_instance(struct thermal_zone_device *tz,
89 struct thermal_zone_device *tz; member in struct:thermal_instance
100 struct list_head tz_node; /* node in tz->thermal_instances */
116 void __thermal_zone_device_update(struct thermal_zone_device *tz,
118 void thermal_zone_device_critical_reboot(struct thermal_zone_device *tz);
119 void thermal_governor_update_tz(struct thermal_zone_device *tz,
126 void __thermal_zone_set_trips(struct thermal_zone_device *tz);
127 int thermal_zone_trip_id(const struct thermal_zone_device *tz,
129 void thermal_zone_trip_updated(struct thermal_zone_device *tz,
[all...]
H A Dimx_thermal.c205 struct thermal_zone_device *tz; member in struct:imx_thermal_data
254 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) argument
256 struct imx_thermal_data *data = thermal_zone_device_priv(tz);
310 static int imx_change_mode(struct thermal_zone_device *tz, argument
313 struct imx_thermal_data *data = thermal_zone_device_priv(tz);
334 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip_id, argument
337 struct imx_thermal_data *data = thermal_zone_device_priv(tz);
345 ret = __thermal_zone_get_trip(tz, trip_id, &trip);
365 static int imx_bind(struct thermal_zone_device *tz, argument
368 return thermal_zone_bind_cooling_device(tz, IMX_TRIP_PASSIV
374 imx_unbind(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
[all...]
/linux-master/include/linux/
H A Dtimekeeping.h22 const struct timezone *tz);
H A Dthermal.h225 int (*bind_to_tz)(struct thermal_zone_device *tz);
226 void (*unbind_from_tz)(struct thermal_zone_device *tz);
227 int (*throttle)(struct thermal_zone_device *tz,
229 void (*update_tz)(struct thermal_zone_device *tz,
289 void devm_thermal_of_zone_unregister(struct device *dev, struct thermal_zone_device *tz);
301 struct thermal_zone_device *tz)
306 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
308 int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
310 int for_each_thermal_trip(struct thermal_zone_device *tz,
313 int thermal_zone_for_each_trip(struct thermal_zone_device *tz,
300 devm_thermal_of_zone_unregister(struct device *dev, struct thermal_zone_device *tz) argument
398 thermal_zone_device_unregister(struct thermal_zone_device *tz) argument
424 thermal_zone_get_temp( struct thermal_zone_device *tz, int *temp) argument
427 thermal_zone_get_slope( struct thermal_zone_device *tz) argument
430 thermal_zone_get_offset( struct thermal_zone_device *tz) argument
434 thermal_zone_device_priv(struct thermal_zone_device *tz) argument
449 thermal_zone_device_enable(struct thermal_zone_device *tz) argument
452 thermal_zone_device_disable(struct thermal_zone_device *tz) argument
[all...]
H A Dsyscalls.h699 struct timezone __user *tz);
701 struct timezone __user *tz);
H A Dsecurity.h150 extern int cap_settime(const struct timespec64 *ts, const struct timezone *tz);
296 int security_settime64(const struct timespec64 *ts, const struct timezone *tz);
630 const struct timezone *tz)
632 return cap_settime(ts, tz);
629 security_settime64(const struct timespec64 *ts, const struct timezone *tz) argument
H A Dlsm_hook_defs.h50 const struct timezone *tz)
/linux-master/arch/powerpc/include/asm/vdso/
H A Dgettimeofday.h153 int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz,
/linux-master/drivers/acpi/
H A Dthermal.c59 #define ACPI_THERMAL_TRIPS_EXCEPTION(tz, str) \
61 acpi_handle_info(tz->device->handle, \
128 static int acpi_thermal_get_temperature(struct acpi_thermal *tz) argument
133 if (!tz)
136 tz->last_temp_dk = tz->temp_dk;
138 status = acpi_evaluate_integer(tz->device->handle, "_TMP", NULL, &tmp);
142 tz->temp_dk = tmp;
144 acpi_handle_debug(tz->device->handle, "Temperature is %lu dK\n",
145 tz
150 acpi_thermal_get_polling_frequency(struct acpi_thermal *tz) argument
169 acpi_thermal_temp(struct acpi_thermal *tz, int temp_deci_k) argument
183 active_trip_index(struct acpi_thermal *tz, struct acpi_thermal_trip *acpi_trip) argument
192 get_passive_temp(struct acpi_thermal *tz) argument
202 get_active_temp(struct acpi_thermal *tz, int index) argument
222 acpi_thermal_update_trip(struct acpi_thermal *tz, const struct thermal_trip *trip) argument
242 update_trip_devices(struct acpi_thermal *tz, struct acpi_thermal_trip *acpi_trip, int index, bool compare) argument
272 acpi_thermal_update_trip_devices(struct acpi_thermal *tz, const struct thermal_trip *trip) argument
287 struct acpi_thermal *tz; member in struct:adjust_trip_data
295 struct acpi_thermal *tz = atd->tz; local
316 acpi_queue_thermal_check(struct acpi_thermal *tz) argument
322 acpi_thermal_trips_update(struct acpi_thermal *tz, u32 event) argument
341 acpi_thermal_get_critical_trip(struct acpi_thermal *tz) argument
371 acpi_thermal_get_hot_trip(struct acpi_thermal *tz) argument
384 passive_trip_params_init(struct acpi_thermal *tz) argument
416 acpi_thermal_init_trip(struct acpi_thermal *tz, int index) argument
455 acpi_thermal_get_trip_points(struct acpi_thermal *tz) argument
474 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); local
493 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); local
537 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); local
546 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); local
632 acpi_thermal_zone_sysfs_add(struct acpi_thermal *tz) argument
650 acpi_thermal_zone_sysfs_remove(struct acpi_thermal *tz) argument
658 acpi_thermal_register_thermal_zone(struct acpi_thermal *tz, const struct thermal_trip *trip_table, unsigned int trip_count, int passive_delay) argument
698 acpi_thermal_unregister_thermal_zone(struct acpi_thermal *tz) argument
714 struct acpi_thermal *tz = acpi_driver_data(device); local
746 acpi_thermal_aml_dependency_fix(struct acpi_thermal *tz) argument
776 acpi_thermal_guess_offset(struct acpi_thermal *tz, long crit_temp) argument
786 struct acpi_thermal *tz = container_of(work, struct acpi_thermal, local
809 acpi_thermal_free_thermal_zone(struct acpi_thermal *tz) argument
825 struct acpi_thermal *tz; local
939 struct acpi_thermal *tz; local
964 struct acpi_thermal *tz; local
[all...]
/linux-master/security/
H A Dsecurity.c1086 * @tz: timezone
1093 int security_settime64(const struct timespec64 *ts, const struct timezone *tz) argument
1095 return call_int_hook(settime, ts, tz);
/linux-master/fs/exfat/
H A Dexfat_fs.h553 u8 tz, __le16 time, __le16 date, u8 time_cs);
557 u8 *tz, __le16 *time, __le16 *date, u8 *time_cs);
/linux-master/drivers/remoteproc/
H A Dstm32_rproc.c711 struct stm32_syscon tz; local
751 * The DT "reset-mames" property is optional, "st,syscfg-tz" is required
763 err = stm32_rproc_get_syscon(np, "st,syscfg-tz", &tz);
765 err = regmap_read(tz.map, tz.reg, &tzen);
770 ddata->hold_boot_smc = tzen & tz.mask;
/linux-master/drivers/thermal/mediatek/
H A Dlvts_thermal.c124 struct thermal_zone_device *tz; member in struct:lvts_sensor
276 static int lvts_get_temp(struct thermal_zone_device *tz, int *temp) argument
278 struct lvts_sensor *lvts_sensor = thermal_zone_device_priv(tz);
358 static int lvts_set_trips(struct thermal_zone_device *tz, int low, int high) argument
360 struct lvts_sensor *lvts_sensor = thermal_zone_device_priv(tz);
393 thermal_zone_device_type(tz), low);
406 thermal_zone_device_type(tz), high);
500 thermal_zone_device_update(lvts_ctrl->sensors[i].tz,
1079 struct thermal_zone_device *tz; local
1096 tz
[all...]
H A Dauxadc_thermal.c848 static int mtk_read_temp(struct thermal_zone_device *tz, int *temperature) argument
850 struct mtk_thermal *mt = thermal_zone_device_priv(tz);

Completed in 509 milliseconds

12345