Home
last modified time | relevance | path

Searched refs:CycleNum (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/time/
H A Djiffies.rs11 clocksource::{Clocksource, ClocksourceData, ClocksourceFlags, ClocksourceMask, CycleNum, HZ},
39 fn read(&self) -> CycleNum { in read() argument
40 CycleNum::new(clock()) in read()
82 watchdog_last: CycleNum::new(0), in new()
83 cs_last: CycleNum::new(0), in new()
86 cycle_last: CycleNum::new(0), in new()
H A Dclocksource.rs73 pub struct CycleNum(u64); struct
76 impl CycleNum { implementation
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,
[all …]
H A Dtimekeeping.rs20 clocksource::{clocksource_cyc2ns, Clocksource, CycleNum, HZ},
49 cycle_interval: CycleNum,
75 cycle_interval: CycleNum::new(0), in new()
131 timekeeper.cycle_interval = CycleNum::new(temp); in timekeeper_setup_internals()
154 CycleNum::new(cycle_delta), in timekeeping_get_ns()
270 .add(CycleNum::new(timekeeper.cycle_interval.data() << shift)); in logarithmic_accumulation()
/DragonOS/kernel/src/driver/clocksource/
H A Dacpi_pm.rs10 clocksource::{Clocksource, ClocksourceData, ClocksourceFlags, ClocksourceMask, CycleNum},
90 watchdog_last: CycleNum::new(0), in new()
91 cs_last: CycleNum::new(0), in new()
94 cycle_last: CycleNum::new(0), in new()
107 fn read(&self) -> CycleNum { in read() argument
108 return CycleNum::new(acpi_pm_read()); in read()