Lines Matching refs:cyc
67 static __always_inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
69 return (cyc * mult) >> shift; in cyc_to_ns()
87 u64 cyc, res; in sched_clock_noinstr() local
93 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock_noinstr()
95 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock_noinstr()
140 u64 cyc; in update_sched_clock() local
146 cyc = cd.actual_read_sched_clock(); in update_sched_clock()
147 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
150 rd.epoch_cyc = cyc; in update_sched_clock()
166 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local
192 cyc = cd.actual_read_sched_clock(); in sched_clock_register()
193 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in sched_clock_register()