Lines Matching refs:Device
135 pub trait Device: KObject { interface
205 fn dev_parent(&self) -> Option<Weak<dyn Device>>; in dev_parent() argument
207 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>); in set_dev_parent() argument
210 impl dyn Device { implementation
225 pub parent: Option<Weak<dyn Device>>,
266 pub fn get_parent_weak_or_clear(&mut self) -> Option<Weak<dyn Device>> { in get_parent_weak_or_clear() argument
421 let dev = kobj.cast::<dyn Device>().unwrap(); in release()
482 pub fn register(&self, device: Arc<dyn Device>) -> Result<(), SystemError> { in register()
497 pub fn add_device(&self, device: Arc<dyn Device>) -> Result<(), SystemError> { in add_device()
610 device: &Arc<dyn Device>, in get_device_parent() argument
611 device_parent: Option<Arc<dyn Device>>, in get_device_parent() argument
663 pub fn remove(&self, _dev: &Arc<dyn Device>) { in remove() argument
672 pub fn find_device_by_idtable(&self, _id_table: &IdTable) -> Option<Arc<dyn Device>> { in find_device_by_idtable() argument
676 fn device_platform_notify(&self, dev: &Arc<dyn Device>) { in device_platform_notify() argument
682 fn add_class_symlinks(&self, dev: &Arc<dyn Device>) -> Result<(), SystemError> { in add_class_symlinks()
727 fn add_attrs(&self, dev: &Arc<dyn Device>) -> Result<(), SystemError> { in add_attrs()
729 let err_remove_class_groups = |dev: &Arc<dyn Device>| { in add_attrs()
736 let err_remove_kobj_type_groups = |dev: &Arc<dyn Device>| { in add_attrs()
777 dev: &Arc<dyn Device>, in add_groups() argument
792 dev: &Arc<dyn Device>, in remove_groups() argument
807 dev: &Arc<dyn Device>, in create_file() argument
835 fn create_sys_dev_entry(&self, dev: &Arc<dyn Device>) -> Result<(), SystemError> { in create_sys_dev_entry()
844 fn remove_sys_dev_entry(&self, dev: &Arc<dyn Device>) { in remove_sys_dev_entry() argument
857 fn device_to_dev_kobj(&self, _dev: &Arc<dyn Device>) -> Arc<dyn KObject> { in device_to_dev_kobj()
864 pub fn device_links_force_bind(&self, _dev: &Arc<dyn Device>) { in device_links_force_bind() argument
871 pub fn device_default_initialize(&self, dev: &Arc<dyn Device>) { in device_default_initialize() argument
881 _dev: &Arc<dyn Device>, in device_driver_attach() argument
887 pub fn device_driver_detach(&self, _dev: &Arc<dyn Device>) { in device_driver_detach() argument
895 pub fn device_register<T: Device>(device: Arc<T>) -> Result<(), SystemError> { in device_register()
902 pub fn device_unregister<T: Device>(_device: Arc<T>) { in device_unregister()
929 let dev = kobj.cast::<dyn Device>().map_err(|kobj| { in show()
961 fn match_device(&self, device: &Arc<dyn Device>, data: T) -> bool; in match_device() argument
970 fn match_device(&self, device: &Arc<dyn Device>, data: &str) -> bool { in match_device() argument