Searched refs:device_inner (Results 1 – 2 of 2) sorted by relevance
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 174 let device_inner = VirtIOBlk::<HalImpl, VirtIOTransport>::new(transport); in new() localVariable 175 if let Err(e) = device_inner { in new() 180 let mut device_inner: VirtIOBlk<HalImpl, VirtIOTransport> = device_inner.unwrap(); in new() localVariable 181 device_inner.enable_interrupts(); in new() 188 device_inner, in new() 216 let blocks = inner.device_inner.capacity() as usize * SECTOR_SIZE / LBA_SIZE; in disk_range() 235 .device_inner in read_at_sync() 255 .device_inner in write_at_sync() 290 device_inner: VirtIOBlk<HalImpl, VirtIOTransport>, field
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 79 device_inner: VirtIONicDeviceInner, field 110 let device_inner = VirtIONicDeviceInner::new(driver_net); in new() localVariable 115 device_inner, in new() 374 device_inner: VirtIONicDeviceInnerWrapper, field 401 pub fn new(mut device_inner: VirtIONicDeviceInner) -> Arc<Self> { in new() 404 wire::EthernetAddress(device_inner.inner.lock().mac_address()), in new() 408 let iface = iface::Interface::new(iface_config, &mut device_inner, Instant::now().into()); in new() 411 device_inner: VirtIONicDeviceInnerWrapper(UnsafeCell::new(device_inner)), in new() 635 let mac: [u8; 6] = self.device_inner.inner.lock().mac_address(); in mac() 671 let poll_res = guard.poll(timestamp, self.device_inner.force_get_mut(), sockets); in poll() [all …]
|