Home
last modified time | relevance | path

Searched refs:heap_index (Results 1 – 7 of 7) sorted by relevance

/third_party/unity/extras/memory/src/
Dunity_memory.c44 static size_t heap_index; variable
84 if (heap_index + total_size > UNITY_INTERNAL_HEAP_SIZE_BYTES) in unity_malloc()
91 guard = (Guard*)(void*)(&unity_heap[heap_index]); in unity_malloc()
92 heap_index += total_size; in unity_malloc()
128 if (mem == unity_heap + heap_index - block_size) in release_memory()
130 heap_index -= (sizeof(Guard) + block_size); in release_memory()
189 if ((oldMem == unity_heap + heap_index - old_total_size) && in unity_realloc()
190 …((heap_index - old_total_size + unity_size_round_up(size + sizeof(end))) <= UNITY_INTERNAL_HEAP_SI… in unity_realloc()
/third_party/cJSON/tests/unity/extras/fixture/src/
Dunity_fixture.c167 static size_t heap_index; variable
196 if (heap_index + total_size > UNITY_INTERNAL_HEAP_SIZE_BYTES) in unity_malloc()
202 guard = (Guard*)&unity_heap[heap_index]; in unity_malloc()
203 heap_index += total_size; in unity_malloc()
234 if (mem == unity_heap + heap_index - guard->size - sizeof(end)) in release_memory()
236 heap_index -= (guard->size + sizeof(Guard) + sizeof(end)); in release_memory()
291 if (oldMem == unity_heap + heap_index - guard->size - sizeof(end) && in unity_realloc()
292 heap_index + size - guard->size <= UNITY_INTERNAL_HEAP_SIZE_BYTES) in unity_realloc()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_resource.h53 unsigned heap_index; member
/third_party/mesa3d/src/imagination/vulkan/winsys/pvrsrvkm/
Dpvr_srv_bridge.c341 uint32_t heap_index, in pvr_srv_get_heap_details() argument
351 .heap_index = heap_index, in pvr_srv_get_heap_details()
Dpvr_srv_bridge.h288 uint32_t heap_index; member
862 uint32_t heap_index,
/third_party/mesa3d/src/amd/vulkan/
Dradv_device.c5416 device->allocated_memory_size[mem->heap_index] -= mem->alloc_size; in radv_free_memory()
5569 uint32_t heap_index; in radv_alloc_memory() local
5571 heap_index = in radv_alloc_memory()
5593 device->physical_device->memory_properties.memoryHeaps[heap_index].size; in radv_alloc_memory()
5596 if (device->allocated_memory_size[heap_index] + alloc_size > total_size) { in radv_alloc_memory()
5601 device->allocated_memory_size[heap_index] += alloc_size; in radv_alloc_memory()
5612 device->allocated_memory_size[heap_index] -= alloc_size; in radv_alloc_memory()
5618 mem->heap_index = heap_index; in radv_alloc_memory()
Dradv_private.h953 uint32_t heap_index; member