Searched refs:cycle_last (Results 1 - 24 of 24) sorted by relevance

/linux-4.4.14/kernel/time/
H A Dtimecounter.c26 tc->cycle_last = cc->read(cc); timecounter_init()
53 cycle_delta = (cycle_now - tc->cycle_last) & tc->cc->mask; timecounter_read_delta()
60 tc->cycle_last = cycle_now; timecounter_read_delta()
95 u64 delta = (cycle_tstamp - tc->cycle_last) & tc->cc->mask; timecounter_cyc2time()
100 * than tc->cycle_last, detect when it is too far in the timecounter_cyc2time()
104 delta = (tc->cycle_last - cycle_tstamp) & tc->cc->mask; timecounter_cyc2time()
H A Dtimekeeping.c177 last = tkr->cycle_last; timekeeping_get_delta()
213 delta = clocksource_delta(cycle_now, tkr->cycle_last, tkr->mask); timekeeping_get_delta()
240 tk->tkr_mono.cycle_last = tk->tkr_mono.read(clock); tk_setup_internals()
245 tk->tkr_raw.cycle_last = tk->tkr_mono.cycle_last; tk_setup_internals()
447 tk->tkr_mono.cycle_last); update_vsyscall()
603 delta = clocksource_delta(cycle_now, tk->tkr_mono.cycle_last, tk->tkr_mono.mask); timekeeping_forward_now()
604 tk->tkr_mono.cycle_last = cycle_now; timekeeping_forward_now()
605 tk->tkr_raw.cycle_last = cycle_now; timekeeping_forward_now()
1387 cycle_now > tk->tkr_mono.cycle_last) { timekeeping_resume()
1393 cycle_delta = clocksource_delta(cycle_now, tk->tkr_mono.cycle_last, timekeeping_resume()
1420 tk->tkr_mono.cycle_last = cycle_now; timekeeping_resume()
1421 tk->tkr_raw.cycle_last = cycle_now; timekeeping_resume()
1734 tk->tkr_mono.cycle_last += interval; logarithmic_accumulation()
1735 tk->tkr_raw.cycle_last += interval; logarithmic_accumulation()
1781 tk->tkr_mono.cycle_last, tk->tkr_mono.mask); update_wall_time()
/linux-4.4.14/arch/x86/entry/vsyscall/
H A Dvsyscall_gtod.c35 vdata->cycle_last = tk->tkr_mono.cycle_last; update_vsyscall()
/linux-4.4.14/include/linux/
H A Dtimekeeper_internal.h18 * @cycle_last: @clock cycle value at last update
34 cycle_t cycle_last; member in struct:tk_read_base
137 cycle_t cycle_last);
H A Dtimecounter.h58 * @cycle_last: most recent cycle counter value seen by
66 cycle_t cycle_last; member in struct:timecounter
/linux-4.4.14/arch/s390/kernel/vdso32/
H A Dclock_gettime.S40 s %r0,__VDSO_XTIME_STAMP(%r5) /* TOD - cycle_last */
103 s %r0,__VDSO_XTIME_STAMP(%r5) /* TOD - cycle_last */
H A Dgettimeofday.S35 s %r0,__VDSO_XTIME_STAMP(%r5) /* TOD - cycle_last */
/linux-4.4.14/arch/tile/include/asm/
H A Dvdso.h32 __u64 cycle_last; /* TOD clock for xtime */ member in struct:vdso_data
/linux-4.4.14/arch/x86/include/asm/
H A Dvgtod.h20 cycle_t cycle_last; member in struct:vsyscall_gtod_data
/linux-4.4.14/arch/s390/kernel/vdso64/
H A Dgettimeofday.S34 sg %r1,__VDSO_XTIME_STAMP(%r5) /* TOD - cycle_last */
H A Dclock_gettime.S43 sg %r1,__VDSO_XTIME_STAMP(%r5) /* TOD - cycle_last */
88 sg %r1,__VDSO_XTIME_STAMP(%r5) /* TOD - cycle_last */
/linux-4.4.14/arch/x86/entry/vdso/
H A Dvclock_gettime.c124 last = gtod->cycle_last; vread_pvclock()
179 u64 last = gtod->cycle_last; vread_tsc()
213 v = (cycles - gtod->cycle_last) & gtod->mask; vgetsns()
/linux-4.4.14/arch/tile/kernel/
H A Dtime.c267 vdso_data->cycle_last = tk->tkr_mono.cycle_last; update_vsyscall()
/linux-4.4.14/sound/hda/
H A Dhdac_stream.c505 tc->cycle_last = last; azx_timecounter_init()
526 cycle_t cycle_last = 0; snd_hdac_stream_timecounter_init() local
531 azx_timecounter_init(s, inited, cycle_last); snd_hdac_stream_timecounter_init()
534 cycle_last = s->tc.cycle_last; snd_hdac_stream_timecounter_init()
/linux-4.4.14/arch/tile/kernel/vdso/
H A Dvgettimeofday.c61 return ((get_cycles() - vdso->cycle_last) & vdso->mask) * vdso->mult; vgetsns()
/linux-4.4.14/arch/mips/kernel/
H A Dvdso.c83 vdso_data.cs_cycle_last = tk->tkr_mono.cycle_last; update_vsyscall()
/linux-4.4.14/arch/arm64/kernel/
H A Dvdso.c215 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; update_vsyscall()
/linux-4.4.14/arch/ia64/kernel/
H A Dtime.c400 struct clocksource *c, u32 mult, cycle_t cycle_last) update_vsyscall_old()
409 fsyscall_gtod_data.clk_cycle_last = cycle_last; update_vsyscall_old()
399 update_vsyscall_old(struct timespec *wall, struct timespec *wtm, struct clocksource *c, u32 mult, cycle_t cycle_last) update_vsyscall_old() argument
H A Dfsys.S170 // r24 = address mult factor / cycle_last value
172 // r26 = address clocksource cycle_last
/linux-4.4.14/arch/x86/kernel/
H A Dtsc.c972 * We used to compare the TSC to the cycle_last value in the clocksource
974 * very small window right after one CPU updated cycle_last under
976 * is smaller than the cycle_last reference value due to a TSC which
984 * checking the result of read_tsc() - cycle_last for being negative.
/linux-4.4.14/arch/arm/kernel/
H A Dvdso.c318 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; update_vsyscall()
/linux-4.4.14/arch/powerpc/kernel/
H A Dtime.c784 struct clocksource *clock, u32 mult, cycle_t cycle_last) update_vsyscall_old()
817 vdso_data->tb_orig_stamp = cycle_last; update_vsyscall_old()
783 update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm, struct clocksource *clock, u32 mult, cycle_t cycle_last) update_vsyscall_old() argument
/linux-4.4.14/arch/s390/kernel/
H A Dtime.c221 vdso_data->xtime_tod_stamp = tk->tkr_mono.cycle_last; update_vsyscall()
/linux-4.4.14/arch/x86/kvm/
H A Dx86.c1105 cycle_t cycle_last; member in struct:pvclock_gtod_data::__anon3204
1128 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; update_pvclock_gtod()
1554 u64 last = pvclock_gtod_data.clock.cycle_last; read_tsc()
1578 v = (*cycle_now - gtod->clock.cycle_last) & gtod->clock.mask; vgettsc()

Completed in 586 milliseconds