/arch/x86/vdso/ |
D | vclock_gettime.c | 61 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/ |
D | time.c | 135 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/ |
D | time.c | 94 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/ |
D | vsyscall_64.c | 124 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()
|
D | pvclock.c | 142 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
|
/arch/cris/kernel/ |
D | time.c | 85 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/ |
D | time_32.c | 86 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()
|
D | time_64.c | 173 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/ |
D | time.c | 230 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/ |
D | time.c | 139 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/ |
D | time_32.c | 296 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/ |
D | binfmt_elfn32.c | 105 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()
|
D | binfmt_elfo32.c | 107 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/ |
D | time.c | 259 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/ |
D | pvclock-abi.h | 44 u32 nsec; member
|
/arch/x86/include/asm/ |
D | pvclock-abi.h | 38 u32 nsec; member
|
/arch/alpha/kernel/ |
D | time.c | 467 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/ |
D | boot.c | 636 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/ |
D | x86.c | 541 wc.nsec = boot.tv_nsec; in kvm_write_wall_clock()
|