/DragonOS/kernel/src/driver/virtio/ |
H A D | virtio.rs | 62 dev_parent: Option<Arc<dyn Device>>, 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()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | device.rs | 47 if pci_dev.dev_parent().is_none() { in device_add() 229 fn dev_parent(&self) -> Option<alloc::sync::Weak<dyn Device>> { in dev_parent() method 233 fn set_dev_parent(&self, dev_parent: Option<alloc::sync::Weak<dyn Device>>) { in set_dev_parent() 234 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
H A D | raw_device.rs | 142 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 146 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 147 self.inner.write().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_device.rs | 111 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 115 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 116 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
H A D | i8042_ports.rs | 108 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 83 if pdev.dev_parent().is_none() { in device_add() 325 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 329 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 330 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_device.rs | 134 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 138 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 139 self.device_data.write().parent = dev_parent in set_dev_parent()
|
/DragonOS/kernel/src/driver/base/ |
H A D | cpu.rs | 191 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 195 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 196 self.inner.write().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 482 fn dev_parent(&self) -> Option<alloc::sync::Weak<dyn Device>> { in dev_parent() method 486 fn set_dev_parent(&self, dev_parent: Option<alloc::sync::Weak<dyn Device>>) { in set_dev_parent() 487 self.inner().device_common.parent = dev_parent; in set_dev_parent() 670 pub fn rs_ps2_mouse_device_init(dev_parent: Arc<dyn Device>) -> Result<(), SystemError> { in rs_ps2_mouse_device_init() 675 psmouse.set_dev_parent(Some(Arc::downgrade(&dev_parent))); in rs_ps2_mouse_device_init()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 72 dev_parent: Option<Arc<dyn Device>>, in virtio_blk() 76 if let Some(dev_parent) = dev_parent { in virtio_blk() 77 device.set_dev_parent(Some(Arc::downgrade(&dev_parent))); in virtio_blk() 409 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | sysfs.rs | 178 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 182 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 183 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | mod.rs | 241 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 245 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 246 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbmem.rs | 379 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 383 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 384 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 251 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 504 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 619 dev_parent: Option<Arc<dyn Device>>, in virtio_net() 624 if let Some(dev_parent) = dev_parent { in virtio_net() 625 virtio_net_deivce.set_dev_parent(Some(Arc::downgrade(&dev_parent))); in virtio_net()
|
H A D | loopback.rs | 435 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 294 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 298 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 299 self.inner.write().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 205 fn dev_parent(&self) -> Option<Weak<dyn Device>>; in dev_parent() method 499 let deivce_parent = device.dev_parent().and_then(|x| x.upgrade()); in add_device() 703 if let Some(dev_parent) = dev.dev_parent().and_then(|x| x.upgrade()) { in add_class_symlinks() 704 let parent_kobj = dev_parent.clone() as Arc<dyn KObject>; in add_class_symlinks()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 167 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 208 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method 212 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent() 213 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 296 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | ahcidisk.rs | 513 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 557 fn dev_parent(&self) -> Option<alloc::sync::Weak<dyn crate::driver::base::device::Device>> { in dev_parent() method
|