Lines Matching refs:pool
63 struct objpool_head *pool; /* pool head */ member
127 struct objpool_head pool; /* objpool head */ member
152 on->owner = &sop->pool; in ot_init_node()
200 struct objpool_head *pool, in ot_init_cpu_item() argument
204 item->pool = pool; in ot_init_cpu_item()
298 if (objpool_init(&sop->pool, max, test->objsz, in ot_init_sync_m0()
303 WARN_ON(max != sop->pool.nr_objs); in ot_init_sync_m0()
310 objpool_fini(&sop->pool); in ot_fini_sync()
331 nods[i] = objpool_pop(item->pool); in ot_bulk_sync()
340 objpool_push(on, item->pool); in ot_bulk_sync()
368 ot_init_cpu_item(item, test, &sop->pool, ot_bulk_sync); in ot_start_sync()
432 objpool_fini(&sop->pool); in ot_fini_async_rcu()
446 WARN_ON(!head || !sop || head != &sop->pool); in ot_objpool_release()
468 if (objpool_init(&sop->pool, max, test->objsz, gfp, sop, in ot_init_async_m0()
473 WARN_ON(max != sop->pool.nr_objs); in ot_init_async_m0()
485 static void ot_nod_recycle(struct ot_node *on, struct objpool_head *pool, in ot_nod_recycle() argument
494 objpool_push(on, pool); in ot_nod_recycle()
498 sop = container_of(pool, struct ot_context, pool); in ot_nod_recycle()
499 WARN_ON(sop != pool->context); in ot_nod_recycle()
502 objpool_drop(on, pool); in ot_nod_recycle()
512 nods[i] = objpool_pop(item->pool); in ot_bulk_async()
528 ot_nod_recycle(on, item->pool, stop); in ot_bulk_async()
559 ot_init_cpu_item(item, test, &sop->pool, ot_bulk_async); in ot_start_async()