Lines Matching refs:tks

1442 		struct timekeeper *tks = &tk_core.shadow_timekeeper;  in do_settimeofday64()  local
1444 timekeeping_forward_now(tks); in do_settimeofday64()
1446 xt = tk_xtime(tks); in do_settimeofday64()
1449 if (timespec64_compare(&tks->wall_to_monotonic, &ts_delta) > 0) { in do_settimeofday64()
1454 tk_set_wall_to_mono(tks, timespec64_sub(tks->wall_to_monotonic, ts_delta)); in do_settimeofday64()
1455 tk_set_xtime(tks, ts); in do_settimeofday64()
1482 struct timekeeper *tks = &tkd->shadow_timekeeper; in __timekeeping_inject_offset() local
1488 timekeeping_forward_now(tks); in __timekeeping_inject_offset()
1490 if (timekeeper_is_core_tk(tks)) { in __timekeeping_inject_offset()
1492 tmp = timespec64_add(tk_xtime(tks), *ts); in __timekeeping_inject_offset()
1493 if (timespec64_compare(&tks->wall_to_monotonic, ts) > 0 || in __timekeeping_inject_offset()
1499 tk_xtime_add(tks, ts); in __timekeeping_inject_offset()
1500 tk_set_wall_to_mono(tks, timespec64_sub(tks->wall_to_monotonic, *ts)); in __timekeeping_inject_offset()
1502 struct tk_read_base *tkr_mono = &tks->tkr_mono; in __timekeeping_inject_offset()
1508 offs = ktime_add(tks->offs_aux, timespec64_to_ktime(*ts)); in __timekeeping_inject_offset()
1515 tk_update_aux_offs(tks, offs); in __timekeeping_inject_offset()
1602 struct timekeeper *tks = &tk_core.shadow_timekeeper; in change_clocksource() local
1604 timekeeping_forward_now(tks); in change_clocksource()
1605 old = tks->tkr_mono.clock; in change_clocksource()
1606 tk_setup_internals(tks, new); in change_clocksource()
1804 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_init() local
1835 tk_setup_internals(tks, clock); in timekeeping_init()
1837 tk_set_xtime(tks, &wall_time); in timekeeping_init()
1838 tks->raw_sec = 0; in timekeeping_init()
1840 tk_set_wall_to_mono(tks, wall_to_mono); in timekeeping_init()
1921 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_inject_sleeptime64() local
1924 timekeeping_forward_now(tks); in timekeeping_inject_sleeptime64()
1925 __timekeeping_inject_sleeptime(tks, delta); in timekeeping_inject_sleeptime64()
1939 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_resume() local
1940 struct clocksource *clock = tks->tkr_mono.clock; in timekeeping_resume()
1965 cycle_now = tk_clock_read(&tks->tkr_mono); in timekeeping_resume()
1977 __timekeeping_inject_sleeptime(tks, &ts_delta); in timekeeping_resume()
1981 tks->tkr_mono.cycle_last = cycle_now; in timekeeping_resume()
1982 tks->tkr_raw.cycle_last = cycle_now; in timekeeping_resume()
1984 tks->ntp_error = 0; in timekeeping_resume()
2004 struct timekeeper *tks = &tk_core.shadow_timekeeper; in timekeeping_suspend() local
2024 timekeeping_forward_now(tks); in timekeeping_suspend()
2032 curr_clock = tks->tkr_mono.clock; in timekeeping_suspend()
2033 cycle_now = tks->tkr_mono.cycle_last; in timekeeping_suspend()
2043 delta = timespec64_sub(tk_xtime(tks), timekeeping_suspend_time); in timekeeping_suspend()
2059 halt_fast_timekeeper(tks); in timekeeping_suspend()
2697 struct timekeeper *tks = &tkd->shadow_timekeeper; in __do_adjtimex() local
2698 bool aux_clock = !timekeeper_is_core_tk(tks); in __do_adjtimex()
2718 if (!tks->clock_valid) in __do_adjtimex()
2732 orig_tai = tai = tks->tai_offset; in __do_adjtimex()
2733 ret = ntp_adjtimex(tks->id, txc, &ts, &tai, &result->ad); in __do_adjtimex()
2736 __timekeeping_set_tai_offset(tks, tai); in __do_adjtimex()
2830 struct timekeeper *tks = &tkd->shadow_timekeeper; in tk_aux_update_clocksource() local
2833 if (!tks->clock_valid) in tk_aux_update_clocksource()
2836 timekeeping_forward_now(tks); in tk_aux_update_clocksource()
2837 tk_setup_internals(tks, tk_core.timekeeper.tkr_mono.clock); in tk_aux_update_clocksource()