Lines Matching refs:heap
284 bucket_info_for_heap(struct iris_bufmgr *bufmgr, enum iris_heap heap,
287 switch (heap) {
304 unreachable("invalid heap");
316 enum iris_heap heap)
348 bucket_info_for_heap(bufmgr, heap, &buckets, &num_buckets);
656 unsigned heap,
662 unsigned flags = heap == IRIS_HEAP_SYSTEM_MEMORY ? BO_ALLOC_SMEM :
663 heap == IRIS_HEAP_DEVICE_LOCAL ? BO_ALLOC_LMEM : 0;
795 enum iris_heap heap = flags_to_heap(bufmgr, flags);
821 entry = pb_slab_alloc(slabs, alloc_size, heap);
826 entry = pb_slab_alloc(slabs, alloc_size, heap);
962 bo->real.heap = flags_to_heap(bufmgr, flags);
973 switch (bo->real.heap) {
986 unreachable("invalid heap for BO");
1001 bo->real.heap == IRIS_HEAP_DEVICE_LOCAL_PREFERRED) {
1065 enum iris_heap heap = flags_to_heap(bufmgr, flags);
1066 bool local = heap != IRIS_HEAP_SYSTEM_MEMORY;
1067 struct bo_cache_bucket *bucket = bucket_for_size(bufmgr, size, heap);
1089 if (!bufmgr->all_vram_mappable && heap == IRIS_HEAP_DEVICE_LOCAL)
1158 bo->name, memzone_name(memzone), iris_heap_to_string[bo->real.heap],
1461 bucket = bucket_for_size(bufmgr, bo->size, bo->real.heap);
1588 if (bo->real.heap != IRIS_HEAP_SYSTEM_MEMORY)
2105 add_bucket(struct iris_bufmgr *bufmgr, int size, enum iris_heap heap)
2109 bucket_info_for_heap(bufmgr, heap, &buckets, &num_buckets);
2116 assert(bucket_for_size(bufmgr, size, heap) == &buckets[i]);
2117 assert(bucket_for_size(bufmgr, size - 2048, heap) == &buckets[i]);
2118 assert(bucket_for_size(bufmgr, size + 1, heap) != &buckets[i]);
2122 init_cache_buckets(struct iris_bufmgr *bufmgr, enum iris_heap heap)
2134 add_bucket(bufmgr, PAGE_SIZE, heap);
2135 add_bucket(bufmgr, PAGE_SIZE * 2, heap);
2136 add_bucket(bufmgr, PAGE_SIZE * 3, heap);
2140 add_bucket(bufmgr, size, heap);
2142 add_bucket(bufmgr, size + size * 1 / 4, heap);
2143 add_bucket(bufmgr, size + size * 2 / 4, heap);
2144 add_bucket(bufmgr, size + size * 3 / 4, heap);
2310 bo->real.heap != IRIS_HEAP_SYSTEM_MEMORY ? IRIS_MMAP_WC : IRIS_MMAP_WB;