Lines Matching refs:prealloc
75 static bool init_stack_slab(void **prealloc) in init_stack_slab() argument
77 if (!*prealloc) in init_stack_slab()
86 stack_slabs[depot_index] = *prealloc; in init_stack_slab()
87 *prealloc = NULL; in init_stack_slab()
91 stack_slabs[depot_index + 1] = *prealloc; in init_stack_slab()
92 *prealloc = NULL; in init_stack_slab()
105 depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc) in depot_alloc_stack() argument
127 init_stack_slab(prealloc); in depot_alloc_stack()
322 void *prealloc = NULL; in __stack_depot_save() local
361 prealloc = page_address(page); in __stack_depot_save()
368 struct stack_record *new = depot_alloc_stack(entries, nr_entries, hash, &prealloc); in __stack_depot_save()
379 } else if (prealloc) { in __stack_depot_save()
384 WARN_ON(!init_stack_slab(&prealloc)); in __stack_depot_save()
389 if (prealloc) { in __stack_depot_save()
391 free_pages((unsigned long)prealloc, STACK_ALLOC_ORDER); in __stack_depot_save()