/arch/um/os-Linux/ |
D | time.c | 23 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/ |
D | vgettimeofday.c | 87 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/ |
D | gettimeofday.c | 73 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/ |
D | rtc.c | 33 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/ |
D | time.c | 29 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/ |
D | vgettimeofday.c | 71 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/ |
D | cputime.h | 88 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/ |
D | pvclock.c | 134 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()
|
D | rtc.c | 43 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/ |
D | osf_sys.c | 289 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/ |
D | vclock_gettime.c | 221 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/ |
D | time.c | 76 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/ |
D | time.c | 412 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/ |
D | cputime.h | 165 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/ |
D | intel_mid_vrtc.c | 85 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/ |
D | fsl_mpic_timer_wakeup.c | 65 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()
|
D | mpic_timer.c | 97 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/ |
D | vsyscall_gtod.c | 44 + 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/ |
D | time.c | 34 ts->tv_sec = mc146818_get_cmos_time(); in read_persistent_clock()
|
/arch/mips/kernel/ |
D | binfmt_elfn32.c | 107 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()
|
D | binfmt_elfo32.c | 128 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/ |
D | time.c | 240 ts->tv_sec = tod_data.tod_sec; in read_persistent_clock() 244 ts->tv_sec = 0; in read_persistent_clock()
|
/arch/powerpc/kernel/ |
D | time.c | 733 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/ |
D | sys_ia32.c | 86 __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/ |
D | rtc.c | 45 ts->tv_sec = val1 - TWENTY_YEARS; in aica_rtc_gettimeofday()
|