Lines Matching refs:total_size
90 allocate_malloc (size_t total_size, const void *element, size_t element_size, in allocate_malloc() argument
93 void *buffer = malloc (total_size); in allocate_malloc()
100 .size = total_size, in allocate_malloc()
131 allocate_big (size_t total_size, const void *element, size_t element_size, in allocate_big() argument
148 if (stride_size > total_size) in allocate_big()
150 return allocate_malloc (total_size, element, element_size, count); in allocate_big()
154 void *target = mmap (NULL, total_size, PROT_NONE, in allocate_big()
191 xmunmap (target, total_size); in allocate_big()
215 size_t remaining_size = total_size; in allocate_big()
235 xmunmap (target, total_size); in allocate_big()
253 .size = total_size, in allocate_big()
262 size_t total_size; in repeat_allocate() local
263 if (__builtin_mul_overflow (element_size, count, &total_size)) in repeat_allocate()
268 if (total_size <= maximum_small_size) in repeat_allocate()
269 return allocate_malloc (total_size, element, element_size, count); in repeat_allocate()
271 return allocate_big (total_size, element, element_size, count, shared); in repeat_allocate()