Lines Matching refs: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;
716 void bman_free_pool(struct bman_pool *pool)
718 bm_release_bpid(pool->bpid);
720 kfree(pool);
724 int bman_get_bpid(const struct bman_pool *pool)
726 return pool->bpid;
738 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num)
773 bm_buffer_set_bpid(r->bufs, pool->bpid);
786 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num)
796 mcc->bpid = pool->bpid;