Lines Matching refs:tk
146 __vdso_gettimekeep(struct vdso_timekeep **tk)
149 *tk = (struct vdso_timekeep *)kern_timekeep_base;
174 freebsd_binuptime(struct bintime *bt, struct vdso_timekeep *tk, bool abs)
183 if (!tk->tk_enabled)
186 curr = atomic_load_acq_32(&tk->tk_current);
187 th = &tk->tk_th[curr];
216 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen);
221 freebsd_getnanouptime(struct bintime *bt, struct vdso_timekeep *tk)
227 if (!tk->tk_enabled)
230 curr = atomic_load_acq_32(&tk->tk_current);
231 th = &tk->tk_th[curr];
240 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen);
247 struct vdso_timekeep *tk;
253 __vdso_gettimekeep(&tk);
254 if (tk == NULL)
256 if (tk->tk_ver != VDSO_TK_VER_CURR)
258 error = freebsd_binuptime(&bt, tk, true);
267 struct vdso_timekeep *tk;
271 __vdso_gettimekeep(&tk);
272 if (tk == NULL)
274 if (tk->tk_ver != VDSO_TK_VER_CURR)
280 error = freebsd_binuptime(&bt, tk, true);
286 error = freebsd_binuptime(&bt, tk, false);
290 error = freebsd_getnanouptime(&bt, tk);