Lines Matching refs:ptr
10 ptr::NonNull,
19 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout); in local_dealloc()
47 unsafe fn free_in_buddy(&self, ptr: *mut u8, layout: Layout) { in free_in_buddy()
51 let phy_addr = MMArch::virt_2_phys(VirtAddr::new(ptr as usize)).unwrap(); in free_in_buddy()
62 .unwrap_or(core::ptr::null_mut() as *mut u8); in local_alloc()
69 let ptr: *mut u8 = x.as_mut_ptr(); in local_alloc_zeroed() localVariable
70 core::ptr::write_bytes(ptr, 0, x.len()); in local_alloc_zeroed()
71 ptr in local_alloc_zeroed()
73 .unwrap_or(core::ptr::null_mut() as *mut u8); in local_alloc_zeroed()
76 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout) { in local_dealloc()
77 self.free_in_buddy(ptr, layout); in local_dealloc()
92 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { in dealloc()
93 self.local_dealloc(ptr, layout); in dealloc()