Lines Matching refs:dyn

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()
104 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj()
105 Some(sys_dev_char_kset() as Arc<dyn KObject>) in dev_kobj()
108 fn set_dev_kobj(&self, _kobj: Arc<dyn KObject>) { in set_dev_kobj()
126 registered_fbs: [Option<Arc<dyn FrameBuffer>>; FrameBufferManager::FB_MAX],
144 pub fn register_fb(&self, fb: Arc<dyn FrameBuffer>) -> Result<FbId, SystemError> { in register_fb()
147 let fb_device = FbDevice::new(Arc::downgrade(&fb) as Weak<dyn FrameBuffer>, id); in register_fb()
148 device_manager().device_default_initialize(&(fb_device.clone() as Arc<dyn Device>)); in register_fb()
149 fb_device.set_dev_parent(Some(Arc::downgrade(&(fb.clone() as Arc<dyn Device>)))); in register_fb()
153 device_manager().add_device(fb_device.clone() as Arc<dyn Device>)?; in register_fb()
161 device_manager().remove(&(fb_device.clone() as Arc<dyn Device>)); in register_fb()
169 inner.registered_fbs[id.data() as usize] = Some(fb.clone() as Arc<dyn FrameBuffer>); in register_fb()
179 pub fn unregister_fb(&self, _fb: Arc<dyn FrameBuffer>) -> Result<(), SystemError> { in unregister_fb()
184 pub fn find_fb_by_id(&self, id: FbId) -> Result<Option<Arc<dyn FrameBuffer>>, SystemError> { in find_fb_by_id()
217 fn new(fb: Weak<dyn FrameBuffer>, id: FbId) -> Arc<Self> { in new()
241 pub fn framebuffer(&self) -> Option<Arc<dyn FrameBuffer>> { in framebuffer()
262 fb: Weak<dyn FrameBuffer>,
274 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref()
286 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
290 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
302 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type()
306 fn set_kobj_type(&self, ktype: Option<&'static dyn KObjType>) { in set_kobj_type()
340 fn set_bus(&self, _bus: Option<Weak<dyn Bus>>) { in set_bus()
344 fn class(&self) -> Option<Arc<dyn Class>> { in class()
345 sys_class_graphics_instance().map(|ins| ins.clone() as Arc<dyn Class>) in class()
347 fn set_class(&self, _class: Option<Weak<dyn Class>>) { in set_class()
351 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
355 fn set_driver(&self, _driver: Option<Weak<dyn Driver>>) { in set_driver()
375 fn attribute_groups(&self) -> Option<&'static [&'static dyn AttributeGroup]> { in attribute_groups()
379 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
383 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
428 fn fs(&self) -> Arc<dyn FileSystem> { in fs()
438 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref()