Lines Matching refs:tk

19 				    struct timekeeper *tk)  in update_vdso_data()  argument
24 vdata[CS_HRES_COARSE].cycle_last = tk->tkr_mono.cycle_last; in update_vdso_data()
25 vdata[CS_HRES_COARSE].mask = tk->tkr_mono.mask; in update_vdso_data()
26 vdata[CS_HRES_COARSE].mult = tk->tkr_mono.mult; in update_vdso_data()
27 vdata[CS_HRES_COARSE].shift = tk->tkr_mono.shift; in update_vdso_data()
28 vdata[CS_RAW].cycle_last = tk->tkr_raw.cycle_last; in update_vdso_data()
29 vdata[CS_RAW].mask = tk->tkr_raw.mask; in update_vdso_data()
30 vdata[CS_RAW].mult = tk->tkr_raw.mult; in update_vdso_data()
31 vdata[CS_RAW].shift = tk->tkr_raw.shift; in update_vdso_data()
35 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_data()
37 nsec = tk->tkr_mono.xtime_nsec; in update_vdso_data()
38 nsec += ((u64)tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vdso_data()
39 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vdso_data()
40 nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift); in update_vdso_data()
48 sec += tk->monotonic_to_boot.tv_sec; in update_vdso_data()
49 nsec += (u64)tk->monotonic_to_boot.tv_nsec << tk->tkr_mono.shift; in update_vdso_data()
55 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vdso_data()
56 nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift); in update_vdso_data()
63 vdso_ts->sec = tk->raw_sec; in update_vdso_data()
64 vdso_ts->nsec = tk->tkr_raw.xtime_nsec; in update_vdso_data()
68 vdso_ts->sec = tk->xtime_sec + (s64)tk->tai_offset; in update_vdso_data()
69 vdso_ts->nsec = tk->tkr_mono.xtime_nsec; in update_vdso_data()
72 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
82 clock_mode = tk->tkr_mono.clock->vdso_clock_mode; in update_vsyscall()
88 vdso_ts->sec = tk->xtime_sec; in update_vsyscall()
89 vdso_ts->nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
93 vdso_ts->sec = tk->xtime_sec; in update_vsyscall()
94 vdso_ts->nsec = tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift; in update_vsyscall()
98 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
99 nsec = tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift; in update_vsyscall()
100 nsec = nsec + tk->wall_to_monotonic.tv_nsec; in update_vsyscall()
114 update_vdso_data(vdata, tk); in update_vsyscall()
116 __arch_update_vsyscall(vdata, tk); in update_vsyscall()