| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/sys/ |
| H A D | time.h | 39 (ts)->tv_sec = (tv)->tv_sec; \ 43 (tv)->tv_sec = (ts)->tv_sec; \ 160 # define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 161 # define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) 163 (((a)->tv_sec == (b)->tv_sec) \ 165 : ((a)->tv_sec CMP (b)->tv_sec)) 168 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 172 ++(result)->tv_sec; \ 178 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 181 --(result)->tv_sec; \
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/sys/ |
| H A D | time.h | 39 (ts)->tv_sec = (tv)->tv_sec; \ 43 (tv)->tv_sec = (ts)->tv_sec; \ 160 # define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 161 # define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) 163 (((a)->tv_sec == (b)->tv_sec) \ 165 : ((a)->tv_sec CMP (b)->tv_sec)) 168 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 172 ++(result)->tv_sec; \ 178 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 181 --(result)->tv_sec; \
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | time64.h | 14 time64_t tv_sec; /* seconds */ member 44 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec64_equal() 54 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare() 56 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare() 67 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add() 79 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub() 90 if (ts->tv_sec < 0) in timespec64_valid() 103 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict() 113 if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX) in timespec64_valid_settod() 128 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_to_ns() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/timens/ |
| H A D | exec.c | 28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main() 33 if (abs(tst.tv_sec - now.tv_sec) > 5) in main() 34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec); in main() 53 if (abs(tst.tv_sec - now.tv_sec) > 5) in main() 55 now.tv_sec, tst.tv_sec); in main() 73 if (abs(tst.tv_sec - now.tv_sec - OFFSET) > 5) in main() 75 now.tv_sec + OFFSET, tst.tv_sec); in main() 79 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET); in main()
|
| H A D | timens.c | 113 child_ts_new.tv_sec = parent_ts_old.tv_sec + offset; in test_gettime() 121 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime() 124 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime() 125 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime() 135 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime() 138 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime() 139 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
|
| /OK3568_Linux_fs/kernel/fs/ext4/ |
| H A D | inode-test.c | 110 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 118 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 134 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 142 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 150 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 158 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 166 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 174 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 182 .expected = {.tv_sec = 0x1ffffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 190 .expected = {.tv_sec = 0x200000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/timers/ |
| H A D | leap-a-day.c | 62 if (a.tv_sec < b.tv_sec) in in_order() 64 if (a.tv_sec > b.tv_sec) in in_order() 76 ts.tv_sec++; in timespec_add() 138 if (tx.time.tv_sec < next_leap) { in sigalarm() 142 tx.time.tv_sec, in sigalarm() 151 tx.time.tv_sec, in sigalarm() 246 next_leap = ts.tv_sec; in main() 252 tv.tv_sec = next_leap - 10; in main() 255 printf("Setting time to %s", ctime(&tv.tv_sec)); in main() 300 its1.it_value.tv_sec = next_leap; in main() [all …]
|
| H A D | inconsistency-check.c | 83 if ((unsigned long)a.tv_sec < (unsigned long)b.tv_sec) in in_order() 85 if ((unsigned long)a.tv_sec > (unsigned long)b.tv_sec) in in_order() 103 now = then = list[0].tv_sec; in consistency_test() 129 printf("%lu:%lu\n", list[i].tv_sec, in consistency_test() 134 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test() 136 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test() 146 now = list[0].tv_sec; in consistency_test()
|
| /OK3568_Linux_fs/kernel/kernel/time/ |
| H A D | time.c | 86 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1() 124 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1() 147 if (put_user(ts.tv_sec, &tv->tv_sec) || in SYSCALL_DEFINE2() 206 if (get_user(new_ts.tv_sec, &tv->tv_sec) || in SYSCALL_DEFINE2() 231 if (put_user(ts.tv_sec, &tv->tv_sec) || in COMPAT_SYSCALL_DEFINE2() 250 if (get_user(new_ts.tv_sec, &tv->tv_sec) || in COMPAT_SYSCALL_DEFINE2() 303 txc->time.tv_sec = tx32.time.tv_sec; in get_old_timex32() 332 tx32.time.tv_sec = txc->time.tv_sec; in put_old_timex32() 457 tv.tv_sec = ts.tv_sec; in ns_to_kernel_old_timeval() 495 ts->tv_sec = sec; in set_normalized_timespec64() [all …]
|
| H A D | itimer.c | 105 v.it_interval.tv_sec = i->it_interval.tv_sec; in put_itimerval() 107 v.it_value.tv_sec = i->it_value.tv_sec; in put_itimerval() 134 v32.it_interval.tv_sec = i->it_interval.tv_sec; in put_old_itimerval32() 136 v32.it_value.tv_sec = i->it_value.tv_sec; in put_old_itimerval32() 204 (((t)->tv_sec >= 0) && (((unsigned long) (t)->tv_usec) < USEC_PER_SEC)) 285 it_new.it_value.tv_sec = seconds; in alarm_setitimer() 287 it_new.it_interval.tv_sec = it_new.it_interval.tv_nsec = 0; in alarm_setitimer() 295 if ((!it_old.it_value.tv_sec && it_old.it_value.tv_nsec) || in alarm_setitimer() 297 it_old.it_value.tv_sec++; in alarm_setitimer() 299 return it_old.it_value.tv_sec; in alarm_setitimer() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/ |
| H A D | mali_kbase_trace_timeline.h | 54 trace_mali_timeline_atoms_in_flight(ts.tv_sec, ts.tv_nsec, \ 64 trace_mali_timeline_atom(ts.tv_sec, ts.tv_nsec, \ 81 trace_mali_timeline_gpu_slot_active(ts.tv_sec, ts.tv_nsec, \ 93 trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, \ 104 trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, \ 115 trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, \ 128 trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, \ 137 trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, \ 147 trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, \ 157 trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, \ [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/x86/ |
| H A D | test_vdso.c | 188 if (a->tv_sec != b->tv_sec) in ts_leq() 189 return a->tv_sec < b->tv_sec; in ts_leq() 196 if (a->tv_sec != b->tv_sec) in tv_leq() 197 return a->tv_sec < b->tv_sec; in tv_leq() 250 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime() 251 (unsigned long long)vdso.tv_sec, vdso.tv_nsec, in test_one_clock_gettime() 252 (unsigned long long)end.tv_sec, end.tv_nsec); in test_one_clock_gettime() 306 (unsigned long long)start.tv_sec, start.tv_usec, in test_gettimeofday() 307 (unsigned long long)vdso.tv_sec, vdso.tv_usec, in test_gettimeofday() 308 (unsigned long long)end.tv_sec, end.tv_usec); in test_gettimeofday()
|
| /OK3568_Linux_fs/kernel/arch/nds32/kernel/vdso/ |
| H A D | gettimeofday.c | 74 ts->tv_sec = vdata->xtime_coarse_sec; in do_realtime_coarse() 90 ts->tv_sec = vdata->xtime_coarse_sec + vdata->wtm_clock_sec; in do_monotonic_coarse() 95 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_monotonic_coarse() 122 ts->tv_sec = vdata->xtime_clock_sec; in do_realtime() 128 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime() 142 ts->tv_sec = vdata->xtime_clock_sec; in do_monotonic() 147 ts->tv_sec += vdata->wtm_clock_sec; in do_monotonic() 152 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_monotonic() 216 res->tv_sec = 0; in __vdso_clock_getres() 221 res->tv_sec = 0; in __vdso_clock_getres() [all …]
|
| /OK3568_Linux_fs/buildroot/package/openvmtools/ |
| H A D | 0012-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch | 37 - ASSERT_ON_COMPILE(sizeof (unixTime->tv_sec) == 4); 40 + if (sizeof (unixTime->tv_sec) == 4) { 44 - unixTime->tv_sec = 0x7FFFFFFF; 48 + unixTime->tv_sec = 0x7FFFFFFF; 58 unixTime->tv_sec = 0; 64 - unixTime->tv_sec = sec; 66 + if (sizeof (unixTime->tv_sec) == 4) { 68 + unixTime->tv_sec = sec32; 72 + unixTime->tv_sec = sec64; 76 unixTime->tv_sec = (ntTime - UNIX_EPOCH) / 10000000;
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/xcore/ |
| H A D | xcam_obj_debug.h | 44 total = (cur_sys_time.tv_sec - first_sys_time.tv_sec)*1.0f + \ 46 current = (cur_sys_time.tv_sec - last_sys_time.tv_sec)*1.0f + \ 66 name##_sum_time += (name##_end_time.tv_sec - name##_start_time.tv_sec)*1000.0f + \ 93 (profiling_now.tv_sec - _profiling_start_time.tv_sec) * 1000.0f + \
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/open-vm-tools/open-vm-tools/ |
| H A D | 0001-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch | 38 - ASSERT_ON_COMPILE(sizeof (unixTime->tv_sec) == 4); 41 + if (sizeof (unixTime->tv_sec) == 4) { 45 - unixTime->tv_sec = 0x7FFFFFFF; 49 + unixTime->tv_sec = 0x7FFFFFFF; 59 unixTime->tv_sec = 0; 65 - unixTime->tv_sec = sec; 67 + if (sizeof (unixTime->tv_sec) == 4) { 69 + unixTime->tv_sec = sec32; 73 + unixTime->tv_sec = sec64; 77 unixTime->tv_sec = (ntTime - UNIX_EPOCH) / 10000000;
|
| /OK3568_Linux_fs/buildroot/package/xen/ |
| H A D | 0003-libs-light-fix-tv_sec-printf-format.patch | 4 Subject: [PATCH] libs/light: fix tv_sec printf format 9 Don't assume tv_sec is a unsigned long, it is 64 bits on NetBSD 32 bits. 29 - vments[5] = GCSPRINTF("%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); 30 + vments[5] = GCSPRINTF("%jd.%02d", (intmax_t)start_time.tv_sec,(int)start_time.tv_usec/1000… 38 - vments[i++] = GCSPRINTF("%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); 39 + vments[i++] = GCSPRINTF("%jd.%02d", (intmax_t)start_time.tv_sec,(int)start_time.tv_usec/10… 47 - vments[5] = GCSPRINTF("%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); 48 + vments[5] = GCSPRINTF("%jd.%02d", (intmax_t)start_time.tv_sec,(int)start_time.tv_usec/1000… 56 - vments[i++] = GCSPRINTF("%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); 57 + vments[i++] = GCSPRINTF("%jd.%02d", (intmax_t)start_time.tv_sec,(int)start_time.tv_usec/10…
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/utouch/utouch-evemu/ |
| H A D | 0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch | 27 +#define input_event_sec time.tv_sec 42 - ev->time.tv_sec, (unsigned)ev->time.tv_usec, 51 - ev->time.tv_sec = sec; 62 - if (!evtime->tv_sec) 64 - usec = 1000000L * (ev->time.tv_sec - evtime->tv_sec); 66 + if (!evtime->tv_sec) { 67 + evtime->tv_sec = ev->input_event_sec; 70 + usec = (ev->input_event_sec - evtime->tv_sec) * 1000000L; 75 + evtime->tv_sec = ev->input_event_sec;
|
| /OK3568_Linux_fs/kernel/fs/coda/ |
| H A D | coda_linux.c | 72 .tv_sec = ts.tv_sec, in coda_to_timespec64() 82 .tv_sec = ts64.tv_sec, in timespec64_to_coda() 126 if (attr->va_atime.tv_sec != -1) in coda_vattr_to_iattr() 128 if (attr->va_mtime.tv_sec != -1) in coda_vattr_to_iattr() 130 if (attr->va_ctime.tv_sec != -1) in coda_vattr_to_iattr() 152 vattr->va_atime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr() 154 vattr->va_mtime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr() 156 vattr->va_ctime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/mqueue/ |
| H A D | mq_perf_tests.c | 358 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \ 362 send_total.tv_sec++; \ 365 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \ 369 recv_total.tv_sec++; \ 457 send_total.tv_sec = 0; in perf_test_thread() 459 recv_total.tv_sec = 0; in perf_test_thread() 464 send_total.tv_sec, send_total.tv_nsec); in perf_test_thread() 465 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + in perf_test_thread() 469 recv_total.tv_sec, recv_total.tv_nsec); in perf_test_thread() 470 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + in perf_test_thread() [all …]
|
| /OK3568_Linux_fs/kernel/arch/um/os-Linux/ |
| H A D | time.c | 22 return ((long long) tv->tv_sec * UM_NSEC_PER_SEC) + in timeval_to_ns() 28 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns() 56 its.it_value.tv_sec = nsecs / UM_NSEC_PER_SEC; in os_timer_set_interval() 59 its.it_interval.tv_sec = nsecs / UM_NSEC_PER_SEC; in os_timer_set_interval() 71 .it_value.tv_sec = nsecs / UM_NSEC_PER_SEC, in os_timer_one_shot() 74 .it_interval.tv_sec = 0, in os_timer_one_shot() 108 .tv_sec = nsecs / UM_NSEC_PER_SEC, in os_idle_sleep()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-graphics/startup-notification/startup-notification-0.12/ |
| H A D | time_t.patch | 34 - long *tv_sec, 36 + time_t *tv_sec, 39 if (tv_sec) 40 *tv_sec = sequence->initiation_time.tv_sec; 45 - long *tv_sec, 47 + time_t *tv_sec, 51 if (tv_sec) 60 - long *tv_sec, 62 + time_t *tv_sec, 65 - long *tv_sec, [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/kvm/ |
| H A D | dirty_log_perf_test.c | 71 vcpu_id, current_iteration, ts_diff.tv_sec, in vcpu_worker() 75 vcpu_id, current_iteration, ts_diff.tv_sec, in vcpu_worker() 86 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker() 154 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 162 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 182 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 191 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 202 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 216 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 220 iterations, get_dirty_log_total.tv_sec, in run_test() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/net/ |
| H A D | timestamping.c | 130 (long)now.tv_sec, (long)now.tv_usec, in sendpacket() 148 (long)now.tv_sec, (long)now.tv_usec, in printpacket() 165 (long)stamp->tv_sec, in printpacket() 173 (long)stamp->tv_sec, in printpacket() 182 (long)stamp->tv_sec, in printpacket() 188 (long)stamp->tv_sec, in printpacket() 246 (long)tv.tv_sec, in printpacket() 254 (long)ts.tv_sec, in printpacket() 462 next.tv_sec = (next.tv_sec + 1) / 5 * 5; in main() 472 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | utimes.c | 191 tstimes[0].tv_sec = times[0].tv_sec; in do_futimesat() 193 tstimes[1].tv_sec = times[1].tv_sec; in do_futimesat() 218 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 219 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 240 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2() 241 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2() 272 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat() 274 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
|