Lines Matching refs:size
58 size_t size; member
104 hdr->alloc, hdr->size ); in debug_header()
232 static void *buffer_alloc_calloc( size_t n, size_t size ) in buffer_alloc_calloc() argument
246 original_len = len = n * size; in buffer_alloc_calloc()
248 if( n != 0 && len / n != size ) in buffer_alloc_calloc()
261 if( cur->size >= len ) in buffer_alloc_calloc()
285 if( cur->size - len < sizeof(memory_header) + in buffer_alloc_calloc()
304 heap.total_used += cur->size; in buffer_alloc_calloc()
326 new->size = cur->size - len - sizeof(memory_header); in buffer_alloc_calloc()
353 cur->size = len; in buffer_alloc_calloc()
362 heap.total_used += cur->size; in buffer_alloc_calloc()
417 heap.total_used -= hdr->size; in buffer_alloc_free()
433 hdr->prev->size += sizeof(memory_header) + hdr->size; in buffer_alloc_free()
451 hdr->size += sizeof(memory_header) + hdr->next->size; in buffer_alloc_free()
549 static void *buffer_alloc_calloc_mutexed( size_t n, size_t size ) in buffer_alloc_calloc_mutexed() argument
554 buf = buffer_alloc_calloc( n, size ); in buffer_alloc_calloc_mutexed()
597 heap.first->size = len - sizeof(memory_header); in mbedtls_memory_buffer_alloc_init()