Home
last modified time | relevance | path

Searched refs:slab_size (Results 1 – 9 of 9) sorted by relevance

/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_mempool.c49 if (pool->bo_pool && bo_sz == pool->base.slab_size && in panvk_pool_alloc_backing()
64 if (bo->size == pool->base.slab_size) in panvk_pool_alloc_backing()
84 if (unlikely(bo == NULL || (offset + sz) >= pool->base.slab_size)) { in panvk_pool_alloc_aligned()
86 ALIGN_POT(MAX2(pool->base.slab_size, sz), in panvk_pool_alloc_aligned()
105 unsigned create_flags, size_t slab_size, const char *label, in PAN_POOL_ALLOCATOR()
109 pan_pool_init(&pool->base, dev, create_flags, slab_size, label); in PAN_POOL_ALLOCATOR()
116 panvk_pool_alloc_backing(pool, pool->base.slab_size); in PAN_POOL_ALLOCATOR()
Dpanvk_mempool.h78 size_t slab_size, const char *label, bool prealloc);
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_mempool.c72 unsigned create_flags, size_t slab_size, const char *label, in panfrost_pool_init() argument
76 pan_pool_init(&pool->base, dev, create_flags, slab_size, label); in panfrost_pool_init()
83 panfrost_pool_alloc_backing(pool, pool->base.slab_size); in panfrost_pool_init()
154 if (unlikely(bo == NULL || (offset + sz) >= pool->base.slab_size)) { in panfrost_pool_alloc_aligned()
156 ALIGN_POT(MAX2(pool->base.slab_size, sz), 4096)); in panfrost_pool_alloc_aligned()
Dpan_mempool.h85 size_t slab_size, const char *label, bool prealloc, bool
/third_party/mesa3d/src/panfrost/lib/
Dpan_pool.h47 size_t slab_size; member
52 unsigned create_flags, size_t slab_size, const char *label) in pan_pool_init() argument
56 pool->slab_size = slab_size; in pan_pool_init()
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.c714 unsigned slab_size = 0; in amdgpu_bo_slab_alloc() local
725 slab_size = max_entry_size * 2; in amdgpu_bo_slab_alloc()
738 if (entry_size * 5 > slab_size) in amdgpu_bo_slab_alloc()
739 slab_size = util_next_power_of_two(entry_size * 5); in amdgpu_bo_slab_alloc()
746 slab_size < ws->info.pte_fragment_size) in amdgpu_bo_slab_alloc()
747 slab_size = ws->info.pte_fragment_size; in amdgpu_bo_slab_alloc()
751 assert(slab_size != 0); in amdgpu_bo_slab_alloc()
754 slab_size, slab_size, in amdgpu_bo_slab_alloc()
759 slab_size = slab->buffer->base.size; in amdgpu_bo_slab_alloc()
761 slab->base.num_entries = slab_size / entry_size; in amdgpu_bo_slab_alloc()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_bo.c175 ASSERTED unsigned slab_size = slab->buffer->base.size; in bo_slab_free() local
177 assert(slab->base.num_entries * slab->entry_size <= slab_size); in bo_slab_free()
1169 unsigned slab_size = 0; in bo_slab_alloc() local
1185 slab_size = max_entry_size * 2; in bo_slab_alloc()
1198 if (entry_size * 5 > slab_size) in bo_slab_alloc()
1199 slab_size = util_next_power_of_two(entry_size * 5); in bo_slab_alloc()
1205 assert(slab_size != 0); in bo_slab_alloc()
1207 slab->buffer = zink_bo(zink_bo_create(screen, slab_size, slab_size, heap, 0, NULL)); in bo_slab_alloc()
1211 slab_size = slab->buffer->base.size; in bo_slab_alloc()
1213 slab->base.num_entries = slab_size / entry_size; in bo_slab_alloc()
[all …]
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_bufmgr.c664 unsigned slab_size = 0; in iris_slab_alloc() local
680 slab_size = max_entry_size * 2; in iris_slab_alloc()
696 if (entry_size * 5 > slab_size) in iris_slab_alloc()
697 slab_size = util_next_power_of_two(entry_size * 5); in iris_slab_alloc()
707 if (i == NUM_SLAB_ALLOCATORS - 1 && slab_size < pte_size) in iris_slab_alloc()
708 slab_size = pte_size; in iris_slab_alloc()
713 assert(slab_size != 0); in iris_slab_alloc()
716 iris_bo_alloc(bufmgr, "slab", slab_size, slab_size, memzone, flags); in iris_slab_alloc()
720 slab_size = slab->bo->size; in iris_slab_alloc()
722 slab->base.num_entries = slab_size / entry_size; in iris_slab_alloc()
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h56484 unsigned int slab_size; member