Lines Matching refs:CycleNum
73 pub struct CycleNum(u64); struct
76 impl CycleNum { impl
87 pub fn add(&self, other: CycleNum) -> CycleNum { in add() argument
88 CycleNum(self.data() + other.data()) in add()
91 pub fn div(&self, other: CycleNum) -> CycleNum { in div() argument
92 CycleNum(self.data() - other.data()) in div()
204 fn read(&self) -> CycleNum; in read() argument
216 fn vread(&self) -> Result<CycleNum, SystemError> { in vread() argument
282 CycleNum(max_cycles), in clocksource_max_deferment()
674 pub watchdog_last: CycleNum,
676 pub cs_last: CycleNum,
682 pub cycle_last: CycleNum,
707 watchdog_last: CycleNum(0), in new()
708 cs_last: CycleNum(0), in new()
711 cycle_last: CycleNum(0), in new()
755 pub fn clocksource_cyc2ns(cycles: CycleNum, mult: u32, shift: u32) -> u64 { in clocksource_cyc2ns() argument
852 cs_data.watchdog_last = CycleNum::new(wd_now_clock); in clocksource_watchdog()
859 CycleNum((wd_now_clock - cs_data.watchdog_last.data()) & wd_now_data.mask.bits), in clocksource_watchdog()
865 CycleNum(cs_now_clock.div(cs_data.cs_last).data() & cs_data.mask.bits), in clocksource_watchdog()
870 cs_data.watchdog_last = CycleNum::new(wd_now_clock); in clocksource_watchdog()