tz 1006 arch/alpha/kernel/osf_sys.c struct timezone __user *, tz) tz 1015 arch/alpha/kernel/osf_sys.c if (tz) { tz 1016 arch/alpha/kernel/osf_sys.c if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) tz 1023 arch/alpha/kernel/osf_sys.c struct timezone __user *, tz) tz 1032 arch/alpha/kernel/osf_sys.c if (tz) { tz 1033 arch/alpha/kernel/osf_sys.c if (copy_from_user(&ktz, tz, sizeof(*tz))) tz 1037 arch/alpha/kernel/osf_sys.c return do_sys_settimeofday64(tv ? &kts : NULL, tz ? &ktz : NULL); tz 221 arch/arm/vdso/vgettimeofday.c register struct timezone *tz asm("r1") = _tz; tz 229 arch/arm/vdso/vgettimeofday.c : "r" (tv), "r" (tz), "r" (nr) tz 235 arch/arm/vdso/vgettimeofday.c notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) tz 245 arch/arm/vdso/vgettimeofday.c return gettimeofday_fallback(tv, tz); tz 251 arch/arm/vdso/vgettimeofday.c if (tz) { tz 252 arch/arm/vdso/vgettimeofday.c tz->tz_minuteswest = vdata->tz_minuteswest; tz 253 arch/arm/vdso/vgettimeofday.c tz->tz_dsttime = vdata->tz_dsttime; tz 25 arch/arm64/include/asm/vdso/compat_gettimeofday.h register struct timezone *tz asm("r1") = _tz; tz 33 arch/arm64/include/asm/vdso/compat_gettimeofday.h : "r" (tv), "r" (tz), "r" (nr) tz 21 arch/arm64/include/asm/vdso/gettimeofday.h register struct timezone *tz asm("x1") = _tz; tz 29 arch/arm64/include/asm/vdso/gettimeofday.h : "r" (tv), "r" (tz), "r" (nr) tz 18 arch/arm64/kernel/vdso/vgettimeofday.c struct timezone *tz) tz 20 arch/arm64/kernel/vdso/vgettimeofday.c return __cvdso_gettimeofday(tv, tz); tz 32 arch/arm64/kernel/vdso32/vgettimeofday.c struct timezone *tz) tz 34 arch/arm64/kernel/vdso32/vgettimeofday.c return __cvdso_gettimeofday(tv, tz); tz 33 arch/mips/include/asm/vdso/gettimeofday.h register struct timezone *tz asm("a1") = _tz; tz 42 arch/mips/include/asm/vdso/gettimeofday.h : "r" (tv), "r" (tz), "r" (nr) tz 29 arch/mips/vdso/vgettimeofday.c struct timezone *tz) tz 31 arch/mips/vdso/vgettimeofday.c return __cvdso_gettimeofday(tv, tz); tz 65 arch/mips/vdso/vgettimeofday.c struct timezone *tz) tz 67 arch/mips/vdso/vgettimeofday.c return __cvdso_gettimeofday(tv, tz); tz 237 arch/nds32/kernel/vdso/gettimeofday.c register struct timezone *tz asm("$r1") = _tz; tz 243 arch/nds32/kernel/vdso/gettimeofday.c :"r"(tv), "r"(tz), "i"(__NR_gettimeofday) tz 249 arch/nds32/kernel/vdso/gettimeofday.c notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) tz 258 arch/nds32/kernel/vdso/gettimeofday.c return gettimeofday_fallback(tv, tz); tz 266 arch/nds32/kernel/vdso/gettimeofday.c if (tz) { tz 267 arch/nds32/kernel/vdso/gettimeofday.c tz->tz_minuteswest = vdata->tz_minuteswest; tz 268 arch/nds32/kernel/vdso/gettimeofday.c tz->tz_dsttime = vdata->tz_dsttime; tz 77 arch/sparc/vdso/vclock_gettime.c notrace static long vdso_fallback_gettimeofday(struct timeval *tv, struct timezone *tz) tz 81 arch/sparc/vdso/vclock_gettime.c register long o1 __asm__("o1") = (long) tz; tz 307 arch/sparc/vdso/vclock_gettime.c __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) tz 329 arch/sparc/vdso/vclock_gettime.c if (unlikely(tz != NULL)) { tz 331 arch/sparc/vdso/vclock_gettime.c tz->tz_minuteswest = vvd->tz_minuteswest; tz 332 arch/sparc/vdso/vclock_gettime.c tz->tz_dsttime = vvd->tz_dsttime; tz 336 arch/sparc/vdso/vclock_gettime.c return vdso_fallback_gettimeofday(tv, tz); tz 343 arch/sparc/vdso/vclock_gettime.c __vdso_gettimeofday_stick(struct timeval *tv, struct timezone *tz) tz 365 arch/sparc/vdso/vclock_gettime.c if (unlikely(tz != NULL)) { tz 367 arch/sparc/vdso/vclock_gettime.c tz->tz_minuteswest = vvd->tz_minuteswest; tz 368 arch/sparc/vdso/vclock_gettime.c tz->tz_dsttime = vvd->tz_dsttime; tz 372 arch/sparc/vdso/vclock_gettime.c return vdso_fallback_gettimeofday(tv, tz); tz 17 arch/x86/entry/vdso/vclock_gettime.c extern int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); tz 20 arch/x86/entry/vdso/vclock_gettime.c int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) tz 22 arch/x86/entry/vdso/vclock_gettime.c return __cvdso_gettimeofday(tv, tz); tz 28 arch/x86/um/vdso/um_vdso.c int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) tz 33 arch/x86/um/vdso/um_vdso.c "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); tz 1269 crypto/ecc.c u64 tz[ECC_MAX_DIGITS]; tz 1274 crypto/ecc.c vli_mod_sub(tz, rx, tx, curve->p, ndigits); tz 1276 crypto/ecc.c vli_mod_mult_fast(z, z, tz, curve->p, ndigits); tz 64 drivers/acpi/acpi_tad.c s16 tz; /* -1440 to 1440 or 2047 (unspecified) */ tz 85 drivers/acpi/acpi_tad.c rt->tz < -1440 || (rt->tz > 1440 && rt->tz != 2047) || tz 207 drivers/acpi/acpi_tad.c rt.tz = val; tz 237 drivers/acpi/acpi_tad.c rt.tz, rt.daylight); tz 183 drivers/acpi/thermal.c static int acpi_thermal_get_temperature(struct acpi_thermal *tz) tz 188 drivers/acpi/thermal.c if (!tz) tz 191 drivers/acpi/thermal.c tz->last_temperature = tz->temperature; tz 193 drivers/acpi/thermal.c status = acpi_evaluate_integer(tz->device->handle, "_TMP", NULL, &tmp); tz 197 drivers/acpi/thermal.c tz->temperature = tmp; tz 199 drivers/acpi/thermal.c tz->temperature)); tz 204 drivers/acpi/thermal.c static int acpi_thermal_get_polling_frequency(struct acpi_thermal *tz) tz 209 drivers/acpi/thermal.c if (!tz) tz 212 drivers/acpi/thermal.c status = acpi_evaluate_integer(tz->device->handle, "_TZP", NULL, &tmp); tz 216 drivers/acpi/thermal.c tz->polling_frequency = tmp; tz 218 drivers/acpi/thermal.c tz->polling_frequency)); tz 223 drivers/acpi/thermal.c static int acpi_thermal_set_cooling_mode(struct acpi_thermal *tz, int mode) tz 225 drivers/acpi/thermal.c if (!tz) tz 228 drivers/acpi/thermal.c if (ACPI_FAILURE(acpi_execute_simple_method(tz->device->handle, tz 263 drivers/acpi/thermal.c static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag) tz 273 drivers/acpi/thermal.c status = acpi_evaluate_integer(tz->device->handle, tz 275 drivers/acpi/thermal.c tz->trips.critical.temperature = tmp; tz 283 drivers/acpi/thermal.c tz->trips.critical.flags.valid = 0; tz 289 drivers/acpi/thermal.c tz->trips.critical.flags.valid = 0; tz 291 drivers/acpi/thermal.c tz->trips.critical.flags.valid = 1; tz 294 drivers/acpi/thermal.c tz->trips.critical.temperature)); tz 296 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid == 1) { tz 298 drivers/acpi/thermal.c tz->trips.critical.flags.valid = 0; tz 304 drivers/acpi/thermal.c if (crt_k > tz->trips.critical.temperature) tz 307 drivers/acpi/thermal.c tz->trips.critical.temperature = crt_k; tz 314 drivers/acpi/thermal.c status = acpi_evaluate_integer(tz->device->handle, tz 317 drivers/acpi/thermal.c tz->trips.hot.flags.valid = 0; tz 321 drivers/acpi/thermal.c tz->trips.hot.temperature = tmp; tz 322 drivers/acpi/thermal.c tz->trips.hot.flags.valid = 1; tz 325 drivers/acpi/thermal.c tz->trips.hot.temperature)); tz 330 drivers/acpi/thermal.c if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.flags.valid) || tz 332 drivers/acpi/thermal.c valid = tz->trips.passive.flags.valid; tz 339 drivers/acpi/thermal.c status = acpi_evaluate_integer(tz->device->handle, tz 344 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; tz 346 drivers/acpi/thermal.c tz->trips.passive.temperature = tmp; tz 347 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 1; tz 350 drivers/acpi/thermal.c tz->device->handle, "_TC1", tz 353 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; tz 355 drivers/acpi/thermal.c tz->trips.passive.tc1 = tmp; tz 357 drivers/acpi/thermal.c tz->device->handle, "_TC2", tz 360 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; tz 362 drivers/acpi/thermal.c tz->trips.passive.tc2 = tmp; tz 364 drivers/acpi/thermal.c tz->device->handle, "_TSP", tz 367 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; tz 369 drivers/acpi/thermal.c tz->trips.passive.tsp = tmp; tz 373 drivers/acpi/thermal.c if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.passive.flags.valid) { tz 375 drivers/acpi/thermal.c status = acpi_evaluate_reference(tz->device->handle, "_PSL", tz 379 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; tz 382 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 1; tz 384 drivers/acpi/thermal.c if (memcmp(&tz->trips.passive.devices, &devices, tz 386 drivers/acpi/thermal.c memcpy(&tz->trips.passive.devices, &devices, tz 392 drivers/acpi/thermal.c if (valid != tz->trips.passive.flags.valid) tz 399 drivers/acpi/thermal.c valid = tz->trips.active[i].flags.valid; tz 405 drivers/acpi/thermal.c tz->trips.active[i].flags.valid)) { tz 406 drivers/acpi/thermal.c status = acpi_evaluate_integer(tz->device->handle, tz 409 drivers/acpi/thermal.c tz->trips.active[i].flags.valid = 0; tz 415 drivers/acpi/thermal.c tz->trips.active[0].temperature = tz 422 drivers/acpi/thermal.c tz->trips.active[i - 1].temperature = tz 423 drivers/acpi/thermal.c (tz->trips.active[i - 2].temperature < tz 425 drivers/acpi/thermal.c tz->trips.active[i - 2].temperature : tz 429 drivers/acpi/thermal.c tz->trips.active[i].temperature = tmp; tz 430 drivers/acpi/thermal.c tz->trips.active[i].flags.valid = 1; tz 435 drivers/acpi/thermal.c if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.active[i].flags.valid ) { tz 437 drivers/acpi/thermal.c status = acpi_evaluate_reference(tz->device->handle, tz 442 drivers/acpi/thermal.c tz->trips.active[i].flags.valid = 0; tz 445 drivers/acpi/thermal.c tz->trips.active[i].flags.valid = 1; tz 447 drivers/acpi/thermal.c if (memcmp(&tz->trips.active[i].devices, &devices, tz 449 drivers/acpi/thermal.c memcpy(&tz->trips.active[i].devices, &devices, tz 455 drivers/acpi/thermal.c if (valid != tz->trips.active[i].flags.valid) tz 458 drivers/acpi/thermal.c if (!tz->trips.active[i].flags.valid) tz 464 drivers/acpi/thermal.c status = acpi_evaluate_reference(tz->device->handle, "_TZD", tz 467 drivers/acpi/thermal.c && memcmp(&tz->devices, &devices, sizeof(devices))) { tz 468 drivers/acpi/thermal.c tz->devices = devices; tz 476 drivers/acpi/thermal.c static int acpi_thermal_get_trip_points(struct acpi_thermal *tz) tz 478 drivers/acpi/thermal.c int i, valid, ret = acpi_thermal_trips_update(tz, ACPI_TRIPS_INIT); tz 483 drivers/acpi/thermal.c valid = tz->trips.critical.flags.valid | tz 484 drivers/acpi/thermal.c tz->trips.hot.flags.valid | tz 485 drivers/acpi/thermal.c tz->trips.passive.flags.valid; tz 488 drivers/acpi/thermal.c valid |= tz->trips.active[i].flags.valid; tz 499 drivers/acpi/thermal.c struct acpi_thermal *tz = data; tz 501 drivers/acpi/thermal.c if (!tz->tz_enabled) tz 504 drivers/acpi/thermal.c thermal_zone_device_update(tz->thermal_zone, tz 512 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 515 drivers/acpi/thermal.c if (!tz) tz 518 drivers/acpi/thermal.c result = acpi_thermal_get_temperature(tz); tz 522 drivers/acpi/thermal.c *temp = DECI_KELVIN_TO_MILLICELSIUS_WITH_OFFSET(tz->temperature, tz 523 drivers/acpi/thermal.c tz->kelvin_offset); tz 530 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 532 drivers/acpi/thermal.c if (!tz) tz 535 drivers/acpi/thermal.c *mode = tz->tz_enabled ? THERMAL_DEVICE_ENABLED : tz 544 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 547 drivers/acpi/thermal.c if (!tz) tz 561 drivers/acpi/thermal.c if (enable != tz->tz_enabled) { tz 562 drivers/acpi/thermal.c tz->tz_enabled = enable; tz 565 drivers/acpi/thermal.c tz->tz_enabled ? "Enable" : "Disable")); tz 566 drivers/acpi/thermal.c acpi_thermal_check(tz); tz 574 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 577 drivers/acpi/thermal.c if (!tz || trip < 0) tz 580 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) { tz 588 drivers/acpi/thermal.c if (tz->trips.hot.flags.valid) { tz 596 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) { tz 605 drivers/acpi/thermal.c tz->trips.active[i].flags.valid; i++) { tz 619 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 622 drivers/acpi/thermal.c if (!tz || trip < 0) tz 625 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) { tz 628 drivers/acpi/thermal.c tz->trips.critical.temperature, tz 629 drivers/acpi/thermal.c tz->kelvin_offset); tz 635 drivers/acpi/thermal.c if (tz->trips.hot.flags.valid) { tz 638 drivers/acpi/thermal.c tz->trips.hot.temperature, tz 639 drivers/acpi/thermal.c tz->kelvin_offset); tz 645 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) { tz 648 drivers/acpi/thermal.c tz->trips.passive.temperature, tz 649 drivers/acpi/thermal.c tz->kelvin_offset); tz 656 drivers/acpi/thermal.c tz->trips.active[i].flags.valid; i++) { tz 659 drivers/acpi/thermal.c tz->trips.active[i].temperature, tz 660 drivers/acpi/thermal.c tz->kelvin_offset); tz 672 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 674 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) { tz 676 drivers/acpi/thermal.c tz->trips.critical.temperature, tz 677 drivers/acpi/thermal.c tz->kelvin_offset); tz 686 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 696 drivers/acpi/thermal.c tz->temperature, tz->kelvin_offset); tz 713 drivers/acpi/thermal.c i = (tz->trips.passive.tc1 * (tz->temperature - tz->last_temperature)) tz 714 drivers/acpi/thermal.c + (tz->trips.passive.tc2 tz 715 drivers/acpi/thermal.c * (tz->temperature - tz->trips.passive.temperature)); tz 731 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 740 drivers/acpi/thermal.c acpi_bus_generate_netlink_event(tz->device->pnp.device_class, tz 741 drivers/acpi/thermal.c dev_name(&tz->device->dev), type, 1); tz 754 drivers/acpi/thermal.c struct acpi_thermal *tz = thermal->devdata; tz 763 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) tz 766 drivers/acpi/thermal.c if (tz->trips.hot.flags.valid) tz 769 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) { tz 771 drivers/acpi/thermal.c for (i = 0; i < tz->trips.passive.devices.count; tz 773 drivers/acpi/thermal.c handle = tz->trips.passive.devices.handles[i]; tz 793 drivers/acpi/thermal.c if (!tz->trips.active[i].flags.valid) tz 797 drivers/acpi/thermal.c j < tz->trips.active[i].devices.count; tz 799 drivers/acpi/thermal.c handle = tz->trips.active[i].devices.handles[j]; tz 816 drivers/acpi/thermal.c for (i = 0; i < tz->devices.count; i++) { tz 817 drivers/acpi/thermal.c handle = tz->devices.handles[i]; tz 866 drivers/acpi/thermal.c static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz) tz 873 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) tz 876 drivers/acpi/thermal.c if (tz->trips.hot.flags.valid) tz 879 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) tz 883 drivers/acpi/thermal.c tz->trips.active[i].flags.valid; i++, trips++); tz 885 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) tz 886 drivers/acpi/thermal.c tz->thermal_zone = tz 887 drivers/acpi/thermal.c thermal_zone_device_register("acpitz", trips, 0, tz, tz 889 drivers/acpi/thermal.c tz->trips.passive.tsp*100, tz 890 drivers/acpi/thermal.c tz->polling_frequency*100); tz 892 drivers/acpi/thermal.c tz->thermal_zone = tz 893 drivers/acpi/thermal.c thermal_zone_device_register("acpitz", trips, 0, tz, tz 895 drivers/acpi/thermal.c 0, tz->polling_frequency*100); tz 896 drivers/acpi/thermal.c if (IS_ERR(tz->thermal_zone)) tz 899 drivers/acpi/thermal.c result = sysfs_create_link(&tz->device->dev.kobj, tz 900 drivers/acpi/thermal.c &tz->thermal_zone->device.kobj, "thermal_zone"); tz 904 drivers/acpi/thermal.c result = sysfs_create_link(&tz->thermal_zone->device.kobj, tz 905 drivers/acpi/thermal.c &tz->device->dev.kobj, "device"); tz 909 drivers/acpi/thermal.c status = acpi_bus_attach_private_data(tz->device->handle, tz 910 drivers/acpi/thermal.c tz->thermal_zone); tz 914 drivers/acpi/thermal.c tz->tz_enabled = 1; tz 916 drivers/acpi/thermal.c dev_info(&tz->device->dev, "registered as thermal_zone%d\n", tz 917 drivers/acpi/thermal.c tz->thermal_zone->id); tz 921 drivers/acpi/thermal.c static void acpi_thermal_unregister_thermal_zone(struct acpi_thermal *tz) tz 923 drivers/acpi/thermal.c sysfs_remove_link(&tz->device->dev.kobj, "thermal_zone"); tz 924 drivers/acpi/thermal.c sysfs_remove_link(&tz->thermal_zone->device.kobj, "device"); tz 925 drivers/acpi/thermal.c thermal_zone_device_unregister(tz->thermal_zone); tz 926 drivers/acpi/thermal.c tz->thermal_zone = NULL; tz 927 drivers/acpi/thermal.c acpi_bus_detach_private_data(tz->device->handle); tz 937 drivers/acpi/thermal.c struct acpi_thermal *tz = acpi_driver_data(device); tz 940 drivers/acpi/thermal.c if (!tz) tz 945 drivers/acpi/thermal.c acpi_thermal_check(tz); tz 948 drivers/acpi/thermal.c acpi_thermal_trips_update(tz, ACPI_TRIPS_REFRESH_THRESHOLDS); tz 949 drivers/acpi/thermal.c acpi_thermal_check(tz); tz 954 drivers/acpi/thermal.c acpi_thermal_trips_update(tz, ACPI_TRIPS_REFRESH_DEVICES); tz 955 drivers/acpi/thermal.c acpi_thermal_check(tz); tz 978 drivers/acpi/thermal.c static void acpi_thermal_aml_dependency_fix(struct acpi_thermal *tz) tz 980 drivers/acpi/thermal.c acpi_handle handle = tz->device->handle; tz 998 drivers/acpi/thermal.c static int acpi_thermal_get_info(struct acpi_thermal *tz) tz 1003 drivers/acpi/thermal.c if (!tz) tz 1006 drivers/acpi/thermal.c acpi_thermal_aml_dependency_fix(tz); tz 1009 drivers/acpi/thermal.c result = acpi_thermal_get_trip_points(tz); tz 1014 drivers/acpi/thermal.c result = acpi_thermal_get_temperature(tz); tz 1019 drivers/acpi/thermal.c result = acpi_thermal_set_cooling_mode(tz, ACPI_THERMAL_MODE_ACTIVE); tz 1021 drivers/acpi/thermal.c tz->flags.cooling_mode = 1; tz 1025 drivers/acpi/thermal.c tz->polling_frequency = tzp; tz 1027 drivers/acpi/thermal.c acpi_thermal_get_polling_frequency(tz); tz 1042 drivers/acpi/thermal.c static void acpi_thermal_guess_offset(struct acpi_thermal *tz) tz 1044 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid && tz 1045 drivers/acpi/thermal.c (tz->trips.critical.temperature % 5) == 1) tz 1046 drivers/acpi/thermal.c tz->kelvin_offset = 2731; tz 1048 drivers/acpi/thermal.c tz->kelvin_offset = 2732; tz 1053 drivers/acpi/thermal.c struct acpi_thermal *tz = container_of(work, struct acpi_thermal, tz 1055 drivers/acpi/thermal.c acpi_thermal_check(tz); tz 1061 drivers/acpi/thermal.c struct acpi_thermal *tz = NULL; tz 1067 drivers/acpi/thermal.c tz = kzalloc(sizeof(struct acpi_thermal), GFP_KERNEL); tz 1068 drivers/acpi/thermal.c if (!tz) tz 1071 drivers/acpi/thermal.c tz->device = device; tz 1072 drivers/acpi/thermal.c strcpy(tz->name, device->pnp.bus_id); tz 1075 drivers/acpi/thermal.c device->driver_data = tz; tz 1077 drivers/acpi/thermal.c result = acpi_thermal_get_info(tz); tz 1081 drivers/acpi/thermal.c acpi_thermal_guess_offset(tz); tz 1083 drivers/acpi/thermal.c result = acpi_thermal_register_thermal_zone(tz); tz 1087 drivers/acpi/thermal.c INIT_WORK(&tz->thermal_check_work, acpi_thermal_check_fn); tz 1090 drivers/acpi/thermal.c acpi_device_bid(device), DECI_KELVIN_TO_CELSIUS(tz->temperature)); tz 1094 drivers/acpi/thermal.c kfree(tz); tz 1101 drivers/acpi/thermal.c struct acpi_thermal *tz = NULL; tz 1107 drivers/acpi/thermal.c tz = acpi_driver_data(device); tz 1109 drivers/acpi/thermal.c acpi_thermal_unregister_thermal_zone(tz); tz 1110 drivers/acpi/thermal.c kfree(tz); tz 1124 drivers/acpi/thermal.c struct acpi_thermal *tz; tz 1130 drivers/acpi/thermal.c tz = acpi_driver_data(to_acpi_device(dev)); tz 1131 drivers/acpi/thermal.c if (!tz) tz 1135 drivers/acpi/thermal.c if (!(&tz->trips.active[i])) tz 1137 drivers/acpi/thermal.c if (!tz->trips.active[i].flags.valid) tz 1139 drivers/acpi/thermal.c tz->trips.active[i].flags.enabled = 1; tz 1140 drivers/acpi/thermal.c for (j = 0; j < tz->trips.active[i].devices.count; j++) { tz 1142 drivers/acpi/thermal.c tz->trips.active[i].devices.handles[j], tz 1145 drivers/acpi/thermal.c tz->trips.active[i].flags.enabled = 0; tz 1149 drivers/acpi/thermal.c tz->state.active |= tz->trips.active[i].flags.enabled; tz 1152 drivers/acpi/thermal.c queue_work(acpi_thermal_pm_queue, &tz->thermal_check_work); tz 153 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_module_trips_reset(struct mlxsw_thermal_module *tz) tz 155 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = 0; tz 156 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_HIGH].temp = 0; tz 157 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = 0; tz 158 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp = 0; tz 163 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz) tz 168 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c err = mlxsw_env_module_temp_thresholds_get(core, tz->module, tz 174 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c err = mlxsw_env_module_temp_thresholds_get(core, tz->module, tz 188 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = crit_temp - tz 191 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = crit_temp; tz 192 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_HIGH].temp = crit_temp; tz 193 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = emerg_temp; tz 195 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp = emerg_temp + tz 198 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp = emerg_temp; tz 422 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 423 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal *thermal = tz->parent; tz 431 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c const struct mlxsw_thermal_trip *trip = &tz->trips[i]; tz 451 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 452 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal *thermal = tz->parent; tz 470 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 472 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *mode = tz->mode; tz 480 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 481 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal *thermal = tz->parent; tz 492 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->mode = mode; tz 501 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 502 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal *thermal = tz->parent; tz 510 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->module, false, false); tz 527 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c err = mlxsw_thermal_module_trips_update(dev, thermal->core, tz); tz 529 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_tz_score_update(thermal, tzdev, tz->trips, temp); tz 538 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 543 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_type = tz->trips[trip].type; tz 551 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 556 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_temp = tz->trips[trip].temp; tz 564 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 567 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c temp > tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp) tz 570 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[trip].temp = temp; tz 578 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 580 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_hyst = tz->trips[trip].hyst; tz 588 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 590 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[trip].hyst = hyst; tz 597 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 598 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal *thermal = tz->parent; tz 627 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_module *tz = tzdev->devdata; tz 628 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal *thermal = tz->parent; tz 634 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c index = MLXSW_REG_MTMP_GBOX_INDEX_MIN + tz->module; tz 643 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_tz_score_update(thermal, tzdev, tz->trips, temp); tz 569 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(tz-fail, 0x26), tz 515 drivers/remoteproc/stm32_rproc.c struct stm32_syscon tz; tz 545 drivers/remoteproc/stm32_rproc.c err = stm32_rproc_get_syscon(np, "st,syscfg-tz", &tz); tz 551 drivers/remoteproc/stm32_rproc.c err = regmap_read(tz.map, tz.reg, &tzen); tz 556 drivers/remoteproc/stm32_rproc.c ddata->secured_soc = tzen & tz.mask; tz 125 drivers/thermal/armada_thermal.c struct thermal_zone_device *tz; tz 783 drivers/thermal/armada_thermal.c struct thermal_zone_device *tz, tz 787 drivers/thermal/armada_thermal.c const struct thermal_trip *trips = of_thermal_get_trip_points(tz); tz 794 drivers/thermal/armada_thermal.c for (i = 0; i < of_thermal_get_ntrips(tz); i++) tz 798 drivers/thermal/armada_thermal.c if (i == of_thermal_get_ntrips(tz)) tz 808 drivers/thermal/armada_thermal.c priv->overheat_sensor = tz; tz 818 drivers/thermal/armada_thermal.c struct thermal_zone_device *tz; tz 868 drivers/thermal/armada_thermal.c tz = thermal_zone_device_register(priv->zone_name, 0, 0, priv, tz 870 drivers/thermal/armada_thermal.c if (IS_ERR(tz)) { tz 873 drivers/thermal/armada_thermal.c return PTR_ERR(tz); tz 877 drivers/thermal/armada_thermal.c drvdata->data.tz = tz; tz 924 drivers/thermal/armada_thermal.c tz = devm_thermal_zone_of_sensor_register(&pdev->dev, tz 927 drivers/thermal/armada_thermal.c if (IS_ERR(tz)) { tz 940 drivers/thermal/armada_thermal.c armada_configure_overheat_int(priv, tz, sensor->id); tz 955 drivers/thermal/armada_thermal.c thermal_zone_device_unregister(drvdata->data.tz); tz 67 drivers/thermal/broadcom/bcm2835_thermal.c struct thermal_zone_device *tz; tz 103 drivers/thermal/broadcom/bcm2835_thermal.c thermal_zone_get_offset(data->tz), tz 104 drivers/thermal/broadcom/bcm2835_thermal.c thermal_zone_get_slope(data->tz)); tz 167 drivers/thermal/broadcom/bcm2835_thermal.c struct thermal_zone_device *tz; tz 210 drivers/thermal/broadcom/bcm2835_thermal.c tz = thermal_zone_of_sensor_register(&pdev->dev, 0, data, tz 212 drivers/thermal/broadcom/bcm2835_thermal.c if (IS_ERR(tz)) { tz 213 drivers/thermal/broadcom/bcm2835_thermal.c err = PTR_ERR(tz); tz 230 drivers/thermal/broadcom/bcm2835_thermal.c slope = thermal_zone_get_slope(tz); tz 231 drivers/thermal/broadcom/bcm2835_thermal.c offset = thermal_zone_get_offset(tz); tz 236 drivers/thermal/broadcom/bcm2835_thermal.c err = tz->ops->get_trip_temp(tz, 0, &trip_temp); tz 264 drivers/thermal/broadcom/bcm2835_thermal.c data->tz = tz; tz 272 drivers/thermal/broadcom/bcm2835_thermal.c tz->tzp->no_hwmon = false; tz 273 drivers/thermal/broadcom/bcm2835_thermal.c err = thermal_add_hwmon_sysfs(tz); tz 281 drivers/thermal/broadcom/bcm2835_thermal.c thermal_zone_of_sensor_unregister(&pdev->dev, tz); tz 291 drivers/thermal/broadcom/bcm2835_thermal.c struct thermal_zone_device *tz = data->tz; tz 294 drivers/thermal/broadcom/bcm2835_thermal.c thermal_zone_of_sensor_unregister(&pdev->dev, tz); tz 112 drivers/thermal/broadcom/brcmstb_thermal.c static inline int avs_tmon_code_to_temp(struct thermal_zone_device *tz, tz 125 drivers/thermal/broadcom/brcmstb_thermal.c static inline u32 avs_tmon_temp_to_code(struct thermal_zone_device *tz, tz 18 drivers/thermal/broadcom/ns-thermal.c struct thermal_zone_device *tz; tz 25 drivers/thermal/broadcom/ns-thermal.c int offset = thermal_zone_get_offset(ns_thermal->tz); tz 26 drivers/thermal/broadcom/ns-thermal.c int slope = thermal_zone_get_slope(ns_thermal->tz); tz 63 drivers/thermal/broadcom/ns-thermal.c ns_thermal->tz = devm_thermal_zone_of_sensor_register(dev, 0, tz 66 drivers/thermal/broadcom/ns-thermal.c if (IS_ERR(ns_thermal->tz)) { tz 68 drivers/thermal/broadcom/ns-thermal.c return PTR_ERR(ns_thermal->tz); tz 22 drivers/thermal/broadcom/sr-thermal.c struct thermal_zone_device *tz; tz 84 drivers/thermal/broadcom/sr-thermal.c tmon->tz = devm_thermal_zone_of_sensor_register(dev, i, tmon, tz 86 drivers/thermal/broadcom/sr-thermal.c if (IS_ERR(tmon->tz)) tz 87 drivers/thermal/broadcom/sr-thermal.c return PTR_ERR(tmon->tz); tz 362 drivers/thermal/cpu_cooling.c struct thermal_zone_device *tz, tz 425 drivers/thermal/cpu_cooling.c struct thermal_zone_device *tz, tz 464 drivers/thermal/cpu_cooling.c struct thermal_zone_device *tz, u32 power, tz 55 drivers/thermal/db8500_thermal.c struct thermal_zone_device *tz; tz 132 drivers/thermal/db8500_thermal.c dev_dbg(&th->tz->device, tz 135 drivers/thermal/db8500_thermal.c thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); tz 155 drivers/thermal/db8500_thermal.c dev_dbg(&th->tz->device, tz 161 drivers/thermal/db8500_thermal.c thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); tz 205 drivers/thermal/db8500_thermal.c th->tz = devm_thermal_zone_of_sensor_register(dev, 0, th, &thdev_ops); tz 206 drivers/thermal/db8500_thermal.c if (IS_ERR(th->tz)) { tz 208 drivers/thermal/db8500_thermal.c return PTR_ERR(th->tz); tz 274 drivers/thermal/devfreq_cooling.c struct thermal_zone_device *tz, tz 334 drivers/thermal/devfreq_cooling.c struct thermal_zone_device *tz, tz 353 drivers/thermal/devfreq_cooling.c struct thermal_zone_device *tz, tz 22 drivers/thermal/fair_share.c static int get_trip_level(struct thermal_zone_device *tz) tz 28 drivers/thermal/fair_share.c if (tz->trips == 0 || !tz->ops->get_trip_temp) tz 31 drivers/thermal/fair_share.c for (count = 0; count < tz->trips; count++) { tz 32 drivers/thermal/fair_share.c tz->ops->get_trip_temp(tz, count, &trip_temp); tz 33 drivers/thermal/fair_share.c if (tz->temperature < trip_temp) tz 42 drivers/thermal/fair_share.c tz->ops->get_trip_type(tz, count - 1, &trip_type); tz 43 drivers/thermal/fair_share.c trace_thermal_zone_trip(tz, count - 1, trip_type); tz 49 drivers/thermal/fair_share.c static long get_target_state(struct thermal_zone_device *tz, tz 56 drivers/thermal/fair_share.c return (long)(percentage * level * max_state) / (100 * tz->trips); tz 78 drivers/thermal/fair_share.c static int fair_share_throttle(struct thermal_zone_device *tz, int trip) tz 83 drivers/thermal/fair_share.c int cur_trip_level = get_trip_level(tz); tz 85 drivers/thermal/fair_share.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 93 drivers/thermal/fair_share.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 105 drivers/thermal/fair_share.c instance->target = get_target_state(tz, cdev, percentage, tz 16 drivers/thermal/gov_bang_bang.c static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) tz 21 drivers/thermal/gov_bang_bang.c tz->ops->get_trip_temp(tz, trip, &trip_temp); tz 23 drivers/thermal/gov_bang_bang.c if (!tz->ops->get_trip_hyst) { tz 25 drivers/thermal/gov_bang_bang.c "running with default hysteresis zero\n", tz->type); tz 28 drivers/thermal/gov_bang_bang.c tz->ops->get_trip_hyst(tz, trip, &trip_hyst); tz 30 drivers/thermal/gov_bang_bang.c dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", tz 31 drivers/thermal/gov_bang_bang.c trip, trip_temp, tz->temperature, tz 34 drivers/thermal/gov_bang_bang.c mutex_lock(&tz->lock); tz 36 drivers/thermal/gov_bang_bang.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 55 drivers/thermal/gov_bang_bang.c if (instance->target == 0 && tz->temperature >= trip_temp) tz 58 drivers/thermal/gov_bang_bang.c tz->temperature <= trip_temp - trip_hyst) tz 69 drivers/thermal/gov_bang_bang.c mutex_unlock(&tz->lock); tz 99 drivers/thermal/gov_bang_bang.c static int bang_bang_control(struct thermal_zone_device *tz, int trip) tz 103 drivers/thermal/gov_bang_bang.c thermal_zone_trip_update(tz, trip); tz 105 drivers/thermal/gov_bang_bang.c mutex_lock(&tz->lock); tz 107 drivers/thermal/gov_bang_bang.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) tz 110 drivers/thermal/gov_bang_bang.c mutex_unlock(&tz->lock); tz 205 drivers/thermal/imx_thermal.c struct thermal_zone_device *tz; tz 257 drivers/thermal/imx_thermal.c static int imx_get_temp(struct thermal_zone_device *tz, int *temp) tz 259 drivers/thermal/imx_thermal.c struct imx_thermal_data *data = tz->devdata; tz 301 drivers/thermal/imx_thermal.c dev_dbg(&tz->device, "temp measurement never finished\n"); tz 322 drivers/thermal/imx_thermal.c dev_dbg(&tz->device, "thermal alarm off: T < %d\n", tz 328 drivers/thermal/imx_thermal.c dev_dbg(&tz->device, "millicelsius: %d\n", *temp); tz 341 drivers/thermal/imx_thermal.c static int imx_get_mode(struct thermal_zone_device *tz, tz 344 drivers/thermal/imx_thermal.c struct imx_thermal_data *data = tz->devdata; tz 351 drivers/thermal/imx_thermal.c static int imx_set_mode(struct thermal_zone_device *tz, tz 354 drivers/thermal/imx_thermal.c struct imx_thermal_data *data = tz->devdata; tz 359 drivers/thermal/imx_thermal.c tz->polling_delay = IMX_POLLING_DELAY; tz 360 drivers/thermal/imx_thermal.c tz->passive_delay = IMX_PASSIVE_DELAY; tz 377 drivers/thermal/imx_thermal.c tz->polling_delay = 0; tz 378 drivers/thermal/imx_thermal.c tz->passive_delay = 0; tz 387 drivers/thermal/imx_thermal.c thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); tz 392 drivers/thermal/imx_thermal.c static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, tz 400 drivers/thermal/imx_thermal.c static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) tz 402 drivers/thermal/imx_thermal.c struct imx_thermal_data *data = tz->devdata; tz 408 drivers/thermal/imx_thermal.c static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, tz 411 drivers/thermal/imx_thermal.c struct imx_thermal_data *data = tz->devdata; tz 418 drivers/thermal/imx_thermal.c static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, tz 421 drivers/thermal/imx_thermal.c struct imx_thermal_data *data = tz->devdata; tz 438 drivers/thermal/imx_thermal.c static int imx_bind(struct thermal_zone_device *tz, tz 443 drivers/thermal/imx_thermal.c ret = thermal_zone_bind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev, tz 448 drivers/thermal/imx_thermal.c dev_err(&tz->device, tz 450 drivers/thermal/imx_thermal.c tz->type, cdev->type, ret); tz 457 drivers/thermal/imx_thermal.c static int imx_unbind(struct thermal_zone_device *tz, tz 462 drivers/thermal/imx_thermal.c ret = thermal_zone_unbind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev); tz 464 drivers/thermal/imx_thermal.c dev_err(&tz->device, tz 466 drivers/thermal/imx_thermal.c tz->type, cdev->type, ret); tz 635 drivers/thermal/imx_thermal.c dev_dbg(&data->tz->device, "THERMAL ALARM: T > %d\n", tz 638 drivers/thermal/imx_thermal.c thermal_zone_device_update(data->tz, THERMAL_EVENT_UNSPECIFIED); tz 806 drivers/thermal/imx_thermal.c data->tz = thermal_zone_device_register("imx_thermal_zone", tz 812 drivers/thermal/imx_thermal.c if (IS_ERR(data->tz)) { tz 813 drivers/thermal/imx_thermal.c ret = PTR_ERR(data->tz); tz 854 drivers/thermal/imx_thermal.c thermal_zone_device_unregister(data->tz); tz 874 drivers/thermal/imx_thermal.c thermal_zone_device_unregister(data->tz); tz 89 drivers/thermal/of-thermal.c static int of_thermal_get_temp(struct thermal_zone_device *tz, tz 92 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 100 drivers/thermal/of-thermal.c static int of_thermal_set_trips(struct thermal_zone_device *tz, tz 103 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 121 drivers/thermal/of-thermal.c int of_thermal_get_ntrips(struct thermal_zone_device *tz) tz 123 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 142 drivers/thermal/of-thermal.c bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) tz 144 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 164 drivers/thermal/of-thermal.c of_thermal_get_trip_points(struct thermal_zone_device *tz) tz 166 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 186 drivers/thermal/of-thermal.c static int of_thermal_set_emul_temp(struct thermal_zone_device *tz, tz 189 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 194 drivers/thermal/of-thermal.c static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, tz 197 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 272 drivers/thermal/of-thermal.c static int of_thermal_get_mode(struct thermal_zone_device *tz, tz 275 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 282 drivers/thermal/of-thermal.c static int of_thermal_set_mode(struct thermal_zone_device *tz, tz 285 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 287 drivers/thermal/of-thermal.c mutex_lock(&tz->lock); tz 290 drivers/thermal/of-thermal.c tz->polling_delay = data->polling_delay; tz 291 drivers/thermal/of-thermal.c tz->passive_delay = data->passive_delay; tz 293 drivers/thermal/of-thermal.c tz->polling_delay = 0; tz 294 drivers/thermal/of-thermal.c tz->passive_delay = 0; tz 297 drivers/thermal/of-thermal.c mutex_unlock(&tz->lock); tz 300 drivers/thermal/of-thermal.c thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); tz 305 drivers/thermal/of-thermal.c static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, tz 308 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 318 drivers/thermal/of-thermal.c static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, tz 321 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 331 drivers/thermal/of-thermal.c static int of_thermal_set_trip_temp(struct thermal_zone_device *tz, int trip, tz 334 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 353 drivers/thermal/of-thermal.c static int of_thermal_get_trip_hyst(struct thermal_zone_device *tz, int trip, tz 356 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 366 drivers/thermal/of-thermal.c static int of_thermal_set_trip_hyst(struct thermal_zone_device *tz, int trip, tz 369 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 380 drivers/thermal/of-thermal.c static int of_thermal_get_crit_temp(struct thermal_zone_device *tz, tz 383 drivers/thermal/of-thermal.c struct __thermal_zone *data = tz->devdata; tz 418 drivers/thermal/of-thermal.c struct __thermal_zone *tz; tz 424 drivers/thermal/of-thermal.c tz = tzd->devdata; tz 430 drivers/thermal/of-thermal.c tz->ops = ops; tz 431 drivers/thermal/of-thermal.c tz->sensor_data = data; tz 559 drivers/thermal/of-thermal.c struct __thermal_zone *tz; tz 564 drivers/thermal/of-thermal.c tz = tzd->devdata; tz 567 drivers/thermal/of-thermal.c if (!tz) tz 575 drivers/thermal/of-thermal.c tz->ops = NULL; tz 576 drivers/thermal/of-thermal.c tz->sensor_data = NULL; tz 858 drivers/thermal/of-thermal.c struct __thermal_zone *tz; tz 867 drivers/thermal/of-thermal.c tz = kzalloc(sizeof(*tz), GFP_KERNEL); tz 868 drivers/thermal/of-thermal.c if (!tz) tz 876 drivers/thermal/of-thermal.c tz->passive_delay = prop; tz 883 drivers/thermal/of-thermal.c tz->polling_delay = prop; tz 892 drivers/thermal/of-thermal.c tz->slope = coef[0]; tz 893 drivers/thermal/of-thermal.c tz->offset = coef[1]; tz 895 drivers/thermal/of-thermal.c tz->slope = 1; tz 896 drivers/thermal/of-thermal.c tz->offset = 0; tz 906 drivers/thermal/of-thermal.c tz->ntrips = of_get_child_count(child); tz 907 drivers/thermal/of-thermal.c if (tz->ntrips == 0) /* must have at least one child */ tz 910 drivers/thermal/of-thermal.c tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL); tz 911 drivers/thermal/of-thermal.c if (!tz->trips) { tz 918 drivers/thermal/of-thermal.c ret = thermal_of_populate_trip(gchild, &tz->trips[i++]); tz 932 drivers/thermal/of-thermal.c tz->num_tbps = of_get_child_count(child); tz 933 drivers/thermal/of-thermal.c if (tz->num_tbps == 0) tz 936 drivers/thermal/of-thermal.c tz->tbps = kcalloc(tz->num_tbps, sizeof(*tz->tbps), GFP_KERNEL); tz 937 drivers/thermal/of-thermal.c if (!tz->tbps) { tz 944 drivers/thermal/of-thermal.c ret = thermal_of_populate_bind_params(gchild, &tz->tbps[i++], tz 945 drivers/thermal/of-thermal.c tz->trips, tz->ntrips); tz 952 drivers/thermal/of-thermal.c tz->mode = THERMAL_DEVICE_DISABLED; tz 954 drivers/thermal/of-thermal.c return tz; tz 958 drivers/thermal/of-thermal.c struct __thermal_bind_params *tbp = tz->tbps + i; tz 967 drivers/thermal/of-thermal.c kfree(tz->tbps); tz 969 drivers/thermal/of-thermal.c for (i = 0; i < tz->ntrips; i++) tz 970 drivers/thermal/of-thermal.c of_node_put(tz->trips[i].np); tz 971 drivers/thermal/of-thermal.c kfree(tz->trips); tz 974 drivers/thermal/of-thermal.c kfree(tz); tz 980 drivers/thermal/of-thermal.c static inline void of_thermal_free_zone(struct __thermal_zone *tz) tz 985 drivers/thermal/of-thermal.c for (i = 0; i < tz->num_tbps; i++) { tz 986 drivers/thermal/of-thermal.c tbp = tz->tbps + i; tz 994 drivers/thermal/of-thermal.c kfree(tz->tbps); tz 995 drivers/thermal/of-thermal.c for (i = 0; i < tz->ntrips; i++) tz 996 drivers/thermal/of-thermal.c of_node_put(tz->trips[i].np); tz 997 drivers/thermal/of-thermal.c kfree(tz->trips); tz 998 drivers/thermal/of-thermal.c kfree(tz); tz 1016 drivers/thermal/of-thermal.c struct __thermal_zone *tz; tz 1031 drivers/thermal/of-thermal.c tz = thermal_of_build_thermal_zone(child); tz 1032 drivers/thermal/of-thermal.c if (IS_ERR(tz)) { tz 1035 drivers/thermal/of-thermal.c PTR_ERR(tz)); tz 1055 drivers/thermal/of-thermal.c for (i = 0; i < tz->ntrips; i++) tz 1059 drivers/thermal/of-thermal.c tzp->slope = tz->slope; tz 1060 drivers/thermal/of-thermal.c tzp->offset = tz->offset; tz 1062 drivers/thermal/of-thermal.c zone = thermal_zone_device_register(child->name, tz->ntrips, tz 1063 drivers/thermal/of-thermal.c mask, tz, tz 1065 drivers/thermal/of-thermal.c tz->passive_delay, tz 1066 drivers/thermal/of-thermal.c tz->polling_delay); tz 1072 drivers/thermal/of-thermal.c of_thermal_free_zone(tz); tz 1083 drivers/thermal/of-thermal.c of_thermal_free_zone(tz); tz 93 drivers/thermal/power_allocator.c static u32 estimate_sustainable_power(struct thermal_zone_device *tz) tz 97 drivers/thermal/power_allocator.c struct power_allocator_params *params = tz->governor_data; tz 99 drivers/thermal/power_allocator.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 106 drivers/thermal/power_allocator.c if (power_actor_get_min_power(cdev, tz, &min_power)) tz 134 drivers/thermal/power_allocator.c static void estimate_pid_constants(struct thermal_zone_device *tz, tz 142 drivers/thermal/power_allocator.c ret = tz->ops->get_trip_temp(tz, trip_switch_on, &switch_on_temp); tz 158 drivers/thermal/power_allocator.c if (!tz->tzp->k_po || force) tz 159 drivers/thermal/power_allocator.c tz->tzp->k_po = int_to_frac(sustainable_power) / tz 162 drivers/thermal/power_allocator.c if (!tz->tzp->k_pu || force) tz 163 drivers/thermal/power_allocator.c tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / tz 166 drivers/thermal/power_allocator.c if (!tz->tzp->k_i || force) tz 167 drivers/thermal/power_allocator.c tz->tzp->k_i = int_to_frac(10) / 1000; tz 192 drivers/thermal/power_allocator.c static u32 pid_controller(struct thermal_zone_device *tz, tz 199 drivers/thermal/power_allocator.c struct power_allocator_params *params = tz->governor_data; tz 203 drivers/thermal/power_allocator.c if (tz->tzp->sustainable_power) { tz 204 drivers/thermal/power_allocator.c sustainable_power = tz->tzp->sustainable_power; tz 206 drivers/thermal/power_allocator.c sustainable_power = estimate_sustainable_power(tz); tz 207 drivers/thermal/power_allocator.c estimate_pid_constants(tz, sustainable_power, tz 212 drivers/thermal/power_allocator.c err = control_temp - tz->temperature; tz 216 drivers/thermal/power_allocator.c p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err); tz 224 drivers/thermal/power_allocator.c i = mul_frac(tz->tzp->k_i, params->err_integral); tz 226 drivers/thermal/power_allocator.c if (err < int_to_frac(tz->tzp->integral_cutoff)) { tz 227 drivers/thermal/power_allocator.c s64 i_next = i + mul_frac(tz->tzp->k_i, err); tz 242 drivers/thermal/power_allocator.c d = mul_frac(tz->tzp->k_d, err - params->prev_err); tz 243 drivers/thermal/power_allocator.c d = div_frac(d, tz->passive_delay); tz 253 drivers/thermal/power_allocator.c trace_thermal_power_allocator_pid(tz, frac_to_int(err), tz 332 drivers/thermal/power_allocator.c static int allocate_power(struct thermal_zone_device *tz, tz 336 drivers/thermal/power_allocator.c struct power_allocator_params *params = tz->governor_data; tz 344 drivers/thermal/power_allocator.c mutex_lock(&tz->lock); tz 348 drivers/thermal/power_allocator.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 388 drivers/thermal/power_allocator.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 398 drivers/thermal/power_allocator.c if (cdev->ops->get_requested_power(cdev, tz, &req_power[i])) tz 408 drivers/thermal/power_allocator.c if (power_actor_get_max_power(cdev, tz, &max_power[i])) tz 418 drivers/thermal/power_allocator.c power_range = pid_controller(tz, control_temp, max_allocatable_power); tz 426 drivers/thermal/power_allocator.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 440 drivers/thermal/power_allocator.c trace_thermal_power_allocator(tz, req_power, total_req_power, tz 443 drivers/thermal/power_allocator.c max_allocatable_power, tz->temperature, tz 444 drivers/thermal/power_allocator.c control_temp - tz->temperature); tz 448 drivers/thermal/power_allocator.c mutex_unlock(&tz->lock); tz 468 drivers/thermal/power_allocator.c static void get_governor_trips(struct thermal_zone_device *tz, tz 478 drivers/thermal/power_allocator.c for (i = 0; i < tz->trips; i++) { tz 482 drivers/thermal/power_allocator.c ret = tz->ops->get_trip_type(tz, i, &type); tz 484 drivers/thermal/power_allocator.c dev_warn(&tz->device, tz 521 drivers/thermal/power_allocator.c static void allow_maximum_power(struct thermal_zone_device *tz) tz 524 drivers/thermal/power_allocator.c struct power_allocator_params *params = tz->governor_data; tz 526 drivers/thermal/power_allocator.c mutex_lock(&tz->lock); tz 527 drivers/thermal/power_allocator.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 538 drivers/thermal/power_allocator.c mutex_unlock(&tz->lock); tz 550 drivers/thermal/power_allocator.c static int power_allocator_bind(struct thermal_zone_device *tz) tz 560 drivers/thermal/power_allocator.c if (!tz->tzp) { tz 561 drivers/thermal/power_allocator.c tz->tzp = kzalloc(sizeof(*tz->tzp), GFP_KERNEL); tz 562 drivers/thermal/power_allocator.c if (!tz->tzp) { tz 570 drivers/thermal/power_allocator.c if (!tz->tzp->sustainable_power) tz 571 drivers/thermal/power_allocator.c dev_warn(&tz->device, "power_allocator: sustainable_power will be estimated\n"); tz 573 drivers/thermal/power_allocator.c get_governor_trips(tz, params); tz 575 drivers/thermal/power_allocator.c if (tz->trips > 0) { tz 576 drivers/thermal/power_allocator.c ret = tz->ops->get_trip_temp(tz, tz 580 drivers/thermal/power_allocator.c estimate_pid_constants(tz, tz->tzp->sustainable_power, tz 587 drivers/thermal/power_allocator.c tz->governor_data = params; tz 597 drivers/thermal/power_allocator.c static void power_allocator_unbind(struct thermal_zone_device *tz) tz 599 drivers/thermal/power_allocator.c struct power_allocator_params *params = tz->governor_data; tz 601 drivers/thermal/power_allocator.c dev_dbg(&tz->device, "Unbinding from thermal zone %d\n", tz->id); tz 604 drivers/thermal/power_allocator.c kfree(tz->tzp); tz 605 drivers/thermal/power_allocator.c tz->tzp = NULL; tz 608 drivers/thermal/power_allocator.c kfree(tz->governor_data); tz 609 drivers/thermal/power_allocator.c tz->governor_data = NULL; tz 612 drivers/thermal/power_allocator.c static int power_allocator_throttle(struct thermal_zone_device *tz, int trip) tz 616 drivers/thermal/power_allocator.c struct power_allocator_params *params = tz->governor_data; tz 625 drivers/thermal/power_allocator.c ret = tz->ops->get_trip_temp(tz, params->trip_switch_on, tz 627 drivers/thermal/power_allocator.c if (!ret && (tz->temperature < switch_on_temp)) { tz 628 drivers/thermal/power_allocator.c tz->passive = 0; tz 630 drivers/thermal/power_allocator.c allow_maximum_power(tz); tz 634 drivers/thermal/power_allocator.c tz->passive = 1; tz 636 drivers/thermal/power_allocator.c ret = tz->ops->get_trip_temp(tz, params->trip_max_desired_temperature, tz 639 drivers/thermal/power_allocator.c dev_warn(&tz->device, tz 645 drivers/thermal/power_allocator.c return allocate_power(tz, control_temp); tz 561 drivers/thermal/samsung/exynos_tmu.c struct thermal_zone_device *tz = data->tzd; tz 568 drivers/thermal/samsung/exynos_tmu.c if (!of_thermal_is_trip_valid(tz, i)) tz 591 drivers/thermal/samsung/exynos_tmu.c struct thermal_zone_device *tz = data->tzd; tz 598 drivers/thermal/samsung/exynos_tmu.c if (!of_thermal_is_trip_valid(tz, i)) tz 622 drivers/thermal/samsung/exynos_tmu.c struct thermal_zone_device *tz = data->tzd; tz 629 drivers/thermal/samsung/exynos_tmu.c if (!of_thermal_is_trip_valid(tz, i)) tz 105 drivers/thermal/step_wise.c static void update_passive_instance(struct thermal_zone_device *tz, tz 113 drivers/thermal/step_wise.c tz->passive += value; tz 116 drivers/thermal/step_wise.c static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) tz 126 drivers/thermal/step_wise.c trip_temp = tz->forced_passive; tz 129 drivers/thermal/step_wise.c tz->ops->get_trip_temp(tz, trip, &trip_temp); tz 130 drivers/thermal/step_wise.c tz->ops->get_trip_type(tz, trip, &trip_type); tz 133 drivers/thermal/step_wise.c trend = get_tz_trend(tz, trip); tz 135 drivers/thermal/step_wise.c if (tz->temperature >= trip_temp) { tz 137 drivers/thermal/step_wise.c trace_thermal_zone_trip(tz, trip, trip_type); tz 140 drivers/thermal/step_wise.c dev_dbg(&tz->device, "Trip%d[type=%d,temp=%d]:trend=%d,throttle=%d\n", tz 143 drivers/thermal/step_wise.c mutex_lock(&tz->lock); tz 145 drivers/thermal/step_wise.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) { tz 160 drivers/thermal/step_wise.c update_passive_instance(tz, trip_type, 1); tz 164 drivers/thermal/step_wise.c update_passive_instance(tz, trip_type, -1); tz 172 drivers/thermal/step_wise.c mutex_unlock(&tz->lock); tz 186 drivers/thermal/step_wise.c static int step_wise_throttle(struct thermal_zone_device *tz, int trip) tz 190 drivers/thermal/step_wise.c thermal_zone_trip_update(tz, trip); tz 192 drivers/thermal/step_wise.c if (tz->forced_passive) tz 193 drivers/thermal/step_wise.c thermal_zone_trip_update(tz, THERMAL_TRIPS_NONE); tz 195 drivers/thermal/step_wise.c mutex_lock(&tz->lock); tz 197 drivers/thermal/step_wise.c list_for_each_entry(instance, &tz->thermal_instances, tz_node) tz 200 drivers/thermal/step_wise.c mutex_unlock(&tz->lock); tz 304 drivers/thermal/tegra/soctherm.c struct thermal_zone_device *tz; tz 587 drivers/thermal/tegra/soctherm.c struct thermal_zone_device *tz = zone->tz; tz 594 drivers/thermal/tegra/soctherm.c if (!tz) tz 597 drivers/thermal/tegra/soctherm.c ret = tz->ops->get_trip_type(tz, trip, &type); tz 623 drivers/thermal/tegra/soctherm.c if (get_thermal_instance(tz, cdev, trip)) tz 639 drivers/thermal/tegra/soctherm.c struct thermal_zone_device *tz = zone->tz; tz 642 drivers/thermal/tegra/soctherm.c if (!tz) tz 645 drivers/thermal/tegra/soctherm.c ret = tz->ops->get_trip_temp(zone->tz, trip, &trip_temp); tz 649 drivers/thermal/tegra/soctherm.c temp = READ_ONCE(tz->temperature); tz 650 drivers/thermal/tegra/soctherm.c last_temp = READ_ONCE(tz->last_temperature); tz 722 drivers/thermal/tegra/soctherm.c static int get_hot_temp(struct thermal_zone_device *tz, int *trip, int *temp) tz 727 drivers/thermal/tegra/soctherm.c ntrips = of_thermal_get_ntrips(tz); tz 732 drivers/thermal/tegra/soctherm.c ret = tz->ops->get_trip_type(tz, i, &type); tz 736 drivers/thermal/tegra/soctherm.c ret = tz->ops->get_trip_temp(tz, i, temp); tz 771 drivers/thermal/tegra/soctherm.c struct thermal_zone_device *tz) tz 780 drivers/thermal/tegra/soctherm.c if (tz->ops->get_crit_temp(tz, &temperature)) tz 792 drivers/thermal/tegra/soctherm.c ret = get_hot_temp(tz, &trip, &temperature); tz 806 drivers/thermal/tegra/soctherm.c if (get_thermal_instance(tz, cdev, trip)) tz 871 drivers/thermal/tegra/soctherm.c struct thermal_zone_device *tz; tz 895 drivers/thermal/tegra/soctherm.c tz = ts->thermctl_tzs[TEGRA124_SOCTHERM_SENSOR_CPU]; tz 896 drivers/thermal/tegra/soctherm.c thermal_zone_device_update(tz, tz 901 drivers/thermal/tegra/soctherm.c tz = ts->thermctl_tzs[TEGRA124_SOCTHERM_SENSOR_GPU]; tz 902 drivers/thermal/tegra/soctherm.c thermal_zone_device_update(tz, tz 907 drivers/thermal/tegra/soctherm.c tz = ts->thermctl_tzs[TEGRA124_SOCTHERM_SENSOR_PLLX]; tz 908 drivers/thermal/tegra/soctherm.c thermal_zone_device_update(tz, tz 913 drivers/thermal/tegra/soctherm.c tz = ts->thermctl_tzs[TEGRA124_SOCTHERM_SENSOR_MEM]; tz 914 drivers/thermal/tegra/soctherm.c thermal_zone_device_update(tz, tz 2235 drivers/thermal/tegra/soctherm.c zone->tz = z; tz 2293 drivers/thermal/tegra/soctherm.c struct thermal_zone_device *tz; tz 2295 drivers/thermal/tegra/soctherm.c tz = tegra->thermctl_tzs[soc->ttgs[i]->id]; tz 2296 drivers/thermal/tegra/soctherm.c err = tegra_soctherm_set_hwtrips(dev, soc->ttgs[i], tz); tz 81 drivers/thermal/thermal_core.c static void bind_previous_governor(struct thermal_zone_device *tz, tz 84 drivers/thermal/thermal_core.c if (tz->governor && tz->governor->bind_to_tz) { tz 85 drivers/thermal/thermal_core.c if (tz->governor->bind_to_tz(tz)) { tz 86 drivers/thermal/thermal_core.c dev_err(&tz->device, tz 88 drivers/thermal/thermal_core.c failed_gov_name, tz->governor->name, tz->type); tz 89 drivers/thermal/thermal_core.c tz->governor = NULL; tz 103 drivers/thermal/thermal_core.c static int thermal_set_governor(struct thermal_zone_device *tz, tz 108 drivers/thermal/thermal_core.c if (tz->governor && tz->governor->unbind_from_tz) tz 109 drivers/thermal/thermal_core.c tz->governor->unbind_from_tz(tz); tz 112 drivers/thermal/thermal_core.c ret = new_gov->bind_to_tz(tz); tz 114 drivers/thermal/thermal_core.c bind_previous_governor(tz, new_gov->name); tz 120 drivers/thermal/thermal_core.c tz->governor = new_gov; tz 205 drivers/thermal/thermal_core.c int thermal_zone_device_set_policy(struct thermal_zone_device *tz, tz 212 drivers/thermal/thermal_core.c mutex_lock(&tz->lock); tz 218 drivers/thermal/thermal_core.c ret = thermal_set_governor(tz, gov); tz 221 drivers/thermal/thermal_core.c mutex_unlock(&tz->lock); tz 295 drivers/thermal/thermal_core.c static void thermal_zone_device_set_polling(struct thermal_zone_device *tz, tz 300 drivers/thermal/thermal_core.c &tz->poll_queue, tz 304 drivers/thermal/thermal_core.c &tz->poll_queue, tz 307 drivers/thermal/thermal_core.c cancel_delayed_work(&tz->poll_queue); tz 310 drivers/thermal/thermal_core.c static void monitor_thermal_zone(struct thermal_zone_device *tz) tz 312 drivers/thermal/thermal_core.c mutex_lock(&tz->lock); tz 314 drivers/thermal/thermal_core.c if (tz->passive) tz 315 drivers/thermal/thermal_core.c thermal_zone_device_set_polling(tz, tz->passive_delay); tz 316 drivers/thermal/thermal_core.c else if (tz->polling_delay) tz 317 drivers/thermal/thermal_core.c thermal_zone_device_set_polling(tz, tz->polling_delay); tz 319 drivers/thermal/thermal_core.c thermal_zone_device_set_polling(tz, 0); tz 321 drivers/thermal/thermal_core.c mutex_unlock(&tz->lock); tz 324 drivers/thermal/thermal_core.c static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) tz 326 drivers/thermal/thermal_core.c tz->governor ? tz->governor->throttle(tz, trip) : tz 327 drivers/thermal/thermal_core.c def_governor->throttle(tz, trip); tz 378 drivers/thermal/thermal_core.c static void handle_critical_trips(struct thermal_zone_device *tz, tz 383 drivers/thermal/thermal_core.c tz->ops->get_trip_temp(tz, trip, &trip_temp); tz 386 drivers/thermal/thermal_core.c if (trip_temp <= 0 || tz->temperature < trip_temp) tz 389 drivers/thermal/thermal_core.c trace_thermal_zone_trip(tz, trip, trip_type); tz 391 drivers/thermal/thermal_core.c if (tz->ops->notify) tz 392 drivers/thermal/thermal_core.c tz->ops->notify(tz, trip, trip_type); tz 395 drivers/thermal/thermal_core.c dev_emerg(&tz->device, tz 397 drivers/thermal/thermal_core.c tz->temperature / 1000); tz 412 drivers/thermal/thermal_core.c static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) tz 417 drivers/thermal/thermal_core.c if (test_bit(trip, &tz->trips_disabled)) tz 420 drivers/thermal/thermal_core.c tz->ops->get_trip_type(tz, trip, &type); tz 423 drivers/thermal/thermal_core.c handle_critical_trips(tz, trip, type); tz 425 drivers/thermal/thermal_core.c handle_non_critical_trips(tz, trip); tz 430 drivers/thermal/thermal_core.c monitor_thermal_zone(tz); tz 433 drivers/thermal/thermal_core.c static void update_temperature(struct thermal_zone_device *tz) tz 437 drivers/thermal/thermal_core.c ret = thermal_zone_get_temp(tz, &temp); tz 440 drivers/thermal/thermal_core.c dev_warn(&tz->device, tz 446 drivers/thermal/thermal_core.c mutex_lock(&tz->lock); tz 447 drivers/thermal/thermal_core.c tz->last_temperature = tz->temperature; tz 448 drivers/thermal/thermal_core.c tz->temperature = temp; tz 449 drivers/thermal/thermal_core.c mutex_unlock(&tz->lock); tz 451 drivers/thermal/thermal_core.c trace_thermal_temperature(tz); tz 452 drivers/thermal/thermal_core.c if (tz->last_temperature == THERMAL_TEMP_INVALID) tz 453 drivers/thermal/thermal_core.c dev_dbg(&tz->device, "last_temperature N/A, current_temperature=%d\n", tz 454 drivers/thermal/thermal_core.c tz->temperature); tz 456 drivers/thermal/thermal_core.c dev_dbg(&tz->device, "last_temperature=%d, current_temperature=%d\n", tz 457 drivers/thermal/thermal_core.c tz->last_temperature, tz->temperature); tz 460 drivers/thermal/thermal_core.c static void thermal_zone_device_init(struct thermal_zone_device *tz) tz 463 drivers/thermal/thermal_core.c tz->temperature = THERMAL_TEMP_INVALID; tz 464 drivers/thermal/thermal_core.c list_for_each_entry(pos, &tz->thermal_instances, tz_node) tz 468 drivers/thermal/thermal_core.c static void thermal_zone_device_reset(struct thermal_zone_device *tz) tz 470 drivers/thermal/thermal_core.c tz->passive = 0; tz 471 drivers/thermal/thermal_core.c thermal_zone_device_init(tz); tz 474 drivers/thermal/thermal_core.c void thermal_zone_device_update(struct thermal_zone_device *tz, tz 482 drivers/thermal/thermal_core.c if (!tz->ops->get_temp) tz 485 drivers/thermal/thermal_core.c update_temperature(tz); tz 487 drivers/thermal/thermal_core.c thermal_zone_set_trips(tz); tz 489 drivers/thermal/thermal_core.c tz->notify_event = event; tz 491 drivers/thermal/thermal_core.c for (count = 0; count < tz->trips; count++) tz 492 drivers/thermal/thermal_core.c handle_thermal_trip(tz, count); tz 508 drivers/thermal/thermal_core.c void thermal_notify_framework(struct thermal_zone_device *tz, int trip) tz 510 drivers/thermal/thermal_core.c handle_thermal_trip(tz, trip); tz 516 drivers/thermal/thermal_core.c struct thermal_zone_device *tz = container_of(work, struct tz 519 drivers/thermal/thermal_core.c thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); tz 542 drivers/thermal/thermal_core.c struct thermal_zone_device *tz, u32 *max_power) tz 547 drivers/thermal/thermal_core.c return cdev->ops->state2power(cdev, tz, 0, max_power); tz 563 drivers/thermal/thermal_core.c struct thermal_zone_device *tz, u32 *min_power) tz 575 drivers/thermal/thermal_core.c return cdev->ops->state2power(cdev, tz, max_state, min_power); tz 599 drivers/thermal/thermal_core.c ret = cdev->ops->power2state(cdev, instance->tz, power, &state); tz 612 drivers/thermal/thermal_core.c void thermal_zone_device_rebind_exception(struct thermal_zone_device *tz, tz 624 drivers/thermal/thermal_core.c thermal_zone_bind_cooling_device(tz, THERMAL_TRIPS_NONE, cdev, tz 632 drivers/thermal/thermal_core.c void thermal_zone_device_unbind_exception(struct thermal_zone_device *tz, tz 643 drivers/thermal/thermal_core.c thermal_zone_unbind_cooling_device(tz, THERMAL_TRIPS_NONE, tz 681 drivers/thermal/thermal_core.c int thermal_zone_bind_cooling_device(struct thermal_zone_device *tz, tz 694 drivers/thermal/thermal_core.c if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) tz 698 drivers/thermal/thermal_core.c if (pos1 == tz) tz 706 drivers/thermal/thermal_core.c if (tz != pos1 || cdev != pos2) tz 723 drivers/thermal/thermal_core.c dev->tz = tz; tz 731 drivers/thermal/thermal_core.c result = ida_simple_get(&tz->ida, 0, 0, GFP_KERNEL); tz 738 drivers/thermal/thermal_core.c sysfs_create_link(&tz->device.kobj, &cdev->device.kobj, dev->name); tz 747 drivers/thermal/thermal_core.c result = device_create_file(&tz->device, &dev->attr); tz 757 drivers/thermal/thermal_core.c result = device_create_file(&tz->device, &dev->weight_attr); tz 761 drivers/thermal/thermal_core.c mutex_lock(&tz->lock); tz 763 drivers/thermal/thermal_core.c list_for_each_entry(pos, &tz->thermal_instances, tz_node) tz 764 drivers/thermal/thermal_core.c if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { tz 769 drivers/thermal/thermal_core.c list_add_tail(&dev->tz_node, &tz->thermal_instances); tz 771 drivers/thermal/thermal_core.c atomic_set(&tz->need_update, 1); tz 774 drivers/thermal/thermal_core.c mutex_unlock(&tz->lock); tz 779 drivers/thermal/thermal_core.c device_remove_file(&tz->device, &dev->weight_attr); tz 781 drivers/thermal/thermal_core.c device_remove_file(&tz->device, &dev->attr); tz 783 drivers/thermal/thermal_core.c sysfs_remove_link(&tz->device.kobj, dev->name); tz 785 drivers/thermal/thermal_core.c ida_simple_remove(&tz->ida, dev->id); tz 806 drivers/thermal/thermal_core.c int thermal_zone_unbind_cooling_device(struct thermal_zone_device *tz, tz 812 drivers/thermal/thermal_core.c mutex_lock(&tz->lock); tz 814 drivers/thermal/thermal_core.c list_for_each_entry_safe(pos, next, &tz->thermal_instances, tz_node) { tz 815 drivers/thermal/thermal_core.c if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { tz 819 drivers/thermal/thermal_core.c mutex_unlock(&tz->lock); tz 824 drivers/thermal/thermal_core.c mutex_unlock(&tz->lock); tz 829 drivers/thermal/thermal_core.c device_remove_file(&tz->device, &pos->weight_attr); tz 830 drivers/thermal/thermal_core.c device_remove_file(&tz->device, &pos->attr); tz 831 drivers/thermal/thermal_core.c sysfs_remove_link(&tz->device.kobj, pos->name); tz 832 drivers/thermal/thermal_core.c ida_simple_remove(&tz->ida, pos->id); tz 840 drivers/thermal/thermal_core.c struct thermal_zone_device *tz; tz 845 drivers/thermal/thermal_core.c tz = to_thermal_zone(dev); tz 846 drivers/thermal/thermal_core.c thermal_zone_destroy_device_groups(tz); tz 847 drivers/thermal/thermal_core.c kfree(tz); tz 861 drivers/thermal/thermal_core.c void print_bind_err_msg(struct thermal_zone_device *tz, tz 864 drivers/thermal/thermal_core.c dev_err(&tz->device, "binding zone %s with cdev %s failed:%d\n", tz 865 drivers/thermal/thermal_core.c tz->type, cdev->type, ret); tz 868 drivers/thermal/thermal_core.c static void __bind(struct thermal_zone_device *tz, int mask, tz 875 drivers/thermal/thermal_core.c for (i = 0; i < tz->trips; i++) { tz 885 drivers/thermal/thermal_core.c ret = thermal_zone_bind_cooling_device(tz, i, cdev, tz 889 drivers/thermal/thermal_core.c print_bind_err_msg(tz, cdev, ret); tz 1104 drivers/thermal/thermal_core.c static void __unbind(struct thermal_zone_device *tz, int mask, tz 1109 drivers/thermal/thermal_core.c for (i = 0; i < tz->trips; i++) tz 1111 drivers/thermal/thermal_core.c thermal_zone_unbind_cooling_device(tz, i, cdev); tz 1125 drivers/thermal/thermal_core.c struct thermal_zone_device *tz; tz 1143 drivers/thermal/thermal_core.c list_for_each_entry(tz, &thermal_tz_list, node) { tz 1144 drivers/thermal/thermal_core.c if (tz->ops->unbind) { tz 1145 drivers/thermal/thermal_core.c tz->ops->unbind(tz, cdev); tz 1149 drivers/thermal/thermal_core.c if (!tz->tzp || !tz->tzp->tbp) tz 1152 drivers/thermal/thermal_core.c tzp = tz->tzp; tz 1155 drivers/thermal/thermal_core.c __unbind(tz, tzp->tbp[i].trip_mask, cdev); tz 1170 drivers/thermal/thermal_core.c static void bind_tz(struct thermal_zone_device *tz) tz 1174 drivers/thermal/thermal_core.c const struct thermal_zone_params *tzp = tz->tzp; tz 1176 drivers/thermal/thermal_core.c if (!tzp && !tz->ops->bind) tz 1182 drivers/thermal/thermal_core.c if (tz->ops->bind) { tz 1184 drivers/thermal/thermal_core.c ret = tz->ops->bind(tz, pos); tz 1186 drivers/thermal/thermal_core.c print_bind_err_msg(tz, pos, ret); tz 1198 drivers/thermal/thermal_core.c if (tzp->tbp[i].match(tz, pos)) tz 1201 drivers/thermal/thermal_core.c __bind(tz, tzp->tbp[i].trip_mask, pos, tz 1240 drivers/thermal/thermal_core.c struct thermal_zone_device *tz; tz 1272 drivers/thermal/thermal_core.c tz = kzalloc(sizeof(*tz), GFP_KERNEL); tz 1273 drivers/thermal/thermal_core.c if (!tz) tz 1276 drivers/thermal/thermal_core.c INIT_LIST_HEAD(&tz->thermal_instances); tz 1277 drivers/thermal/thermal_core.c ida_init(&tz->ida); tz 1278 drivers/thermal/thermal_core.c mutex_init(&tz->lock); tz 1285 drivers/thermal/thermal_core.c tz->id = id; tz 1286 drivers/thermal/thermal_core.c strlcpy(tz->type, type, sizeof(tz->type)); tz 1287 drivers/thermal/thermal_core.c tz->ops = ops; tz 1288 drivers/thermal/thermal_core.c tz->tzp = tzp; tz 1289 drivers/thermal/thermal_core.c tz->device.class = &thermal_class; tz 1290 drivers/thermal/thermal_core.c tz->devdata = devdata; tz 1291 drivers/thermal/thermal_core.c tz->trips = trips; tz 1292 drivers/thermal/thermal_core.c tz->passive_delay = passive_delay; tz 1293 drivers/thermal/thermal_core.c tz->polling_delay = polling_delay; tz 1297 drivers/thermal/thermal_core.c result = thermal_zone_create_device_groups(tz, mask); tz 1302 drivers/thermal/thermal_core.c atomic_set(&tz->need_update, 1); tz 1304 drivers/thermal/thermal_core.c dev_set_name(&tz->device, "thermal_zone%d", tz->id); tz 1305 drivers/thermal/thermal_core.c result = device_register(&tz->device); tz 1310 drivers/thermal/thermal_core.c if (tz->ops->get_trip_type(tz, count, &trip_type)) tz 1311 drivers/thermal/thermal_core.c set_bit(count, &tz->trips_disabled); tz 1312 drivers/thermal/thermal_core.c if (tz->ops->get_trip_temp(tz, count, &trip_temp)) tz 1313 drivers/thermal/thermal_core.c set_bit(count, &tz->trips_disabled); tz 1316 drivers/thermal/thermal_core.c set_bit(count, &tz->trips_disabled); tz 1322 drivers/thermal/thermal_core.c if (tz->tzp) tz 1323 drivers/thermal/thermal_core.c governor = __find_governor(tz->tzp->governor_name); tz 1327 drivers/thermal/thermal_core.c result = thermal_set_governor(tz, governor); tz 1335 drivers/thermal/thermal_core.c if (!tz->tzp || !tz->tzp->no_hwmon) { tz 1336 drivers/thermal/thermal_core.c result = thermal_add_hwmon_sysfs(tz); tz 1342 drivers/thermal/thermal_core.c list_add_tail(&tz->node, &thermal_tz_list); tz 1346 drivers/thermal/thermal_core.c bind_tz(tz); tz 1348 drivers/thermal/thermal_core.c INIT_DELAYED_WORK(&tz->poll_queue, thermal_zone_device_check); tz 1350 drivers/thermal/thermal_core.c thermal_zone_device_reset(tz); tz 1352 drivers/thermal/thermal_core.c if (atomic_cmpxchg(&tz->need_update, 1, 0)) tz 1353 drivers/thermal/thermal_core.c thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); tz 1355 drivers/thermal/thermal_core.c return tz; tz 1358 drivers/thermal/thermal_core.c device_del(&tz->device); tz 1360 drivers/thermal/thermal_core.c put_device(&tz->device); tz 1361 drivers/thermal/thermal_core.c tz = NULL; tz 1365 drivers/thermal/thermal_core.c kfree(tz); tz 1374 drivers/thermal/thermal_core.c void thermal_zone_device_unregister(struct thermal_zone_device *tz) tz 1381 drivers/thermal/thermal_core.c if (!tz) tz 1384 drivers/thermal/thermal_core.c tzp = tz->tzp; tz 1388 drivers/thermal/thermal_core.c if (pos == tz) tz 1390 drivers/thermal/thermal_core.c if (pos != tz) { tz 1395 drivers/thermal/thermal_core.c list_del(&tz->node); tz 1399 drivers/thermal/thermal_core.c if (tz->ops->unbind) { tz 1400 drivers/thermal/thermal_core.c tz->ops->unbind(tz, cdev); tz 1409 drivers/thermal/thermal_core.c __unbind(tz, tzp->tbp[i].trip_mask, cdev); tz 1417 drivers/thermal/thermal_core.c cancel_delayed_work_sync(&tz->poll_queue); tz 1419 drivers/thermal/thermal_core.c thermal_set_governor(tz, NULL); tz 1421 drivers/thermal/thermal_core.c thermal_remove_hwmon_sysfs(tz); tz 1422 drivers/thermal/thermal_core.c ida_simple_remove(&thermal_tz_ida, tz->id); tz 1423 drivers/thermal/thermal_core.c ida_destroy(&tz->ida); tz 1424 drivers/thermal/thermal_core.c mutex_destroy(&tz->lock); tz 1425 drivers/thermal/thermal_core.c device_unregister(&tz->device); tz 1481 drivers/thermal/thermal_core.c int thermal_generate_netlink_event(struct thermal_zone_device *tz, tz 1492 drivers/thermal/thermal_core.c if (!tz) tz 1529 drivers/thermal/thermal_core.c thermal_event->orig = tz->id; tz 1538 drivers/thermal/thermal_core.c dev_err(&tz->device, "Failed to send netlink event:%d", result); tz 1561 drivers/thermal/thermal_core.c struct thermal_zone_device *tz; tz 1574 drivers/thermal/thermal_core.c list_for_each_entry(tz, &thermal_tz_list, node) { tz 1576 drivers/thermal/thermal_core.c if (tz->ops->get_mode) tz 1577 drivers/thermal/thermal_core.c tz->ops->get_mode(tz, &tz_mode); tz 1582 drivers/thermal/thermal_core.c thermal_zone_device_init(tz); tz 1583 drivers/thermal/thermal_core.c thermal_zone_device_update(tz, tz 41 drivers/thermal/thermal_core.h struct thermal_zone_device *tz; tz 103 drivers/thermal/thermal_core.h static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) tz 107 drivers/thermal/thermal_core.h static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, tz 113 drivers/thermal/thermal_core.h of_thermal_get_trip_points(struct thermal_zone_device *tz) tz 25 drivers/thermal/thermal_helpers.c int get_tz_trend(struct thermal_zone_device *tz, int trip) tz 29 drivers/thermal/thermal_helpers.c if (tz->emul_temperature || !tz->ops->get_trend || tz 30 drivers/thermal/thermal_helpers.c tz->ops->get_trend(tz, trip, &trend)) { tz 31 drivers/thermal/thermal_helpers.c if (tz->temperature > tz->last_temperature) tz 33 drivers/thermal/thermal_helpers.c else if (tz->temperature < tz->last_temperature) tz 44 drivers/thermal/thermal_helpers.c get_thermal_instance(struct thermal_zone_device *tz, tz 50 drivers/thermal/thermal_helpers.c mutex_lock(&tz->lock); tz 53 drivers/thermal/thermal_helpers.c list_for_each_entry(pos, &tz->thermal_instances, tz_node) { tz 54 drivers/thermal/thermal_helpers.c if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { tz 61 drivers/thermal/thermal_helpers.c mutex_unlock(&tz->lock); tz 77 drivers/thermal/thermal_helpers.c int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) tz 84 drivers/thermal/thermal_helpers.c if (!tz || IS_ERR(tz) || !tz->ops->get_temp) tz 87 drivers/thermal/thermal_helpers.c mutex_lock(&tz->lock); tz 89 drivers/thermal/thermal_helpers.c ret = tz->ops->get_temp(tz, temp); tz 91 drivers/thermal/thermal_helpers.c if (IS_ENABLED(CONFIG_THERMAL_EMULATION) && tz->emul_temperature) { tz 92 drivers/thermal/thermal_helpers.c for (count = 0; count < tz->trips; count++) { tz 93 drivers/thermal/thermal_helpers.c ret = tz->ops->get_trip_type(tz, count, &type); tz 95 drivers/thermal/thermal_helpers.c ret = tz->ops->get_trip_temp(tz, count, tz 107 drivers/thermal/thermal_helpers.c *temp = tz->emul_temperature; tz 110 drivers/thermal/thermal_helpers.c mutex_unlock(&tz->lock); tz 116 drivers/thermal/thermal_helpers.c void thermal_zone_set_trips(struct thermal_zone_device *tz) tz 123 drivers/thermal/thermal_helpers.c mutex_lock(&tz->lock); tz 125 drivers/thermal/thermal_helpers.c if (!tz->ops->set_trips || !tz->ops->get_trip_hyst) tz 128 drivers/thermal/thermal_helpers.c for (i = 0; i < tz->trips; i++) { tz 131 drivers/thermal/thermal_helpers.c tz->ops->get_trip_temp(tz, i, &trip_temp); tz 132 drivers/thermal/thermal_helpers.c tz->ops->get_trip_hyst(tz, i, &hysteresis); tz 136 drivers/thermal/thermal_helpers.c if (trip_low < tz->temperature && trip_low > low) tz 139 drivers/thermal/thermal_helpers.c if (trip_temp > tz->temperature && trip_temp < high) tz 144 drivers/thermal/thermal_helpers.c if (tz->prev_low_trip == low && tz->prev_high_trip == high) tz 147 drivers/thermal/thermal_helpers.c tz->prev_low_trip = low; tz 148 drivers/thermal/thermal_helpers.c tz->prev_high_trip = high; tz 150 drivers/thermal/thermal_helpers.c dev_dbg(&tz->device, tz 157 drivers/thermal/thermal_helpers.c ret = tz->ops->set_trips(tz, low, high); tz 159 drivers/thermal/thermal_helpers.c dev_err(&tz->device, "Failed to set trips: %d\n", ret); tz 162 drivers/thermal/thermal_helpers.c mutex_unlock(&tz->lock); tz 181 drivers/thermal/thermal_helpers.c instance->tz->id, instance->target); tz 205 drivers/thermal/thermal_helpers.c int thermal_zone_get_slope(struct thermal_zone_device *tz) tz 207 drivers/thermal/thermal_helpers.c if (tz && tz->tzp) tz 208 drivers/thermal/thermal_helpers.c return tz->tzp->slope; tz 220 drivers/thermal/thermal_helpers.c int thermal_zone_get_offset(struct thermal_zone_device *tz) tz 222 drivers/thermal/thermal_helpers.c if (tz && tz->tzp) tz 223 drivers/thermal/thermal_helpers.c return tz->tzp->offset; tz 37 drivers/thermal/thermal_hwmon.c struct thermal_zone_device *tz; tz 56 drivers/thermal/thermal_hwmon.c struct thermal_zone_device *tz = temp->tz; tz 58 drivers/thermal/thermal_hwmon.c ret = thermal_zone_get_temp(tz, &temperature); tz 74 drivers/thermal/thermal_hwmon.c struct thermal_zone_device *tz = temp->tz; tz 78 drivers/thermal/thermal_hwmon.c ret = tz->ops->get_crit_temp(tz, &temperature); tz 87 drivers/thermal/thermal_hwmon.c thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) tz 94 drivers/thermal/thermal_hwmon.c strcpy(type, tz->type); tz 109 drivers/thermal/thermal_hwmon.c const struct thermal_zone_device *tz) tz 115 drivers/thermal/thermal_hwmon.c if (temp->tz == tz) { tz 124 drivers/thermal/thermal_hwmon.c static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) tz 127 drivers/thermal/thermal_hwmon.c return tz->ops->get_crit_temp && !tz->ops->get_crit_temp(tz, &temp); tz 130 drivers/thermal/thermal_hwmon.c int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) tz 137 drivers/thermal/thermal_hwmon.c hwmon = thermal_hwmon_lookup_by_type(tz); tz 148 drivers/thermal/thermal_hwmon.c strlcpy(hwmon->type, tz->type, THERMAL_NAME_LENGTH); tz 150 drivers/thermal/thermal_hwmon.c hwmon->device = hwmon_device_register_with_info(&tz->device, hwmon->type, tz 164 drivers/thermal/thermal_hwmon.c temp->tz = tz; tz 177 drivers/thermal/thermal_hwmon.c if (thermal_zone_crit_temp_valid(tz)) { tz 214 drivers/thermal/thermal_hwmon.c void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) tz 219 drivers/thermal/thermal_hwmon.c hwmon = thermal_hwmon_lookup_by_type(tz); tz 222 drivers/thermal/thermal_hwmon.c dev_dbg(&tz->device, "hwmon device lookup failed!\n"); tz 226 drivers/thermal/thermal_hwmon.c temp = thermal_hwmon_lookup_temp(hwmon, tz); tz 229 drivers/thermal/thermal_hwmon.c dev_dbg(&tz->device, "temperature input lookup failed!\n"); tz 234 drivers/thermal/thermal_hwmon.c if (thermal_zone_crit_temp_valid(tz)) tz 19 drivers/thermal/thermal_hwmon.h int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz); tz 20 drivers/thermal/thermal_hwmon.h void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz); tz 23 drivers/thermal/thermal_hwmon.h thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) tz 29 drivers/thermal/thermal_hwmon.h thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) tz 29 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 31 drivers/thermal/thermal_sysfs.c return sprintf(buf, "%s\n", tz->type); tz 37 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 40 drivers/thermal/thermal_sysfs.c ret = thermal_zone_get_temp(tz, &temperature); tz 51 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 55 drivers/thermal/thermal_sysfs.c if (!tz->ops->get_mode) tz 58 drivers/thermal/thermal_sysfs.c result = tz->ops->get_mode(tz, &mode); tz 70 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 73 drivers/thermal/thermal_sysfs.c if (!tz->ops->set_mode) tz 77 drivers/thermal/thermal_sysfs.c result = tz->ops->set_mode(tz, THERMAL_DEVICE_ENABLED); tz 79 drivers/thermal/thermal_sysfs.c result = tz->ops->set_mode(tz, THERMAL_DEVICE_DISABLED); tz 93 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 97 drivers/thermal/thermal_sysfs.c if (!tz->ops->get_trip_type) tz 103 drivers/thermal/thermal_sysfs.c result = tz->ops->get_trip_type(tz, trip, &type); tz 125 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 129 drivers/thermal/thermal_sysfs.c if (!tz->ops->set_trip_temp) tz 138 drivers/thermal/thermal_sysfs.c ret = tz->ops->set_trip_temp(tz, trip, temperature); tz 142 drivers/thermal/thermal_sysfs.c thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); tz 151 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 155 drivers/thermal/thermal_sysfs.c if (!tz->ops->get_trip_temp) tz 161 drivers/thermal/thermal_sysfs.c ret = tz->ops->get_trip_temp(tz, trip, &temperature); tz 173 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 177 drivers/thermal/thermal_sysfs.c if (!tz->ops->set_trip_hyst) tz 191 drivers/thermal/thermal_sysfs.c ret = tz->ops->set_trip_hyst(tz, trip, temperature); tz 194 drivers/thermal/thermal_sysfs.c thermal_zone_set_trips(tz); tz 203 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 207 drivers/thermal/thermal_sysfs.c if (!tz->ops->get_trip_hyst) tz 213 drivers/thermal/thermal_sysfs.c ret = tz->ops->get_trip_hyst(tz, trip, &temperature); tz 222 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 234 drivers/thermal/thermal_sysfs.c if (state && !tz->forced_passive) { tz 235 drivers/thermal/thermal_sysfs.c if (!tz->passive_delay) tz 236 drivers/thermal/thermal_sysfs.c tz->passive_delay = 1000; tz 237 drivers/thermal/thermal_sysfs.c thermal_zone_device_rebind_exception(tz, "Processor", tz 239 drivers/thermal/thermal_sysfs.c } else if (!state && tz->forced_passive) { tz 240 drivers/thermal/thermal_sysfs.c tz->passive_delay = 0; tz 241 drivers/thermal/thermal_sysfs.c thermal_zone_device_unbind_exception(tz, "Processor", tz 245 drivers/thermal/thermal_sysfs.c tz->forced_passive = state; tz 247 drivers/thermal/thermal_sysfs.c thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); tz 256 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 258 drivers/thermal/thermal_sysfs.c return sprintf(buf, "%d\n", tz->forced_passive); tz 265 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 271 drivers/thermal/thermal_sysfs.c ret = thermal_zone_device_set_policy(tz, name); tz 281 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 283 drivers/thermal/thermal_sysfs.c return sprintf(buf, "%s\n", tz->governor->name); tz 298 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 305 drivers/thermal/thermal_sysfs.c if (!tz->ops->set_emul_temp) { tz 306 drivers/thermal/thermal_sysfs.c mutex_lock(&tz->lock); tz 307 drivers/thermal/thermal_sysfs.c tz->emul_temperature = temperature; tz 308 drivers/thermal/thermal_sysfs.c mutex_unlock(&tz->lock); tz 310 drivers/thermal/thermal_sysfs.c ret = tz->ops->set_emul_temp(tz, temperature); tz 314 drivers/thermal/thermal_sysfs.c thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); tz 325 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 327 drivers/thermal/thermal_sysfs.c if (tz->tzp) tz 328 drivers/thermal/thermal_sysfs.c return sprintf(buf, "%u\n", tz->tzp->sustainable_power); tz 337 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); tz 340 drivers/thermal/thermal_sysfs.c if (!tz->tzp) tz 346 drivers/thermal/thermal_sysfs.c tz->tzp->sustainable_power = sustainable_power; tz 356 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); \ tz 358 drivers/thermal/thermal_sysfs.c if (tz->tzp) \ tz 359 drivers/thermal/thermal_sysfs.c return sprintf(buf, "%d\n", tz->tzp->name); \ tz 368 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz = to_thermal_zone(dev); \ tz 371 drivers/thermal/thermal_sysfs.c if (!tz->tzp) \ tz 377 drivers/thermal/thermal_sysfs.c tz->tzp->name = value; \ tz 442 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz; tz 444 drivers/thermal/thermal_sysfs.c tz = container_of(dev, struct thermal_zone_device, device); tz 446 drivers/thermal/thermal_sysfs.c if (tz->ops->get_mode) tz 468 drivers/thermal/thermal_sysfs.c struct thermal_zone_device *tz; tz 472 drivers/thermal/thermal_sysfs.c tz = container_of(dev, struct thermal_zone_device, device); tz 474 drivers/thermal/thermal_sysfs.c for (count = 0; count < tz->trips && !passive; count++) { tz 475 drivers/thermal/thermal_sysfs.c tz->ops->get_trip_type(tz, count, &trip_type); tz 509 drivers/thermal/thermal_sysfs.c static int create_trip_attrs(struct thermal_zone_device *tz, int mask) tz 515 drivers/thermal/thermal_sysfs.c if (tz->trips <= 0) tz 518 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs = kcalloc(tz->trips, sizeof(*tz->trip_type_attrs), tz 520 drivers/thermal/thermal_sysfs.c if (!tz->trip_type_attrs) tz 523 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), tz 525 drivers/thermal/thermal_sysfs.c if (!tz->trip_temp_attrs) { tz 526 drivers/thermal/thermal_sysfs.c kfree(tz->trip_type_attrs); tz 530 drivers/thermal/thermal_sysfs.c if (tz->ops->get_trip_hyst) { tz 531 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs = kcalloc(tz->trips, tz 532 drivers/thermal/thermal_sysfs.c sizeof(*tz->trip_hyst_attrs), tz 534 drivers/thermal/thermal_sysfs.c if (!tz->trip_hyst_attrs) { tz 535 drivers/thermal/thermal_sysfs.c kfree(tz->trip_type_attrs); tz 536 drivers/thermal/thermal_sysfs.c kfree(tz->trip_temp_attrs); tz 541 drivers/thermal/thermal_sysfs.c attrs = kcalloc(tz->trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); tz 543 drivers/thermal/thermal_sysfs.c kfree(tz->trip_type_attrs); tz 544 drivers/thermal/thermal_sysfs.c kfree(tz->trip_temp_attrs); tz 545 drivers/thermal/thermal_sysfs.c if (tz->ops->get_trip_hyst) tz 546 drivers/thermal/thermal_sysfs.c kfree(tz->trip_hyst_attrs); tz 550 drivers/thermal/thermal_sysfs.c for (indx = 0; indx < tz->trips; indx++) { tz 552 drivers/thermal/thermal_sysfs.c snprintf(tz->trip_type_attrs[indx].name, THERMAL_NAME_LENGTH, tz 555 drivers/thermal/thermal_sysfs.c sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr); tz 556 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs[indx].attr.attr.name = tz 557 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs[indx].name; tz 558 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; tz 559 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs[indx].attr.show = trip_point_type_show; tz 560 drivers/thermal/thermal_sysfs.c attrs[indx] = &tz->trip_type_attrs[indx].attr.attr; tz 563 drivers/thermal/thermal_sysfs.c snprintf(tz->trip_temp_attrs[indx].name, THERMAL_NAME_LENGTH, tz 566 drivers/thermal/thermal_sysfs.c sysfs_attr_init(&tz->trip_temp_attrs[indx].attr.attr); tz 567 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.attr.name = tz 568 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].name; tz 569 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; tz 570 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.show = trip_point_temp_show; tz 573 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.attr.mode |= S_IWUSR; tz 574 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.store = tz 577 drivers/thermal/thermal_sysfs.c attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; tz 580 drivers/thermal/thermal_sysfs.c if (!tz->ops->get_trip_hyst) tz 582 drivers/thermal/thermal_sysfs.c snprintf(tz->trip_hyst_attrs[indx].name, THERMAL_NAME_LENGTH, tz 585 drivers/thermal/thermal_sysfs.c sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr); tz 586 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.attr.name = tz 587 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].name; tz 588 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; tz 589 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show; tz 590 drivers/thermal/thermal_sysfs.c if (tz->ops->set_trip_hyst) { tz 591 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; tz 592 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.store = tz 595 drivers/thermal/thermal_sysfs.c attrs[indx + tz->trips * 2] = tz 596 drivers/thermal/thermal_sysfs.c &tz->trip_hyst_attrs[indx].attr.attr; tz 598 drivers/thermal/thermal_sysfs.c attrs[tz->trips * 3] = NULL; tz 600 drivers/thermal/thermal_sysfs.c tz->trips_attribute_group.attrs = attrs; tz 611 drivers/thermal/thermal_sysfs.c static void destroy_trip_attrs(struct thermal_zone_device *tz) tz 613 drivers/thermal/thermal_sysfs.c if (!tz) tz 616 drivers/thermal/thermal_sysfs.c kfree(tz->trip_type_attrs); tz 617 drivers/thermal/thermal_sysfs.c kfree(tz->trip_temp_attrs); tz 618 drivers/thermal/thermal_sysfs.c if (tz->ops->get_trip_hyst) tz 619 drivers/thermal/thermal_sysfs.c kfree(tz->trip_hyst_attrs); tz 620 drivers/thermal/thermal_sysfs.c kfree(tz->trips_attribute_group.attrs); tz 623 drivers/thermal/thermal_sysfs.c int thermal_zone_create_device_groups(struct thermal_zone_device *tz, tz 639 drivers/thermal/thermal_sysfs.c if (tz->trips) { tz 640 drivers/thermal/thermal_sysfs.c result = create_trip_attrs(tz, mask); tz 647 drivers/thermal/thermal_sysfs.c groups[size - 2] = &tz->trips_attribute_group; tz 650 drivers/thermal/thermal_sysfs.c tz->device.groups = groups; tz 655 drivers/thermal/thermal_sysfs.c void thermal_zone_destroy_device_groups(struct thermal_zone_device *tz) tz 657 drivers/thermal/thermal_sysfs.c if (!tz) tz 660 drivers/thermal/thermal_sysfs.c if (tz->trips) tz 661 drivers/thermal/thermal_sysfs.c destroy_trip_attrs(tz); tz 663 drivers/thermal/thermal_sysfs.c kfree(tz->device.groups); tz 25 drivers/thermal/user_space.c static int notify_user_space(struct thermal_zone_device *tz, int trip) tz 30 drivers/thermal/user_space.c mutex_lock(&tz->lock); tz 31 drivers/thermal/user_space.c thermal_prop[0] = kasprintf(GFP_KERNEL, "NAME=%s", tz->type); tz 32 drivers/thermal/user_space.c thermal_prop[1] = kasprintf(GFP_KERNEL, "TEMP=%d", tz->temperature); tz 34 drivers/thermal/user_space.c thermal_prop[3] = kasprintf(GFP_KERNEL, "EVENT=%d", tz->notify_event); tz 36 drivers/thermal/user_space.c kobject_uevent_env(&tz->device.kobj, KOBJ_CHANGE, thermal_prop); tz 39 drivers/thermal/user_space.c mutex_unlock(&tz->lock); tz 21 fs/isofs/util.c int year, month, day, hour, minute, second, tz; tz 30 fs/isofs/util.c if (flag == 0) tz = p[6]; /* High sierra has no time zone */ tz 31 fs/isofs/util.c else tz = 0; tz 39 fs/isofs/util.c if (tz & 0x80) tz 40 fs/isofs/util.c tz |= (-1 << 8); tz 67 fs/isofs/util.c if (-52 <= tz && tz <= 52) tz 68 fs/isofs/util.c crtime -= tz * 15 * 60; tz 733 include/linux/compat.h struct timezone __user *tz); tz 735 include/linux/compat.h struct timezone __user *tz); tz 1484 include/linux/lsm_hooks.h int (*settime)(const struct timespec64 *ts, const struct timezone *tz); tz 134 include/linux/security.h extern int cap_settime(const struct timespec64 *ts, const struct timezone *tz); tz 276 include/linux/security.h int security_settime64(const struct timespec64 *ts, const struct timezone *tz); tz 561 include/linux/security.h const struct timezone *tz) tz 563 include/linux/security.h return cap_settime(ts, tz); tz 736 include/linux/syscalls.h struct timezone __user *tz); tz 738 include/linux/syscalls.h struct timezone __user *tz); tz 238 include/linux/thermal.h int (*bind_to_tz)(struct thermal_zone_device *tz); tz 239 include/linux/thermal.h void (*unbind_from_tz)(struct thermal_zone_device *tz); tz 240 include/linux/thermal.h int (*throttle)(struct thermal_zone_device *tz, int trip); tz 275 include/linux/thermal.h int (*match) (struct thermal_zone_device *tz, tz 382 include/linux/thermal.h struct thermal_zone_device *tz); tz 387 include/linux/thermal.h struct thermal_zone_device *tz); tz 398 include/linux/thermal.h struct thermal_zone_device *tz) tz 411 include/linux/thermal.h struct thermal_zone_device *tz) tz 425 include/linux/thermal.h struct thermal_zone_device *tz, u32 *max_power); tz 427 include/linux/thermal.h struct thermal_zone_device *tz, u32 *min_power); tz 457 include/linux/thermal.h int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp); tz 458 include/linux/thermal.h int thermal_zone_get_slope(struct thermal_zone_device *tz); tz 459 include/linux/thermal.h int thermal_zone_get_offset(struct thermal_zone_device *tz); tz 470 include/linux/thermal.h struct thermal_zone_device *tz, u32 *max_power) tz 473 include/linux/thermal.h struct thermal_zone_device *tz, tz 477 include/linux/thermal.h struct thermal_instance *tz, u32 power) tz 486 include/linux/thermal.h struct thermal_zone_device *tz) tz 489 include/linux/thermal.h struct thermal_zone_device *tz, int trip, tz 495 include/linux/thermal.h struct thermal_zone_device *tz, int trip, tz 498 include/linux/thermal.h static inline void thermal_zone_device_update(struct thermal_zone_device *tz, tz 501 include/linux/thermal.h static inline void thermal_zone_set_trips(struct thermal_zone_device *tz) tz 526 include/linux/thermal.h struct thermal_zone_device *tz, int *temp) tz 529 include/linux/thermal.h struct thermal_zone_device *tz) tz 532 include/linux/thermal.h struct thermal_zone_device *tz) tz 534 include/linux/thermal.h static inline int get_tz_trend(struct thermal_zone_device *tz, int trip) tz 537 include/linux/thermal.h get_thermal_instance(struct thermal_zone_device *tz, tz 542 include/linux/thermal.h static inline void thermal_notify_framework(struct thermal_zone_device *tz, tz 548 include/linux/thermal.h extern int thermal_generate_netlink_event(struct thermal_zone_device *tz, tz 551 include/linux/thermal.h static inline int thermal_generate_netlink_event(struct thermal_zone_device *tz, tz 21 include/linux/timekeeping.h const struct timezone *tz); tz 26 include/trace/events/thermal.h TP_PROTO(struct thermal_zone_device *tz), tz 28 include/trace/events/thermal.h TP_ARGS(tz), tz 31 include/trace/events/thermal.h __string(thermal_zone, tz->type) tz 38 include/trace/events/thermal.h __assign_str(thermal_zone, tz->type); tz 39 include/trace/events/thermal.h __entry->id = tz->id; tz 40 include/trace/events/thermal.h __entry->temp_prev = tz->last_temperature; tz 41 include/trace/events/thermal.h __entry->temp = tz->temperature; tz 70 include/trace/events/thermal.h TP_PROTO(struct thermal_zone_device *tz, int trip, tz 73 include/trace/events/thermal.h TP_ARGS(tz, trip, trip_type), tz 76 include/trace/events/thermal.h __string(thermal_zone, tz->type) tz 83 include/trace/events/thermal.h __assign_str(thermal_zone, tz->type); tz 84 include/trace/events/thermal.h __entry->id = tz->id; tz 11 include/trace/events/thermal_power_allocator.h TP_PROTO(struct thermal_zone_device *tz, u32 *req_power, tz 16 include/trace/events/thermal_power_allocator.h TP_ARGS(tz, req_power, total_req_power, granted_power, tz 32 include/trace/events/thermal_power_allocator.h __entry->tz_id = tz->id; tz 59 include/trace/events/thermal_power_allocator.h TP_PROTO(struct thermal_zone_device *tz, s32 err, s32 err_integral, tz 61 include/trace/events/thermal_power_allocator.h TP_ARGS(tz, err, err_integral, p, i, d, output), tz 72 include/trace/events/thermal_power_allocator.h __entry->tz_id = tz->id; tz 153 include/xen/interface/platform.h int16_t tz; tz 141 kernel/time/time.c struct timezone __user *, tz) tz 151 kernel/time/time.c if (unlikely(tz != NULL)) { tz 152 kernel/time/time.c if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) tz 169 kernel/time/time.c int do_sys_settimeofday64(const struct timespec64 *tv, const struct timezone *tz) tz 177 kernel/time/time.c error = security_settime64(tv, tz); tz 181 kernel/time/time.c if (tz) { tz 183 kernel/time/time.c if (tz->tz_minuteswest > 15*60 || tz->tz_minuteswest < -15*60) tz 186 kernel/time/time.c sys_tz = *tz; tz 200 kernel/time/time.c struct timezone __user *, tz) tz 216 kernel/time/time.c if (tz) { tz 217 kernel/time/time.c if (copy_from_user(&new_tz, tz, sizeof(*tz))) tz 221 kernel/time/time.c return do_sys_settimeofday64(tv ? &new_ts : NULL, tz ? &new_tz : NULL); tz 226 kernel/time/time.c struct timezone __user *, tz) tz 236 kernel/time/time.c if (tz) { tz 237 kernel/time/time.c if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) tz 245 kernel/time/time.c struct timezone __user *, tz) tz 261 kernel/time/time.c if (tz) { tz 262 kernel/time/time.c if (copy_from_user(&new_tz, tz, sizeof(*tz))) tz 266 kernel/time/time.c return do_sys_settimeofday64(tv ? &new_ts : NULL, tz ? &new_tz : NULL); tz 144 lib/vdso/gettimeofday.c __cvdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) tz 152 lib/vdso/gettimeofday.c return gettimeofday_fallback(tv, tz); tz 158 lib/vdso/gettimeofday.c if (unlikely(tz != NULL)) { tz 159 lib/vdso/gettimeofday.c tz->tz_minuteswest = vd[CS_HRES_COARSE].tz_minuteswest; tz 160 lib/vdso/gettimeofday.c tz->tz_dsttime = vd[CS_HRES_COARSE].tz_dsttime; tz 138 samples/timers/hpet_example.c struct timezone tz; tz 183 samples/timers/hpet_example.c gettimeofday(&stv, &tz); tz 189 samples/timers/hpet_example.c gettimeofday(&etv, &tz); tz 111 security/commoncap.c int cap_settime(const struct timespec64 *ts, const struct timezone *tz) tz 747 security/security.c int security_settime64(const struct timespec64 *ts, const struct timezone *tz) tz 749 security/security.c return call_int_hook(settime, 0, ts, tz); tz 1548 tools/include/nolibc/nolibc.h int sys_gettimeofday(struct timeval *tv, struct timezone *tz) tz 1550 tools/include/nolibc/nolibc.h return my_syscall2(__NR_gettimeofday, tv, tz); tz 1940 tools/include/nolibc/nolibc.h int gettimeofday(struct timeval *tv, struct timezone *tz) tz 1942 tools/include/nolibc/nolibc.h int ret = sys_gettimeofday(tv, tz); tz 30 tools/testing/selftests/timers/set-tz.c struct timezone tz; tz 32 tools/testing/selftests/timers/set-tz.c tz.tz_minuteswest = min; tz 33 tools/testing/selftests/timers/set-tz.c tz.tz_dsttime = dst; tz 35 tools/testing/selftests/timers/set-tz.c return settimeofday(0, &tz); tz 40 tools/testing/selftests/timers/set-tz.c struct timezone tz; tz 43 tools/testing/selftests/timers/set-tz.c memset(&tz, 0, sizeof(tz)); tz 44 tools/testing/selftests/timers/set-tz.c gettimeofday(&tv, &tz); tz 45 tools/testing/selftests/timers/set-tz.c return tz.tz_minuteswest; tz 50 tools/testing/selftests/timers/set-tz.c struct timezone tz; tz 53 tools/testing/selftests/timers/set-tz.c memset(&tz, 0, sizeof(tz)); tz 54 tools/testing/selftests/timers/set-tz.c gettimeofday(&tv, &tz); tz 55 tools/testing/selftests/timers/set-tz.c return tz.tz_dsttime; tz 90 tools/testing/selftests/vDSO/vdso_standalone_test_x86.c typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); tz 48 tools/testing/selftests/vDSO/vdso_test.c typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); tz 39 tools/testing/selftests/x86/test_vdso.c typedef long (*vgtod_t)(struct timeval *tv, struct timezone *tz); tz 129 tools/testing/selftests/x86/test_vdso.c static inline int sys_gettimeofday(struct timeval *tv, struct timezone *tz) tz 131 tools/testing/selftests/x86/test_vdso.c return syscall(__NR_gettimeofday, tv, tz); tz 55 tools/testing/selftests/x86/test_vsyscall.c typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); tz 159 tools/testing/selftests/x86/test_vsyscall.c static inline long sys_gtod(struct timeval *tv, struct timezone *tz) tz 161 tools/testing/selftests/x86/test_vsyscall.c return syscall(SYS_gettimeofday, tv, tz); tz 549 tools/thermal/tmon/tui.c static void draw_tp_line(int tz, int y) tz 554 tools/thermal/tmon/tui.c for (j = 0; j < ptdata.tzi[tz].nr_trip_pts; j++) { tz 555 tools/thermal/tmon/tui.c x = ptdata.tzi[tz].tp[j].temp / 1000; tz 557 tools/thermal/tmon/tui.c "%c%d", trip_type_to_char(ptdata.tzi[tz].tp[j].type), tz 560 tools/thermal/tmon/tui.c tz, j, ptdata.tzi[tz].tp[j].temp);