Home
last modified time | relevance | path

Searched refs:dev_parent (Results 1 – 22 of 22) sorted by relevance

/DragonOS/kernel/src/driver/virtio/
H A Dvirtio.rs62 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 Ddevice.rs47 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 Draw_device.rs142 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 Di8042_device.rs111 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 Di8042_ports.rs108 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs83 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 Dpt_device.rs134 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 Dcpu.rs191 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 Dps_mouse_device.rs482 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 Dvirtio_blk.rs72 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 Dsysfs.rs178 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 Dmod.rs241 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 Dfbmem.rs379 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 Dvirtio_net.rs251 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 Dloopback.rs435 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs294 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 Dmod.rs205 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 Drtc.rs167 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs208 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 De1000e_driver.rs296 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
/DragonOS/kernel/src/driver/disk/ahci/
H A Dahcidisk.rs513 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent() method
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs557 fn dev_parent(&self) -> Option<alloc::sync::Weak<dyn crate::driver::base::device::Device>> { in dev_parent() method