Lines Matching refs:layout
49 let layout = new_layout.pad_to_align();
51 // Note that `layout.size()` (after padding) is guaranteed to be a multiple of `layout.align()`
54 layout.size()
86 layout: Layout,
90 let size = aligned_size(layout);
116 crate::alloc::dangling_from_layout(layout)
133 layout: Layout,
138 unsafe { ReallocFunc::KREALLOC.call(ptr, layout, old_layout, flags) }
150 layout: Layout,
155 if layout.align() > bindings::PAGE_SIZE {
162 unsafe { ReallocFunc::VREALLOC.call(ptr, layout, old_layout, flags) }
174 layout: Layout,
179 if layout.align() > bindings::PAGE_SIZE {
186 unsafe { ReallocFunc::KVREALLOC.call(ptr, layout, old_layout, flags) }