/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_renderer_util.c | 73 size_t alloc_size = pool->min_alloc_size; in vn_renderer_shmem_pool_grow() local 74 while (alloc_size < size) { in vn_renderer_shmem_pool_grow() 75 alloc_size <<= 1; in vn_renderer_shmem_pool_grow() 76 if (!alloc_size) in vn_renderer_shmem_pool_grow() 81 vn_renderer_shmem_create(renderer, alloc_size); in vn_renderer_shmem_pool_grow() 89 pool->size = alloc_size; in vn_renderer_shmem_pool_grow()
|
H A D | vn_android.c | 579 uint64_t alloc_size = 0; in vn_android_image_from_anb() local 625 result = vn_get_memory_dma_buf_properties(dev, dma_buf_fd, &alloc_size, in vn_android_image_from_anb() 634 mem_req->size, alloc_size, mem_req->memoryTypeBits, in vn_android_image_from_anb() 638 if (alloc_size < mem_req->size) { in vn_android_image_from_anb() 641 "alloc_size(%" PRIu64 ") mem_req->size(%" PRIu64 ")", in vn_android_image_from_anb() 642 alloc_size, mem_req->size); in vn_android_image_from_anb() 1001 uint64_t alloc_size = 0; in vn_GetAndroidHardwareBufferPropertiesANDROID() local 1019 result = vn_get_memory_dma_buf_properties(dev, dma_buf_fd, &alloc_size, in vn_GetAndroidHardwareBufferPropertiesANDROID() 1024 pProperties->allocationSize = alloc_size; in vn_GetAndroidHardwareBufferPropertiesANDROID() 1145 uint64_t alloc_size in vn_android_device_import_ahb() local 1393 uint64_t alloc_size = 0; vn_android_get_ahb_buffer_memory_type_bits() local [all...] |
/third_party/mesa3d/src/util/ |
H A D | os_memory_fd.c | 106 size_t alloc_size, offset; in os_malloc_aligned_fd() local 113 * alloc_size = size + alignment + sizeof(struct memory_header) + sizeof(size_t) in os_malloc_aligned_fd() 118 if (add_overflow_size_t(size, alignment, &alloc_size) || in os_malloc_aligned_fd() 119 add_overflow_size_t(alloc_size, header_size, &alloc_size)) in os_malloc_aligned_fd() 122 mem_fd = os_create_anonymous_file(alloc_size, fd_name); in os_malloc_aligned_fd() 133 ptr = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, 0); in os_malloc_aligned_fd() 146 header->size = alloc_size; in os_malloc_aligned_fd()
|
H A D | os_memory_aligned.h | 74 size_t alloc_size; in os_malloc_aligned() local 79 * alloc_size = size + alignment + sizeof(void *) in os_malloc_aligned() 83 if (add_overflow_size_t(size, alignment, &alloc_size) || in os_malloc_aligned() 84 add_overflow_size_t(alloc_size, sizeof(void *), &alloc_size)) { in os_malloc_aligned() 88 ptr = (char *) os_malloc(alloc_size); in os_malloc_aligned()
|
/third_party/libdrm/tests/amdgpu/ |
H A D | cs_tests.c | 214 req.alloc_size = 4*1024; in amdgpu_cs_uvd_create() 285 req.alloc_size = 4*1024; /* msg */ in amdgpu_cs_uvd_decode() 286 req.alloc_size += 4*1024; /* fb */ in amdgpu_cs_uvd_decode() 288 req.alloc_size += 4096; /*it_scaling_table*/ in amdgpu_cs_uvd_decode() 289 req.alloc_size += ALIGN(sizeof(uvd_bitstream), 4*1024); in amdgpu_cs_uvd_decode() 290 req.alloc_size += ALIGN(dpb_size, 4*1024); in amdgpu_cs_uvd_decode() 291 req.alloc_size += ALIGN(dt_size, 4*1024); in amdgpu_cs_uvd_decode() 300 req.alloc_size, 1, 0, &va, in amdgpu_cs_uvd_decode() 304 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in amdgpu_cs_uvd_decode() 406 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, v in amdgpu_cs_uvd_decode() [all...] |
H A D | bo_tests.c | 78 req.alloc_size = BUFFER_SIZE; in suite_bo_tests_init() 148 CU_ASSERT_EQUAL(res.alloc_size, BUFFER_SIZE); in amdgpu_bo_export_import_do_type() 275 req.alloc_size = 0xE8D4A51000; in amdgpu_mem_fail_alloc()
|
H A D | cp_dma_tests.c | 99 request.alloc_size = size; in allocate_bo_and_va() 155 bo_import_result.alloc_size, 0, 0, in import_dma_buf_to_bo() 161 bo_import_result.alloc_size, vmc_addr, in import_dma_buf_to_bo() 172 bo->size = bo_import_result.alloc_size; in import_dma_buf_to_bo() 178 bo_import_result.alloc_size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP); in import_dma_buf_to_bo()
|
/third_party/node/deps/v8/src/libplatform/tracing/ |
H A D | trace-object.cc | 66 size_t alloc_size = 0; in Initialize() local 68 alloc_size += GetAllocLength(name) + GetAllocLength(scope); in Initialize() 70 alloc_size += GetAllocLength(arg_names_[i]); in Initialize() 80 if (arg_is_copy[i]) alloc_size += GetAllocLength(arg_values_[i].as_string); in Initialize() 83 if (alloc_size) { in Initialize() 87 char* ptr = parameter_copy_storage_ = new char[alloc_size]; in Initialize()
|
/third_party/libwebsockets/lib/misc/lwsac/ |
H A D | lwsac.c | 84 if (bf->alloc_size - bf->ofs < lwsac_align(amount)) in lwsac_extend() 114 if (bf->alloc_size - bf->ofs >= ensure) in _lwsac_use() 125 if (bf->alloc_size - bf->ofs >= ensure) in _lwsac_use() 181 bf->alloc_size = alloc; in _lwsac_use() 195 if (bf->ofs >= bf->alloc_size) in _lwsac_use() 196 bf->ofs = bf->alloc_size; in _lwsac_use() 242 overhead += (head->alloc_size - head->ofs) + sizeof(*head); in lwsac_total_overhead()
|
/third_party/node/deps/cares/src/lib/ |
H A D | ares__iface_ips.c | 76 size_t alloc_size; member 88 ips->alloc_size = 4; in ares__iface_ips_alloc() 89 ips->ips = ares_malloc_zero(ips->alloc_size * sizeof(*ips->ips)); in ares__iface_ips_alloc() 199 if (ips->cnt + 1 > ips->alloc_size) { in ares__iface_ips_add() 201 size_t alloc_size; in ares__iface_ips_add() local 203 alloc_size = ares__round_up_pow2(ips->alloc_size + 1); in ares__iface_ips_add() 204 temp = ares_realloc_zero(ips->ips, ips->alloc_size * sizeof(*ips->ips), in ares__iface_ips_add() 205 alloc_size * sizeof(*ips->ips)); in ares__iface_ips_add() 210 ips->alloc_size in ares__iface_ips_add() [all...] |
H A D | ares__buf.c | 187 size_t alloc_size; in ares__buf_ensure_space() local 217 alloc_size = buf->alloc_buf_len; in ares__buf_ensure_space() 220 if (alloc_size == 0) { in ares__buf_ensure_space() 221 alloc_size = 16; /* Always shifts 1, so ends up being 32 minimum */ in ares__buf_ensure_space() 226 alloc_size <<= 1; in ares__buf_ensure_space() 227 remaining_size = alloc_size - buf->data_len; in ares__buf_ensure_space() 230 ptr = ares_realloc(buf->alloc_buf, alloc_size); in ares__buf_ensure_space() 236 buf->alloc_buf_len = alloc_size; in ares__buf_ensure_space()
|
/third_party/FreeBSD/sys/dev/usb/ |
H A D | usb_mbuf.c | 44 usb_size_t alloc_size; in usb_alloc_mbufs() local 50 alloc_size = (block_size + sizeof(struct usb_mbuf)) * nblocks; in usb_alloc_mbufs() 52 free_ptr = zalloc(alloc_size); in usb_alloc_mbufs()
|
/third_party/libdrm/amdgpu/ |
H A D | amdgpu_bo.c | 62 bo->alloc_size = size; in amdgpu_bo_create() 78 args.in.bo_size = alloc_buffer->alloc_size; in amdgpu_bo_alloc() 92 r = amdgpu_bo_create(dev, alloc_buffer->alloc_size, args.out.handle, in amdgpu_bo_alloc() 162 info->alloc_size = bo_info.bo_size; in amdgpu_bo_query_info() 256 uint64_t alloc_size = 0; in amdgpu_bo_import() local 313 output->alloc_size = bo->alloc_size; in amdgpu_bo_import() 327 alloc_size = open_arg.size; in amdgpu_bo_import() 347 alloc_size = dma_buf_size; in amdgpu_bo_import() 356 r = amdgpu_bo_create(dev, alloc_size, handl in amdgpu_bo_import() [all...] |
/third_party/lwip/src/apps/altcp_tls/ |
H A D | altcp_tls_mbedtls_mem.c | 107 size_t alloc_size; in tls_malloc() local 114 alloc_size = sizeof(altcp_mbedtls_malloc_helper_t) + (c * len); in tls_malloc() 116 if (alloc_size > MEM_SIZE) { in tls_malloc() 121 hlpr = (altcp_mbedtls_malloc_helper_t *)mem_malloc((mem_size_t)alloc_size); in tls_malloc()
|
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | heap-space.h | 72 Address Allocate(size_t alloc_size) { in Allocate() argument 73 DCHECK_GE(size_, alloc_size); in Allocate() 75 start_ += alloc_size; in Allocate() 76 size_ -= alloc_size; in Allocate()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
H A D | tiffdec.c | 165 int64_t alloc_size; in ReadTIFF() local 230 alloc_size = (int64_t)(stride * image_height); in ReadTIFF() 231 if (alloc_size < 0 || alloc_size != (tsize_t)alloc_size) goto End; in ReadTIFF() 233 raster = (uint32*)_TIFFmalloc((tsize_t)alloc_size); in ReadTIFF()
|
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_allocator.c | 968 state_i->alloc_size = block_size; in anv_state_pool_return_blocks() 972 state_i->alloc_size); in anv_state_pool_return_blocks() 1039 uint32_t alloc_size = anv_state_pool_get_bucket_size(bucket); in anv_state_pool_alloc_no_vg() local 1060 state->alloc_size = alloc_size; in anv_state_pool_alloc_no_vg() 1067 * 1) We could fully split the chunk into state.alloc_size sized in anv_state_pool_alloc_no_vg() 1086 * state.alloc_size sized chunks and return them. in anv_state_pool_alloc_no_vg() 1090 * remaining of the chunk, with alloc_size as a hint of the size that in anv_state_pool_alloc_no_vg() 1093 anv_state_pool_return_chunk(pool, chunk_offset + alloc_size, in anv_state_pool_alloc_no_vg() 1094 chunk_size - alloc_size, alloc_siz in anv_state_pool_alloc_no_vg() 1139 uint32_t alloc_size = pool->block_size; anv_state_pool_alloc_back() local [all...] |
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_suballoc.c | 69 uint32_t alloc_size = MAX2(size, suballoc->default_size); in tu_suballoc_bo_alloc() local 73 if (alloc_size <= suballoc->cached_bo->size) in tu_suballoc_bo_alloc() 83 alloc_size, in tu_suballoc_bo_alloc()
|
/third_party/mesa3d/src/imagination/vulkan/ |
H A D | pvr_query.c | 46 uint64_t alloc_size; in pvr_CreateQueryPool() local 72 alloc_size = pool->result_stride * core_count; in pvr_CreateQueryPool() 76 alloc_size, in pvr_CreateQueryPool()
|
/third_party/alsa-lib/src/rawmidi/ |
H A D | rawmidi_hw.c | 126 size_t alloc_size; in snd_rawmidi_hw_params() local 129 alloc_size = page_size(); in snd_rawmidi_hw_params() 130 if (params->buffer_size > alloc_size) in snd_rawmidi_hw_params() 131 alloc_size = params->buffer_size; in snd_rawmidi_hw_params() 132 if (alloc_size != hw->buf_size) { in snd_rawmidi_hw_params() 133 buf = realloc(hw->buf, alloc_size); in snd_rawmidi_hw_params() 137 hw->buf_size = alloc_size; in snd_rawmidi_hw_params()
|
/third_party/mesa3d/src/intel/vulkan/tests/ |
H A D | state_pool_padding.c | 61 ASSERT(state.offset + state.alloc_size <= pool_size); in main() 68 ASSERT(state.offset + state.alloc_size <= pool_size); in main()
|
/third_party/libcoap/src/ |
H A D | coap_pdu.c | 46 if (pdu->alloc_size > size) in coap_pdu_clear() 47 pdu->alloc_size = size; in coap_pdu_clear() 89 pdu->alloc_size = pbuf->tot_len - pdu->max_hdr_size; in coap_pdu_from_pbuf() 90 coap_pdu_clear(pdu, pdu->alloc_size); in coap_pdu_from_pbuf() 137 pdu->alloc_size = min(size, 256); in coap_pdu_init() 138 buf = coap_malloc_type(COAP_PDU_BUF, pdu->alloc_size + pdu->max_hdr_size); in coap_pdu_init() 246 if (new_size > pdu->alloc_size) { in coap_pdu_resize() 282 pdu->alloc_size = new_size; in coap_pdu_resize() 288 if (size > pdu->alloc_size) { in coap_pdu_check_resize() 289 size_t new_size = max(256, pdu->alloc_size * in coap_pdu_check_resize() [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | test-malloc-stats-common.h | 54 size_t alloc_size; member 124 void *alloc = malloc(thread_data->alloc_size); in allocate_wait_free()
|
/third_party/lwip/src/core/ |
H A D | mem.c | 1002 size_t alloc_size = (size_t)count * (size_t)size; in mem_calloc() local 1004 if ((size_t)(mem_size_t)alloc_size != alloc_size) { in mem_calloc() 1005 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_calloc: could not allocate %"SZT_F" bytes\n", alloc_size)); in mem_calloc() 1010 p = mem_malloc((mem_size_t)alloc_size); in mem_calloc() 1013 memset(p, 0, alloc_size); in mem_calloc()
|
/third_party/ffmpeg/libavformat/ |
H A D | cafenc.c | 225 int i, alloc_size = caf->size_entries_used + 5U; in caf_write_packet() local 226 if (alloc_size < 0) in caf_write_packet() 231 alloc_size); in caf_write_packet()
|