• Home
  • Raw
  • Download

Lines Matching refs:shift

102 		.shift		= 0,				\
119 while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { in tk_normalize_xtime()
120 tk->tkr_mono.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_mono.shift; in tk_normalize_xtime()
123 while (tk->tkr_raw.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_raw.shift)) { in tk_normalize_xtime()
124 tk->tkr_raw.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_raw.shift; in tk_normalize_xtime()
134 ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_xtime()
141 tk->tkr_mono.xtime_nsec = (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_set_xtime()
147 tk->tkr_mono.xtime_nsec += (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_xtime_add()
327 tmp <<= clock->shift; in tk_setup_internals()
344 int shift_change = clock->shift - old_clock->shift; in tk_setup_internals()
354 tk->tkr_mono.shift = clock->shift; in tk_setup_internals()
355 tk->tkr_raw.shift = clock->shift; in tk_setup_internals()
358 tk->ntp_error_shift = NTP_SCALE_SHIFT - clock->shift; in tk_setup_internals()
379 nsec >>= tkr->shift; in timekeeping_delta_to_ns()
747 nsec += (u32)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_update_ktime_data()
866 nsecs = tk->tkr_mono.mult >> tk->tkr_mono.shift; in ktime_get_resolution_ns()
912 nsecs = tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift; in ktime_get_coarse_with_offset()
1083 mono_shift = tk->tkr_mono.shift; in ktime_get_snapshot()
2059 tk->tkr_mono.shift; in timekeeping_adjust()
2074 u64 nsecps = (u64)NSEC_PER_SEC << tk->tkr_mono.shift; in accumulate_nsecs_to_secs()
2122 u32 shift, unsigned int *clock_set) in logarithmic_accumulation() argument
2124 u64 interval = tk->cycle_interval << shift; in logarithmic_accumulation()
2136 tk->tkr_mono.xtime_nsec += tk->xtime_interval << shift; in logarithmic_accumulation()
2140 tk->tkr_raw.xtime_nsec += tk->raw_interval << shift; in logarithmic_accumulation()
2141 snsec_per_sec = (u64)NSEC_PER_SEC << tk->tkr_raw.shift; in logarithmic_accumulation()
2148 tk->ntp_error += tk->ntp_tick << shift; in logarithmic_accumulation()
2150 (tk->ntp_error_shift + shift); in logarithmic_accumulation()
2164 int shift = 0, maxshift; in timekeeping_advance() local
2192 shift = ilog2(offset) - ilog2(tk->cycle_interval); in timekeeping_advance()
2193 shift = max(0, shift); in timekeeping_advance()
2196 shift = min(shift, maxshift); in timekeeping_advance()
2198 offset = logarithmic_accumulation(tk, offset, shift, in timekeeping_advance()
2200 if (offset < tk->cycle_interval<<shift) in timekeeping_advance()
2201 shift--; in timekeeping_advance()