Lines Matching full:size
54 TI_UINT32 size;
101 Size - Specifies the size, in bytes, to be allocated.
111 void* mem_Alloc (TI_HANDLE hMem, TI_UINT32 size)
115 TI_UINT32 total = size + sizeof(TMemBlock) + sizeof(TI_UINT32);
118 os_printf ("mem_Alloc(0x%p, %lu) : %u\n", hMem, size, uTotalSize);
122 pMemBlock->size = size;
143 Size - Length in bytes of each element
149 void* mem_Calloc (TI_HANDLE hMem, TI_UINT32 number, TI_UINT32 size)
155 total = number * size;
158 os_printf ("os_memoryCAlloc(%u, %u) : %u\n", number, size, total);
183 Size - Specifies the size, in bytes, of the memory block to be released.
191 void mem_Free (TI_HANDLE hMem, void* ptr, TI_UINT32 size)
197 os_printf ("os_memoryFree(%p, %u)\n", ptr, size);
210 if (*(TI_UINT32 *)((TI_UINT8 *)pMemBlock + pMemBlock->size + sizeof(TMemBlock)) != MEM_BLOCK_END)
213 os_printf ("os_memoryFree: memory block corruption, size - %u\n", pMemBlock->size);
219 pMemMng->uCurAllocated -= size + sizeof(TMemBlock) + sizeof(TI_UINT32);
224 os_printf ("os_memoryFree: memory heap allocation calculation corrupted, size=%u, current=%u\n",
225 size, drv->cur_heap_bytes_allocated);