Lines Matching refs:offset
855 ktime_t base, *offset = offsets[offs]; in ktime_get_with_offset() local
862 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_with_offset()
875 ktime_t base, *offset = offsets[offs]; in ktime_get_coarse_with_offset() local
883 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_coarse_with_offset()
899 ktime_t *offset = offsets[offs]; in ktime_mono_to_any() local
908 return ktime_add(tmono, READ_ONCE(*offset)); in ktime_mono_to_any()
913 tconv = ktime_add(tmono, *offset); in ktime_mono_to_any()
1221 scv->cycles += base->offset; in convert_base_to_cs()
1238 *cycles -= base->offset; in convert_cs_to_base()
2075 s64 offset, in timekeeping_apply_adjustment() argument
2084 offset = -offset; in timekeeping_apply_adjustment()
2087 offset *= mult_adj; in timekeeping_apply_adjustment()
2145 tk->tkr_mono.xtime_nsec -= offset; in timekeeping_apply_adjustment()
2152 static void timekeeping_adjust(struct timekeeper *tk, s64 offset) in timekeeping_adjust() argument
2178 timekeeping_apply_adjustment(tk, offset, mult - tk->tkr_mono.mult); in timekeeping_adjust()
2263 static u64 logarithmic_accumulation(struct timekeeper *tk, u64 offset, in logarithmic_accumulation() argument
2270 if (offset < interval) in logarithmic_accumulation()
2271 return offset; in logarithmic_accumulation()
2274 offset -= interval; in logarithmic_accumulation()
2294 return offset; in logarithmic_accumulation()
2307 u64 offset, orig_offset; in __timekeeping_advance() local
2313 offset = clocksource_delta(tk_clock_read(&tk->tkr_mono), in __timekeeping_advance()
2316 orig_offset = offset; in __timekeeping_advance()
2318 if (offset < real_tk->cycle_interval && mode == TK_ADV_TICK) in __timekeeping_advance()
2329 shift = ilog2(offset) - ilog2(tk->cycle_interval); in __timekeeping_advance()
2334 while (offset >= tk->cycle_interval) { in __timekeeping_advance()
2335 offset = logarithmic_accumulation(tk, offset, shift, &clock_set); in __timekeeping_advance()
2336 if (offset < tk->cycle_interval<<shift) in __timekeeping_advance()
2341 timekeeping_adjust(tk, offset); in __timekeeping_advance()
2354 if (orig_offset != offset) in __timekeeping_advance()
2426 ktime_t f_real, offset, coarse; in ktime_get_coarse_real_ts64_mg() local
2432 offset = tk_core.timekeeper.offs_real; in ktime_get_coarse_real_ts64_mg()
2436 f_real = ktime_add(floor, offset); in ktime_get_coarse_real_ts64_mg()
2464 ktime_t offset, mono; in ktime_get_real_ts64_mg() local
2474 offset = tk_core.timekeeper.offs_real; in ktime_get_real_ts64_mg()
2497 *ts = ktime_to_timespec64(ktime_add(old, offset)); in ktime_get_real_ts64_mg()