Lines Matching refs:prealloc
293 static bool depot_init_pool(void **prealloc) in depot_init_pool() argument
305 if (!new_pool && *prealloc) { in depot_init_pool()
307 WRITE_ONCE(new_pool, *prealloc); in depot_init_pool()
308 *prealloc = NULL; in depot_init_pool()
340 static void depot_keep_new_pool(void **prealloc) in depot_keep_new_pool() argument
351 WRITE_ONCE(new_pool, *prealloc); in depot_keep_new_pool()
352 *prealloc = NULL; in depot_keep_new_pool()
359 static struct stack_record *depot_pop_free_pool(void **prealloc, size_t size) in depot_pop_free_pool() argument
368 if (!depot_init_pool(prealloc)) in depot_pop_free_pool()
430 …ck(unsigned long *entries, unsigned int nr_entries, u32 hash, depot_flags_t flags, void **prealloc) in depot_alloc_stack() argument
457 stack = depot_pop_free_pool(prealloc, record_size); in depot_alloc_stack()
642 void *prealloc = NULL; in stack_depot_save_flags() local
680 prealloc = page_address(page); in stack_depot_save_flags()
698 depot_alloc_stack(entries, nr_entries, hash, depot_flags, &prealloc); in stack_depot_save_flags()
710 if (prealloc) { in stack_depot_save_flags()
716 depot_keep_new_pool(&prealloc); in stack_depot_save_flags()
722 if (prealloc) { in stack_depot_save_flags()
725 free_pages_nolock(virt_to_page(prealloc), DEPOT_POOL_ORDER); in stack_depot_save_flags()
727 free_pages((unsigned long)prealloc, DEPOT_POOL_ORDER); in stack_depot_save_flags()