Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 49) sorted by relevance

12

/components/libc/posix/io/timerfd/
A Dtimerfd.c235 tfd->pre_time.tv_sec = 0; in timerfd_do_create()
395 old->it_interval.tv_sec = tfd->ittimer.it_interval.tv_sec; in timerfd_do_settime()
397 old->it_value.tv_sec = tfd->ittimer.it_value.tv_sec; in timerfd_do_settime()
419 current_time.tv_sec = 0; in timerfd_do_settime()
436 tfd->ittimer.it_interval.tv_sec = new->it_interval.tv_sec; in timerfd_do_settime()
437 tfd->ittimer.it_value.tv_sec = new->it_value.tv_sec - current_time.tv_sec; in timerfd_do_settime()
500 rt_int64_t tv_sec = 0; in timerfd_do_gettime() local
517 tv_sec = cur_time.tv_sec - tfd->pre_time.tv_sec; in timerfd_do_gettime()
521 cur->it_interval.tv_sec = tfd->ittimer.it_interval.tv_sec; in timerfd_do_gettime()
526 cur->it_value.tv_sec = tfd->ittimer.it_interval.tv_sec - tv_sec; in timerfd_do_gettime()
[all …]
/components/drivers/rtc/
A Ddev_soft_rtc.c121 tv->tv_sec = init_time + _tv.tv_sec; in soft_rtc_control()
130 set_rtc_time(tv->tv_sec); in soft_rtc_control()
139 ts->tv_sec = init_time + _ts.tv_sec; in soft_rtc_control()
148 set_rtc_time(ts->tv_sec); in soft_rtc_control()
155 ts->tv_sec = 0; in soft_rtc_control()
164 tv->tv_sec = init_time + tick / RT_TICK_PER_SECOND; in soft_rtc_control()
172 set_rtc_time(tv->tv_sec); in soft_rtc_control()
179 ts->tv_sec = 0; in soft_rtc_control()
294 now = tv.tv_sec; in cmd_rtc_sync()
297 rt_kprintf("timestamps: %ld\n", (long)tv.tv_sec); in cmd_rtc_sync()
A Ddev_rtc.c295 now = tv.tv_sec; in date()
300 rt_kprintf("timestamps: %ld\n", (long)tv.tv_sec); in date()
/components/libc/compilers/common/
A Dctime.c487 tv->tv_sec = 0; in gettimeofday()
568 rsec = old_ts.tv_sec + rqtp->tv_sec - new_ts.tv_sec; in nanosleep()
617 res->tv_sec = 0; in clock_getres()
655 tp->tv_sec = 0; in clock_gettime()
703 int64_t ns = rqtp->tv_nsec - ts.tv_nsec + (rqtp->tv_sec - ts.tv_sec) * NANOSECOND_PER_SECOND; in clock_nanosleep()
776 second = time->tv_sec - tp.tv_sec - 1; in rt_timespec_to_tick()
781 second = time->tv_sec - tp.tv_sec; in rt_timespec_to_tick()
1017 timer->interval.tv_sec = 0; in timer_create()
1147 its->it_value.tv_sec = 0; in timer_gettime()
1232 timer->interval.tv_sec = value->it_interval.tv_sec; in timer_settime()
[all …]
/components/lwp/terminal/
A Dbsd_porting.h513 #define timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
514 #define timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
516 (((tvp)->tv_sec == (uvp)->tv_sec) ? ((tvp)->tv_usec cmp(uvp)->tv_usec) \
517 : ((tvp)->tv_sec cmp(uvp)->tv_sec))
528 tv->tv_sec--; in timevalfix()
533 tv->tv_sec++; in timevalfix()
540 op1->tv_sec += op2->tv_sec; in timevaladd()
547 op1->tv_sec -= op2->tv_sec; in timevalsub()
555 rc = tv->tv_sec * RT_TICK_PER_SECOND; in tvtohz()
/components/libc/cplusplus/cpp11/armclang/
A Dclock.cpp18 __ts->tv_sec = t; in __ARM_TPL_clock_realtime()
26 __ts->tv_sec = t / RT_TICK_PER_SECOND; in __ARM_TPL_clock_monotonic()
A Dthread.cpp77 tick = __req->tv_sec * RT_TICK_PER_SECOND + (__req->tv_nsec * RT_TICK_PER_SECOND)/ 1000000000; in __ARM_TPL_thread_nanosleep()
84 __rem->tv_sec = tick/RT_TICK_PER_SECOND; in __ARM_TPL_thread_nanosleep()
A Dcondvar.cpp147 …unsigned int timeout_ms = (__ts->tv_sec - now.tv_sec) * 1000 + (__ts->tv_nsec - now.tv_nsec) / 100… in __ARM_TPL_condvar_timedwait()
/components/lwp/arch/aarch64/common/
A Dvdso_data.c27 vdso_ts->tv_sec = initdata + vdso_ts->tv_sec; in rt_vdso_update_glob_time()
/components/lwp/arch/risc-v/common/
A Dvdso_data.c27 vdso_ts->tv_sec = initdata + vdso_ts->tv_sec; in rt_vdso_update_glob_time()
/components/dfs/dfs_v2/filesystems/mqueue/
A Ddfs_mqueue.c78 st->st_mtim.tv_sec = vnode->mtime.tv_sec; in dfs_mqueue_stat()
80 st->st_ctim.tv_sec = vnode->ctime.tv_sec; in dfs_mqueue_stat()
82 st->st_atim.tv_sec = vnode->atime.tv_sec; in dfs_mqueue_stat()
/components/drivers/ktime/src/
A Dboottime.c21 tv->tv_sec = ns / (1000ULL * 1000 * 1000); in rt_ktime_boottime_get_us()
44 ts->tv_sec = ns / (1000ULL * 1000 * 1000); in rt_ktime_boottime_get_ns()
/components/drivers/hwtimer/
A Dhwtimer.c42 float tv_sec; in timeout_calc() local
48 tv_sec = tv->sec + tv->usec/(float)1000000; in timeout_calc()
50 if (tv_sec < (1/(float)timer->freq)) in timeout_calc()
60 timeout = tv_sec/i; in timeout_calc()
65 devi = tv_sec - (counter / (float)timer->freq) * i; in timeout_calc()
70 timeout = tv_sec/i; in timeout_calc()
/components/dfs/dfs_v1/filesystems/nfs/rpc/
A Dclnt_generic.c76 tv.tv_sec = 5; in clnt_create()
80 tv.tv_sec = 1; in clnt_create()
/components/lwp/vdso/user/arch/aarch64/
A Dvdso_sys.c55 sec = vdso_ts->tv_sec; in __rt_vdso_getcoarse()
58 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in __rt_vdso_getcoarse()
/components/dfs/dfs_v2/filesystems/procfs/
A Dprocfs.c305 st->st_mtim.tv_sec = vnode->mtime.tv_sec; in dfs_procfs_stat()
307 st->st_ctim.tv_sec = vnode->ctime.tv_sec; in dfs_procfs_stat()
309 st->st_atim.tv_sec = vnode->atime.tv_sec; in dfs_procfs_stat()
/components/lwp/vdso/user/arch/risc-v/
A Dvdso_sys.c62 sec = vdso_ts->tv_sec; in __rt_vdso_getcoarse()
65 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in __rt_vdso_getcoarse()
/components/dfs/dfs_v2/filesystems/devfs/
A Ddevtmpfs.c277 st->st_mtim.tv_sec = vnode->mtime.tv_sec; in devtmpfs_stat()
279 st->st_ctim.tv_sec = vnode->ctime.tv_sec; in devtmpfs_stat()
281 st->st_atim.tv_sec = vnode->atime.tv_sec; in devtmpfs_stat()
/components/dfs/dfs_v2/filesystems/ptyfs/
A Dptyfs.c448 st->st_mtim.tv_sec = vnode->mtime.tv_sec; in ptyfs_ops_stat()
450 st->st_ctim.tv_sec = vnode->ctime.tv_sec; in ptyfs_ops_stat()
452 st->st_atim.tv_sec = vnode->atime.tv_sec; in ptyfs_ops_stat()
/components/libc/compilers/common/include/sys/
A Dtime.h54 time_t tv_sec; /* seconds */ member
89 time_t tv_sec; /* seconds */ member
/components/libc/cplusplus/cpp11/gcc/
A Dutils.cpp27 return time_point(duration(std::chrono::seconds(tp.tv_sec)) in now()
/components/net/lwip/lwip-2.1.2/test/sockets/
A Dsockets_stresstest.c195 tv.tv_sec = timeout_ms / 1000; in sockets_stresstest_wait_readable_select()
196 tv.tv_usec = (timeout_ms - (tv.tv_sec * 1000)) * 1000; in sockets_stresstest_wait_readable_select()
258 opt_on.tv_sec = timeout_ms / 1000; in sockets_stresstest_wait_readable_recvtimeo()
259 opt_on.tv_usec = (timeout_ms - (opt_on.tv_sec * 1000)) * 1000; in sockets_stresstest_wait_readable_recvtimeo()
260 opt_off.tv_sec = 0; in sockets_stresstest_wait_readable_recvtimeo()
/components/dfs/dfs_v2/src/
A Ddfs_posix.c205 attr.ia_atime.tv_sec = current_time; in utimensat()
209 attr.ia_atime.tv_sec = __times[0].tv_sec; in utimensat()
218 attr.ia_mtime.tv_sec = current_time; in utimensat()
222 attr.ia_mtime.tv_sec = __times[1].tv_sec; in utimensat()
/components/libc/posix/io/poll/
A Dselect.c119 msec = (int)timeout->tv_sec * 1000 + (int)timeout->tv_usec / 1000; in select()
/components/libc/posix/signal/
A Dposix_signal.c175 …tick = timeout->tv_sec * RT_TICK_PER_SECOND + timeout->tv_nsec * RT_TICK_PER_SECOND / NANOSECOND_P… in sigtimedwait()

Completed in 29 milliseconds

12