Lines Matching +full:1 +full:- +full:9 +full:a +full:- +full:d
1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Derived from "include/asm-i386/timex.h"
26 __uint128_t tod : 64; /* bits 0-63 of tod clock */
31 __uint128_t eitod : 72; /* epoch index + bits 0-63 tod clock */
35 __uint128_t us : 60; /* micro-seconds */
36 __uint128_t sus : 12; /* sub-microseconds */
47 " sck %1\n" in set_tod_clock()
50 : "=d" (cc) : "Q" (time) : "cc"); in set_tod_clock()
59 " stcke %1\n" in store_tod_clock_ext_cc()
62 : "=d" (cc), "=Q" (*clk) : : "cc"); in store_tod_clock_ext_cc()
82 : [val] "d" ((unsigned long)val) in set_tod_programmable_field()
135 * ptff - Perform timing facility function
150 " lgr 1,%[reg1]\n" \
154 : [rc] "=&d" (rc), "+m" (*(struct addrtype *)reg1) \
155 : [reg0] "d" (reg0), [reg1] "d" (reg1) \
156 : "cc", "0", "1"); \
208 * get_clock_monotonic - returns current time in clock rate units
219 tod = get_tod_clock() - tod_clock_base.tod; in get_tod_clock_monotonic()
225 * tod_to_ns - convert a TOD format value to nanoseconds
229 * Converting a 64 Bit TOD format value to nanoseconds means that the value
233 * ns = (todval * 125) >> 9;
236 * With a split todval == 2^9 * th + tl (th upper 55 bits, tl lower 9 bits)
239 * ns = ((2^9 * th + tl) * 125 ) >> 9;
240 * -> ns = (th * 125) + ((tl * 125) >> 9);
245 return ((todval >> 9) * 125) + (((todval & 0x1ff) * 125) >> 9); in tod_to_ns()
249 * tod_after - compare two 64 bit TOD values
250 * @a: first 64 bit TOD timestamp
253 * Returns: true if a is later than b
255 static inline int tod_after(unsigned long a, unsigned long b) in tod_after() argument
258 return (long) a > (long) b; in tod_after()
259 return a > b; in tod_after()
263 * tod_after_eq - compare two 64 bit TOD values
264 * @a: first 64 bit TOD timestamp
267 * Returns: true if a is later than b
269 static inline int tod_after_eq(unsigned long a, unsigned long b) in tod_after_eq() argument
272 return (long) a >= (long) b; in tod_after_eq()
273 return a >= b; in tod_after_eq()