• Home
  • Raw
  • Download

Lines Matching refs:base

67 	struct tk_read_base	base[2];  member
83 .base[0] = { .clock = &dummy_clock, },
84 .base[1] = { .clock = &dummy_clock, },
88 .base[0] = { .clock = &dummy_clock, },
89 .base[1] = { .clock = &dummy_clock, },
404 struct tk_read_base *base = tkf->base; in update_fast_timekeeper() local
410 memcpy(base, tkr, sizeof(*base)); in update_fast_timekeeper()
416 memcpy(base + 1, base, sizeof(*base)); in update_fast_timekeeper()
459 tkr = tkf->base + (seq & 0x01); in __ktime_get_fast_ns()
460 now = ktime_to_ns(tkr->base); in __ktime_get_fast_ns()
525 tkr = tkf->base + (seq & 0x01); in __ktime_get_real_fast_ns()
565 tkr_dummy.base_real = tkr->base + tk->offs_real; in halt_fast_timekeeper()
644 tk->tkr_mono.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec); in tk_update_ktime_data()
657 tk->tkr_raw.base = ns_to_ktime(tk->raw_sec * NSEC_PER_SEC); in tk_update_ktime_data()
674 tk->tkr_mono.base_real = tk->tkr_mono.base + tk->offs_real; in timekeeping_update()
751 ktime_t base; in ktime_get() local
758 base = tk->tkr_mono.base; in ktime_get()
763 return ktime_add_ns(base, nsecs); in ktime_get()
794 ktime_t base, *offset = offsets[offs]; in ktime_get_with_offset() local
801 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_with_offset()
806 return ktime_add_ns(base, nsecs); in ktime_get_with_offset()
815 ktime_t base, *offset = offsets[offs]; in ktime_get_coarse_with_offset() local
822 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_coarse_with_offset()
827 return ktime_add_ns(base, nsecs); in ktime_get_coarse_with_offset()
858 ktime_t base; in ktime_get_raw() local
863 base = tk->tkr_raw.base; in ktime_get_raw()
868 return ktime_add_ns(base, nsecs); in ktime_get_raw()
984 base_real = ktime_add(tk->tkr_mono.base, in ktime_get_snapshot()
986 base_raw = tk->tkr_raw.base; in ktime_get_snapshot()
998 static int scale64_check_overflow(u64 mult, u64 div, u64 *base) in scale64_check_overflow() argument
1002 tmp = div64_u64_rem(*base, div, &rem); in scale64_check_overflow()
1011 *base = tmp + rem; in scale64_check_overflow()
1170 base_real = ktime_add(tk->tkr_mono.base, in get_device_system_crosststamp()
1172 base_raw = tk->tkr_raw.base; in get_device_system_crosststamp()
2218 ktime_t base; in ktime_get_update_offsets_now() local
2224 base = tk->tkr_mono.base; in ktime_get_update_offsets_now()
2226 base = ktime_add_ns(base, nsecs); in ktime_get_update_offsets_now()
2236 if (unlikely(base >= tk->next_leap_ktime)) in ktime_get_update_offsets_now()
2241 return base; in ktime_get_update_offsets_now()