/DragonOS/kernel/src/driver/virtio/ |
H A D | irq.rs | 7 driver::base::device::DeviceId, 27 map: RwLock<HashMap<Arc<DeviceId>, Arc<dyn VirtIODevice>>>, 67 pub fn unregister_device(&self, dev_id: &Arc<DeviceId>) { in unregister_device() argument 80 pub fn lookup_device(&self, dev_id: &Arc<DeviceId>) -> Option<Arc<dyn VirtIODevice>> { in lookup_device() 115 .downcast::<DeviceId>() in handle()
|
H A D | transport_mmio.rs | 14 driver::base::device::DeviceId, 27 device_id: Arc<DeviceId>, 48 let device_id = DeviceId::new(None, Some(format!("virtio_mmio_{:#X}", paddr))).unwrap(); in new() 85 pub fn device_id(&self) -> Arc<DeviceId> { in device_id() argument
|
H A D | virtio.rs | 5 use crate::driver::base::device::{Device, DeviceId}; 33 let dev_id = DeviceId::new(None, Some(format!("{dev_id}"))).unwrap(); in virtio_probe_pci() 58 dev_id: Arc<DeviceId>, in virtio_device_init() argument
|
H A D | mod.rs | 6 use super::base::device::{driver::Driver, Device, DeviceId}; 27 fn dev_id(&self) -> &Arc<DeviceId>; in dev_id() argument
|
H A D | transport.rs | 7 base::device::DeviceId, 34 pub fn setup_irq(&self, dev_id: Arc<DeviceId>) -> Result<(), PciError> { in setup_irq()
|
H A D | transport_pci.rs | 3 use crate::driver::base::device::DeviceId; 103 dev_id: Arc<DeviceId>, 120 dev_id: Arc<DeviceId>, in new() argument
|
/DragonOS/kernel/src/driver/clocksource/ |
H A D | timer_riscv.rs | 10 base::device::DeviceId, 93 Some(DeviceId::new(Some("riscv sbi timer"), None).unwrap()), in riscv_sbi_timer_init_local()
|
/DragonOS/kernel/src/exception/ |
H A D | irqdesc.rs | 18 device::DeviceId, 691 dev_id: Option<Arc<DeviceId>>, 693 per_cpu_dev_id: Option<PerCpuVar<Arc<DeviceId>>>, 712 pub fn dev_id(&self) -> &Option<Arc<DeviceId>> { in dev_id() argument 716 pub fn dev_id_mut(&mut self) -> &mut Option<Arc<DeviceId>> { in dev_id_mut() argument 720 pub fn per_cpu_dev_id(&self) -> Option<&Arc<DeviceId>> { in per_cpu_dev_id() argument 725 pub fn per_cpu_dev_id_mut(&mut self) -> Option<&mut Arc<DeviceId>> { in per_cpu_dev_id_mut() argument
|
H A D | manage.rs | 9 driver::base::device::DeviceId, 68 dev_id: Option<Arc<DeviceId>>, in request_irq() argument 116 dev_id: Option<Arc<DeviceId>>, in request_threaded_irq() argument 1104 pub fn free_irq(&self, _irq: IrqNumber, _dev_id: Option<Arc<DeviceId>>) { in free_irq() argument
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 27 Device, DeviceCommonData, DeviceId, DeviceType, IdTable, 71 dev_id: Arc<DeviceId>, in virtio_blk() argument 156 dev_id: Arc<DeviceId>, 166 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new() 318 fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() argument
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 977 pub struct DeviceId { struct 982 impl DeviceId { argument 1012 impl PartialEq for DeviceId { implementation 1018 impl core::hash::Hash for DeviceId { implementation 1024 impl Eq for DeviceId {} implementation 1026 impl IrqHandlerData for DeviceId {} implementation
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | apic_timer.rs | 6 use crate::driver::base::device::DeviceId; 84 Some(DeviceId::new(Some("lapic timer"), None).unwrap()), in apic_timer_init()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_driver.rs | 14 device::{bus::Bus, driver::Driver, Device, DeviceId, IdTable}, 253 Some(DeviceId::new(Some(Self::NAME), None).unwrap()), in connect()
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 28 Device, DeviceCommonData, DeviceId, DeviceType, IdTable, 70 dev_id: Arc<DeviceId>, 93 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new() 266 fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() argument 624 dev_id: Arc<DeviceId>, in virtio_net() argument
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e.rs | 5 use crate::driver::base::device::DeviceId; 203 device_id: Arc<DeviceId>, in new() argument 618 DeviceId::new( in e1000e_probe()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | serial8250_pio.rs | 18 DeviceId, 455 Some(DeviceId::new(Some("serial8250_pio"), None).unwrap()), in serial_8250_pio_register_tty_devices()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | pci_irq.rs | 16 use crate::driver::base::device::DeviceId; 89 dev_id: Arc<DeviceId>, 97 dev_id: Arc<DeviceId>, in init_from() argument 111 pub fn dev_id(&self) -> &Arc<DeviceId> { in dev_id() argument
|