Lines Matching refs:class
40 class::{Class, ClassKObjbectType},
170 fn class(&self) -> Option<Arc<dyn Class>> { in class() method
177 fn set_class(&self, class: Option<Weak<dyn Class>>); in set_class()
221 pub class: Option<Weak<dyn Class>>, field
232 class: None, in default()
253 driver_base_macros::get_weak_or_clear!(self.class) in get_class_weak_or_clear()
554 if let Some(class) = device.class() { in add_device()
555 class.subsystem().add_device_to_vec(&device)?; in add_device()
557 for class_interface in class.subsystem().interfaces() { in add_device()
569 class: Arc<dyn Class>, in class_dir_create_and_add()
573 let class_name: String = class.name().to_string(); in class_dir_create_and_add()
614 if device.class().is_some() { in get_device_parent()
617 if dp.class().is_some() { in get_device_parent()
629 self.class_dir_create_and_add(device.class().unwrap(), kobject_parent.clone()); in get_device_parent()
683 let class = dev.class(); in add_class_symlinks() localVariable
684 if class.is_none() { in add_class_symlinks()
698 let class = class.unwrap(); in add_class_symlinks() localVariable
700 let subsys_kobj = class.subsystem().subsys() as Arc<dyn KObject>; in add_class_symlinks()
730 if let Some(class) = dev.class() { in add_attrs()
731 let attr_groups = class.dev_groups(); in add_attrs()
746 if let Some(class) = dev.class() { in add_attrs()
747 let attr_groups = class.dev_groups(); in add_attrs()