Lines Matching refs:tk
29 static inline void update_vdso_time_data(struct vdso_time_data *vdata, struct timekeeper *tk) in update_vdso_time_data() argument
35 fill_clock_configuration(&vc[CS_HRES_COARSE], &tk->tkr_mono); in update_vdso_time_data()
36 fill_clock_configuration(&vc[CS_RAW], &tk->tkr_raw); in update_vdso_time_data()
40 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_time_data()
42 nsec = tk->tkr_mono.xtime_nsec; in update_vdso_time_data()
43 nsec += ((u64)tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vdso_time_data()
44 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vdso_time_data()
45 nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift); in update_vdso_time_data()
53 sec += tk->monotonic_to_boot.tv_sec; in update_vdso_time_data()
54 nsec += (u64)tk->monotonic_to_boot.tv_nsec << tk->tkr_mono.shift; in update_vdso_time_data()
60 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vdso_time_data()
61 nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift); in update_vdso_time_data()
68 vdso_ts->sec = tk->raw_sec; in update_vdso_time_data()
69 vdso_ts->nsec = tk->tkr_raw.xtime_nsec; in update_vdso_time_data()
73 vdso_ts->sec = tk->xtime_sec + (s64)tk->tai_offset; in update_vdso_time_data()
74 vdso_ts->nsec = tk->tkr_mono.xtime_nsec; in update_vdso_time_data()
77 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
88 clock_mode = tk->tkr_mono.clock->vdso_clock_mode; in update_vsyscall()
94 vdso_ts->sec = tk->xtime_sec; in update_vsyscall()
95 vdso_ts->nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
99 vdso_ts->sec = tk->xtime_sec; in update_vsyscall()
100 vdso_ts->nsec = tk->coarse_nsec; in update_vsyscall()
104 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
105 nsec = tk->coarse_nsec; in update_vsyscall()
106 nsec = nsec + tk->wall_to_monotonic.tv_nsec; in update_vsyscall()
119 update_vdso_time_data(vdata, tk); in update_vsyscall()
140 void vdso_time_update_aux(struct timekeeper *tk) in vdso_time_update_aux() argument
148 vc = &vdata->aux_clock_data[tk->id - TIMEKEEPER_AUX_FIRST]; in vdso_time_update_aux()
150 clock_mode = tk->tkr_mono.clock->vdso_clock_mode; in vdso_time_update_aux()
151 if (!tk->clock_valid) in vdso_time_update_aux()
160 fill_clock_configuration(vc, &tk->tkr_mono); in vdso_time_update_aux()
162 vdso_ts->sec = tk->xtime_sec + tk->monotonic_to_aux.tv_sec; in vdso_time_update_aux()
164 nsec = tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift; in vdso_time_update_aux()
165 nsec += tk->monotonic_to_aux.tv_nsec; in vdso_time_update_aux()
167 nsec = nsec << tk->tkr_mono.shift; in vdso_time_update_aux()