Searched refs:VirtIODevice (Results 1 – 5 of 5) sorted by relevance
/DragonOS/kernel/src/driver/virtio/ |
H A D | irq.rs | 17 use super::VirtIODevice; 27 map: RwLock<HashMap<Arc<DeviceId>, Arc<dyn VirtIODevice>>>, 47 pub fn register_device(&self, device: Arc<dyn VirtIODevice>) -> Result<(), SystemError> { in register_device() 81 pub fn lookup_device(&self, dev_id: &Arc<DeviceId>) -> Option<Arc<dyn VirtIODevice>> { in lookup_device() argument
|
H A D | sysfs.rs | 36 use super::{VirtIODevice, VirtIODeviceIndex, VirtIODriver, VIRTIO_DEV_ANY_ID}; 90 let virtio_dev = device.clone().cast::<dyn VirtIODevice>().map_err(|_| { in probe() 123 let virtio_device = _device.clone().cast::<dyn VirtIODevice>().map_err(|_| { in match_device() 191 pub fn device_add(&self, dev: Arc<dyn VirtIODevice>) -> Result<(), SystemError> { in device_add() 211 fn setup_irq(&self, dev: &Arc<dyn VirtIODevice>) -> Result<(), SystemError> { in setup_irq() 244 pub fn device_remove(&self, dev: &Arc<dyn VirtIODevice>) -> Result<(), SystemError> { in device_remove() 322 let dev = kobj.cast::<dyn VirtIODevice>().map_err(|_| { in show() 349 let dev = kobj.cast::<dyn VirtIODevice>().map_err(|_| { in show()
|
H A D | mod.rs | 24 pub trait VirtIODevice: Device { trait 52 fn probe(&self, device: &Arc<dyn VirtIODevice>) -> Result<(), SystemError>; in probe()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 36 VirtIODevice, VirtIODeviceIndex, VirtIODriver, VirtIODriverCommonData, VirtioDeviceId, 80 .device_add(device.clone() as Arc<dyn VirtIODevice>) in virtio_blk() 151 #[cast_to([sync] VirtIODevice)] 304 impl VirtIODevice for VirtIOBlkDevice { 531 fn probe(&self, device: &Arc<dyn VirtIODevice>) -> Result<(), SystemError> { in probe()
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 39 VirtIODevice, VirtIODeviceIndex, VirtIODriver, VirtIODriverCommonData, VirtioDeviceId, 67 #[cast_to([sync] VirtIODevice)] 260 impl VirtIODevice for VirtIONetDevice { 628 .device_add(virtio_net_deivce.clone() as Arc<dyn VirtIODevice>) in virtio_net() 827 fn probe(&self, device: &Arc<dyn VirtIODevice>) -> Result<(), SystemError> { in probe()
|