Home
last modified time | relevance | path

Searched refs:inner_guard (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/driver/firmware/efi/
H A Dmemmap.rs109 let mut inner_guard = self.inner.write(); in do_efi_memmap_init() localVariable
126 inner_guard.mmap.vaddr = Some(vaddr); in do_efi_memmap_init()
127 inner_guard.mmap.late = false; in do_efi_memmap_init()
129 inner_guard.mmap.late = true; in do_efi_memmap_init()
133 if inner_guard.mmap.vaddr.is_none() { in do_efi_memmap_init()
138 inner_guard.mmap.paddr = Some(paddr); in do_efi_memmap_init()
139 inner_guard.mmap.size = data.mmap_size.unwrap() as usize; in do_efi_memmap_init()
140 inner_guard.mmap.nr_map = in do_efi_memmap_init()
142 inner_guard.mmap.desc_size = data.mmap_desc_size.unwrap() as usize; in do_efi_memmap_init()
143 inner_guard.mmap.desc_version = data.mmap_desc_version.unwrap() as usize; in do_efi_memmap_init()
[all …]
H A Dinit.rs257 let inner_guard = efi_manager().inner.read_irqsave(); in reserve_memory_regions() localVariable
258 for md in inner_guard.mmap.iter() { in reserve_memory_regions()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dhpet.rs122 let (inner_guard, regs) = unsafe { self.hpet_regs_mut() }; in hpet_enable()
136 drop(inner_guard); in hpet_enable()
138 let (inner_guard, timer_reg) = unsafe { self.timer_mut(0).ok_or(SystemError::ENODEV) }?; in hpet_enable()
147 drop(inner_guard); in hpet_enable()
159 let (inner_guard, regs) = unsafe { self.hpet_regs_mut() }; in hpet_enable()
164 drop(inner_guard); in hpet_enable()
229 let (inner_guard, regs) = unsafe { self.hpet_regs() }; in main_counter_value()
232 drop(inner_guard); in main_counter_value()
237 let (inner_guard, regs) = unsafe { self.hpet_regs() }; in period()
241 drop(inner_guard); in period()
/DragonOS/kernel/src/time/
H A Dtimer.rs141 let inner_guard = self.inner(); in activate() localVariable
147 inner_guard.expire_jiffies, in activate()
148 inner_guard.self_ref.upgrade().unwrap(), in activate()
151 drop(inner_guard); in activate()
157 let expire_jiffies = inner_guard.expire_jiffies; in activate()
158 let self_arc = inner_guard.self_ref.upgrade().unwrap(); in activate()
159 drop(inner_guard); in activate()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbmem.rs233 let mut inner_guard = r.inner.lock(); in new() localVariable
235 inner_guard.devfs_metadata.raw_dev = r.do_device_number(&inner_guard); in new()
236 drop(inner_guard); in new()
247 let inner_guard = self.inner.lock(); in device_number() localVariable
248 self.do_device_number(&inner_guard) in device_number()
251 fn do_device_number(&self, inner_guard: &SpinLockGuard<'_, InnerFbDevice>) -> DeviceNumber { in do_device_number()
252 DeviceNumber::new(Major::FB_MAJOR, inner_guard.fb_id.data()) in do_device_number()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs246 let inner_guard = common_data.inner(); in irq_enable() localVariable
247 let mask = inner_guard.effective_affinity(); in irq_enable()
306 let inner_guard = common_data.inner(); in irq_disable() localVariable
307 let mask = inner_guard.effective_affinity(); in irq_disable()