• Home
  • Raw
  • Download

Lines Matching refs:offset

201 static void timekeeping_check_update(struct timekeeper *tk, u64 offset)  in timekeeping_check_update()  argument
207 if (offset > max_cycles) { in timekeeping_check_update()
209 offset, name, max_cycles); in timekeeping_check_update()
212 if (offset > (max_cycles >> 1)) { in timekeeping_check_update()
214 offset, name, max_cycles >> 1); in timekeeping_check_update()
281 static inline void timekeeping_check_update(struct timekeeper *tk, u64 offset) in timekeeping_check_update() argument
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()
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()
927 ktime_t *offset = offsets[offs]; in ktime_mono_to_any() local
933 tconv = ktime_add(tmono, *offset); in ktime_mono_to_any()
1934 s64 offset, in timekeeping_apply_adjustment() argument
1943 offset = -offset; in timekeeping_apply_adjustment()
1946 offset *= mult_adj; in timekeeping_apply_adjustment()
2004 tk->tkr_mono.xtime_nsec -= offset; in timekeeping_apply_adjustment()
2011 static void timekeeping_adjust(struct timekeeper *tk, s64 offset) in timekeeping_adjust() argument
2036 timekeeping_apply_adjustment(tk, offset, mult - tk->tkr_mono.mult); in timekeeping_adjust()
2121 static u64 logarithmic_accumulation(struct timekeeper *tk, u64 offset, in logarithmic_accumulation() argument
2128 if (offset < interval) in logarithmic_accumulation()
2129 return offset; in logarithmic_accumulation()
2132 offset -= interval; in logarithmic_accumulation()
2152 return offset; in logarithmic_accumulation()
2163 u64 offset; in timekeeping_advance() local
2174 offset = clocksource_delta(tk_clock_read(&tk->tkr_mono), in timekeeping_advance()
2178 if (offset < real_tk->cycle_interval && mode == TK_ADV_TICK) in timekeeping_advance()
2182 timekeeping_check_update(tk, offset); in timekeeping_advance()
2192 shift = ilog2(offset) - ilog2(tk->cycle_interval); in timekeeping_advance()
2197 while (offset >= tk->cycle_interval) { in timekeeping_advance()
2198 offset = logarithmic_accumulation(tk, offset, shift, in timekeeping_advance()
2200 if (offset < tk->cycle_interval<<shift) in timekeeping_advance()
2205 timekeeping_adjust(tk, offset); in timekeeping_advance()