/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_device.rs | 10 bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceState, DeviceType, IdTable, 38 device_state: DeviceState::NotInitialized, in new() 55 device_state: DeviceState, 192 self.inner.lock().device_state == DeviceState::Initialized in is_initialized() 195 fn set_state(&self, set_state: DeviceState) { in set_state() argument
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 17 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceState, 51 device_state: DeviceState::NotInitialized, in new() 81 device_state: DeviceState, 104 self.inner().device_state == DeviceState::Initialized in is_initialized() 107 fn set_state(&self, set_state: DeviceState) { in set_state() argument
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 276 state: DeviceState, 281 pub fn new(id_table: IdTable, state: DeviceState) -> Self { in new() 289 pub fn state(&self) -> DeviceState { in state() argument 293 pub fn set_state(&mut self, state: DeviceState) { in set_state() argument 358 pub enum DeviceState { enum 394 impl From<u32> for DeviceState { implementation 397 0 => DeviceState::NotInitialized, in from() 398 1 => DeviceState::Initialized, in from() 405 impl From<DeviceState> for u32 { 406 fn from(state: DeviceState) -> Self { in from() [all …]
|
H A D | bus.rs | 3 sys_devices_kset, Device, DeviceMatchName, DeviceMatcher, DeviceState, 79 impl From<DeviceState> for BusState { 80 fn from(state: DeviceState) -> Self { in from() 82 DeviceState::Initialized => BusState::Initialized, in from() 83 DeviceState::NotInitialized => BusState::NotInitialized, in from() 84 DeviceState::UnDefined => BusState::UnDefined, in from() 90 impl From<BusState> for DeviceState { implementation 93 BusState::Initialized => DeviceState::Initialized, in from() 94 BusState::NotInitialized => DeviceState::NotInitialized, in from() 95 BusState::UnDefined => DeviceState::UnDefined, in from()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 20 DeviceCommonData, DeviceKObjType, DeviceState, DeviceType, IdTable, 242 return self.inner.read().device_state == DeviceState::Initialized; in is_initialized() 245 fn set_state(&self, set_state: DeviceState) { in set_state() argument 363 device_state: DeviceState, 371 device_state: DeviceState::NotInitialized, in new()
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 27 use super::{super::device::DeviceState, platform_bus, platform_bus_device, CompatibleTable}; 74 fn set_state(&self, set_state: DeviceState); in set_state() argument 113 pdev.set_state(DeviceState::Initialized); in device_add()
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 17 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceState, 92 device_state: DeviceState::NotInitialized, in new() 113 device_state: DeviceState, 145 self.inner.lock().device_state == DeviceState::Initialized in is_initialized() 148 fn set_state(&self, set_state: DeviceState) { in set_state() argument
|