Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 10 of 10) sorted by relevance

/hardware/google/gfxstream/host/
DReadBuffer.cpp66 size_t new_size = std::max(2 * minSizeToRead + m_validData, 2 * m_size); in getData() local
67 if (new_size < m_size) { // overflow check in getData()
68 new_size = INT_MAX; in getData()
71 const auto new_buf = (unsigned char*)malloc(new_size); in getData()
73 ERR("Failed to alloc %zu bytes for ReadBuffer\n", new_size); in getData()
80 m_size = new_size; in getData()
/hardware/google/gfxstream/guest/mesa/src/util/
Du_debug_memory.c224 void *old_ptr, size_t old_size, size_t new_size ) in debug_realloc() argument
231 return debug_malloc( file, line, function, new_size ); in debug_realloc()
233 if (!new_size) { in debug_realloc()
256 new_hdr = os_malloc(sizeof(*new_hdr) + new_size + sizeof(*new_ftr)); in debug_realloc()
260 (long unsigned)new_size); in debug_realloc()
267 new_hdr->size = new_size; in debug_realloc()
283 memcpy( new_ptr, old_ptr, old_size < new_size ? old_size : new_size ); in debug_realloc()
Dblob.c88 const size_t new_size = ALIGN(blob->size, alignment); in blob_align() local
90 if (blob->size < new_size) { in blob_align()
91 if (!grow_to_fit(blob, new_size - blob->size)) in blob_align()
95 memset(blob->data + blob->size, 0, new_size - blob->size); in blob_align()
96 blob->size = new_size; in blob_align()
Dos_memory_debug.h58 void *old_ptr, size_t old_size, size_t new_size );
Dralloc.c201 rerzalloc_size(const void *ctx, void *ptr, size_t old_size, size_t new_size) in rerzalloc_size() argument
204 return rzalloc_size(ctx, new_size); in rerzalloc_size()
207 ptr = resize(ptr, new_size); in rerzalloc_size()
209 if (new_size > old_size) in rerzalloc_size()
210 memset((char *)ptr + old_size, 0, new_size - old_size); in rerzalloc_size()
1147 linear_realloc(void *parent, void *old, unsigned new_size) in linear_realloc() argument
1152 new_ptr = linear_alloc_child(parent, new_size); in linear_realloc()
1160 memcpy(new_ptr, old, MIN2(old_size, new_size)); in linear_realloc()
Dralloc.h139 size_t old_size, size_t new_size);
612 void *linear_realloc(void *parent, void *old, unsigned new_size);
/hardware/google/gfxstream/guest/android-emu/aemu/base/
Daddress_space.h181 uint64_t new_size = to_borrow_from->size - size; in address_space_allocator_split_block() local
183 to_borrow_from->size = new_size; in address_space_allocator_split_block()
185 new_block->offset = to_borrow_from->offset + new_size; in address_space_allocator_split_block()
/hardware/google/aemu/base/include/aemu/base/
Daddress_space.h207 uint64_t new_size = to_borrow_from->size - size; in address_space_allocator_split_block() local
209 to_borrow_from->size = new_size; in address_space_allocator_split_block()
211 new_block->offset = to_borrow_from->offset + new_size; in address_space_allocator_split_block()
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dtinyexr.h4406 size_t new_size = p->m_size + len; in tdefl_output_buffer_putter() local
4407 if (new_size > p->m_capacity) { in tdefl_output_buffer_putter()
4413 } while (new_size > new_capacity); in tdefl_output_buffer_putter()
4420 p->m_size = new_size; in tdefl_output_buffer_putter()
4836 size_t new_size, in mz_zip_array_resize() argument
4838 if (new_size > pArray->m_capacity) { in mz_zip_array_resize()
4839 if (!mz_zip_array_ensure_capacity(pZip, pArray, new_size, growing)) in mz_zip_array_resize()
4842 pArray->m_size = new_size; in mz_zip_array_resize()
5980 mz_uint64 new_size = MZ_MAX(file_ofs + n, pState->m_mem_size); in mz_zip_heap_write_func() local
5983 ((0, sizeof(size_t) == sizeof(mz_uint32)) && (new_size > 0x7FFFFFFF))) in mz_zip_heap_write_func()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/overlay-layer/
Doverlay.cpp1142 size_t new_size, VkBufferUsageFlagBits usage) in CreateOrResizeBuffer() argument
1151 buffer_info.size = new_size; in CreateOrResizeBuffer()
1166 *buffer_size = new_size; in CreateOrResizeBuffer()