Lines Matching refs:cyc
66 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
68 return (cyc * mult) >> shift; in cyc_to_ns()
84 u64 cyc, res; in sched_clock() local
91 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock()
93 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock()
129 u64 cyc; in update_sched_clock() local
135 cyc = cd.actual_read_sched_clock(); in update_sched_clock()
136 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
139 rd.epoch_cyc = cyc; in update_sched_clock()
155 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local
181 cyc = cd.actual_read_sched_clock(); in sched_clock_register()
182 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in sched_clock_register()