Lines Matching refs:driver

10     driver::{
18 driver::Driver,
61 driver: Option<Weak<dyn Driver>>, field
74 driver: None, in new()
149 let (index, driver) = in open()
152 let tty = driver.open_tty(Some(index))?; in open()
168 let driver = tty.core().driver(); in open() localVariable
172 || (driver.tty_driver_type() == TtyDriverType::Pty in open()
173 && driver.tty_driver_sub_type() == TtyDriverSubType::PtyMaster)) in open()
464 fn kset(&self) -> Option<Arc<crate::driver::base::kset::KSet>> { in kset()
468 fn set_kset(&self, kset: Option<Arc<crate::driver::base::kset::KSet>>) { in set_kset()
472 fn kobj_type(&self) -> Option<&'static dyn crate::driver::base::kobject::KObjType> { in kobj_type()
476 fn set_kobj_type(&self, _ktype: Option<&'static dyn crate::driver::base::kobject::KObjType>) {} in set_kobj_type()
488 ) -> crate::libs::rwlock::RwLockReadGuard<crate::driver::base::kobject::KObjectState> { in kobj_state()
494 ) -> crate::libs::rwlock::RwLockWriteGuard<crate::driver::base::kobject::KObjectState> { in kobj_state_mut()
498 fn set_kobj_state(&self, state: crate::driver::base::kobject::KObjectState) { in set_kobj_state()
504 fn dev_type(&self) -> crate::driver::base::device::DeviceType { in dev_type()
508 fn id_table(&self) -> crate::driver::base::device::IdTable { in id_table()
516 fn set_bus(&self, bus: Option<alloc::sync::Weak<dyn crate::driver::base::device::bus::Bus>>) { in set_bus()
520 fn set_class(&self, _class: Option<Weak<dyn crate::driver::base::class::Class>>) { in set_class()
530 fn driver(&self) -> Option<Arc<dyn crate::driver::base::device::driver::Driver>> { in driver() method
531 self.inner.read().driver.clone()?.upgrade() in driver()
536 driver: Option<alloc::sync::Weak<dyn crate::driver::base::device::driver::Driver>>, in set_driver()
538 self.inner.write().driver = driver in set_driver()
557 fn dev_parent(&self) -> Option<alloc::sync::Weak<dyn crate::driver::base::device::Device>> { in dev_parent()
563 _dev_parent: Option<alloc::sync::Weak<dyn crate::driver::base::device::Device>>, in set_dev_parent()