Lines Matching refs:size
35 size_t size; member
80 hdr->alloc, hdr->size); in debug_header()
199 static void *buffer_alloc_calloc(size_t n, size_t size) in buffer_alloc_calloc() argument
214 original_len = len = n * size; in buffer_alloc_calloc()
216 if (n == 0 || size == 0 || len / n != size) { in buffer_alloc_calloc()
230 if (cur->size >= len) { in buffer_alloc_calloc()
255 if (cur->size - len < sizeof(memory_header) + in buffer_alloc_calloc()
275 heap.total_used += cur->size; in buffer_alloc_calloc()
299 new->size = cur->size - len - sizeof(memory_header); in buffer_alloc_calloc()
329 cur->size = len; in buffer_alloc_calloc()
339 heap.total_used += cur->size; in buffer_alloc_calloc()
396 heap.total_used -= hdr->size; in buffer_alloc_free()
411 hdr->prev->size += sizeof(memory_header) + hdr->size; in buffer_alloc_free()
429 hdr->size += sizeof(memory_header) + hdr->next->size; in buffer_alloc_free()
537 static void *buffer_alloc_calloc_mutexed(size_t n, size_t size) in buffer_alloc_calloc_mutexed() argument
543 buf = buffer_alloc_calloc(n, size); in buffer_alloc_calloc_mutexed()
590 heap.first->size = len - sizeof(memory_header); in mbedtls_memory_buffer_alloc_init()