Lines Matching refs:u8
17 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8; in local_alloc() argument
18 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8; in local_alloc_zeroed() argument
19 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout); in local_dealloc() argument
25 unsafe fn alloc_in_buddy(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in alloc_in_buddy() argument
40 virt_addr.data() as *mut u8, in alloc_in_buddy()
47 unsafe fn free_in_buddy(&self, ptr: *mut u8, layout: Layout) { in free_in_buddy() argument
58 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8 { in local_alloc() argument
61 .map(|x| x.as_mut_ptr() as *mut u8) in local_alloc()
62 .unwrap_or(core::ptr::null_mut() as *mut u8); in local_alloc()
65 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8 { in local_alloc_zeroed() argument
69 let ptr: *mut u8 = x.as_mut_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() argument
83 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() argument
88 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { in alloc_zeroed() argument
92 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { in dealloc() argument