Lines Matching refs:prealloc
244 static bool depot_init_pool(void **prealloc)
256 if (!new_pool && *prealloc) {
258 WRITE_ONCE(new_pool, *prealloc);
259 *prealloc = NULL;
263 return false; /* new_pool and *prealloc are NULL */
291 static void depot_keep_new_pool(void **prealloc)
302 WRITE_ONCE(new_pool, *prealloc);
303 *prealloc = NULL;
310 static struct stack_record *depot_pop_free_pool(void **prealloc, size_t size)
319 if (!depot_init_pool(prealloc))
381 depot_alloc_stack(unsigned long *entries, unsigned int nr_entries, u32 hash, depot_flags_t flags, void **prealloc)
408 stack = depot_pop_free_pool(prealloc, record_size);
593 void *prealloc = NULL;
637 prealloc = page_address(page);
647 depot_alloc_stack(entries, nr_entries, hash, depot_flags, &prealloc);
659 if (prealloc) {
665 depot_keep_new_pool(&prealloc);
671 if (prealloc) {
673 free_pages((unsigned long)prealloc, DEPOT_POOL_ORDER);