Searched refs:LVT (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | x2apic.rs | 9 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 D | xapic.rs | 18 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 D | mod.rs | 74 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 D | apic_timer.rs | 29 use super::{CurrentApic, LVTRegister, LocalAPIC, LVT}; 242 let lvt = LVT::new(LVTRegister::Timer, data).unwrap(); in setup_lvt()
|