Home
last modified time | relevance | path

Searched refs:DeviceId (Results 1 – 12 of 12) sorted by relevance

/DragonOS-0.1.9/kernel/src/driver/virtio/
Dirq.rs6 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()
Dmod.rs8 use super::base::device::DeviceId;
18 fn dev_id(&self) -> &Arc<DeviceId>; in dev_id() argument
Dvirtio.rs3 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
Dtransport_pci.rs3 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/
Dvirtio_net.rs18 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/
Dirqdesc.rs18 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
Dmanage.rs8 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/
Dmod.rs880 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/
Dapic_timer.rs5 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/
Dps_mouse_driver.rs13 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/
Dpci_irq.rs15 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/
De1000e.rs14 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()