Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/virtio/
H A Dirq.rs7 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 Dtransport_mmio.rs14 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 Dvirtio.rs5 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 Dmod.rs6 use super::base::device::{driver::Driver, Device, DeviceId};
27 fn dev_id(&self) -> &Arc<DeviceId>; in dev_id() argument
H A Dtransport.rs7 base::device::DeviceId,
34 pub fn setup_irq(&self, dev_id: Arc<DeviceId>) -> Result<(), PciError> { in setup_irq()
H A Dtransport_pci.rs3 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 Dtimer_riscv.rs10 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 Dirqdesc.rs18 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 Dmanage.rs9 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 Dvirtio_blk.rs27 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 Dmod.rs977 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 Dapic_timer.rs6 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 Dps_mouse_driver.rs14 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 Dvirtio_net.rs28 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 De1000e.rs5 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 Dserial8250_pio.rs18 DeviceId,
455 Some(DeviceId::new(Some("serial8250_pio"), None).unwrap()), in serial_8250_pio_register_tty_devices()
/DragonOS/kernel/src/driver/pci/
H A Dpci_irq.rs16 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