Lines Matching refs:state
276 state: DeviceState, field
281 pub fn new(id_table: IdTable, state: DeviceState) -> Self { in new()
282 Self { id_table, state } in new()
289 pub fn state(&self) -> DeviceState { in state() method
290 self.state in state()
293 pub fn set_state(&mut self, state: DeviceState) { in set_state()
294 self.state = state; in set_state()
395 fn from(state: u32) -> Self { in from()
396 match state { in from()
406 fn from(state: DeviceState) -> Self { in from()
407 match state { in from()
1019 fn hash<H: core::hash::Hasher>(&self, state: &mut H) { in hash()
1020 self.id().hash(state); in hash()
1113 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
1114 *self.locked_kobj_state.write() = state; in set_kobj_state()