Lines Matching refs:tmp
153 struct timespec64 tmp; in tk_set_wall_to_mono() local
159 set_normalized_timespec64(&tmp, -tk->wall_to_monotonic.tv_sec, in tk_set_wall_to_mono()
161 WARN_ON_ONCE(tk->offs_real != timespec64_to_ktime(tmp)); in tk_set_wall_to_mono()
163 set_normalized_timespec64(&tmp, -wtm.tv_sec, -wtm.tv_nsec); in tk_set_wall_to_mono()
164 tk->offs_real = timespec64_to_ktime(tmp); in tk_set_wall_to_mono()
312 u64 tmp, ntpinterval; in tk_setup_internals() local
326 tmp = NTP_INTERVAL_LENGTH; in tk_setup_internals()
327 tmp <<= clock->shift; in tk_setup_internals()
328 ntpinterval = tmp; in tk_setup_internals()
329 tmp += clock->mult/2; in tk_setup_internals()
330 do_div(tmp, clock->mult); in tk_setup_internals()
331 if (tmp == 0) in tk_setup_internals()
332 tmp = 1; in tk_setup_internals()
334 interval = (u64) tmp; in tk_setup_internals()
1076 u64 tmp, rem; in scale64_check_overflow() local
1078 tmp = div64_u64_rem(*base, div, &rem); in scale64_check_overflow()
1080 if (((int)sizeof(u64)*8 - fls64(mult) < fls64(tmp)) || in scale64_check_overflow()
1083 tmp *= mult; in scale64_check_overflow()
1086 *base = tmp + rem; in scale64_check_overflow()
1353 struct timespec64 tmp; in timekeeping_inject_offset() local
1365 tmp = timespec64_add(tk_xtime(tk), *ts); in timekeeping_inject_offset()
1367 !timespec64_valid_settod(&tmp)) { in timekeeping_inject_offset()