Searched refs:DeviceState (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | bus.rs | 4 Device, DeviceError, DeviceState, IdTable, 44 impl From<DeviceState> for BusState { 45 fn from(state: DeviceState) -> Self { in from() 47 DeviceState::Initialized => BusState::Initialized, in from() 48 DeviceState::NotInitialized => BusState::NotInitialized, in from() 49 DeviceState::UnDefined => BusState::UnDefined, in from() 55 impl From<BusState> for DeviceState { implementation 58 BusState::Initialized => DeviceState::Initialized, in from() 59 BusState::NotInitialized => DeviceState::NotInitialized, in from() 60 BusState::UnDefined => DeviceState::UnDefined, in from()
|
D | mod.rs | 117 pub enum DeviceState { enum 148 impl From<u32> for DeviceState { implementation 151 0 => DeviceState::NotInitialized, in from() 152 1 => DeviceState::Initialized, in from() 159 impl From<DeviceState> for u32 { 160 fn from(state: DeviceState) -> Self { in from() 162 DeviceState::NotInitialized => 0, in from() 163 DeviceState::Initialized => 1, in from() 164 DeviceState::UnDefined => 2, in from()
|
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | platform_device.rs | 2 super::device::{Device, DeviceState}, 24 fn set_state(&self, set_state: DeviceState); in set_state() argument
|
D | mod.rs | 4 Device, DeviceError, DeviceState, DeviceType, IdTable, KObject, 166 device.set_state(DeviceState::Initialized) in driver_match_device() 195 device.set_state(DeviceState::Initialized); in device_match_driver()
|
/DragonOS-0.1.8/kernel/src/driver/uart/ |
D | uart.rs | 5 device::{driver::Driver, DeviceState, DeviceType, IdTable, KObject}, 103 state: DeviceState, // 设备状态 111 state: DeviceState::NotInitialized, in default() 138 DeviceState::Initialized => true, in is_initialized() 143 fn set_state(&self, set_state: DeviceState) { in set_state() argument 465 UART_DEV.set_state(DeviceState::Initialized); in uart_init()
|