Lines Matching refs:Device
3 sys_devices_kset, Device, DeviceMatchName, DeviceMatcher, DeviceState,
108 fn root_device(&self) -> Option<Weak<dyn Device>> { in root_device() argument
112 fn set_root_device(&self, _dev: Option<Weak<dyn Device>>) {} in set_root_device() argument
139 fn probe(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in probe()
142 fn remove(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError>; in remove()
143 fn sync_state(&self, _device: &Arc<dyn Device>) {} in sync_state() argument
144 fn shutdown(&self, _device: &Arc<dyn Device>); in shutdown() argument
145 fn suspend(&self, _device: &Arc<dyn Device>) { in suspend() argument
149 fn resume(&self, device: &Arc<dyn Device>) -> Result<(), SystemError>; in resume()
166 _device: &Arc<dyn Device>, in match_device() argument
191 ) -> Option<Arc<dyn Device>> { in find_device() argument
207 pub fn find_device_by_name(&self, name: &str) -> Option<Arc<dyn Device>> { in find_device_by_name() argument
265 pub fn add_device(&self, dev: &Arc<dyn Device>) -> Result<(), SystemError> { in add_device()
452 pub fn probe_device(&self, dev: &Arc<dyn Device>) { in probe_device() argument
496 fn rescan_devices_helper(dev: &Arc<dyn Device>) -> Result<(), SystemError> { in rescan_devices_helper()
575 pub fn bus_add_device(dev: &Arc<dyn Device>) -> Result<(), SystemError> { in bus_add_device()
588 pub fn bus_probe_device(dev: &Arc<dyn Device>) { in bus_probe_device() argument
851 fake_root_dev: &Arc<dyn Device>, in subsys_register() argument
876 fake_root_dev: &Arc<dyn Device>, in subsys_system_register() argument