tkr 169 kernel/time/timekeeping.c static inline u64 tk_clock_read(const struct tk_read_base *tkr) tkr 171 kernel/time/timekeeping.c struct clocksource *clock = READ_ONCE(tkr->clock); tkr 218 kernel/time/timekeeping.c static inline u64 timekeeping_get_delta(const struct tk_read_base *tkr) tkr 233 kernel/time/timekeeping.c now = tk_clock_read(tkr); tkr 234 kernel/time/timekeeping.c last = tkr->cycle_last; tkr 235 kernel/time/timekeeping.c mask = tkr->mask; tkr 236 kernel/time/timekeeping.c max = tkr->clock->max_cycles; tkr 253 kernel/time/timekeeping.c delta = tkr->clock->max_cycles; tkr 262 kernel/time/timekeeping.c static inline u64 timekeeping_get_delta(const struct tk_read_base *tkr) tkr 267 kernel/time/timekeeping.c cycle_now = tk_clock_read(tkr); tkr 270 kernel/time/timekeeping.c delta = clocksource_delta(cycle_now, tkr->cycle_last, tkr->mask); tkr 359 kernel/time/timekeeping.c static inline u64 timekeeping_delta_to_ns(const struct tk_read_base *tkr, u64 delta) tkr 363 kernel/time/timekeeping.c nsec = delta * tkr->mult + tkr->xtime_nsec; tkr 364 kernel/time/timekeeping.c nsec >>= tkr->shift; tkr 370 kernel/time/timekeeping.c static inline u64 timekeeping_get_ns(const struct tk_read_base *tkr) tkr 374 kernel/time/timekeeping.c delta = timekeeping_get_delta(tkr); tkr 375 kernel/time/timekeeping.c return timekeeping_delta_to_ns(tkr, delta); tkr 378 kernel/time/timekeeping.c static inline u64 timekeeping_cycles_to_ns(const struct tk_read_base *tkr, u64 cycles) tkr 383 kernel/time/timekeeping.c delta = clocksource_delta(cycles, tkr->cycle_last, tkr->mask); tkr 384 kernel/time/timekeeping.c return timekeeping_delta_to_ns(tkr, delta); tkr 401 kernel/time/timekeeping.c static void update_fast_timekeeper(const struct tk_read_base *tkr, tkr 410 kernel/time/timekeeping.c memcpy(base, tkr, sizeof(*base)); tkr 453 kernel/time/timekeeping.c struct tk_read_base *tkr; tkr 459 kernel/time/timekeeping.c tkr = tkf->base + (seq & 0x01); tkr 460 kernel/time/timekeeping.c now = ktime_to_ns(tkr->base); tkr 462 kernel/time/timekeeping.c now += timekeeping_delta_to_ns(tkr, tkr 464 kernel/time/timekeeping.c tk_clock_read(tkr), tkr 465 kernel/time/timekeeping.c tkr->cycle_last, tkr 466 kernel/time/timekeeping.c tkr->mask)); tkr 519 kernel/time/timekeeping.c struct tk_read_base *tkr; tkr 525 kernel/time/timekeeping.c tkr = tkf->base + (seq & 0x01); tkr 526 kernel/time/timekeeping.c now = ktime_to_ns(tkr->base_real); tkr 528 kernel/time/timekeeping.c now += timekeeping_delta_to_ns(tkr, tkr 530 kernel/time/timekeeping.c tk_clock_read(tkr), tkr 531 kernel/time/timekeeping.c tkr->cycle_last, tkr 532 kernel/time/timekeeping.c tkr->mask)); tkr 560 kernel/time/timekeeping.c const struct tk_read_base *tkr = &tk->tkr_mono; tkr 562 kernel/time/timekeeping.c memcpy(&tkr_dummy, tkr, sizeof(tkr_dummy)); tkr 563 kernel/time/timekeeping.c cycles_at_suspend = tk_clock_read(tkr); tkr 565 kernel/time/timekeeping.c tkr_dummy.base_real = tkr->base + tk->offs_real; tkr 568 kernel/time/timekeeping.c tkr = &tk->tkr_raw; tkr 569 kernel/time/timekeeping.c memcpy(&tkr_dummy, tkr, sizeof(tkr_dummy));