Searched refs:alloc_size (Results 1 - 25 of 79) sorted by relevance

1234

/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Dos_memory_aligned.h62 size_t alloc_size; local in function:os_malloc_aligned
67 * alloc_size = size + alignment + sizeof(void *)
71 if (add_overflow_size_t(size, alignment, &alloc_size) ||
72 add_overflow_size_t(alloc_size, sizeof(void *), &alloc_size)) {
76 ptr = (char *) os_malloc(alloc_size);
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dos_memory_aligned.h74 size_t alloc_size; local in function:os_malloc_aligned
79 * alloc_size = size + alignment + sizeof(void *)
83 if (add_overflow_size_t(size, alignment, &alloc_size) ||
84 add_overflow_size_t(alloc_size, sizeof(void *), &alloc_size)) {
88 ptr = (char *) os_malloc(alloc_size);
H A Dos_memory_fd.c106 size_t alloc_size, offset; local in function:os_malloc_aligned_fd
113 * alloc_size = size + alignment + sizeof(struct memory_header) + sizeof(size_t)
118 if (add_overflow_size_t(size, alignment, &alloc_size) ||
119 add_overflow_size_t(alloc_size, header_size, &alloc_size))
122 mem_fd = os_create_anonymous_file(alloc_size, fd_name);
133 ptr = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, 0);
146 header->size = alloc_size;
/xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/tests/
H A Dstate_pool_padding.c58 assert(state.offset + state.alloc_size <= pool_size);
65 assert(state.offset + state.alloc_size <= pool_size);
/xsrc/external/mit/MesaLib/dist/src/intel/vulkan/tests/
H A Dstate_pool_padding.c61 ASSERT(state.offset + state.alloc_size <= pool_size);
68 ASSERT(state.offset + state.alloc_size <= pool_size);
/xsrc/external/mit/libdrm/dist/tests/amdgpu/
H A Dcs_tests.c214 req.alloc_size = 4*1024;
285 req.alloc_size = 4*1024; /* msg */
286 req.alloc_size += 4*1024; /* fb */
288 req.alloc_size += 4096; /*it_scaling_table*/
289 req.alloc_size += ALIGN(sizeof(uvd_bitstream), 4*1024);
290 req.alloc_size += ALIGN(dpb_size, 4*1024);
291 req.alloc_size += ALIGN(dt_size, 4*1024);
300 req.alloc_size, 1, 0, &va,
304 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0,
406 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, v
[all...]
H A Dbo_tests.c78 req.alloc_size = BUFFER_SIZE;
148 CU_ASSERT_EQUAL(res.alloc_size, BUFFER_SIZE);
275 req.alloc_size = 0xE8D4A51000;
H A Dcp_dma_tests.c99 request.alloc_size = size;
155 bo_import_result.alloc_size, 0, 0,
161 bo_import_result.alloc_size, vmc_addr,
172 bo->size = bo_import_result.alloc_size;
178 bo_import_result.alloc_size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP);
H A Damdgpu_test.h355 req.alloc_size = size;
432 request.alloc_size = size;
H A Dvm_tests.c198 request.alloc_size = 4ULL << 30;
239 req.alloc_size = size;
H A Djpeg_tests.c286 req.alloc_size = ALIGN(size, 4096);
291 req.alloc_size, 1, 0, &va, &va_handle, 0);
293 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, AMDGPU_VA_OP_MAP);
297 jpeg_bo->size = req.alloc_size;
/xsrc/external/mit/MesaLib/dist/src/virtio/vulkan/
H A Dvn_android.c426 uint64_t alloc_size = 0; local in function:vn_android_image_from_anb
460 result = vn_get_memory_dma_buf_properties(dev, dma_buf_fd, &alloc_size,
469 mem_req.size, alloc_size, mem_req.memoryTypeBits, mem_type_bits);
472 if (alloc_size < mem_req.size) {
475 "alloc_size(%" PRIu64 ") mem_req.size(%" PRIu64 ")",
476 alloc_size, mem_req.size);
803 uint64_t alloc_size = 0; local in function:vn_GetAndroidHardwareBufferPropertiesANDROID
821 result = vn_get_memory_dma_buf_properties(dev, dma_buf_fd, &alloc_size,
826 pProperties->allocationSize = alloc_size;
946 uint64_t alloc_size local in function:vn_android_device_import_ahb
1176 uint64_t alloc_size = 0; local in function:vn_android_init_ahb_buffer_memory_type_bits
[all...]
H A Dvn_queue.c144 size_t alloc_size = 0; local in function:vn_queue_submission_alloc_storage
151 alloc_size += sizeof(VkSubmitInfo) * submit->batch_count;
154 alloc_size += sizeof(VkBindSparseInfo) * submit->batch_count;
161 semaphores_offset = alloc_size;
162 alloc_size += sizeof(*submit->temp.semaphores) *
166 if (!alloc_size) {
171 submit->temp.storage = vk_alloc(alloc, alloc_size, VN_DEFAULT_ALIGN,
/xsrc/external/mit/xfs/dist/include/
H A Dos.h60 #if __has_attribute(alloc_size)
61 #define XFS_ATTRIBUTE_ALLOC_SIZE(ARGS) __attribute__ ((alloc_size ARGS))
/xsrc/external/mit/libdrm/dist/amdgpu/
H A Damdgpu_bo.c62 bo->alloc_size = size;
78 args.in.bo_size = alloc_buffer->alloc_size;
92 r = amdgpu_bo_create(dev, alloc_buffer->alloc_size, args.out.handle,
162 info->alloc_size = bo_info.bo_size;
256 uint64_t alloc_size = 0; local in function:amdgpu_bo_import
313 output->alloc_size = bo->alloc_size;
327 alloc_size = open_arg.size;
347 alloc_size = dma_buf_size;
356 r = amdgpu_bo_create(dev, alloc_size, handl
[all...]
H A Damdgpu_internal.h102 uint64_t alloc_size; member in struct:amdgpu_bo
H A Damdgpu.h167 uint64_t alloc_size; member in struct:amdgpu_bo_alloc_request
223 uint64_t alloc_size; member in struct:amdgpu_bo_info
252 uint64_t alloc_size; member in struct:amdgpu_bo_import_result
/xsrc/external/mit/xf86-video-amdgpu/dist/src/
H A Damdgpu_bo_helper.h50 * \param alloc_size - \c [in] allocation size
58 uint32_t alloc_size,
H A Damdgpu_bo_helper.c291 uint32_t alloc_size,
304 alloc_request.alloc_size = alloc_size;
353 *size = (uint32_t)(buffer_info.alloc_size);
290 amdgpu_bo_open(amdgpu_device_handle pDev,uint32_t alloc_size,uint32_t phys_alignment,uint32_t domains) argument
/xsrc/external/mit/MesaLib/dist/src/intel/vulkan/
H A Danv_allocator.c958 state_i->alloc_size = block_size;
962 state_i->alloc_size);
1029 uint32_t alloc_size = anv_state_pool_get_bucket_size(bucket); local in function:anv_state_pool_alloc_no_vg
1050 state->alloc_size = alloc_size;
1057 * 1) We could fully split the chunk into state.alloc_size sized
1076 * state.alloc_size sized chunks and return them.
1080 * remaining of the chunk, with alloc_size as a hint of the size that
1083 anv_state_pool_return_chunk(pool, chunk_offset + alloc_size,
1084 chunk_size - alloc_size, alloc_siz
1129 uint32_t alloc_size = pool->block_size; local in function:anv_state_pool_alloc_back
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/
H A Danv_allocator.c1039 state_i->alloc_size = block_size;
1108 uint32_t alloc_size = anv_state_pool_get_bucket_size(bucket); local in function:anv_state_pool_alloc_no_vg
1129 state->alloc_size = alloc_size;
1136 * 1) We could fully split the chunk into state.alloc_size sized
1155 * state.alloc_size sized chunks and return them.
1159 * remaining of the chunk, with alloc_size as a hint of the size that
1162 anv_state_pool_return_chunk(pool, chunk_offset + alloc_size,
1163 chunk_size - alloc_size, alloc_size);
1208 uint32_t alloc_size = pool->block_size; local in function:anv_state_pool_alloc_back
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/zink/
H A Dzink_bo.c549 unsigned alloc_size = size; local in function:zink_bo_create
555 alloc_size = alignment;
557 if (alignment > get_slab_entry_alignment(screen, alloc_size)) {
561 unsigned pot_size = get_slab_pot_entry_size(screen, alloc_size);
565 alloc_size = pot_size;
571 struct pb_slabs *slabs = get_slabs(screen, alloc_size, flags);
572 entry = pb_slab_alloc(slabs, alloc_size, heap);
577 entry = pb_slab_alloc(slabs, alloc_size, heap);
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/
H A Dlp_bld_coro.c213 LLVMValueRef alloc_size = LLVMBuildMul(gallivm->builder, coro_num_hdls, coro_size, ""); local in function:lp_build_coro_alloc_mem_array
215 alloc_mem = LLVMBuildCall(gallivm->builder, gallivm->coro_malloc_hook, &alloc_size, 1, "");
/xsrc/external/mit/MesaLib/dist/src/gallium/winsys/amdgpu/drm/
H A Damdgpu_bo.c507 request.alloc_size = size;
1391 unsigned alloc_size = size; local in function:amdgpu_bo_create
1397 alloc_size = alignment;
1399 if (alignment > get_slab_entry_alignment(ws, alloc_size)) {
1403 unsigned pot_size = get_slab_pot_entry_size(ws, alloc_size);
1407 alloc_size = pot_size;
1413 struct pb_slabs *slabs = get_slabs(ws, alloc_size, flags);
1414 entry = pb_slab_alloc(slabs, alloc_size, heap);
1419 entry = pb_slab_alloc(slabs, alloc_size, heap);
1549 result.alloc_size,
[all...]
/xsrc/external/mit/brotli/dist/c/enc/
H A Dhash.h425 size_t alloc_size; local in function:HasherSetup
427 alloc_size = HasherSize(params, one_shot, input_size);
428 hasher->common.extra = BROTLI_ALLOC(m, uint8_t, alloc_size);

Completed in 25 milliseconds

1234