| /tools/lib/thermal/ |
| A D | thermal.c | 52 if (!tz) in for_each_thermal_zone() 55 for (i = 0; tz[i].id != -1; i++) in for_each_thermal_zone() 56 ret |= cb(&tz[i], arg); in for_each_thermal_zone() 66 if (!tz || !name) in thermal_zone_find_by_name() 70 if (!strcmp(tz[i].name, name)) in thermal_zone_find_by_name() 71 return &tz[i]; in thermal_zone_find_by_name() 81 if (!tz || id < 0) in thermal_zone_find_by_id() 85 if (tz[i].id == id) in thermal_zone_find_by_id() 86 return &tz[i]; in thermal_zone_find_by_id() 108 struct thermal_zone *tz; in thermal_zone_discover() local [all …]
|
| A D | commands.c | 73 *tz = __tz; in parse_tz_get() 151 tz->trip = __tt; in parse_tz_get_trip() 163 if (tz->id != id) in parse_tz_get_temp() 179 if (tz->id != id) in parse_tz_get_gov() 183 nla_strlcpy(tz->governor, in parse_tz_get_gov() 228 tz->thresholds = __tt; in parse_threshold_get() 407 NLM_F_DUMP | NLM_F_ACK, tz); in thermal_cmd_get_tz() 418 struct cmd_param p = { .tz_id = tz->id }; in thermal_cmd_get_trip() 421 THERMAL_GENL_CMD_TZ_GET_TRIP, 0, tz); in thermal_cmd_get_trip() 426 struct cmd_param p = { .tz_id = tz->id }; in thermal_cmd_get_governor() [all …]
|
| /tools/thermal/thermal-engine/ |
| A D | thermal-engine.c | 37 struct thermal_zone *tz; member 77 INFO("thermal zone '%s', id=%d\n", tz->name, tz->id); in show_tz() 83 show_temp(tz, arg); in show_tz() 131 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_disable() local 141 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in tz_enable() local 151 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_high() local 162 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_low() local 189 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in trip_change() local 225 struct thermal_zone *tz = thermal_zone_find_by_id(td->tz, tz_id); in gov_change() local 227 INFO("%s: governor changed %s -> %s\n", tz->name, tz->governor, name); in gov_change() [all …]
|
| /tools/testing/selftests/timers/ |
| A D | set-tz.c | 30 struct timezone tz; in set_tz() local 32 tz.tz_minuteswest = min; in set_tz() 33 tz.tz_dsttime = dst; in set_tz() 40 struct timezone tz; in get_tz_min() local 43 memset(&tz, 0, sizeof(tz)); in get_tz_min() 44 gettimeofday(&tv, &tz); in get_tz_min() 45 return tz.tz_minuteswest; in get_tz_min() 50 struct timezone tz; in get_tz_dst() local 53 memset(&tz, 0, sizeof(tz)); in get_tz_dst() 54 gettimeofday(&tv, &tz); in get_tz_dst() [all …]
|
| A D | .gitignore | 21 set-tz
|
| A D | Makefile | 12 leapcrash set-tai set-2038 set-tz
|
| /tools/thermal/thermometer/ |
| A D | thermometer.c | 57 struct tz { struct 66 struct tz *tz; member 105 config_setting_t *tz; in configuration_init() local 128 if (!tz) { in configuration_init() 262 struct tz *tz; in thermometer_add_tz() local 272 tz = realloc(thermometer->tz, sizeof(*thermometer->tz) * (thermometer->nr_tz + 1)); in thermometer_add_tz() 273 if (!tz) { in thermometer_add_tz() 278 thermometer->tz = tz; in thermometer_add_tz() 344 struct tz *tz = arg; in timer_temperature_callback() local 404 thermometer->tz[i].name, thermometer->tz[i].polling); in thermometer_start() [all …]
|
| /tools/include/nolibc/sys/ |
| A D | time.h | 23 int sys_gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday() argument 26 return my_syscall2(__NR_gettimeofday, tv, tz); in sys_gettimeofday() 28 (void) tz; /* Non-NULL tz is undefined behaviour */ in sys_gettimeofday() 44 int gettimeofday(struct timeval *tv, struct timezone *tz) in gettimeofday() argument 46 return __sysret(sys_gettimeofday(tv, tz)); in gettimeofday()
|
| /tools/lib/thermal/include/ |
| A D | thermal.h | 99 LIBTHERMAL_API int for_each_thermal_zone(struct thermal_zone *tz, cb_tz_t cb, void *arg); 107 LIBTHERMAL_API struct thermal_zone *thermal_zone_find_by_name(struct thermal_zone *tz, 110 LIBTHERMAL_API struct thermal_zone *thermal_zone_find_by_id(struct thermal_zone *tz, int id); 137 struct thermal_zone **tz); 143 struct thermal_zone *tz); 146 struct thermal_zone *tz); 149 struct thermal_zone *tz); 152 struct thermal_zone *tz); 155 struct thermal_zone *tz, 160 struct thermal_zone *tz, [all …]
|
| /tools/testing/selftests/vDSO/ |
| A D | vdso_test_gettimeofday.c | 38 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main()
|
| A D | vdso_test_correctness.c | 60 typedef long (*vgtod_t)(struct timeval *tv, struct timezone *tz); 167 static inline int sys_gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday() argument 169 return syscall(__NR_gettimeofday, tv, tz); in sys_gettimeofday()
|
| A D | vdso_test_abi.c | 29 typedef long (*vdso_gettimeofday_t)(struct timeval *tv, struct timezone *tz);
|
| /tools/thermal/tmon/ |
| A D | tui.c | 549 static void draw_tp_line(int tz, int y) in draw_tp_line() argument 554 for (j = 0; j < ptdata.tzi[tz].nr_trip_pts; j++) { in draw_tp_line() 555 x = ptdata.tzi[tz].tp[j].temp / 1000; in draw_tp_line() 557 "%c%d", trip_type_to_char(ptdata.tzi[tz].tp[j].type), in draw_tp_line() 560 tz, j, ptdata.tzi[tz].tp[j].temp); in draw_tp_line()
|
| /tools/testing/selftests/x86/ |
| A D | test_vsyscall.c | 52 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); 95 static inline long sys_gtod(struct timeval *tv, struct timezone *tz) in sys_gtod() argument 97 return syscall(SYS_gettimeofday, tv, tz); in sys_gtod()
|
| /tools/testing/selftests/nolibc/ |
| A D | nolibc-test.c | 1279 struct timezone tz; in run_syscall() local 1353 CASE_TEST(gettimeofday_tv_tz);EXPECT_SYSZR(1, gettimeofday(&tv, &tz)); break; in run_syscall()
|