Searched refs:todval (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/arch/s390/include/asm/
H A Dtimex.h112 void tod_to_timeval(__u64 todval, struct timespec64 *xt);
138 * @todval: to be converted TOD format value
145 * ns = (todval * 125) >> 9;
148 * With a split todval == 2^32 * th + tl (th upper 32 bits, tl lower 32 bits)
155 static inline unsigned long long tod_to_ns(unsigned long long todval) tod_to_ns() argument
159 ns = ((todval >> 32) << 23) * 125; tod_to_ns()
160 ns += ((todval & 0xffffffff) * 125) >> 9; tod_to_ns()
/linux-4.4.14/arch/s390/kernel/
H A Dtime.c82 void tod_to_timeval(__u64 todval, struct timespec64 *xt) tod_to_timeval() argument
86 sec = todval >> 12; tod_to_timeval()
89 todval -= (sec * 1000000) << 12; tod_to_timeval()
90 xt->tv_nsec = ((todval * 1000) >> 12); tod_to_timeval()

Completed in 77 milliseconds