Lines Matching refs:svtk
144 timehands_update(struct vdso_sv_tk *svtk) in timehands_update() argument
152 idx = svtk->sv_timekeep_curr; in timehands_update()
155 svtk->sv_timekeep_curr = idx; in timehands_update()
156 if (++svtk->sv_timekeep_gen == 0) in timehands_update()
157 svtk->sv_timekeep_gen = 1; in timehands_update()
160 svtk->sv_timekeep_off); in timehands_update()
165 atomic_store_rel_32(&tk->tk_th[idx].th_gen, svtk->sv_timekeep_gen); in timehands_update()
177 timehands_update32(struct vdso_sv_tk *svtk) in timehands_update32() argument
185 idx = svtk->sv_timekeep_curr; in timehands_update32()
188 svtk->sv_timekeep_curr = idx; in timehands_update32()
189 if (++svtk->sv_timekeep_gen == 0) in timehands_update32()
190 svtk->sv_timekeep_gen = 1; in timehands_update32()
193 svtk->sv_timekeep_off); in timehands_update32()
198 atomic_store_rel_32(&tk->tk_th[idx].th_gen, svtk->sv_timekeep_gen); in timehands_update32()
229 struct vdso_sv_tk *svtk; in alloc_sv_tk() local
234 svtk = malloc(sizeof(struct vdso_sv_tk), M_TEMP, M_WAITOK | M_ZERO); in alloc_sv_tk()
240 svtk->sv_timekeep_off = tk_base; in alloc_sv_tk()
242 return (svtk); in alloc_sv_tk()
249 struct vdso_sv_tk *svtk; in alloc_sv_tk_compat32() local
253 svtk = malloc(sizeof(struct vdso_sv_tk), M_TEMP, M_WAITOK | M_ZERO); in alloc_sv_tk_compat32()
260 svtk->sv_timekeep_off = tk_base; in alloc_sv_tk_compat32()
262 return (svtk); in alloc_sv_tk_compat32()