Lines Matching refs:CycleNum
52 pub struct CycleNum(pub u64); struct
55 impl CycleNum { implementation
66 pub fn add(&self, other: CycleNum) -> CycleNum { in add() argument
67 CycleNum(self.data() + other.data()) in add()
70 pub fn div(&self, other: CycleNum) -> CycleNum { in div() argument
71 CycleNum(self.data() - other.data()) in div()
121 last_check: CycleNum,
130 last_check: CycleNum(0), in new()
180 fn read(&self) -> CycleNum; in read() argument
190 fn vread(&self) -> Result<CycleNum, SystemError> { in vread() argument
256 CycleNum(max_cycles), in clocksource_max_deferment()
555 pub watchdog_last: CycleNum,
577 watchdog_last: CycleNum(0), in new()
615 pub fn clocksource_cyc2ns(cycles: CycleNum, mult: u32, shift: u32) -> u64 { in clocksource_cyc2ns() argument
669 CycleNum((cur_wd_nowclock - wd_last) & cur_wd_data.mask.bits), in clocksource_watchdog()
673 cs_watchdog.last_check = CycleNum(cur_wd_nowclock); in clocksource_watchdog()
706 CycleNum(cs_now_clock.div(cs_data.watchdog_last).data() & cs_data.mask.bits), in clocksource_watchdog()