/DragonOS-0.1.9/kernel/src/driver/virtio/ |
D | irq.rs | 6 use crate::{driver::base::device::DeviceId, init::initcall::INITCALL_CORE, libs::rwlock::RwLock}; 18 map: RwLock<HashMap<Arc<DeviceId>, Arc<dyn VirtIODevice>>>, 58 pub fn unregister_device(&self, dev_id: &Arc<DeviceId>) { in unregister_device() argument 72 pub fn lookup_device(&self, dev_id: &Arc<DeviceId>) -> Option<Arc<dyn VirtIODevice>> { in lookup_device()
|
D | mod.rs | 8 use super::base::device::DeviceId; 18 fn dev_id(&self) -> &Arc<DeviceId>; in dev_id() argument
|
D | virtio.rs | 3 use crate::driver::base::device::DeviceId; 29 let dev_id = DeviceId::new(None, Some(format!("virtio_{}", dev_id))).unwrap(); in virtio_probe() 50 fn virtio_device_init(transport: impl Transport + 'static, dev_id: Arc<DeviceId>) { in virtio_device_init() argument
|
D | transport_pci.rs | 3 use crate::driver::base::device::DeviceId; 110 dev_id: Arc<DeviceId>, 124 dev_id: Arc<DeviceId>, in new() argument 584 .downcast::<DeviceId>() in handle()
|
/DragonOS-0.1.9/kernel/src/driver/net/ |
D | virtio_net.rs | 18 device::{bus::Bus, driver::Driver, Device, DeviceId, IdTable}, 81 dev_id: Arc<DeviceId>, 96 pub fn new(mut driver: VirtioNICDriver<T>, dev_id: Arc<DeviceId>) -> Arc<Self> { in new() 128 fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() argument 248 pub fn virtio_net<T: Transport + 'static>(transport: T, dev_id: Arc<DeviceId>) { in virtio_net() argument
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | irqdesc.rs | 18 device::DeviceId, 666 dev_id: Option<Arc<DeviceId>>, 668 per_cpu_dev_id: Option<PerCpuVar<Arc<DeviceId>>>, 687 pub fn dev_id(&self) -> &Option<Arc<DeviceId>> { in dev_id() argument 691 pub fn dev_id_mut(&mut self) -> &mut Option<Arc<DeviceId>> { in dev_id_mut() argument 695 pub fn per_cpu_dev_id(&self) -> Option<&Arc<DeviceId>> { in per_cpu_dev_id() argument 700 pub fn per_cpu_dev_id_mut(&mut self) -> Option<&mut Arc<DeviceId>> { in per_cpu_dev_id_mut() argument
|
D | manage.rs | 8 driver::base::device::DeviceId, 67 dev_id: Option<Arc<DeviceId>>, in request_irq() argument 115 dev_id: Option<Arc<DeviceId>>, in request_threaded_irq() argument 1061 pub fn free_irq(&self, _irq: IrqNumber, _dev_id: Option<Arc<DeviceId>>) { in free_irq() argument
|
/DragonOS-0.1.9/kernel/src/driver/base/device/ |
D | mod.rs | 880 pub struct DeviceId { struct 885 impl DeviceId { impl 915 impl PartialEq for DeviceId { implementation 921 impl Eq for DeviceId {} implementation 923 impl IrqHandlerData for DeviceId {} implementation
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/apic/ |
D | apic_timer.rs | 5 use crate::driver::base::device::DeviceId; 82 Some(DeviceId::new(Some("lapic timer"), None).unwrap()), in apic_timer_init()
|
/DragonOS-0.1.9/kernel/src/driver/input/ps2_mouse/ |
D | ps_mouse_driver.rs | 13 device::{bus::Bus, driver::Driver, Device, DeviceId, IdTable}, 252 Some(DeviceId::new(Some(Self::NAME), None).unwrap()), in connect()
|
/DragonOS-0.1.9/kernel/src/driver/pci/ |
D | pci_irq.rs | 15 use crate::driver::base::device::DeviceId; 88 dev_id: Arc<DeviceId>, 96 dev_id: Arc<DeviceId>, in init_from() argument 110 pub fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() argument
|
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/ |
D | e1000e.rs | 14 use crate::driver::base::device::DeviceId; 205 device_id: Arc<DeviceId>, in new() argument 627 DeviceId::new(None, Some(format!("e1000e_{}", header.device_id))).unwrap(), in e1000e_probe()
|