Lines Matching refs:nsec
363 u64 nsec; in timekeeping_delta_to_ns() local
365 nsec = delta * tkr->mult + tkr->xtime_nsec; in timekeeping_delta_to_ns()
366 nsec >>= tkr->shift; in timekeeping_delta_to_ns()
369 return nsec + arch_gettimeoffset(); in timekeeping_delta_to_ns()
635 u32 nsec; in tk_update_ktime_data() local
645 nsec = (u32) tk->wall_to_monotonic.tv_nsec; in tk_update_ktime_data()
646 tk->tkr_mono.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec); in tk_update_ktime_data()
653 nsec += (u32)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_update_ktime_data()
654 if (nsec >= NSEC_PER_SEC) in tk_update_ktime_data()
887 u64 nsec; in ktime_get_ts64() local
894 nsec = timekeeping_get_ns(&tk->tkr_mono); in ktime_get_ts64()
901 timespec64_add_ns(ts, nsec + tomono.tv_nsec); in ktime_get_ts64()
1684 u64 cycle_now, nsec; in timekeeping_resume() local
1708 nsec = clocksource_stop_suspend_timing(clock, cycle_now); in timekeeping_resume()
1709 if (nsec > 0) { in timekeeping_resume()
1710 ts_delta = ns_to_timespec64(nsec); in timekeeping_resume()