Lines Matching refs:prealloc
244 static bool depot_init_pool(void **prealloc) in depot_init_pool() argument
256 if (!new_pool && *prealloc) { in depot_init_pool()
258 WRITE_ONCE(new_pool, *prealloc); in depot_init_pool()
259 *prealloc = NULL; in depot_init_pool()
291 static void depot_keep_new_pool(void **prealloc) in depot_keep_new_pool() argument
302 WRITE_ONCE(new_pool, *prealloc); in depot_keep_new_pool()
303 *prealloc = NULL; in depot_keep_new_pool()
310 static struct stack_record *depot_pop_free_pool(void **prealloc, size_t size) in depot_pop_free_pool() argument
319 if (!depot_init_pool(prealloc)) in depot_pop_free_pool()
381 …ck(unsigned long *entries, unsigned int nr_entries, u32 hash, depot_flags_t flags, void **prealloc) in depot_alloc_stack() argument
408 stack = depot_pop_free_pool(prealloc, record_size); in depot_alloc_stack()
593 void *prealloc = NULL; in stack_depot_save_flags() local
630 prealloc = page_address(page); in stack_depot_save_flags()
640 depot_alloc_stack(entries, nr_entries, hash, depot_flags, &prealloc); in stack_depot_save_flags()
652 if (prealloc) { in stack_depot_save_flags()
658 depot_keep_new_pool(&prealloc); in stack_depot_save_flags()
664 if (prealloc) { in stack_depot_save_flags()
666 free_pages((unsigned long)prealloc, DEPOT_POOL_ORDER); in stack_depot_save_flags()