• 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,
325 struct tk_read_base *base = tkf->base; in update_fast_timekeeper() local
331 memcpy(base, tkr, sizeof(*base)); in update_fast_timekeeper()
337 memcpy(base + 1, base, sizeof(*base)); in update_fast_timekeeper()
348 tkr = tkf->base + (seq & 0x01); in __ktime_get_fast_ns()
349 now = ktime_to_ns(tkr->base); in __ktime_get_fast_ns()
463 tkr = tkf->base + (seq & 0x01); in __ktime_get_real_fast()
464 basem = ktime_to_ns(tkr->base); in __ktime_get_real_fast()
557 tkr_dummy.base_real = tkr->base + tk->offs_real; in halt_fast_timekeeper()
638 tk->tkr_mono.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec); in tk_update_ktime_data()
651 tk->tkr_raw.base = ns_to_ktime(tk->raw_sec * NSEC_PER_SEC); in tk_update_ktime_data()
668 tk->tkr_mono.base_real = tk->tkr_mono.base + tk->offs_real; in timekeeping_update()
744 ktime_t base; in ktime_get() local
751 base = tk->tkr_mono.base; in ktime_get()
756 return ktime_add_ns(base, nsecs); in ktime_get()
787 ktime_t base, *offset = offsets[offs]; in ktime_get_with_offset() local
794 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_with_offset()
799 return ktime_add_ns(base, nsecs); in ktime_get_with_offset()
808 ktime_t base, *offset = offsets[offs]; in ktime_get_coarse_with_offset() local
815 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_coarse_with_offset()
820 return ktime_add_ns(base, nsecs); in ktime_get_coarse_with_offset()
851 ktime_t base; in ktime_get_raw() local
856 base = tk->tkr_raw.base; in ktime_get_raw()
861 return ktime_add_ns(base, nsecs); in ktime_get_raw()
979 base_real = ktime_add(tk->tkr_mono.base, in ktime_get_snapshot()
981 base_boot = ktime_add(tk->tkr_mono.base, in ktime_get_snapshot()
983 base_raw = tk->tkr_raw.base; in ktime_get_snapshot()
1000 static int scale64_check_overflow(u64 mult, u64 div, u64 *base) in scale64_check_overflow() argument
1004 tmp = div64_u64_rem(*base, div, &rem); in scale64_check_overflow()
1012 *base = tmp + rem; in scale64_check_overflow()
1124 struct clocksource_base *base; in convert_base_to_cs() local
1135 base = READ_ONCE(cs->base); in convert_base_to_cs()
1136 if (!base || base->id != scv->cs_id) in convert_base_to_cs()
1139 num = scv->use_nsecs ? cs->freq_khz : base->numerator; in convert_base_to_cs()
1140 den = scv->use_nsecs ? USEC_PER_SEC : base->denominator; in convert_base_to_cs()
1145 scv->cycles += base->offset; in convert_base_to_cs()
1152 struct clocksource_base *base; in convert_cs_to_base() local
1158 base = READ_ONCE(cs->base); in convert_cs_to_base()
1159 if (!base || base->id != base_id) in convert_cs_to_base()
1162 *cycles -= base->offset; in convert_cs_to_base()
1163 if (!convert_clock(cycles, base->denominator, base->numerator)) in convert_cs_to_base()
1276 base_real = ktime_add(tk->tkr_mono.base, in get_device_system_crosststamp()
1278 base_raw = tk->tkr_raw.base; in get_device_system_crosststamp()
1340 struct clocksource_base *base = READ_ONCE(tk_core.timekeeper.tkr_mono.clock->base); in timekeeping_clocksource_has_base() local
1342 return base ? base->id == id : false; in timekeeping_clocksource_has_base()
2351 ktime_t base; in ktime_get_update_offsets_now() local
2357 base = tk->tkr_mono.base; in ktime_get_update_offsets_now()
2359 base = ktime_add_ns(base, nsecs); in ktime_get_update_offsets_now()
2369 if (unlikely(base >= tk->next_leap_ktime)) in ktime_get_update_offsets_now()
2374 return base; in ktime_get_update_offsets_now()