Home
last modified time | relevance | path

Searched refs:new_layout (Results 1 – 3 of 3) sorted by relevance

/rust/alloc/
Dalloc.rs200 new_layout: Layout, in grow_impl()
204 new_layout.size() >= old_layout.size(), in grow_impl()
209 0 => self.alloc_impl(new_layout, zeroed), in grow_impl()
213 old_size if old_layout.align() == new_layout.align() => unsafe { in grow_impl()
214 let new_size = new_layout.size(); in grow_impl()
233 let new_ptr = self.alloc_impl(new_layout, zeroed)?; in grow_impl()
269 new_layout: Layout, in grow()
272 unsafe { self.grow_impl(ptr, old_layout, new_layout, false) } in grow()
280 new_layout: Layout, in grow_zeroed()
283 unsafe { self.grow_impl(ptr, old_layout, new_layout, true) } in grow_zeroed()
[all …]
Draw_vec.rs440 let new_layout = Layout::array::<T>(cap); in grow_amortized() localVariable
443 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_amortized()
459 let new_layout = Layout::array::<T>(cap); in grow_exact() localVariable
462 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_exact()
478 let new_layout = Layout::from_size_align_unchecked(new_size, layout.align()); in shrink() localVariable
480 .shrink(ptr, layout, new_layout) in shrink()
481 .map_err(|_| AllocError { layout: new_layout, non_exhaustive: () })? in shrink()
494 new_layout: Result<Layout, LayoutError>, in finish_grow()
502 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow() localVariable
504 alloc_guard(new_layout.size())?; in finish_grow()
[all …]
/rust/kernel/
Dallocator.rs18 unsafe fn krealloc_aligned(ptr: *mut u8, new_layout: Layout, flags: bindings::gfp_t) -> *mut u8 { in krealloc_aligned()
20 let layout = new_layout.pad_to_align(); in krealloc_aligned()