Home
last modified time | relevance | path

Searched refs:nsecs (Results 1 – 25 of 29) sorted by relevance

12

/arch/um/os-Linux/
Dtime.c93 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/
Ddelay.c119 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/
Dudelay.c49 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/
Dcounter_32k.c60 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/
Dudelay.c46 void __ndelay(unsigned long nsecs) in __ndelay() argument
48 __const_udelay(nsecs * 0x00000005); in __ndelay()
/arch/sh/lib/
Ddelay.c49 void __ndelay(unsigned long nsecs) in __ndelay() argument
51 __const_udelay(nsecs * 0x00000005); in __ndelay()
/arch/blackfin/include/asm/
Ddelay.h44 static inline void ndelay(unsigned long nsecs) in ndelay() argument
46 __delay(__to_delay(1) * nsecs / 1000); in ndelay()
/arch/x86/um/
Ddelay.c56 void __ndelay(unsigned long nsecs) in __ndelay() argument
58 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/arm64/lib/
Ddelay.c51 void __ndelay(unsigned long nsecs) in __ndelay() argument
53 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/avr32/lib/
Ddelay.c54 void __ndelay(unsigned long nsecs) in __ndelay() argument
56 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/tile/lib/
Ddelay.c30 void __ndelay(unsigned long nsecs) in __ndelay() argument
33 target += ns2cycles(nsecs); in __ndelay()
/arch/openrisc/lib/
Ddelay.c56 void __ndelay(unsigned long nsecs) in __ndelay() argument
58 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/metag/lib/
Ddelay.c52 void __ndelay(unsigned long nsecs) in __ndelay() argument
54 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/um/kernel/
Dtime.c105 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()
Dprocess.c215 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/
Ddelay.c121 void __ndelay(unsigned long nsecs) in __ndelay() argument
123 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/x86/lib/
Ddelay.c136 void __ndelay(unsigned long nsecs) in __ndelay() argument
138 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/alpha/include/asm/
Ddelay.h7 extern void ndelay(unsigned long nsecs);
/arch/s390/include/asm/
Ddelay.h15 void __ndelay(unsigned long long nsecs);
/arch/tile/include/asm/
Dtimex.h44 cycles_t ns2cycles(unsigned long nsecs);
Ddelay.h23 extern void __ndelay(unsigned long nsecs);
/arch/sparc/include/asm/
Ddelay_32.h24 extern void __ndelay(unsigned long nsecs, unsigned long lpj);
/arch/metag/include/asm/
Ddelay.h15 extern void __ndelay(unsigned long nsecs);
/arch/tile/kernel/
Dtime.c231 cycles_t ns2cycles(unsigned long nsecs) in ns2cycles() argument
238 return ((u64)nsecs * dev->mult) >> dev->shift; in ns2cycles()
/arch/um/os-Linux/skas/
Dprocess.c345 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()

12