/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() 80 pub fn lookup_device(&self, dev_id: &Arc<DeviceId>) -> Option<Arc<dyn VirtIODevice>> { in lookup_device() 82 map.get(dev_id).cloned() in lookup_device() 110 dev_id: Option<Arc<dyn IrqHandlerData>>, in handle() 112 let dev_id = dev_id.ok_or(SystemError::EINVAL)?; in handle() localVariable 113 let dev_id = dev_id in handle() localVariable 118 if let Some(dev) = virtio_irq_manager().lookup_device(&dev_id) { in handle()
|
H A D | virtio.rs | 32 let dev_id = virtio_device.common_header.device_id; in virtio_probe_pci() localVariable 33 let dev_id = DeviceId::new(None, Some(format!("{dev_id}"))).unwrap(); in virtio_probe_pci() localVariable 34 match PciTransport::new::<HalImpl>(virtio_device.clone(), dev_id.clone()) { in virtio_probe_pci() 46 virtio_device_init(transport, dev_id, pci_raw_device); in virtio_probe_pci() 58 dev_id: Arc<DeviceId>, in virtio_device_init() 62 DeviceType::Block => virtio_blk(transport, dev_id, dev_parent), in virtio_device_init() 69 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() 46 dev_id, in setup_irq()
|
H A D | transport_pci.rs | 103 dev_id: Arc<DeviceId>, field 120 dev_id: Arc<DeviceId>, in new() 224 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() 156 dev_id: Arc<DeviceId>, field 166 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new() 168 if let Err(err) = transport.setup_irq(dev_id.clone()) { in new() 186 dev_id, in new() 241 self.dev_id, e in read_at_sync() 318 fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() method 319 &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, pci_irq::IrqType},
|
/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() 624 dev_id: Arc<DeviceId>, in virtio_net() 627 let virtio_net_deivce = VirtIONetDevice::new(transport, dev_id); in virtio_net() 629 debug!("VirtIONetDevice '{:?}' created", virtio_net_deivce.dev_id); in virtio_net()
|
/DragonOS/kernel/src/exception/ |
H A D | irqdesc.rs | 661 dev_id: None, in new() 691 dev_id: Option<Arc<DeviceId>>, field 712 pub fn dev_id(&self) -> &Option<Arc<DeviceId>> { in dev_id() method 713 &self.dev_id in dev_id() 717 &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/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()
|
/DragonOS/kernel/src/driver/keyboard/ |
H A D | ps2_keyboard.rs | 81 dev_id: 1, in new()
|