/arch/um/os-Linux/ |
D | time.c | 93 static unsigned long long sleep_time(unsigned long long nsecs) in sleep_time() argument 95 return nsecs; in sleep_time() 124 static unsigned long long sleep_time(unsigned long long nsecs) in sleep_time() argument 126 return nsecs > skew ? nsecs - skew : 0; in sleep_time() 167 void idle_sleep(unsigned long long nsecs) in idle_sleep() argument 176 if (nsecs == 0) in idle_sleep() 177 nsecs = UM_NSEC_PER_SEC / UM_HZ; in idle_sleep() 179 nsecs = sleep_time(nsecs); in idle_sleep() 180 ts = ((struct timespec) { .tv_sec = nsecs / UM_NSEC_PER_SEC, in idle_sleep() 181 .tv_nsec = nsecs % UM_NSEC_PER_SEC }); in idle_sleep()
|
/arch/s390/lib/ |
D | delay.c | 119 void __ndelay(unsigned long long nsecs) in __ndelay() argument 123 nsecs <<= 9; in __ndelay() 124 do_div(nsecs, 125); in __ndelay() 125 end = get_tod_clock() + nsecs; in __ndelay() 126 if (nsecs & ~0xfffUL) in __ndelay() 127 __udelay(nsecs >> 12); in __ndelay()
|
/arch/alpha/lib/ |
D | udelay.c | 49 ndelay(unsigned long nsecs) in ndelay() argument 51 nsecs *= (((unsigned long)HZ << 32) / 1000000000) * LPJ; in ndelay() 52 __delay((long)nsecs >> 32); in ndelay()
|
/arch/arm/plat-omap/ |
D | counter_32k.c | 60 unsigned long long nsecs; in omap_read_persistent_clock() local 69 nsecs = clocksource_cyc2ns(cycles - last_cycles, in omap_read_persistent_clock() 72 timespec_add_ns(&persistent_ts, nsecs); in omap_read_persistent_clock()
|
/arch/sh/lib64/ |
D | udelay.c | 46 void __ndelay(unsigned long nsecs) in __ndelay() argument 48 __const_udelay(nsecs * 0x00000005); in __ndelay()
|
/arch/sh/lib/ |
D | delay.c | 49 void __ndelay(unsigned long nsecs) in __ndelay() argument 51 __const_udelay(nsecs * 0x00000005); in __ndelay()
|
/arch/blackfin/include/asm/ |
D | delay.h | 44 static inline void ndelay(unsigned long nsecs) in ndelay() argument 46 __delay(__to_delay(1) * nsecs / 1000); in ndelay()
|
/arch/x86/um/ |
D | delay.c | 56 void __ndelay(unsigned long nsecs) in __ndelay() argument 58 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
|
/arch/arm64/lib/ |
D | delay.c | 51 void __ndelay(unsigned long nsecs) in __ndelay() argument 53 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
|
/arch/avr32/lib/ |
D | delay.c | 54 void __ndelay(unsigned long nsecs) in __ndelay() argument 56 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
|
/arch/tile/lib/ |
D | delay.c | 30 void __ndelay(unsigned long nsecs) in __ndelay() argument 33 target += ns2cycles(nsecs); in __ndelay()
|
/arch/openrisc/lib/ |
D | delay.c | 56 void __ndelay(unsigned long nsecs) in __ndelay() argument 58 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
|
/arch/metag/lib/ |
D | delay.c | 52 void __ndelay(unsigned long nsecs) in __ndelay() argument 54 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
|
/arch/um/kernel/ |
D | time.c | 105 long long nsecs = os_nsecs(); in read_persistent_clock() local 107 set_normalized_timespec(ts, nsecs / NSEC_PER_SEC, in read_persistent_clock() 108 nsecs % NSEC_PER_SEC); in read_persistent_clock()
|
D | process.c | 215 unsigned long long nsecs; in arch_cpu_idle() local 218 nsecs = disable_timer(); in arch_cpu_idle() 219 idle_sleep(nsecs); in arch_cpu_idle()
|
/arch/m32r/lib/ |
D | delay.c | 121 void __ndelay(unsigned long nsecs) in __ndelay() argument 123 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
|
/arch/x86/lib/ |
D | delay.c | 136 void __ndelay(unsigned long nsecs) in __ndelay() argument 138 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
|
/arch/alpha/include/asm/ |
D | delay.h | 7 extern void ndelay(unsigned long nsecs);
|
/arch/s390/include/asm/ |
D | delay.h | 15 void __ndelay(unsigned long long nsecs);
|
/arch/tile/include/asm/ |
D | timex.h | 44 cycles_t ns2cycles(unsigned long nsecs);
|
D | delay.h | 23 extern void __ndelay(unsigned long nsecs);
|
/arch/sparc/include/asm/ |
D | delay_32.h | 24 extern void __ndelay(unsigned long nsecs, unsigned long lpj);
|
/arch/metag/include/asm/ |
D | delay.h | 15 extern void __ndelay(unsigned long nsecs);
|
/arch/tile/kernel/ |
D | time.c | 231 cycles_t ns2cycles(unsigned long nsecs) in ns2cycles() argument 238 return ((u64)nsecs * dev->mult) >> dev->shift; in ns2cycles()
|
/arch/um/os-Linux/skas/ |
D | process.c | 345 unsigned long long nsecs, now; in userspace() local 356 nsecs = timer.it_value.tv_sec * UM_NSEC_PER_SEC + in userspace() 358 nsecs += os_nsecs(); in userspace() 433 if (now < nsecs) in userspace() 438 nsecs = timer.it_value.tv_sec * in userspace() 442 nsecs += os_nsecs(); in userspace()
|