Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/driver/
H A Dhpet.rs123 let freq = regs.frequency(); in hpet_enable() localVariable
124 debug!("HPET frequency: {} Hz", freq); in hpet_enable()
125 let ticks = Self::HPET0_INTERVAL_USEC * freq / 1000000; in hpet_enable()
126 if ticks == 0 || ticks > freq * 8 { in hpet_enable()
/DragonOS/kernel/src/time/
H A Dclocksource.rs324 fn clocksource_update_freq_scale(&self, scale: u32, freq: u32) -> Result<(), SystemError> { in clocksource_update_freq_scale()
325 if freq != 0 { in clocksource_update_freq_scale()
329 sec /= freq as u64; in clocksource_update_freq_scale()
338 self.clocks_calc_mult_shift(freq, NSEC_PER_SEC / scale, sec as u32 * scale); in clocksource_update_freq_scale()
345 if scale != 0 && freq != 0 && cs_data.uncertainty_margin == 0 { in clocksource_update_freq_scale()
346 cs_data.set_uncertainty_margin(NSEC_PER_SEC / (scale * freq)); in clocksource_update_freq_scale()
357 while freq != 0 in clocksource_update_freq_scale()
391 pub fn register(&self, scale: u32, freq: u32) -> Result<(), SystemError> { in register()
392 self.clocksource_update_freq_scale(scale, freq)?; in register()
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs1674 pub fn freq(&self) -> __u64 { in freq() method
1993 freq: __u64, in new_bitfield_1()
2064 let freq: u64 = unsafe { ::core::mem::transmute(freq) }; localVariable
2065 freq as u64