/arch/um/os-Linux/ |
D | time.c | 63 unsigned long long nsec; in os_timer_set_interval() local 71 nsec = UM_NSEC_PER_SEC / UM_HZ; in os_timer_set_interval() 78 its.it_value.tv_nsec = nsec; in os_timer_set_interval() 82 its.it_interval.tv_nsec = nsec; in os_timer_set_interval() 119 unsigned long long nsec; in os_timer_one_shot() local 122 nsec = (ticks + 1); in os_timer_one_shot() 123 sec = nsec / UM_NSEC_PER_SEC; in os_timer_one_shot() 124 nsec = nsec % UM_NSEC_PER_SEC; in os_timer_one_shot() 126 its.it_value.tv_sec = nsec / UM_NSEC_PER_SEC; in os_timer_one_shot() 127 its.it_value.tv_nsec = nsec; in os_timer_one_shot()
|
/arch/xtensa/include/asm/ |
D | delay.h | 55 static inline void __ndelay(unsigned long nsec) in __ndelay() argument 61 unsigned long cycles = (nsec * (ccount_freq >> 15)) >> 15; in __ndelay() 67 static inline void ndelay(unsigned long nsec) in ndelay() argument 69 if (__builtin_constant_p(nsec) && nsec >= __MAX_NDELAY) in ndelay() 72 __ndelay(nsec); in ndelay()
|
/arch/arm64/kernel/vdso/ |
D | gettimeofday.S | 100 .macro add_ts sec, nsec, ts_sec, ts_nsec, nsec_to_sec 103 add \nsec, \nsec, \ts_nsec 106 cmp \nsec, \nsec_to_sec 108 sub \nsec, \nsec, \nsec_to_sec 111 cmp \nsec, #0 113 add \nsec, \nsec, \nsec_to_sec 245 add_ts sec=x10, nsec=x11, ts_sec=x3, ts_nsec=x4, nsec_to_sec=x9 266 add_ts sec=x10, nsec=x11, ts_sec=x13, ts_nsec=x14, nsec_to_sec=x9 285 add_ts sec=x10, nsec=x11, ts_sec=x13, ts_nsec=x14, nsec_to_sec=x9
|
/arch/tile/gxio/ |
D | iorpc_mpipe.c | 414 uint64_t nsec; member 419 uint64_t *nsec, uint64_t *cycles) in gxio_mpipe_get_timestamp_aux() argument 429 *nsec = params->nsec; in gxio_mpipe_get_timestamp_aux() 439 uint64_t nsec; member 444 uint64_t nsec, uint64_t cycles) in gxio_mpipe_set_timestamp_aux() argument 450 params->nsec = nsec; in gxio_mpipe_set_timestamp_aux() 460 int64_t nsec; member 463 int gxio_mpipe_adjust_timestamp_aux(gxio_mpipe_context_t *context, int64_t nsec) in gxio_mpipe_adjust_timestamp_aux() argument 468 params->nsec = nsec; in gxio_mpipe_adjust_timestamp_aux()
|
/arch/mips/vdso/ |
D | gettimeofday.c | 99 u64 cycle_now, delta, nsec; in get_ns() local 118 nsec = (delta * data->cs_mult) + data->xtime_nsec; in get_ns() 119 nsec >>= data->cs_shift; in get_ns() 121 return nsec; in get_ns()
|
/arch/arm/vdso/ |
D | vgettimeofday.c | 124 u64 nsec; in get_ns() local 130 nsec = (cycle_delta * vdata->cs_mult) + vdata->xtime_clock_snsec; in get_ns() 131 nsec >>= vdata->cs_shift; in get_ns() 133 return nsec; in get_ns()
|
/arch/tile/include/gxio/ |
D | iorpc_mpipe.h | 124 uint64_t *nsec, uint64_t *cycles); 127 uint64_t nsec, uint64_t cycles); 130 int64_t nsec);
|
/arch/mips/kernel/ |
D | binfmt_elfn32.c | 91 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_compat_timeval() local 93 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_compat_timeval()
|
D | binfmt_elfo32.c | 96 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_compat_timeval() local 98 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_compat_timeval()
|
/arch/x86/include/asm/ |
D | pvclock-abi.h | 39 u32 nsec; member
|
/arch/arm/include/asm/xen/ |
D | interface.h | 80 u32 nsec; member
|
/arch/x86/kvm/ |
D | x86.h | 195 static inline u64 nsec_to_cycles(struct kvm_vcpu *vcpu, u64 nsec) in nsec_to_cycles() argument 197 return pvclock_scale_delta(nsec, vcpu->arch.virtual_tsc_mult, in nsec_to_cycles()
|
D | x86.c | 1213 wc.nsec = boot.tv_nsec; in kvm_write_wall_clock()
|
/arch/x86/kernel/ |
D | pvclock.c | 133 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
|
/arch/x86/lguest/ |
D | boot.c | 935 unsigned long sec, nsec; in lguest_clock_read() local 953 nsec = lguest_data.time.tv_nsec; in lguest_clock_read() 960 return sec*1000000000ULL + nsec; in lguest_clock_read()
|
/arch/arm/xen/ |
D | enlighten.c | 104 now.tv_nsec = wall_clock->nsec; in xen_read_wallclock()
|