Lines Matching refs:state
30 let state: u64 = unsafe { read_volatile(&(*pcb).state) } as u64; in process_is_stopped() localVariable
31 if (state & (PROC_STOPPED as u64)) != 0 { in process_is_stopped()
61 write_volatile(&mut pcb.state, PROC_RUNNING as u64); in process_try_to_wake_up()
70 if unsafe { read_volatile(&pcb.state) } & _state != 0 { in process_try_to_wake_up()
73 write_volatile(&mut pcb.state, PROC_RUNNING as u64); in process_try_to_wake_up()
89 pub extern "C" fn process_wake_up_state(pcb: *mut process_control_block, state: u64) -> bool { in process_wake_up_state()
90 return process_try_to_wake_up(pcb, state, 0); in process_wake_up_state()
285 self.state = PROC_INTERRUPTIBLE as u64; in mark_sleep_interruptible()
294 self.state = PROC_UNINTERRUPTIBLE as u64; in mark_sleep_uninterruptible()
371 let state = current_pcb().fp_state as usize as *mut FpState; in rs_dup_fpstate() localVariable
373 let s = state.as_ref().unwrap(); in rs_dup_fpstate()
374 let state: &mut FpState = Box::leak(Box::new(s.clone())); in rs_dup_fpstate() localVariable
376 return state as *mut FpState as usize as *mut c_void; in rs_dup_fpstate()
385 let state = pcb.fp_state as usize as *mut FpState; in rs_process_exit_fpstate() localVariable
387 drop(Box::from_raw(state)); in rs_process_exit_fpstate()