Lines Matching refs:usize
24 …static ref C_ALLOCATION_MAP: SpinLock<HashMap<VirtAddr, (VirtAddr, usize, usize)>> = SpinLock::new…
29 pub unsafe extern "C" fn rs_pseudo_map_phys(vaddr: usize, paddr: usize, size: usize) { in rs_pseudo_map_phys() argument
38 pub unsafe extern "C" fn rs_map_phys(vaddr: usize, paddr: usize, size: usize, flags: usize) { in rs_map_phys() argument
45 if flags & PAGE_U_S as usize != 0 { in rs_map_phys()
67 pub unsafe extern "C" fn kzalloc(size: usize, _gfp: gfp_t) -> usize { in kzalloc() argument
73 pub unsafe extern "C" fn kmalloc(size: usize, _gfp: gfp_t) -> usize { in kmalloc() argument
79 fn do_kmalloc(size: usize, zero: bool) -> usize { in do_kmalloc() argument
93 let vaddr = VirtAddr::new(ptr as usize); in do_kmalloc()
94 let len = len as usize; in do_kmalloc()
95 let cap = cap as usize; in do_kmalloc()
111 return SystemError::ENOMEM.to_posix_errno() as i64 as usize; in do_kmalloc()
116 pub unsafe extern "C" fn kfree(vaddr: usize) -> usize { in kfree() argument
124 return SystemError::EINVAL.to_posix_errno() as i64 as usize; in kfree()
132 pub unsafe extern "C" fn rs_unmap_at_low_addr() -> usize { in rs_unmap_at_low_addr()