Lines Matching refs:u64
19 static mut TSC_KHZ: u64 = 0;
20 static mut CPU_KHZ: u64 = 0;
23 const DEFAULT_THRESHOLD: u64 = 0x20000;
103 fn calibrate_cpu_by_pit_hpet_ptimer() -> Result<u64, SystemError> { in calibrate_cpu_by_pit_hpet_ptimer()
110 let mut tsc_pit_min = u64::MAX; in calibrate_cpu_by_pit_hpet_ptimer()
111 let mut tsc_ref_min = u64::MAX; in calibrate_cpu_by_pit_hpet_ptimer()
134 let tsc_pit_khz = Self::pit_calibrate_tsc(latch, ms, loopmin).unwrap_or(u64::MAX); in calibrate_cpu_by_pit_hpet_ptimer()
151 if tsc1 == u64::MAX || tsc2 == u64::MAX { in calibrate_cpu_by_pit_hpet_ptimer()
180 if i == 1 && tsc_pit_min == u64::MAX { in calibrate_cpu_by_pit_hpet_ptimer()
187 if tsc_pit_min == u64::MAX { in calibrate_cpu_by_pit_hpet_ptimer()
196 if tsc_ref_min == u64::MAX { in calibrate_cpu_by_pit_hpet_ptimer()
215 if tsc_ref_min == u64::MAX { in calibrate_cpu_by_pit_hpet_ptimer()
238 fn pit_calibrate_tsc(latch: u64, ms: u64, loopmin: u64) -> Option<u64> { in pit_calibrate_tsc() argument
263 let mut tsc = CurrentTimeArch::get_cycles() as u64; in pit_calibrate_tsc()
268 let mut tscmin = u64::MAX; in pit_calibrate_tsc()
270 t2 = CurrentTimeArch::get_cycles() as u64; in pit_calibrate_tsc()
308 fn read_refs(hpet_enabled: bool) -> (u64, u64) { in read_refs() argument
317 let t1 = CurrentTimeArch::get_cycles() as u64; in read_refs()
321 ref_ret = acpi_pm_read_early() as u64; in read_refs()
323 let t2 = CurrentTimeArch::get_cycles() as u64; in read_refs()
330 return (u64::MAX, ref_ret); in read_refs()
336 fn calc_hpet_ref(mut deltatsc: u64, ref1: u64, mut ref2: u64) -> u64 { in calc_hpet_ref() argument
352 fn calc_pmtimer_ref(mut deltatsc: u64, ref1: u64, mut ref2: u64) -> u64 { in calc_pmtimer_ref() argument
354 return u64::MAX; in calc_pmtimer_ref()
372 pub fn tsc_khz() -> u64 { in tsc_khz()
376 pub fn cpu_khz() -> u64 { in cpu_khz()
380 fn set_cpu_khz(khz: u64) { in set_cpu_khz() argument
386 fn set_tsc_khz(khz: u64) { in set_tsc_khz() argument