• Home
  • Raw
  • Download

Lines Matching refs:base

73 	struct tk_read_base	base[2];  member
107 .base[0] = FAST_TK_INIT,
108 .base[1] = FAST_TK_INIT,
113 .base[0] = FAST_TK_INIT,
114 .base[1] = FAST_TK_INIT,
419 struct tk_read_base *base = tkf->base; in update_fast_timekeeper() local
425 memcpy(base, tkr, sizeof(*base)); in update_fast_timekeeper()
431 memcpy(base + 1, base, sizeof(*base)); in update_fast_timekeeper()
450 tkr = tkf->base + (seq & 0x01); in __ktime_get_fast_ns()
451 now = ktime_to_ns(tkr->base); in __ktime_get_fast_ns()
565 tkr = tkf->base + (seq & 0x01); in __ktime_get_real_fast()
566 basem = ktime_to_ns(tkr->base); in __ktime_get_real_fast()
659 tkr_dummy.base_real = tkr->base + tk->offs_real; in halt_fast_timekeeper()
740 tk->tkr_mono.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec); in tk_update_ktime_data()
753 tk->tkr_raw.base = ns_to_ktime(tk->raw_sec * NSEC_PER_SEC); in tk_update_ktime_data()
770 tk->tkr_mono.base_real = tk->tkr_mono.base + tk->offs_real; in timekeeping_update()
840 ktime_t base; in ktime_get() local
847 base = tk->tkr_mono.base; in ktime_get()
852 return ktime_add_ns(base, nsecs); in ktime_get()
883 ktime_t base, *offset = offsets[offs]; in ktime_get_with_offset() local
890 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_with_offset()
895 return ktime_add_ns(base, nsecs); in ktime_get_with_offset()
904 ktime_t base, *offset = offsets[offs]; in ktime_get_coarse_with_offset() local
911 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_coarse_with_offset()
916 return ktime_add_ns(base, nsecs); in ktime_get_coarse_with_offset()
947 ktime_t base; in ktime_get_raw() local
952 base = tk->tkr_raw.base; in ktime_get_raw()
957 return ktime_add_ns(base, nsecs); in ktime_get_raw()
1075 base_real = ktime_add(tk->tkr_mono.base, in ktime_get_snapshot()
1077 base_boot = ktime_add(tk->tkr_mono.base, in ktime_get_snapshot()
1079 base_raw = tk->tkr_raw.base; in ktime_get_snapshot()
1096 static int scale64_check_overflow(u64 mult, u64 div, u64 *base) in scale64_check_overflow() argument
1100 tmp = div64_u64_rem(*base, div, &rem); in scale64_check_overflow()
1108 *base = tmp + rem; in scale64_check_overflow()
1267 base_real = ktime_add(tk->tkr_mono.base, in get_device_system_crosststamp()
1269 base_raw = tk->tkr_raw.base; in get_device_system_crosststamp()
2322 ktime_t base; in ktime_get_update_offsets_now() local
2328 base = tk->tkr_mono.base; in ktime_get_update_offsets_now()
2330 base = ktime_add_ns(base, nsecs); in ktime_get_update_offsets_now()
2340 if (unlikely(base >= tk->next_leap_ktime)) in ktime_get_update_offsets_now()
2345 return base; in ktime_get_update_offsets_now()