Home
last modified time | relevance | path

Searched refs:kobj_type (Results 1 – 25 of 31) sorted by relevance

12

/DragonOS/kernel/src/driver/base/
H A Dkobject.rs46 fn kobj_type(&self) -> Option<&'static dyn KObjType>; in kobj_type() method
83 pub kobj_type: Option<&'static dyn KObjType>, field
184 kobj_type: Option<&'static dyn KObjType>, in init_and_add_kobj()
186 Self::kobj_init(&kobj, kobj_type); in init_and_add_kobj()
190 pub fn kobj_init(kobj: &Arc<dyn KObject>, kobj_type: Option<&'static dyn KObjType>) { in kobj_init()
191 kobj.set_kobj_type(kobj_type); in kobj_init()
230 if let Some(ktype) = kobj.kobj_type() { in create_dir()
246 let ktype = kobj.kobj_type(); in remove_kobj()
H A Dcpu.rs233 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
234 self.inner.read().kobject_common.kobj_type in kobj_type()
238 self.inner.write().kobject_common.kobj_type = ktype; in set_kobj_type()
H A Dkset.rs178 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs144 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
145 self.kobj_data.read().kobj_type in kobj_type()
149 self.kobj_data.write().kobj_type = ktype; in set_kobj_type()
H A Dpt_device.rs172 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
173 self.kobj_data.read().kobj_type in kobj_type()
177 self.kobj_data.write().kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_ports.rs146 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
147 self.inner().kobject_common.kobj_type in kobj_type()
151 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
H A Di8042_device.rs149 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
150 self.inner().kobject_common.kobj_type in kobj_type()
154 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
H A Di8042_driver.rs163 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
/DragonOS/kernel/src/driver/pci/
H A Ddevice.rs141 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
142 self.inner().kobject_common.kobj_type in kobj_type()
146 self.inner().kobject_common.kobj_type = ktype in set_kobj_type()
H A Draw_device.rs180 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
181 self.inner.read().kobject_common.kobj_type in kobj_type()
185 self.inner.write().kobject_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs332 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
388 kobj_type: Option<&'static dyn KObjType>, field
399 kobj_type: None, in new()
531 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
532 self.inner.read().kobj_type in kobj_type()
536 self.inner.write().kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs178 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
179 self.inner().kobject_common.kobj_type in kobj_type()
183 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
H A Dsysfs.rs216 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
217 self.inner().kobject_common.kobj_type in kobj_type()
221 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/base/device/
H A Dmod.rs737 if let Some(kobj_type) = dev.kobj_type() { in add_attrs()
738 let attr_groups = kobj_type.attribute_groups().unwrap_or(&[]); in add_attrs()
752 if let Some(kobj_type) = dev.kobj_type() { in add_attrs()
753 self.add_groups(dev, kobj_type.attribute_groups().unwrap_or(&[])) in add_attrs()
1089 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
1090 return self.inner().kobject_common.kobj_type; in kobj_type()
1094 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs163 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
164 self.inner().kobj_common.kobj_type in kobj_type()
168 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
743 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
744 self.inner().kobj_common.kobj_type in kobj_type()
768 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
948 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
949 self.inner().kobj_common.kobj_type in kobj_type()
953 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
H A Dloopback.rs346 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
347 self.inner().kobj_common.kobj_type in kobj_type()
371 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs447 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
448 self.inner().kobject_common.kobj_type in kobj_type()
472 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
634 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
635 self.inner().kobj_common.kobj_type in kobj_type()
639 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs234 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
235 self.inner().kobject_common.kobj_type in kobj_type()
239 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs205 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
206 self.inner().kobject_common.kobj_type in kobj_type()
210 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dmod.rs154 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
155 self.inner().kobject_common.kobj_type in kobj_type()
159 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbmem.rs302 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
303 self.inner().kobject_common.kobj_type in kobj_type()
307 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e_driver.rs408 fn kobj_type(&self) -> Option<&'static dyn crate::driver::base::kobject::KObjType> { in kobj_type() method
409 self.inner().kobj_common.kobj_type in kobj_type()
433 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs558 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
559 self.inner().kobject_common.kobj_type in kobj_type()
563 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
/DragonOS/kernel/src/driver/open_firmware/
H A Ddevice_node.rs133 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs246 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
247 self.inner().kobject_common.kobj_type in kobj_type()
251 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
834 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method

12