Searched refs:CycleNum (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.8/kernel/src/time/ |
D | clocksource.rs | 52 pub struct CycleNum(pub u64); struct 55 impl CycleNum { impl 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 [all …]
|
D | jiffies.rs | 9 clocksource::{Clocksource, ClocksourceData, ClocksourceFlags, ClocksourceMask, CycleNum, HZ}, 35 fn read(&self) -> CycleNum { in read() argument 36 CycleNum(clock()) in read() 73 watchdog_last: CycleNum(0), in new()
|
D | timekeeping.rs | 14 clocksource::{clocksource_cyc2ns, Clocksource, CycleNum, HZ}, 45 cycle_interval: CycleNum, 70 cycle_interval: CycleNum(0), in new() 119 timekeeper.cycle_interval = CycleNum(temp); in timekeeper_setup_internals() 141 return clocksource_cyc2ns(CycleNum(clock_delta), clcok_data.mult, clcok_data.shift); in tk_get_ns()
|