Lines Matching refs:tk
60 binuptime(struct bintime *bt, struct vdso_timekeep *tk, bool abs) in binuptime() argument
69 if (!tk->tk_enabled) in binuptime()
72 curr = atomic_load_acq_32(&tk->tk_current); in binuptime()
73 th = &tk->tk_th[curr]; in binuptime()
102 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen); in binuptime()
107 getnanouptime(struct bintime *bt, struct vdso_timekeep *tk) in getnanouptime() argument
113 if (!tk->tk_enabled) in getnanouptime()
116 curr = atomic_load_acq_32(&tk->tk_current); in getnanouptime()
117 th = &tk->tk_th[curr]; in getnanouptime()
126 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen); in getnanouptime()
130 static struct vdso_timekeep *tk; variable
141 if (tk == NULL) { in __vdso_gettimeofday()
142 error = __vdso_gettimekeep(&tk); in __vdso_gettimeofday()
143 if (error != 0 || tk == NULL) in __vdso_gettimeofday()
146 if (tk->tk_ver != VDSO_TK_VER_CURR) in __vdso_gettimeofday()
148 error = binuptime(&bt, tk, true); in __vdso_gettimeofday()
162 if (tk == NULL) { in __vdso_clock_gettime()
163 error = _elf_aux_info(AT_TIMEKEEP, &tk, sizeof(tk)); in __vdso_clock_gettime()
164 if (error != 0 || tk == NULL) in __vdso_clock_gettime()
167 if (tk->tk_ver != VDSO_TK_VER_CURR) in __vdso_clock_gettime()
174 error = binuptime(&bt, tk, true); in __vdso_clock_gettime()
180 error = binuptime(&bt, tk, false); in __vdso_clock_gettime()
184 error = getnanouptime(&bt, tk); in __vdso_clock_gettime()