• 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
870 ktime_t base, *offset = offsets[offs]; in ktime_get_with_offset() local
877 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_with_offset()
891 ktime_t base, *offset = offsets[offs]; in ktime_get_coarse_with_offset() local
898 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_coarse_with_offset()
914 ktime_t *offset = offsets[offs]; in ktime_mono_to_any() local
920 tconv = ktime_add(tmono, *offset); in ktime_mono_to_any()
1898 s64 offset, in timekeeping_apply_adjustment() argument
1907 offset = -offset; in timekeeping_apply_adjustment()
1910 offset *= mult_adj; in timekeeping_apply_adjustment()
1968 tk->tkr_mono.xtime_nsec -= offset; in timekeeping_apply_adjustment()
1975 static void timekeeping_adjust(struct timekeeper *tk, s64 offset) in timekeeping_adjust() argument
2000 timekeeping_apply_adjustment(tk, offset, mult - tk->tkr_mono.mult); in timekeeping_adjust()
2086 static u64 logarithmic_accumulation(struct timekeeper *tk, u64 offset, in logarithmic_accumulation() argument
2093 if (offset < interval) in logarithmic_accumulation()
2094 return offset; in logarithmic_accumulation()
2097 offset -= interval; in logarithmic_accumulation()
2117 return offset; in logarithmic_accumulation()
2128 u64 offset; in timekeeping_advance() local
2140 offset = real_tk->cycle_interval; in timekeeping_advance()
2145 offset = clocksource_delta(tk_clock_read(&tk->tkr_mono), in timekeeping_advance()
2149 if (offset < real_tk->cycle_interval && mode == TK_ADV_TICK) in timekeeping_advance()
2154 timekeeping_check_update(tk, offset); in timekeeping_advance()
2164 shift = ilog2(offset) - ilog2(tk->cycle_interval); in timekeeping_advance()
2169 while (offset >= tk->cycle_interval) { in timekeeping_advance()
2170 offset = logarithmic_accumulation(tk, offset, shift, in timekeeping_advance()
2172 if (offset < tk->cycle_interval<<shift) in timekeeping_advance()
2177 timekeeping_adjust(tk, offset); in timekeeping_advance()