Home
last modified time | relevance | path

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

123

/arch/um/os-Linux/
Dtime.c23 return ((long long) tv->tv_sec * UM_NSEC_PER_SEC) + in timeval_to_ns()
29 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + in timespec_to_ns()
74 its.it_value.tv_sec = its_in->it_value.tv_sec; in os_timer_set_interval()
77 its.it_value.tv_sec = 0; in os_timer_set_interval()
81 its.it_interval.tv_sec = 0; in os_timer_set_interval()
126 its.it_value.tv_sec = nsec / UM_NSEC_PER_SEC; in os_timer_one_shot()
129 its.it_interval.tv_sec = 0; in os_timer_one_shot()
147 return its.it_value.tv_sec * UM_NSEC_PER_SEC + its.it_value.tv_nsec; in os_timer_disable()
179 .tv_sec = nsecs / UM_NSEC_PER_SEC, in os_idle_sleep()
/arch/arm/vdso/
Dvgettimeofday.c87 ts->tv_sec = vdata->xtime_coarse_sec; in do_realtime_coarse()
104 ts->tv_sec = vdata->xtime_coarse_sec; in do_monotonic_coarse()
107 tomono.tv_sec = vdata->wtm_clock_sec; in do_monotonic_coarse()
112 ts->tv_sec += tomono.tv_sec; in do_monotonic_coarse()
147 ts->tv_sec = vdata->xtime_clock_sec; in do_realtime()
170 ts->tv_sec = vdata->xtime_clock_sec; in do_monotonic()
173 tomono.tv_sec = vdata->wtm_clock_sec; in do_monotonic()
178 ts->tv_sec += tomono.tv_sec; in do_monotonic()
259 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday()
/arch/mips/vdso/
Dgettimeofday.c73 ts->tv_sec = data->xtime_sec; in do_realtime_coarse()
90 ts->tv_sec = data->xtime_sec; in do_monotonic_coarse()
97 ts->tv_sec += to_mono_sec; in do_monotonic_coarse()
178 ts->tv_sec = data->xtime_sec; in do_realtime()
202 ts->tv_sec = data->xtime_sec; in do_monotonic()
209 ts->tv_sec += to_mono_sec; in do_monotonic()
235 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday()
/arch/mn10300/kernel/
Drtc.c33 ts->tv_sec = mktime(tm.tm_year, tm.tm_mon, tm.tm_mday, in read_persistent_clock()
37 if (ts->tv_sec < 0) in read_persistent_clock()
38 ts->tv_sec = mktime(2009, 1, 1, 12, 0, 0); in read_persistent_clock()
114 return set_rtc_mmss(now.tv_sec); in update_persistent_clock()
/arch/sh/kernel/
Dtime.c29 tv->tv_sec = mktime(2000, 1, 1, 0, 0, 0); in null_rtc_get_time()
49 return rtc_sh_set_time(now.tv_sec); in update_persistent_clock()
59 rtc_time_to_tm(tv.tv_sec, tm); in get_rtc_time()
/arch/tile/kernel/vdso/
Dvgettimeofday.c71 ts->tv_sec = vdso->wall_time_sec; in do_realtime()
77 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime()
90 ts->tv_sec = vdso->monotonic_time_sec; in do_monotonic()
96 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_monotonic()
109 ts->tv_sec = vdso->wall_time_coarse_sec; in do_realtime_coarse()
123 ts->tv_sec = vdso->monotonic_time_coarse_sec; in do_monotonic_coarse()
/arch/s390/include/asm/
Dcputime.h88 unsigned long long ret = value->tv_sec * CPUTIME_PER_SEC; in timespec_to_cputime()
97 value->tv_sec = __cputime / CPUTIME_PER_SEC; in cputime_to_timespec()
107 unsigned long long ret = value->tv_sec * CPUTIME_PER_SEC; in timeval_to_cputime()
116 value->tv_sec = __cputime / CPUTIME_PER_SEC; in cputime_to_timeval()
/arch/x86/kernel/
Dpvclock.c134 now.tv_sec = wall_clock->sec; in pvclock_read_wallclock()
140 delta += now.tv_sec * (u64)NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock()
143 now.tv_sec = delta; in pvclock_read_wallclock()
145 set_normalized_timespec(ts, now.tv_sec, now.tv_nsec); in pvclock_read_wallclock()
Drtc.c43 unsigned long nowtime = now->tv_sec; in mach_set_rtc_mmss()
111 now->tv_sec = mktime(year, mon, day, hour, min, sec); in mach_get_cmos_time()
/arch/alpha/kernel/
Dosf_sys.c289 tmp.st_atime = lstat->atime.tv_sec; in linux_to_osf_stat()
290 tmp.st_mtime = lstat->mtime.tv_sec; in linux_to_osf_stat()
291 tmp.st_ctime = lstat->ctime.tv_sec; in linux_to_osf_stat()
937 int tv_sec, tv_usec; member
950 (__get_user(o->tv_sec, &i->tv_sec) | in get_tv32()
958 (__put_user(i->tv_sec, &o->tv_sec) | in put_tv32()
966 (__get_user(o->it_interval.tv_sec, &i->it_interval.tv_sec) | in get_it32()
968 __get_user(o->it_value.tv_sec, &i->it_value.tv_sec) | in get_it32()
976 (__put_user(i->it_interval.tv_sec, &o->it_interval.tv_sec) | in put_it32()
978 __put_user(i->it_value.tv_sec, &o->it_value.tv_sec) | in put_it32()
[all …]
/arch/x86/entry/vdso/
Dvclock_gettime.c221 ts->tv_sec = gtod->wall_time_sec; in do_realtime()
227 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime()
242 ts->tv_sec = gtod->monotonic_time_sec; in do_monotonic()
248 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_monotonic()
259 ts->tv_sec = gtod->wall_time_coarse_sec; in do_realtime_coarse()
269 ts->tv_sec = gtod->monotonic_time_coarse_sec; in do_monotonic_coarse()
/arch/m68k/kernel/
Dtime.c76 ts->tv_sec = 0; in read_persistent_clock()
84 ts->tv_sec = mktime(time.tm_year, time.tm_mon, time.tm_mday, in read_persistent_clock()
/arch/ia64/kernel/
Dtime.c412 fsyscall_gtod_data.wall_time.tv_sec = wall->tv_sec; in update_vsyscall_old()
414 fsyscall_gtod_data.monotonic_time.tv_sec = wtm->tv_sec in update_vsyscall_old()
415 + wall->tv_sec; in update_vsyscall_old()
422 fsyscall_gtod_data.monotonic_time.tv_sec++; in update_vsyscall_old()
/arch/powerpc/include/asm/
Dcputime.h165 p->tv_sec = x; in cputime_to_timespec()
177 return (__force cputime_t)(ct + (u64) p->tv_sec * tb_ticks_per_sec); in timespec_to_cputime()
189 p->tv_sec = x; in cputime_to_timeval()
201 return (__force cputime_t)(ct + (u64) p->tv_sec * tb_ticks_per_sec); in timeval_to_cputime()
/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c85 now->tv_sec = mktime(year, mon, mday, hour, min, sec); in vrtc_get_time()
96 rtc_time_to_tm(now->tv_sec, &tm); in vrtc_set_mmss()
113 __func__, now->tv_sec); in vrtc_set_mmss()
/arch/powerpc/sysdev/
Dfsl_mpic_timer_wakeup.c65 val = interval.tv_sec + 1; in fsl_timer_wakeup_show()
81 if (kstrtol(buf, 0, &interval.tv_sec)) in fsl_timer_wakeup_store()
92 if (!interval.tv_sec) { in fsl_timer_wakeup_store()
Dmpic_timer.c97 time->tv_sec = (__kernel_time_t)div_u64(ticks, priv->timerfreq); in convert_ticks_to_time()
98 tmp_sec = (u64)time->tv_sec * (u64)priv->timerfreq; in convert_ticks_to_time()
122 if (time->tv_sec > max_value || in convert_time_to_ticks()
123 (time->tv_sec == max_value && time->tv_usec > 0)) in convert_time_to_ticks()
126 tmp_sec = (u64)time->tv_sec * (u64)priv->timerfreq; in convert_time_to_ticks()
402 if (!(time->tv_sec + time->tv_usec) || in mpic_request_timer()
403 time->tv_sec < 0 || time->tv_usec < 0) in mpic_request_timer()
/arch/x86/entry/vsyscall/
Dvsyscall_gtod.c44 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
60 vdata->wall_time_coarse_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
/arch/mips/loongson64/common/
Dtime.c34 ts->tv_sec = mc146818_get_cmos_time(); in read_persistent_clock()
/arch/mips/kernel/
Dbinfmt_elfn32.c107 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_compat_timeval()
124 value->tv_sec = jiffies / HZ; in cputime_to_compat_timeval()
Dbinfmt_elfo32.c128 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_compat_timeval()
143 value->tv_sec = jiffies / HZ; in cputime_to_compat_timeval()
/arch/parisc/kernel/
Dtime.c240 ts->tv_sec = tod_data.tod_sec; in read_persistent_clock()
244 ts->tv_sec = 0; in read_persistent_clock()
/arch/powerpc/kernel/
Dtime.c733 to_tm(now.tv_sec + 1 + timezone_offset, &tm); in update_persistent_clock()
754 ts->tv_sec = ppc_md.get_boot_time() - timezone_offset; in __read_persistent_clock()
759 ts->tv_sec = 0; in __read_persistent_clock()
764 ts->tv_sec = mktime(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, in __read_persistent_clock()
773 if (ts->tv_sec < 0) { in read_persistent_clock()
774 ts->tv_sec = 0; in read_persistent_clock()
808 new_stamp_xsec += (u64) wall_time->tv_sec * XSEC_PER_SEC; in update_vsyscall_old()
828 vdso_data->wtom_clock_sec = wtm->tv_sec; in update_vsyscall_old()
/arch/x86/ia32/
Dsys_ia32.c86 __put_user(stat->atime.tv_sec, &ubuf->st_atime) || in cp_stat64()
88 __put_user(stat->mtime.tv_sec, &ubuf->st_mtime) || in cp_stat64()
90 __put_user(stat->ctime.tv_sec, &ubuf->st_ctime) || in cp_stat64()
/arch/sh/boards/mach-dreamcast/
Drtc.c45 ts->tv_sec = val1 - TWENTY_YEARS; in aica_rtc_gettimeofday()

123