Home
last modified time | relevance | path

Searched refs:mmio_guard (Results 1 – 9 of 9) sorted by relevance

/DragonOS/kernel/src/arch/riscv64/driver/
H A Dof.rs27 let mmio_guard = mmio_pool().create_mmio(map_size)?; in map_fdt() localVariable
32 mmio_guard.map_phys(map_paddr, map_size)?; in map_fdt()
34 let vaddr = mmio_guard.vaddr() + offset; in map_fdt()
36 self.set_fdt_map_guard(Some(mmio_guard)); in map_fdt()
/DragonOS/kernel/src/driver/acpi/
H A Dmod.rs193 let mmio_guard = mmio_pool() in map_physical_region() localVariable
197 mmio_guard in map_physical_region()
200 let virtual_start = mmio_guard.vaddr().data() + offset; in map_physical_region()
208 mmio_guard.size(), in map_physical_region()
212 MMIOSpaceGuard::leak(mmio_guard); in map_physical_region()
218 let mmio_guard = unsafe { in unmap_physical_region() localVariable
227 drop(mmio_guard); in unmap_physical_region()
/DragonOS/kernel/src/driver/pci/
H A Droot.rs33 pub mmio_guard: Option<Arc<MMIOSpaceGuard>>, //映射后的虚拟地址,为方便访问数据这里转化成指针 field
52 …_root_info.bus_begin, ecam_root_info.bus_end, ecam_root_info.physical_address_base, self.mmio_guard in fmt()
85 mmio_guard: None, in new()
111 self.mmio_guard = Some(space_guard.clone()); in map()
170 ((self.mmio_guard.as_ref().unwrap().vaddr().data() as *mut u32) in read_config()
200 ((self.mmio_guard.as_ref().unwrap().vaddr().data() as *mut u32) in write_config()
H A Dpci.rs1201 mmio_guard: Arc<MMIOSpaceGuard>,
1230 if let Self::Memory { mmio_guard, .. } = self { in virtual_address()
1231 Some(mmio_guard.vaddr()) in virtual_address()
1246 mmio_guard, in fmt()
1250 address, size, address_type, prefetchable, mmio_guard in fmt()
1391 mmio_guard: space_guard, in pci_bar_init()
/DragonOS/kernel/src/driver/video/
H A Dmod.rs89 let mmio_guard = mmio_pool().create_mmio(page_align_up(buf_size)).unwrap(); in init_frame_buffer() localVariable
90 let mmio_guard = Arc::new(mmio_guard); in init_frame_buffer() localVariable
91 let buf_vaddr = mmio_guard.vaddr(); in init_frame_buffer()
96 unsafe { frame_buffer_info_guard.set_device_buffer_mmio_guard(mmio_guard.clone()) }; in init_frame_buffer()
105 mmio_guard in init_frame_buffer()
/DragonOS/kernel/src/driver/virtio/
H A Dtransport_mmio.rs50 let mmio_guard = mmio_pool().create_mmio(size)?; in new() localVariable
51 unsafe { mmio_guard.map_phys(PhysAddr::new(paddr), size) }?; in new()
53 let vaddr = mmio_guard.vaddr() + page_offset; in new()
67 _mmio_guard: mmio_guard, in new()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs75 mmio_guard: Option<MMIOSpaceGuard>, field
82 mmio_guard: MMIOSpaceGuard, in new()
89 mmio_guard: Some(mmio_guard), in new()
446 let mmio_guard = mmio_pool().create_mmio(size)?; in do_riscv_sifive_plic_init() localVariable
447 let vaddr = unsafe { mmio_guard.map_any_phys(paddr, size) }?; in do_riscv_sifive_plic_init()
482 mmio_guard, in do_riscv_sifive_plic_init()
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dioapic.rs53 mmio_guard: MMIOSpaceGuard, field
100 let mmio_guard = mmio_pool() in new() localVariable
104 mmio_guard.map_phys(phys_base, 0x1000).is_ok(), in new()
108 let reg = mmio_guard.vaddr(); in new()
115 mmio_guard, in new()
/DragonOS/kernel/src/libs/lib_ui/
H A Dscreen_manager.rs128 let mmio_guard = device_buffer_mmio_guard.take().map(Arc::new); in new_device_buffer() localVariable
136 device_buffer_mmio_guard: mmio_guard, in new_device_buffer()