Home
last modified time | relevance | path

Searched refs:dev_id (Results 1 – 25 of 36) 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()
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 Dvirtio.rs35 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 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()
47 dev_id, in setup_irq()
H A Dtransport_pci.rs104 dev_id: Arc<DeviceId>, field
121 dev_id: Arc<DeviceId>, in new()
223 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()
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 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},
/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()
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 Dirqdesc.rs652 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 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/driver/disk/ahci/
H A Dahci_inode.rs45 dev_id: 1, 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()

12