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()
87 layout: Layout, in call() argument
88 old_layout: Layout, in call() argument
91 let size = aligned_size(layout); in call()
117 crate::alloc::dangling_from_layout(layout) in call()
134 layout: Layout, in realloc() argument
135 old_layout: Layout, in realloc() argument
139 unsafe { ReallocFunc::KREALLOC.call(ptr, layout, old_layout, flags) } in realloc()
151 layout: Layout, in realloc() argument
152 old_layout: Layout, in realloc() argument
156 if layout.align() > bindings::PAGE_SIZE { in realloc()
163 unsafe { ReallocFunc::VREALLOC.call(ptr, layout, old_layout, flags) } in realloc()
175 layout: Layout, in realloc() argument
176 old_layout: Layout, in realloc() argument
180 if layout.align() > bindings::PAGE_SIZE { in realloc()
187 unsafe { ReallocFunc::KVREALLOC.call(ptr, layout, old_layout, flags) } in realloc()