Searched refs:driver_net (Results 1 – 1 of 1) sorted by relevance
111 pub fn new(driver_net: VirtIONet<HalImpl, T, 2>) -> Self { in new()119 smoltcp::wire::EthernetAddress(driver_net.mac_address()), in new()122 let inner: Arc<SpinLock<VirtIONet<HalImpl, T, 2>>> = Arc::new(SpinLock::new(driver_net)); in new()192 let mut driver_net = self.driver.inner.lock(); in consume() localVariable193 let mut tx_buf = driver_net.new_tx_buffer(len); in consume()195 driver_net.send(tx_buf).expect("virtio_net send failed"); in consume()219 let driver_net: VirtIONet<HalImpl, T, 2> = in virtio_net() localVariable227 let mac = smoltcp::wire::EthernetAddress::from_bytes(&driver_net.mac_address()); in virtio_net()228 let driver: VirtioNICDriver<T> = VirtioNICDriver::new(driver_net); in virtio_net()