Searched refs:divisor (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | apic_timer.rs | 172 divisor: u32, field 195 divisor: 0, in new() 214 fn init(&mut self, mode: LocalApicTimerMode, initial_count: u64, divisor: u32) { in init() 218 LocalApicTimerMode::Periodic => self.install_periodic_mode(initial_count, divisor), in init() 224 fn install_periodic_mode(&mut self, initial_count: u64, divisor: u32) { in install_periodic_mode() 227 initial_count, divisor in install_periodic_mode() 230 self.set_divisor(divisor); in install_periodic_mode() 247 fn set_divisor(&mut self, divisor: u32) { in set_divisor() 248 self.divisor = divisor; in set_divisor() 249 CurrentApic.set_timer_divisor(divisor); in set_divisor() [all …]
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | serial8250_pio.rs | 233 fn divisor(&self, baud: BaudRate) -> (u32, DivisorFraction) { in divisor() method 234 let divisor = Self::SERIAL8250PIO_MAX_BAUD_RATE.data() / baud.data(); in divisor() localVariable 235 return (divisor, DivisorFraction::new(0)); in divisor() 245 let divisor = self.divisor(baud).0; in set_divisor() localVariable 247 CurrentPortIOArch::out8(port, (divisor & 0xff) as u8); // Set divisor (lo byte) in set_divisor() 248 CurrentPortIOArch::out8(port + 1, ((divisor >> 8) & 0xff) as u8); // (hi byte) in set_divisor()
|
/DragonOS/kernel/src/driver/serial/ |
H A D | mod.rs | 40 fn divisor(&self, baud: BaudRate) -> (u32, DivisorFraction); in divisor() method
|