Searched refs:as_mut (Results 1 – 22 of 22) sorted by relevance
15 ret = (tmp as *mut process_control_block).as_mut(); in current_pcb()
10 return unsafe { core::mem::transmute::<*mut S, *mut D>(src).as_mut() }; in __convert_mut()
90 unsafe { (pcb.fp_state as usize as *mut FpState).as_mut().unwrap() } in fp_state_save()141 let fp = unsafe { (pcb.fp_state as usize as *mut FpState).as_mut().unwrap() }; in fp_state_restore()
84 .as_mut() in read_at()118 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in read_at()124 .as_mut() in read_at()156 .as_mut() in read_at()244 .as_mut() in write_at()279 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in write_at()285 .as_mut() in write_at()318 .as_mut() in write_at()
87 hba_mem_list.push(unsafe { (virt_addr as *mut HbaMem).as_mut().unwrap() }); in ahci_rust_init()188 return unsafe { (port as *const HbaPort as *mut HbaPort).as_mut().unwrap() }; in _port()
38 let kernel_mapper = kernel_mapper.as_mut().unwrap(); in dma_alloc()64 let kernel_mapper = kernel_mapper.as_mut().unwrap(); in dma_dealloc()
43 let cpu_pending = __CPU_PENDING.as_mut().unwrap(); in softirq_init()55 return __SORTIRQ_VECTORS.as_mut().unwrap(); in softirq_vectors()62 return &mut __CPU_PENDING.as_mut().unwrap()[cpu_id]; in cpu_pending()
50 let mut kernel_mapper = kernel_mapper.as_mut(); in rs_map_phys()54 .as_mut() in rs_map_phys()
70 pub fn as_mut(&mut self) -> Option<&mut PageMapper> { in as_mut() method
33 unsafe { __MMIO_POOL.as_mut().unwrap() } in mmio_pool()545 let mut kernel_mapper = bindings.as_mut(); in release_mmio()554 .as_mut() in release_mmio()
480 return self.user_stack.as_mut(); in user_stack_mut()
23 return unsafe { CFS_SCHEDULER_PTR.as_mut().unwrap() }; in __get_cfs_scheduler()85 res = unsafe { self.idle_pcb.as_mut().unwrap() }; in dequeue()
22 return unsafe { RT_SCHEDULER_PTR.as_mut().unwrap() }; in __get_rt_scheduler()
92 let pcb = unsafe { process_find_pcb_by_pid(pid).as_mut() }; in signal_kill_proc_info()170 let ret = unsafe { ((*pcb).sighand as *mut sighand_struct).as_mut() }; in lock_process_sighand()550 let (info, still_pending) = unsafe { pending.queue.as_mut() } in collect_signal()626 .as_mut() in setup_frame()
552 let sq = unsafe { sq.as_mut::<'static>() }.unwrap(); in from_c_void()
405 let mut allocator_guard = binding.as_mut().unwrap(); in allocator_init()610 assert!(mapper.as_mut().is_some()); in unmap_at_low_address()614 .as_mut() in unmap_at_low_address()
156 self.file.as_mut().unwrap() in file_mut()
58 let pcb = unsafe { _pcb.as_mut() }.unwrap(); in process_try_to_wake_up()
425 return unsafe { (pcb.fds as usize as *mut FileDescriptorVec).as_mut() }; in from_pcb()
310 unsafe { (buf.as_mut_ptr() as *mut Dirent).as_mut() }.ok_or(SystemError::EFAULT)?; in getdents()
120 let pcb = unsafe { process_find_pcb_by_pid(*pid).as_mut() }; in open_status()
868 let msg = unsafe { msg.as_mut() }.ok_or(SystemError::EFAULT)?; in handle()