Home
last modified time | relevance | path

Searched defs:Device (Results 1 – 25 of 41) sorted by relevance

12

/DragonOS/kernel/src/driver/base/device/
H A Ddd.rs58 dev: &Arc<dyn Device>, in do_device_attach()
230 fn unbind_cleanup(&self, dev: &Arc<dyn Device>) { in unbind_cleanup()
267 pub fn new(dev: Arc<dyn Device>, check_async: bool, want_async: bool) -> Self { in new()
302 fn do_driver_attach(&self, device: &Arc<dyn Device>, driver: &Arc<dyn Driver>) -> bool { in do_driver_attach()
327 device: &Arc<dyn Device>, in match_device()
349 device: &Arc<dyn Device>, in probe_device()
359 device: &Arc<dyn Device>, in do_probe_device()
379 device: &Arc<dyn Device>, in really_probe()
503 fn remove_from_sysfs(&self, _device: &Arc<dyn Device>) { in remove_from_sysfs()
509 device: &Arc<dyn Device>, in call_driver_probe()
[all …]
H A Ddriver.rs66 fn devices(&self) -> Vec<Arc<dyn Device>>; in devices()
69 fn add_device(&self, device: Arc<dyn Device>); in add_device()
72 fn delete_device(&self, device: &Arc<dyn Device>); in delete_device()
83 fn __find_device_by_name_fast(&self, _name: &str) -> Option<Arc<dyn Device>> { in __find_device_by_name_fast()
124 pub fn push_device(&mut self, device: Arc<dyn Device>) { in push_device()
130 pub fn delete_device(&mut self, device: &Arc<dyn Device>) { in delete_device()
163 ) -> Option<Arc<dyn Device>> { in find_device_slow()
174 pub fn find_device_by_name(&self, name: &str) -> Option<Arc<dyn Device>> { in find_device_by_name()
H A Dmod.rs135 pub trait Device: KObject { interface
205 fn dev_parent(&self) -> Option<Weak<dyn Device>>; in dev_parent()
207 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>); in set_dev_parent()
210 impl dyn Device { implementation
266 pub fn get_parent_weak_or_clear(&mut self) -> Option<Weak<dyn Device>> { in get_parent_weak_or_clear()
610 device: &Arc<dyn Device>, in get_device_parent()
611 device_parent: Option<Arc<dyn Device>>, in get_device_parent()
663 pub fn remove(&self, _dev: &Arc<dyn Device>) { in remove()
672 pub fn find_device_by_idtable(&self, _id_table: &IdTable) -> Option<Arc<dyn Device>> { in find_device_by_idtable()
676 fn device_platform_notify(&self, dev: &Arc<dyn Device>) { in device_platform_notify()
[all …]
H A Dbus.rs108 fn root_device(&self) -> Option<Weak<dyn Device>> { in root_device()
112 fn set_root_device(&self, _dev: Option<Weak<dyn Device>>) {} in set_root_device()
143 fn sync_state(&self, _device: &Arc<dyn Device>) {} in sync_state()
144 fn shutdown(&self, _device: &Arc<dyn Device>); in shutdown()
145 fn suspend(&self, _device: &Arc<dyn Device>) { in suspend()
166 _device: &Arc<dyn Device>, in match_device()
191 ) -> Option<Arc<dyn Device>> { in find_device()
207 pub fn find_device_by_name(&self, name: &str) -> Option<Arc<dyn Device>> { in find_device_by_name()
452 pub fn probe_device(&self, dev: &Arc<dyn Device>) { in probe_device()
588 pub fn bus_probe_device(dev: &Arc<dyn Device>) { in bus_probe_device()
[all …]
/DragonOS/kernel/src/driver/base/platform/
H A Dsubsys.rs83 fn sync_state(&self, _device: &Arc<dyn Device>) { in sync_state()
87 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
122 device: &Arc<dyn Device>, in match_device()
147 fn root_device(&self) -> Option<Weak<dyn Device>> { in root_device()
/DragonOS/kernel/src/driver/pci/
H A Dsubsys.rs115 fn sync_state(&self, _device: &Arc<dyn Device>) { in sync_state()
119 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
129 device: &Arc<dyn Device>, in match_device()
155 fn root_device(&self) -> Option<Weak<dyn Device>> { in root_device()
/DragonOS/kernel/src/driver/acpi/
H A Dbus.rs24 _device: &Arc<dyn Device>, in driver_match_device()
76 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
89 _device: &Arc<dyn Device>, in match_device()
H A Dglue.rs6 pub fn acpi_device_notify(_dev: &Arc<dyn Device>) { in acpi_device_notify()
/DragonOS/kernel/src/driver/input/serio/
H A Dsubsys.rs85 fn sync_state(&self, _device: &Arc<dyn Device>) { in sync_state()
89 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
99 device: &Arc<dyn Device>, in match_device()
/DragonOS/kernel/src/driver/base/
H A Dswnode.rs5 pub fn software_node_notify(_dev: &Arc<dyn Device>) { in software_node_notify()
H A Dsubsys.rs120 pub fn devices(&self) -> RwLockReadGuard<Vec<Arc<dyn Device>>> { in devices()
159 pub fn bus_notifier(&self) -> &AtomicNotifierChain<BusNotifyEvent, Arc<dyn Device>> { in bus_notifier()
194 pub fn remove_device_from_vec(&self, device: &Arc<dyn Device>) { in remove_device_from_vec()
211 fn remove_device(&self, device: &Arc<dyn Device>); in remove_device()
H A Dcpu.rs91 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
101 device: &Arc<dyn Device>, in match_device()
191 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
195 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
H A Dclass.rs84 ) -> Option<Arc<dyn Device>> { in find_device()
101 pub fn find_device_by_name(&self, name: &str) -> Option<Arc<dyn Device>> { in find_device_by_name()
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs87 fn devices(&self) -> Vec<Arc<dyn Device>> { in devices()
91 fn add_device(&self, device: Arc<dyn Device>) { in add_device()
101 fn delete_device(&self, device: &Arc<dyn Device>) { in delete_device()
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_driver.rs106 fn devices(&self) -> Vec<Arc<dyn Device>> { in devices()
110 fn add_device(&self, device: Arc<dyn Device>) { in add_device()
120 fn delete_device(&self, device: &Arc<dyn Device>) { in delete_device()
H A Di8042_ports.rs108 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
112 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) { in set_dev_parent()
H A Di8042_device.rs111 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
115 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs128 fn devices(&self) -> Vec<Arc<dyn Device>> { in devices()
132 fn add_device(&self, device: Arc<dyn Device>) { in add_device()
136 fn delete_device(&self, device: &Arc<dyn Device>) { in delete_device()
/DragonOS/kernel/src/driver/virtio/
H A Dvirtio.rs59 dev_parent: Option<Arc<dyn Device>>, in virtio_device_init()
H A Dsysfs.rs105 fn sync_state(&self, _device: &Arc<dyn Device>) { in sync_state()
109 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
120 _device: &Arc<dyn Device>, in match_device()
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs72 dev_parent: Option<Arc<dyn Device>>, in virtio_blk()
274 fn device(&self) -> Arc<dyn Device> { in device()
410 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
414 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) { in set_dev_parent()
563 fn add_device(&self, device: Arc<dyn Device>) { in add_device()
575 fn delete_device(&self, device: &Arc<dyn Device>) { in delete_device()
593 fn devices(&self) -> Vec<Arc<dyn Device>> { in devices()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_driver.rs131 fn devices(&self) -> alloc::vec::Vec<Arc<dyn Device>> { in devices()
135 fn add_device(&self, device: Arc<dyn Device>) { in add_device()
145 fn delete_device(&self, device: &Arc<dyn Device>) { in delete_device()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs294 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
298 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
479 fn devices(&self) -> Vec<Arc<dyn Device>> { in devices()
483 fn add_device(&self, device: Arc<dyn Device>) { in add_device()
487 fn delete_device(&self, device: &Arc<dyn Device>) { in delete_device()
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs251 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
255 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) { in set_dev_parent()
504 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
508 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) { in set_dev_parent()
625 dev_parent: Option<Arc<dyn Device>>, in virtio_net()
882 fn add_device(&self, device: Arc<dyn Device>) { in add_device()
894 fn delete_device(&self, device: &Arc<dyn Device>) { in delete_device()
912 fn devices(&self) -> Vec<Arc<dyn Device>> { in devices()
/DragonOS/kernel/src/driver/disk/ahci/
H A Dahcidisk.rs513 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
517 fn set_dev_parent(&self, _dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
550 fn device(&self) -> Arc<dyn Device> { in device()

12