/DragonOS/kernel/src/driver/tty/ |
H A D | sysfs.rs | 10 class::{class_manager, Class}, 42 .set_class(Some(Arc::downgrade(&r) as Weak<dyn Class>)); in new() 48 impl Class for TtyClass { 70 class_manager().class_register(&(tty_class.clone() as Arc<dyn Class>))?; in tty_sysfs_init()
|
H A D | tty_device.rs | 13 class::Class, 520 fn set_class(&self, _class: Option<Weak<dyn crate::driver::base::class::Class>>) { in set_class() argument 524 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 527 .map(|x| x as Arc<dyn Class>) in class()
|
/DragonOS/kernel/src/driver/net/ |
H A D | class.rs | 3 class::{class_manager, Class}, 34 class_manager().class_register(&(net_class.clone() as Arc<dyn Class>))?; in net_init() 57 .set_class(Some(Arc::downgrade(&net_class) as Weak<dyn Class>)); in new() 63 impl Class for NetClass {
|
H A D | loopback.rs | 2 use crate::driver::base::class::Class; 398 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 408 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|
H A D | virtio_net.rs | 24 class::Class, 209 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 219 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument 461 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 471 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|
H A D | sysfs.rs | 3 class::Class, 30 &(sys_class_net_instance().cloned().unwrap() as Arc<dyn Class>), in netdev_register_kobject()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | class.rs | 11 class::{class_manager, Class}, 36 class_manager().class_register(&(rtc_class.clone() as Arc<dyn Class>))?; in fbmem_init() 59 .set_class(Some(Arc::downgrade(&r) as Weak<dyn Class>)); in new() 65 impl Class for RtcClass {
|
H A D | sysfs.rs | 10 class::Class, 137 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument 141 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 259 &(sys_class_rtc_instance().cloned().unwrap() as Arc<dyn Class>), in rtc_general_device_create()
|
/DragonOS/kernel/src/driver/base/ |
H A D | class.rs | 44 pub trait Class: Debug + Send + Sync { interface 72 impl dyn Class { implementation 121 pub fn class_register(&self, class: &Arc<dyn Class>) -> Result<(), SystemError> { in class_register() 142 pub fn class_unregister(&self, class: &Arc<dyn Class>) { in class_unregister() argument
|
H A D | subsys.rs | 19 class::Class, 38 class: SpinLock<Option<Weak<dyn Class>>>, 69 class: Option<Weak<dyn Class>>, in new() argument 106 pub fn class(&self) -> Option<Weak<dyn Class>> { in class() argument 116 pub fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|
H A D | cpu.rs | 15 class::Class, 187 fn set_class(&self, _class: Option<Weak<dyn Class>>) { in set_class() argument
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbmem.rs | 15 class::{class_manager, Class}, 69 class_manager().class_register(&(graphics_class.clone() as Arc<dyn Class>))?; in fbmem_init() 93 .set_class(Some(Arc::downgrade(&r) as Weak<dyn Class>)); in new() 99 impl Class for GraphicsClass { 345 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 346 sys_class_graphics_instance().map(|ins| ins.clone() as Arc<dyn Class>) in class() 348 fn set_class(&self, _class: Option<Weak<dyn Class>>) { in set_class() argument
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 10 class::Class, 73 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument 77 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument
|
H A D | i8042_device.rs | 8 class::Class, 76 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 85 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_device.rs | 12 class::Class, 110 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 148 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|
/DragonOS/kernel/src/driver/pci/ |
H A D | raw_device.rs | 10 class::Class, 118 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 154 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|
H A D | attr.rs | 32 &Class, in attrs() 203 struct Class; struct 205 impl Attribute for Class { implementation
|
H A D | device.rs | 228 fn set_class(&self, _class: Option<alloc::sync::Weak<dyn crate::driver::base::class::Class>>) { in set_class() argument
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | mod.rs | 12 class::Class, 200 fn set_class(&self, _class: Option<Weak<dyn Class>>) { in set_class() argument 205 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 206 sys_class_graphics_instance().map(|ins| ins.clone() as Arc<dyn Class>) in class()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 15 class::Class, 125 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument 129 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 40 class::{Class, ClassKObjbectType}, 170 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 177 fn set_class(&self, class: Option<Weak<dyn Class>>); in set_class() argument 221 pub class: Option<Weak<dyn Class>>, 252 pub fn get_class_weak_or_clear(&mut self) -> Option<Weak<dyn Class>> { in get_class_weak_or_clear() argument 569 class: Arc<dyn Class>, in class_dir_create_and_add() argument
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 7 class::Class, 253 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 263 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 9 class::Class, 321 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 16 class::Class, 446 fn set_class(&self, class: Option<alloc::sync::Weak<dyn Class>>) { in set_class() argument 472 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 23 class::Class, 367 fn class(&self) -> Option<Arc<dyn Class>> { in class() argument 377 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() argument
|