Lines Matching full:layout
12 use core::alloc::Layout;
47 fn aligned_size(new_layout: Layout) -> usize { in aligned_size()
48 // Customized layouts from `Layout::from_size_align()` can have size < align, so pad first. in aligned_size()
49 let layout = new_layout.pad_to_align(); in aligned_size() localVariable
51 // Note that `layout.size()` (after padding) is guaranteed to be a multiple of `layout.align()` in aligned_size()
54 layout.size() in aligned_size()
86 layout: Layout, in call() argument
87 old_layout: Layout, in call() argument
90 let size = aligned_size(layout); in call()
116 crate::alloc::dangling_from_layout(layout) in call()
133 layout: Layout, in realloc() argument
134 old_layout: Layout, in realloc() argument
138 unsafe { ReallocFunc::KREALLOC.call(ptr, layout, old_layout, flags) } in realloc()
150 layout: Layout, in realloc() argument
151 old_layout: Layout, in realloc() argument
155 if layout.align() > bindings::PAGE_SIZE { in realloc()
162 unsafe { ReallocFunc::VREALLOC.call(ptr, layout, old_layout, flags) } in realloc()
174 layout: Layout, in realloc() argument
175 old_layout: Layout, in realloc() argument
179 if layout.align() > bindings::PAGE_SIZE { in realloc()
186 unsafe { ReallocFunc::KVREALLOC.call(ptr, layout, old_layout, flags) } in realloc()