Lines Matching refs:clk
13 static int cgt_time32_wrap(clockid_t clk, struct timespec *ts) in cgt_time32_wrap() argument
18 int r = f(clk, ts32); in cgt_time32_wrap()
34 static int cgt_init(clockid_t clk, struct timespec *ts) in cgt_init() argument
49 return f ? f(clk, ts) : -ENOSYS; in cgt_init()
56 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime() argument
64 r = f(clk, ts); in __clock_gettime()
78 r = __syscall(SYS_clock_gettime64, clk, ts); in __clock_gettime()
82 r = __syscall(SYS_clock_gettime, clk, ts32); in __clock_gettime()
83 if (r==-ENOSYS && clk==CLOCK_REALTIME) { in __clock_gettime()
94 r = __syscall(SYS_clock_gettime, clk, ts); in __clock_gettime()
96 if (clk == CLOCK_REALTIME) { in __clock_gettime()