/DragonOS/kernel/src/driver/virtio/ |
H A D | irq.rs | 50 if map.contains_key(device.dev_id()) { in register_device() 54 map.insert(device.dev_id().clone(), device); in register_device() 67 pub fn unregister_device(&self, dev_id: &Arc<DeviceId>) { in unregister_device() 69 map.remove(dev_id); in unregister_device() 81 pub fn lookup_device(&self, dev_id: &Arc<DeviceId>) -> Option<Arc<dyn VirtIODevice>> { in lookup_device() 83 map.get(dev_id).cloned() in lookup_device() 111 dev_id: Option<Arc<dyn IrqHandlerData>>, in handle() 113 let dev_id = dev_id.ok_or(SystemError::EINVAL)?; in handle() localVariable 114 let dev_id = dev_id in handle() localVariable 119 if let Some(dev) = virtio_irq_manager().lookup_device(&dev_id) { in handle()
|
H A D | virtio.rs | 35 let dev_id = virtio_device.common_header.device_id; in virtio_probe_pci() localVariable 36 let dev_id = DeviceId::new(None, Some(format!("{dev_id}"))).unwrap(); in virtio_probe_pci() localVariable 37 match PciTransport::new::<HalImpl>(virtio_device, dev_id.clone()) { in virtio_probe_pci() 49 virtio_device_init(transport, dev_id, pci_raw_device); in virtio_probe_pci() 61 dev_id: Arc<DeviceId>, in virtio_device_init() 65 DeviceType::Block => virtio_blk(transport, dev_id, dev_parent), in virtio_device_init() 72 DeviceType::Network => virtio_net(transport, dev_id, dev_parent), in virtio_device_init()
|
H A D | mod.rs | 27 fn dev_id(&self) -> &Arc<DeviceId>; in dev_id() method
|
H A D | transport.rs | 34 pub fn setup_irq(&self, dev_id: Arc<DeviceId>) -> Result<(), PciError> { in setup_irq() 47 dev_id, in setup_irq()
|
H A D | transport_pci.rs | 104 dev_id: Arc<DeviceId>, field 121 dev_id: Arc<DeviceId>, in new() 223 dev_id, in new()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | raw_device.rs | 20 attr::BasicPciReadOnlyAttrs, dev_id::PciDeviceID, device::PciDevice, 29 dev_id: PciDeviceID, field 45 let dev_id = PciDeviceID::dummpy(); in from() localVariable 55 dev_id, in from() 65 self.dev_id in dynid()
|
H A D | mod.rs | 2 pub mod dev_id; module
|
H A D | driver.rs | 9 use super::{dev_id::PciDeviceID, device::PciDevice, subsys::pci_bus};
|
H A D | pci_irq.rs | 89 dev_id: Arc<DeviceId>, field 97 dev_id: Arc<DeviceId>, in init_from() 103 dev_id, in init_from() 111 pub fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() method 112 &self.dev_id in dev_id() 373 Some(common_msg.dev_id.clone()), in msi_install() 536 Some(common_msg.dev_id.clone()), in msix_install()
|
H A D | device.rs | 23 dev_id::PciDeviceID,
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 71 dev_id: Arc<DeviceId>, in virtio_blk() 74 let device = VirtIOBlkDevice::new(transport, dev_id); in virtio_blk() 155 dev_id: Arc<DeviceId>, field 165 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new() 167 if let Err(err) = transport.setup_irq(dev_id.clone()) { in new() 185 dev_id, in new() 240 self.dev_id, e in read_at_sync() 317 fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() method 318 &self.dev_id in dev_id()
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | mod.rs | 7 dev_id::PciDeviceID,
|
H A D | pt_driver.rs | 18 pci::{dev_id::PciDeviceID, device::PciDevice, driver::PciDriver},
|
H A D | pt_device.rs | 17 pci::{dev_id::PciDeviceID, device::PciDevice},
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 70 dev_id: Arc<DeviceId>, field 93 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new() 95 if let Err(err) = transport.setup_irq(dev_id.clone()) { in new() 113 dev_id, in new() 266 fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() method 267 return &self.dev_id; in dev_id() 618 dev_id: Arc<DeviceId>, in virtio_net() 621 let virtio_net_deivce = VirtIONetDevice::new(transport, dev_id); in virtio_net() 623 debug!("VirtIONetDevice '{:?}' created", virtio_net_deivce.dev_id); in virtio_net()
|
/DragonOS/kernel/src/exception/ |
H A D | irqdesc.rs | 652 dev_id: None, in new() 682 dev_id: Option<Arc<DeviceId>>, field 703 pub fn dev_id(&self) -> &Option<Arc<DeviceId>> { in dev_id() method 704 &self.dev_id in dev_id() 708 &mut self.dev_id in dev_id_mut()
|
H A D | manage.rs | 68 dev_id: Option<Arc<DeviceId>>, in request_irq() 70 return self.request_threaded_irq(irq, Some(handler), None, flags, name, dev_id); in request_irq() 116 dev_id: Option<Arc<DeviceId>>, in request_threaded_irq() 127 if ((flags.contains(IrqHandleFlags::IRQF_SHARED)) && dev_id.is_none()) in request_threaded_irq() 157 *action_guard.dev_id_mut() = dev_id; in request_threaded_irq()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | null_dev.rs | 40 dev_id: 1, in new()
|
H A D | zero_dev.rs | 40 dev_id: 1, in new()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mod.rs | 725 pub dev_id: usize, field 772 dev_id: 0, in default() 908 dev_id: 0, in new()
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | ahci_inode.rs | 45 dev_id: 1, in new()
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | kvm_dev.rs | 58 dev_id: 1, in new()
|
H A D | vcpu_dev.rs | 69 dev_id: 1, in new()
|
H A D | vm_dev.rs | 67 dev_id: 1, in new()
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 81 dev_id: 0, in new() 327 dev_id: 0, in create_with_data() 589 dev_id: 0, in mknod()
|