Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 19 of 19) sorted by relevance

/arch/x86/vdso/
Dvclock_gettime.c61 vset_normalized_timespec(struct timespec *ts, long sec, long nsec) in vset_normalized_timespec() argument
63 while (nsec >= NSEC_PER_SEC) { in vset_normalized_timespec()
64 nsec -= NSEC_PER_SEC; in vset_normalized_timespec()
67 while (nsec < 0) { in vset_normalized_timespec()
68 nsec += NSEC_PER_SEC; in vset_normalized_timespec()
72 ts->tv_nsec = nsec; in vset_normalized_timespec()
/arch/m68k/kernel/
Dtime.c135 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
147 nsec -= 1000 * mach_gettimeoffset(); in do_settimeofday()
150 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
152 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
/arch/xtensa/kernel/
Dtime.c94 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
110 nsec -= delta * NSEC_PER_CCOUNT; in do_settimeofday()
113 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
115 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
/arch/x86/kernel/
Dvsyscall_64.c124 unsigned long mult, shift, nsec; in do_vgettimeofday() local
150 nsec = __vsyscall_gtod_data.wall_time_nsec; in do_vgettimeofday()
156 nsec += (cycle_delta * mult) >> shift; in do_vgettimeofday()
158 while (nsec >= NSEC_PER_SEC) { in do_vgettimeofday()
160 nsec -= NSEC_PER_SEC; in do_vgettimeofday()
162 tv->tv_usec = nsec / NSEC_PER_USEC; in do_vgettimeofday()
Dpvclock.c142 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
/arch/cris/kernel/
Dtime.c85 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
97 nsec -= do_gettimeoffset() * NSEC_PER_USEC; in do_settimeofday()
100 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
102 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
/arch/sh/kernel/
Dtime_32.c86 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
98 nsec -= get_timer_offset() * NSEC_PER_USEC; in do_settimeofday()
101 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
103 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
Dtime_64.c173 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
185 nsec -= 1000 * usecs_since_tick(); in do_settimeofday()
188 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
190 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
/arch/blackfin/kernel/
Dtime.c230 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
243 nsec -= (gettimeoffset() * NSEC_PER_USEC); in do_settimeofday()
246 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
248 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
/arch/m32r/kernel/
Dtime.c139 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
151 nsec -= do_gettimeoffset() * NSEC_PER_USEC; in do_settimeofday()
154 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
156 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
/arch/sparc/kernel/
Dtime_32.c296 long wtm_nsec, nsec = tv->tv_nsec; in sbus_do_settimeofday() local
307 nsec -= 1000 * do_gettimeoffset(); in sbus_do_settimeofday()
310 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in sbus_do_settimeofday()
312 set_normalized_timespec(&xtime, sec, nsec); in sbus_do_settimeofday()
/arch/mips/kernel/
Dbinfmt_elfn32.c105 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_compat_timeval() local
107 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_compat_timeval()
Dbinfmt_elfo32.c107 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_compat_timeval() local
109 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_compat_timeval()
/arch/arm/kernel/
Dtime.c259 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
271 nsec -= system_timer->offset() * NSEC_PER_USEC; in do_settimeofday()
274 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
276 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
/arch/ia64/include/asm/
Dpvclock-abi.h44 u32 nsec; member
/arch/x86/include/asm/
Dpvclock-abi.h38 u32 nsec; member
/arch/alpha/kernel/
Dtime.c467 long wtm_nsec, nsec = tv->tv_nsec; in do_settimeofday() local
489 nsec -= delta_nsec; in do_settimeofday()
492 wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); in do_settimeofday()
494 set_normalized_timespec(&xtime, sec, nsec); in do_settimeofday()
/arch/x86/lguest/
Dboot.c636 unsigned long sec, nsec; in lguest_clock_read() local
650 nsec = lguest_data.time.tv_nsec; in lguest_clock_read()
657 return sec*1000000000ULL + nsec; in lguest_clock_read()
/arch/x86/kvm/
Dx86.c541 wc.nsec = boot.tv_nsec; in kvm_write_wall_clock()