Home
last modified time | relevance | path

Searched refs:dev_id (Results 1 – 25 of 35) sorted by relevance

12

/DragonOS/kernel/src/driver/virtio/
H A Dirq.rs50 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 Dvirtio.rs32 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 Dmod.rs27 fn dev_id(&self) -> &Arc<DeviceId>; in dev_id() method
H A Dtransport.rs34 pub fn setup_irq(&self, dev_id: Arc<DeviceId>) -> Result<(), PciError> { in setup_irq()
46 dev_id, in setup_irq()
H A Dtransport_pci.rs103 dev_id: Arc<DeviceId>, field
120 dev_id: Arc<DeviceId>, in new()
224 dev_id, in new()
/DragonOS/kernel/src/driver/pci/
H A Draw_device.rs20 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 Dmod.rs2 pub mod dev_id; module
H A Ddriver.rs9 use super::{dev_id::PciDeviceID, device::PciDevice, subsys::pci_bus};
H A Dpci_irq.rs89 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 Ddevice.rs23 dev_id::PciDeviceID,
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs71 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 Dmod.rs7 dev_id::PciDeviceID,
H A Dpt_driver.rs18 pci::{dev_id::PciDeviceID, device::PciDevice, driver::PciDriver},
H A Dpt_device.rs17 pci::{dev_id::PciDeviceID, device::PciDevice, pci_irq::IrqType},
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs70 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 Dirqdesc.rs661 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 Dmanage.rs68 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 Dnull_dev.rs40 dev_id: 1, in new()
H A Dzero_dev.rs40 dev_id: 1, in new()
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs725 pub dev_id: usize, field
772 dev_id: 0, in default()
908 dev_id: 0, in new()
/DragonOS/kernel/src/virt/kvm/
H A Dkvm_dev.rs58 dev_id: 1, in new()
H A Dvcpu_dev.rs69 dev_id: 1, in new()
H A Dvm_dev.rs67 dev_id: 1, in new()
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs81 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 Dps2_keyboard.rs81 dev_id: 1, in new()

12