Searched refs:tk (Results 1 – 12 of 12) sorted by relevance
25 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument33 vdata->vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_vsyscall()34 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()35 vdata->clock.mask = tk->tkr_mono.mask; in update_vsyscall()36 vdata->clock.mult = tk->tkr_mono.mult; in update_vsyscall()37 vdata->clock.shift = tk->tkr_mono.shift; in update_vsyscall()39 vdata->wall_time_sec = tk->xtime_sec; in update_vsyscall()40 vdata->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()42 vdata->monotonic_time_sec = tk->xtime_sec + in update_vsyscall()43 tk->wall_to_monotonic.tv_sec; in update_vsyscall()[all …]
279 static bool tk_is_cntvct(const struct timekeeper *tk) in tk_is_cntvct() argument284 if (tk->tkr_mono.clock->archdata.clock_mode != VDSO_CLOCKMODE_ARCHTIMER) in tk_is_cntvct()308 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument310 struct timespec64 *wtm = &tk->wall_to_monotonic; in update_vsyscall()321 vdso_data->tk_is_cntvct = tk_is_cntvct(tk); in update_vsyscall()322 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()323 vdso_data->xtime_coarse_nsec = (u32)(tk->tkr_mono.xtime_nsec >> in update_vsyscall()324 tk->tkr_mono.shift); in update_vsyscall()329 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()330 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()[all …]
209 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument212 vdso_data->cs_mask = tk->tkr_mono.mask; in update_vsyscall()213 vdso_data->cs_mult = tk->tkr_mono.mult; in update_vsyscall()214 vdso_data->cs_shift = tk->tkr_mono.shift; in update_vsyscall()215 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()216 vdso_data->wtm_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()217 vdso_data->wtm_clock_nsec = tk->wall_to_monotonic.tv_nsec; in update_vsyscall()218 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()219 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()220 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()[all …]
431 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument436 fsyscall_gtod_data.clk_mask = tk->tkr_mono.mask; in update_vsyscall()437 fsyscall_gtod_data.clk_mult = tk->tkr_mono.mult; in update_vsyscall()438 fsyscall_gtod_data.clk_shift = tk->tkr_mono.shift; in update_vsyscall()439 fsyscall_gtod_data.clk_fsys_mmio = tk->tkr_mono.clock->archdata.fsys_mmio; in update_vsyscall()440 fsyscall_gtod_data.clk_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()442 fsyscall_gtod_data.wall_time.sec = tk->xtime_sec; in update_vsyscall()443 fsyscall_gtod_data.wall_time.snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()445 fsyscall_gtod_data.monotonic_time.sec = tk->xtime_sec in update_vsyscall()446 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()[all …]
25 int __arm64_get_clock_mode(struct timekeeper *tk) in __arm64_get_clock_mode() argument27 return tk->tkr_mono.clock->archdata.clock_mode; in __arm64_get_clock_mode()32 void __arm64_update_vsyscall(struct vdso_data *vdata, struct timekeeper *tk) in __arm64_update_vsyscall() argument
276 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument280 if (tk->tkr_mono.clock != &clocksource_tod) in update_vsyscall()286 vdso_data->xtime_tod_stamp = tk->tkr_mono.cycle_last; in update_vsyscall()287 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()288 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()290 tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall()291 vdso_data->wtom_clock_nsec = tk->tkr_mono.xtime_nsec + in update_vsyscall()292 + ((u64) tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vsyscall()293 nsecps = (u64) NSEC_PER_SEC << tk->tkr_mono.shift; in update_vsyscall()299 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()[all …]
23 int __mips_get_clock_mode(struct timekeeper *tk) in __mips_get_clock_mode() argument25 u32 clock_mode = tk->tkr_mono.clock->archdata.vdso_clock_mode; in __mips_get_clock_mode()
27 int __x86_get_clock_mode(struct timekeeper *tk) in __x86_get_clock_mode() argument29 int vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in __x86_get_clock_mode()
868 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument871 struct clocksource *clock = tk->tkr_mono.clock; in update_vsyscall()872 u32 mult = tk->tkr_mono.mult; in update_vsyscall()873 u32 shift = tk->tkr_mono.shift; in update_vsyscall()874 u64 cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()881 xt.tv_sec = tk->xtime_sec; in update_vsyscall()882 xt.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in update_vsyscall()918 frac_sec = tk->tkr_mono.xtime_nsec << (32 - shift); in update_vsyscall()926 new_stamp_xsec += tk->xtime_sec * XSEC_PER_SEC; in update_vsyscall()940 vdso_data->wtom_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()[all …]
102 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local104 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()105 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()106 system_time = timespec64_add(now, tk->wall_to_monotonic); in xen_pvclock_gtod_notify()
96 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local100 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()101 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
1655 static void update_pvclock_gtod(struct timekeeper *tk) in update_pvclock_gtod() argument1660 boot_ns = ktime_to_ns(ktime_add(tk->tkr_mono.base, tk->offs_boot)); in update_pvclock_gtod()1665 vdata->clock.vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_pvclock_gtod()1666 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_pvclock_gtod()1667 vdata->clock.mask = tk->tkr_mono.mask; in update_pvclock_gtod()1668 vdata->clock.mult = tk->tkr_mono.mult; in update_pvclock_gtod()1669 vdata->clock.shift = tk->tkr_mono.shift; in update_pvclock_gtod()1672 vdata->nsec_base = tk->tkr_mono.xtime_nsec; in update_pvclock_gtod()1674 vdata->wall_time_sec = tk->xtime_sec; in update_pvclock_gtod()7289 struct timekeeper *tk = priv; in pvclock_gtod_notify() local[all …]