Home
last modified time | relevance | path

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

/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dx2apic.rs9 use super::{hw_irq::ApicId, LVTRegister, LocalAPIC, LVT};
93 fn set_lvt(&mut self, lvt: LVT) { in set_lvt() argument
99 fn read_lvt(&self, reg: LVTRegister) -> LVT { in read_lvt() argument
100 unsafe { LVT::new(reg, (rdmsr(reg.into()) & 0xffff_ffff) as u32).unwrap() } in read_lvt()
107 self.set_lvt(LVT::new(LVTRegister::Timer, LVT::MASKED).unwrap()); in mask_all_lvt()
110 self.set_lvt(LVT::new(LVTRegister::Thermal, LVT::MASKED).unwrap()); in mask_all_lvt()
114 self.set_lvt(LVT::new(LVTRegister::PerformanceMonitor, LVT::MASKED).unwrap()); in mask_all_lvt()
117 self.set_lvt(LVT::new(LVTRegister::LINT0, LVT::MASKED).unwrap()); in mask_all_lvt()
118 self.set_lvt(LVT::new(LVTRegister::LINT1, LVT::MASKED).unwrap()); in mask_all_lvt()
120 self.set_lvt(LVT::new(LVTRegister::ErrorReg, LVT::MASKED).unwrap()); in mask_all_lvt()
H A Dxapic.rs18 use super::{hw_irq::ApicId, LVTRegister, LocalAPIC, LVT};
296 fn set_lvt(&mut self, lvt: LVT) { in set_lvt() argument
302 fn read_lvt(&self, reg: LVTRegister) -> LVT { in read_lvt() argument
304 LVT::new( in read_lvt()
314 self.set_lvt(LVT::new(LVTRegister::Timer, LVT::MASKED).unwrap()); in mask_all_lvt()
315 self.set_lvt(LVT::new(LVTRegister::Thermal, LVT::MASKED).unwrap()); in mask_all_lvt()
316 self.set_lvt(LVT::new(LVTRegister::PerformanceMonitor, LVT::MASKED).unwrap()); in mask_all_lvt()
317 self.set_lvt(LVT::new(LVTRegister::LINT0, LVT::MASKED).unwrap()); in mask_all_lvt()
318 self.set_lvt(LVT::new(LVTRegister::LINT1, LVT::MASKED).unwrap()); in mask_all_lvt()
319 self.set_lvt(LVT::new(LVTRegister::ErrorReg, LVT::MASKED).unwrap()); in mask_all_lvt()
H A Dmod.rs74 fn set_lvt(&mut self, lvt: LVT); in set_lvt() argument
77 fn read_lvt(&self, reg: LVTRegister) -> LVT; in read_lvt() argument
128 pub struct LVT { struct
133 impl LVT { impl
580 fn set_lvt(&mut self, lvt: LVT) { in set_lvt() argument
588 fn read_lvt(&self, reg: LVTRegister) -> LVT { in read_lvt() argument
H A Dapic_timer.rs29 use super::{CurrentApic, LVTRegister, LocalAPIC, LVT};
242 let lvt = LVT::new(LVTRegister::Timer, data).unwrap(); in setup_lvt()