Lines Matching refs:size
29 pub unsafe extern "C" fn rs_pseudo_map_phys(vaddr: usize, paddr: usize, size: usize) { in rs_pseudo_map_phys()
32 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in rs_pseudo_map_phys()
38 pub unsafe extern "C" fn rs_map_phys(vaddr: usize, paddr: usize, size: usize, flags: usize) { in rs_map_phys()
41 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in rs_map_phys()
67 pub unsafe extern "C" fn kzalloc(size: usize, _gfp: gfp_t) -> usize { in kzalloc()
69 return do_kmalloc(size, true); in kzalloc()
73 pub unsafe extern "C" fn kmalloc(size: usize, _gfp: gfp_t) -> usize { in kmalloc()
76 return do_kmalloc(size, true); in kmalloc()
79 fn do_kmalloc(size: usize, zero: bool) -> usize { in do_kmalloc()
81 vec![0u8; size] in do_kmalloc()
83 let mut v = Vec::with_capacity(size); in do_kmalloc()
85 v.set_len(size); in do_kmalloc()
90 assert!(space.len() == size); in do_kmalloc()