/DragonOS/kernel/src/driver/base/device/ |
H A D | dd.rs | 58 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 D | driver.rs | 66 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 D | mod.rs | 135 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 D | bus.rs | 108 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 D | subsys.rs | 83 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 D | subsys.rs | 115 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 D | bus.rs | 24 _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 D | glue.rs | 6 pub fn acpi_device_notify(_dev: &Arc<dyn Device>) { in acpi_device_notify()
|
/DragonOS/kernel/src/driver/input/serio/ |
H A D | subsys.rs | 85 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 D | swnode.rs | 5 pub fn software_node_notify(_dev: &Arc<dyn Device>) { in software_node_notify()
|
H A D | subsys.rs | 120 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 D | cpu.rs | 91 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 D | class.rs | 84 ) -> 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 D | pt_driver.rs | 87 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 D | i8042_driver.rs | 106 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 D | i8042_ports.rs | 108 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 D | i8042_device.rs | 111 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 D | rtc_cmos.rs | 128 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 D | virtio.rs | 59 dev_parent: Option<Arc<dyn Device>>, in virtio_device_init()
|
H A D | sysfs.rs | 105 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 D | virtio_blk.rs | 72 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 D | ps_mouse_driver.rs | 131 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 D | mod.rs | 294 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 D | virtio_net.rs | 251 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 D | ahcidisk.rs | 513 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()
|