Searched refs:set_state (Results 1 – 8 of 8) sorted by relevance
73 fn set_state(&self, set_state: DeviceState); in set_state() method109 pdev.set_state(DeviceState::Initialized); in device_add()172 fn set_state(&self, set_state: BusState) { in set_state() method174 *state = set_state; in set_state()
187 fn set_state(&self, set_state: DeviceState) { in set_state() method188 self.inner.lock().device_state = set_state; in set_state()
207 fn set_state(&self, set_state: DeviceState) { in set_state() method208 self.inner.write().device_state = set_state; in set_state()
210 writer.set_state(ProcessState::Runnable); in wakeup()236 writer.set_state(ProcessState::Runnable); in wakeup_stop()271 writer.set_state(ProcessState::Blocked(interruptable)); in mark_sleep()296 writer.set_state(ProcessState::Stopped); in mark_stop()343 .set_state(ProcessState::Exited(exit_code)); in exit()1047 pub fn set_state(&mut self, state: ProcessState) { in set_state() method
125 writer.set_state(ProcessState::Runnable); in do_sched()
170 fn set_state(&self, set_state: DeviceState) { in set_state() method171 self.inner.lock().device_state = set_state; in set_state()
226 pub fn set_state(&mut self, state: DeviceState) { in set_state() method
1905 * 修正为在 wakeup 中设置 running ,以保留 set_state 的私有性