Home
last modified time | relevance | path

Searched refs:config_space (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/driver/virtio/
H A Dtransport_pci.rs101 config_space: Option<NonNull<[u32]>>, field
207 let config_space = if let Some(device_cfg) = device_cfg { in new() localVariable
222 config_space, in new()
369 fn config_space<T>(&self) -> Result<NonNull<T>, Error> { in config_space() method
370 if let Some(config_space) = self.config_space { in config_space()
371 if size_of::<T>() > config_space.len() * size_of::<u32>() { in config_space()
381 let config_space_ptr = NonNull::new(config_space.as_ptr() as *mut u32).unwrap(); in config_space()
H A Dtransport.rs191 fn config_space<T: 'static>(&self) -> virtio_drivers::Result<core::ptr::NonNull<T>> { in config_space() method
193 VirtIOTransport::Pci(transport) => transport.config_space(), in config_space()
194 VirtIOTransport::Mmio(transport) => transport.config_space(), in config_space()
H A Dtransport_mmio.rs151 fn config_space<T: 'static>(&self) -> virtio_drivers::Result<core::ptr::NonNull<T>> { in config_space() method
152 self.mmio_transport.config_space() in config_space()