• Home
  • Raw
  • Download

Lines Matching refs:pool

34 panfrost_pool_alloc_backing(struct pan_pool *pool, size_t bo_sz)  in panfrost_pool_alloc_backing()  argument
42 struct panfrost_bo *bo = panfrost_bo_create(pool->dev, bo_sz, in panfrost_pool_alloc_backing()
43 pool->create_flags); in panfrost_pool_alloc_backing()
45 util_dynarray_append(&pool->bos, struct panfrost_bo *, bo); in panfrost_pool_alloc_backing()
46 pool->transient_bo = bo; in panfrost_pool_alloc_backing()
47 pool->transient_offset = 0; in panfrost_pool_alloc_backing()
53 panfrost_pool_init(struct pan_pool *pool, void *memctx, in panfrost_pool_init() argument
57 memset(pool, 0, sizeof(*pool)); in panfrost_pool_init()
58 pool->dev = dev; in panfrost_pool_init()
59 pool->create_flags = create_flags; in panfrost_pool_init()
60 util_dynarray_init(&pool->bos, memctx); in panfrost_pool_init()
63 panfrost_pool_alloc_backing(pool, TRANSIENT_SLAB_SIZE); in panfrost_pool_init()
67 panfrost_pool_cleanup(struct pan_pool *pool) in panfrost_pool_cleanup() argument
69 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) in panfrost_pool_cleanup()
72 util_dynarray_fini(&pool->bos); in panfrost_pool_cleanup()
76 panfrost_pool_get_bo_handles(struct pan_pool *pool, uint32_t *handles) in panfrost_pool_get_bo_handles() argument
79 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) { in panfrost_pool_get_bo_handles()
95 panfrost_pool_alloc_aligned(struct pan_pool *pool, size_t sz, unsigned alignment) in panfrost_pool_alloc_aligned() argument
100 struct panfrost_bo *bo = pool->transient_bo; in panfrost_pool_alloc_aligned()
101 unsigned offset = ALIGN_POT(pool->transient_offset, alignment); in panfrost_pool_alloc_aligned()
105 bo = panfrost_pool_alloc_backing(pool, in panfrost_pool_alloc_aligned()
110 pool->transient_offset = offset + sz; in panfrost_pool_alloc_aligned()
121 panfrost_pool_upload(struct pan_pool *pool, const void *data, size_t sz) in panfrost_pool_upload() argument
123 return panfrost_pool_upload_aligned(pool, data, sz, sz); in panfrost_pool_upload()
127 panfrost_pool_upload_aligned(struct pan_pool *pool, const void *data, size_t sz, unsigned alignment) in panfrost_pool_upload_aligned() argument
129 struct panfrost_ptr transfer = panfrost_pool_alloc_aligned(pool, sz, alignment); in panfrost_pool_upload_aligned()