Lines Matching refs:prealloc
90 static bool init_stack_slab(void **prealloc) in init_stack_slab() argument
92 if (!*prealloc) in init_stack_slab()
101 stack_slabs[depot_index] = *prealloc; in init_stack_slab()
102 *prealloc = NULL; in init_stack_slab()
106 stack_slabs[depot_index + 1] = *prealloc; in init_stack_slab()
107 *prealloc = NULL; in init_stack_slab()
120 depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc) in depot_alloc_stack() argument
142 init_stack_slab(prealloc); in depot_alloc_stack()
427 void *prealloc = NULL; in __stack_depot_save() local
476 prealloc = page_address(page); in __stack_depot_save()
483 struct stack_record *new = depot_alloc_stack(entries, nr_entries, hash, &prealloc); in __stack_depot_save()
494 } else if (prealloc) { in __stack_depot_save()
499 WARN_ON(!init_stack_slab(&prealloc)); in __stack_depot_save()
504 if (prealloc) { in __stack_depot_save()
506 free_pages((unsigned long)prealloc, STACK_ALLOC_ORDER); in __stack_depot_save()