Lines Matching refs:driver
22 driver::{
27 driver::{Driver, DriverCommonData},
223 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver() method
224 let r = self.inner().device_common.driver.clone()?.upgrade(); in driver()
226 self.inner().device_common.driver = None; in driver()
232 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
233 self.inner().device_common.driver = driver; in set_driver()
475 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver() method
476 let r = self.inner().device_common.driver.clone()?.upgrade(); in driver()
478 self.inner().device_common.driver = None; in driver()
484 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
485 self.inner().device_common.driver = driver; in set_driver()
528 driver: VirtIONicDeviceInner, field
534 driver: VirtIONicDeviceInner, in new()
537 return Self { driver, rx_buffer }; in new()
590 let mut driver_net = self.driver.inner.lock(); in consume()
606 self.driver in consume()
774 let driver = VirtIONetDriver::new(); in virtio_net_driver_init() localVariable
776 .register(driver.clone() as Arc<dyn VirtIODriver>) in virtio_net_driver_init()
779 VIRTIO_NET_DRIVER = Some(driver); in virtio_net_driver_init()