Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/driver/
H A Dtsc.rs125 let mut ms = cal_ms; in calibrate_cpu_by_pit_hpet_ptimer() localVariable
134 let tsc_pit_khz = Self::pit_calibrate_tsc(latch, ms, loopmin).unwrap_or(u64::MAX); in calibrate_cpu_by_pit_hpet_ptimer()
182 ms = cal2_ms; in calibrate_cpu_by_pit_hpet_ptimer()
238 fn pit_calibrate_tsc(latch: u64, ms: u64, loopmin: u64) -> Option<u64> { in pit_calibrate_tsc()
292 delta /= ms; in pit_calibrate_tsc()
/DragonOS/kernel/src/time/
H A Dtimer.rs64 let ms = jiffies.data() / 1_000_000 * NSEC_PER_JIFFY as u64; in from() localVariable
65 let result = Duration::from_millis(ms); in from()
80 fn from(ms: Duration) -> Self { in from()
81 let jiffies = ms.as_millis() as u64 * 1_000_000 / NSEC_PER_JIFFY as u64; in from()