Home
last modified time | relevance | path

Searched refs:Class (Results 1 – 25 of 29) sorted by relevance

12

/DragonOS/kernel/src/driver/tty/
H A Dsysfs.rs10 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 Dtty_device.rs13 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 Dclass.rs3 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 Dloopback.rs2 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 Dvirtio_net.rs24 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 Dsysfs.rs3 class::Class,
30 &(sys_class_net_instance().cloned().unwrap() as Arc<dyn Class>), in netdev_register_kobject()
/DragonOS/kernel/src/driver/rtc/
H A Dclass.rs11 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 Dsysfs.rs10 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 Dclass.rs44 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 Dsubsys.rs19 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 Dcpu.rs15 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 Dfbmem.rs15 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 Di8042_ports.rs10 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 Di8042_device.rs8 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 Dpt_device.rs12 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 Draw_device.rs10 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 Dattr.rs32 &Class, in attrs()
203 struct Class; struct
205 impl Attribute for Class { implementation
H A Ddevice.rs228 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 Dmod.rs12 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 Drtc.rs15 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 Dmod.rs40 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 De1000e_driver.rs7 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 Dplatform_device.rs9 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 Dps_mouse_device.rs16 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 Dvirtio_blk.rs23 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

12