Lines Matching refs:pool
37 /* BOs allocated by this pool */
46 /* Mode of the pool. BO management is in the pool for owned mode, but
52 to_panfrost_pool(struct pan_pool *pool)
54 return container_of(pool, struct panfrost_pool, base);
57 /* Reference to pool allocated memory for an unowned pool */
67 /* Take a reference to an allocation pool. Call directly after allocating from
68 * an unowned pool for correct operation. */
71 panfrost_pool_take_ref(struct panfrost_pool *pool, mali_ptr ptr)
73 if (!pool->owned)
74 panfrost_bo_reference(pool->transient_bo);
77 .bo = pool->transient_bo,
83 panfrost_pool_init(struct panfrost_pool *pool, void *memctx,
89 panfrost_pool_cleanup(struct panfrost_pool *pool);
92 panfrost_pool_num_bos(struct panfrost_pool *pool)
94 assert(pool->owned && "pool does not track BOs in unowned mode");
95 return util_dynarray_num_elements(&pool->bos, struct panfrost_bo *);
99 panfrost_pool_get_bo_handles(struct panfrost_pool *pool, uint32_t *handles);