Searched refs:blockID (Results 1 – 2 of 2) sorted by relevance
/haiku/src/add-ons/kernel/drivers/graphics/common/ |
H A D | memory_manager.c | 188 mem_alloc(mem_info *mem, uint32 size, void *tag, uint32 *blockID, uint32 *offset) in mem_alloc() argument 239 *blockID = current - mem->heap + 1; in mem_alloc() 244 TRACE(("mem_alloc(block_id=%ld, offset=%lx)\n", *blockID, *offset)); in mem_alloc() 260 mem_free(mem_info *mem, uint32 blockID, void *tag) in mem_free() argument 265 TRACE(("mem_free(mem %p, blockID=%ld, tag=%p)\n", mem, blockID, tag)); in mem_free() 271 --blockID; in mem_free() 273 if (blockID >= mem->heap_entries) { in mem_free() 274 TRACE(("mem_free: invalid ID %lu\n", blockID)); in mem_free() 278 block = &mem->heap[blockID]; in mem_free()
|
/haiku/headers/private/graphics/common/ |
H A D | memory_manager.h | 24 status_t mem_alloc(mem_info *mem, uint32 size, void *tag, uint32 *blockID, uint32 *offset); 25 status_t mem_free(mem_info *mem, uint32 blockID, void *tag);
|