Lines Matching defs:pool
241 * This object type refers to a pool, it isn't *the* pool. There may be
242 * more than one such object per BMan buffer pool, eg. if different users of the
243 * pool are operating via different portals.
246 /* index of the buffer pool to encapsulate (0-63) */
697 struct bman_pool *pool = NULL;
703 pool = kmalloc(sizeof(*pool), GFP_KERNEL);
704 if (!pool)
707 pool->bpid = bpid;
709 return pool;
712 kfree(pool);
717 void bman_free_pool(struct bman_pool *pool)
719 bm_release_bpid(pool->bpid);
721 kfree(pool);
725 int bman_get_bpid(const struct bman_pool *pool)
727 return pool->bpid;
739 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num)
774 bm_buffer_set_bpid(r->bufs, pool->bpid);
787 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num)
797 mcc->bpid = pool->bpid;