Lines Matching refs:timekeeper
51 struct timekeeper timekeeper; member
52 struct timekeeper shadow_timekeeper;
146 static inline void tk_normalize_xtime(struct timekeeper *tk) in tk_normalize_xtime()
158 static inline struct timespec64 tk_xtime(const struct timekeeper *tk) in tk_xtime()
167 static inline struct timespec64 tk_xtime_coarse(const struct timekeeper *tk) in tk_xtime_coarse()
185 static inline void tk_update_coarse_nsecs(struct timekeeper *tk) in tk_update_coarse_nsecs()
190 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime()
197 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) in tk_xtime_add()
205 static void tk_set_wall_to_mono(struct timekeeper *tk, struct timespec64 wtm) in tk_set_wall_to_mono()
223 static inline void tk_update_sleep_time(struct timekeeper *tk, ktime_t delta) in tk_update_sleep_time()
265 static void tk_setup_internals(struct timekeeper *tk, struct clocksource *clock) in tk_setup_internals()
490 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_boot_fast_ns()
507 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_tai_fast_ns()
546 static void halt_fast_timekeeper(const struct timekeeper *tk) in halt_fast_timekeeper()
565 static void update_pvclock_gtod(struct timekeeper *tk, bool was_set) in update_pvclock_gtod()
576 struct timekeeper *tk = &tk_core.timekeeper; in pvclock_gtod_register_notifier()
602 static inline void tk_update_leap_state(struct timekeeper *tk) in tk_update_leap_state()
618 tkd->timekeeper.next_leap_ktime = tkd->shadow_timekeeper.next_leap_ktime; in tk_update_leap_state_all()
625 static inline void tk_update_ktime_data(struct timekeeper *tk) in tk_update_ktime_data()
661 memcpy(&tkd->shadow_timekeeper, &tkd->timekeeper, sizeof(tkd->timekeeper)); in timekeeping_restore_shadow()
666 struct timekeeper *tk = &tk_core.shadow_timekeeper; in timekeeping_update_from_shadow()
705 memcpy(&tkd->timekeeper, tk, sizeof(*tk)); in timekeeping_update_from_shadow()
717 static void timekeeping_forward_now(struct timekeeper *tk) in timekeeping_forward_now()
747 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_real_ts64()
768 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get()
788 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_resolution_ns()
804 [TK_OFFS_REAL] = &tk_core.timekeeper.offs_real,
805 [TK_OFFS_BOOT] = &tk_core.timekeeper.offs_boot,
806 [TK_OFFS_TAI] = &tk_core.timekeeper.offs_tai,
811 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_with_offset()
832 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_coarse_with_offset()
883 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_raw()
909 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_ts64()
941 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_seconds()
960 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_real_seconds()
984 struct timekeeper *tk = &tk_core.timekeeper; in __ktime_get_real_seconds()
995 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_snapshot()
1013 tk_core.timekeeper.offs_real); in ktime_get_snapshot()
1015 tk_core.timekeeper.offs_boot); in ktime_get_snapshot()
1068 struct timekeeper *tk = &tk_core.timekeeper; in adjust_historical_crosststamp()
1152 struct clocksource *cs = tk_core.timekeeper.tkr_mono.clock; in convert_base_to_cs()
1180 struct clocksource *cs = tk_core.timekeeper.tkr_mono.clock; in convert_cs_to_base()
1199 struct tk_read_base *tkr = &tk_core.timekeeper.tkr_mono; in convert_ns_to_cs()
1220 struct timekeeper *tk = &tk_core.timekeeper; in ktime_real_to_base_clock()
1260 struct timekeeper *tk = &tk_core.timekeeper; in get_device_system_crosststamp()
1306 tk_core.timekeeper.offs_real); in get_device_system_crosststamp()
1369 struct clocksource_base *base = READ_ONCE(tk_core.timekeeper.tkr_mono.clock->base); in timekeeping_clocksource_has_base()
1389 struct timekeeper *tks = &tk_core.shadow_timekeeper; in do_settimeofday64()
1427 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_inject_offset()
1487 static void __timekeeping_set_tai_offset(struct timekeeper *tk, s32 tai_offset) in __timekeeping_set_tai_offset()
1517 struct timekeeper *tks = &tk_core.shadow_timekeeper; in change_clocksource()
1543 struct timekeeper *tk = &tk_core.timekeeper; in timekeeping_notify()
1560 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_raw_ts64()
1582 struct timekeeper *tk = &tk_core.timekeeper; in timekeeping_valid_for_hres()
1601 struct timekeeper *tk = &tk_core.timekeeper; in timekeeping_max_deferment()
1682 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_init()
1733 static void __timekeeping_inject_sleeptime(struct timekeeper *tk, in __timekeeping_inject_sleeptime()
1798 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_inject_sleeptime64()
1816 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_resume()
1876 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_suspend()
1957 static __always_inline void timekeeping_apply_adjustment(struct timekeeper *tk, in timekeeping_apply_adjustment()
2035 static void timekeeping_adjust(struct timekeeper *tk, s64 offset) in timekeeping_adjust()
2097 static inline unsigned int accumulate_nsecs_to_secs(struct timekeeper *tk) in accumulate_nsecs_to_secs()
2146 static u64 logarithmic_accumulation(struct timekeeper *tk, u64 offset, in logarithmic_accumulation()
2186 struct timekeeper *tk = &tk_core.shadow_timekeeper; in timekeeping_advance()
2187 struct timekeeper *real_tk = &tk_core.timekeeper; in timekeeping_advance()
2270 struct timekeeper *tk = &tk_core.timekeeper; in getboottime64()
2279 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_coarse_real_ts64()
2301 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_coarse_real_ts64_mg()
2309 offset = tk_core.timekeeper.offs_real; in ktime_get_coarse_real_ts64_mg()
2339 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_real_ts64_mg()
2351 offset = tk_core.timekeeper.offs_real; in ktime_get_real_ts64_mg()
2380 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_coarse_ts64()
2421 struct timekeeper *tk = &tk_core.timekeeper; in ktime_get_update_offsets_now()
2520 struct tk_read_base *tkr = &tk_core.timekeeper.tkr_mono; in random_get_entropy_fallback()
2568 struct timekeeper *tks = &tk_core.shadow_timekeeper; in do_adjtimex()