| /xsrc/external/mit/MesaLib.old/dist/src/util/ |
| os_memory_aligned.h | 62 size_t alloc_size; local 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/ |
| os_memory_aligned.h | 74 size_t alloc_size; local 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);
|
| os_memory_fd.c | 106 size_t alloc_size, offset; local 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/ |
| state_pool_padding.c | 58 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/ |
| state_pool_padding.c | 61 ASSERT(state.offset + state.alloc_size <= pool_size); 68 ASSERT(state.offset + state.alloc_size <= pool_size);
|
| /xsrc/external/mit/MesaLib/dist/src/virtio/vulkan/ |
| vn_android.c | 426 uint64_t alloc_size = 0; local 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 821 result = vn_get_memory_dma_buf_properties(dev, dma_buf_fd, &alloc_size, 826 pProperties->allocationSize = alloc_size; 946 uint64_t alloc_size = 0 local 1176 uint64_t alloc_size = 0; local [all...] |
| vn_queue.c | 144 size_t alloc_size = 0; local 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/ |
| os.h | 60 #if __has_attribute(alloc_size) 61 #define XFS_ATTRIBUTE_ALLOC_SIZE(ARGS) __attribute__ ((alloc_size ARGS))
|
| /xsrc/external/mit/xf86-video-amdgpu/dist/src/ |
| amdgpu_bo_helper.h | 50 * \param alloc_size - \c [in] allocation size 58 uint32_t alloc_size,
|
| amdgpu_bo_helper.c | 291 uint32_t alloc_size, 304 alloc_request.alloc_size = alloc_size; 353 *size = (uint32_t)(buffer_info.alloc_size);
|
| /xsrc/external/mit/libdrm/dist/amdgpu/ |
| amdgpu_bo.c | 62 bo->alloc_size = size; 81 args.in.bo_size = alloc_buffer->alloc_size; 95 r = amdgpu_bo_create(dev, alloc_buffer->alloc_size, args.out.handle, 168 info->alloc_size = bo_info.bo_size; 262 uint64_t alloc_size = 0; local 319 output->alloc_size = bo->alloc_size; 333 alloc_size = open_arg.size; 353 alloc_size = dma_buf_size; 362 r = amdgpu_bo_create(dev, alloc_size, handle, &bo) [all...] |
| amdgpu_internal.h | 107 uint64_t alloc_size; member in struct:amdgpu_bo
|
| amdgpu.h | 183 uint64_t alloc_size; member in struct:amdgpu_bo_alloc_request 239 uint64_t alloc_size; member in struct:amdgpu_bo_info 268 uint64_t alloc_size; member in struct:amdgpu_bo_import_result
|
| /xsrc/external/mit/MesaLib/dist/src/intel/vulkan/ |
| anv_allocator.c | 958 state_i->alloc_size = block_size; 962 state_i->alloc_size); 1029 uint32_t alloc_size = anv_state_pool_get_bucket_size(bucket); local 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_size) 1129 uint32_t alloc_size = pool->block_size; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/ |
| anv_allocator.c | 1039 state_i->alloc_size = block_size; 1108 uint32_t alloc_size = anv_state_pool_get_bucket_size(bucket); local 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 [all...] |
| anv_cmd_buffer.c | 978 set->desc_mem.alloc_size < layout->descriptor_buffer_size)) { 985 if (set->desc_mem.alloc_size) { 988 MIN2(desc_mem.alloc_size, set->desc_mem.alloc_size));
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/ |
| lp_bld_coro.c | 213 LLVMValueRef alloc_size = LLVMBuildMul(gallivm->builder, coro_num_hdls, coro_size, ""); local 215 alloc_mem = LLVMBuildCall(gallivm->builder, gallivm->coro_malloc_hook, &alloc_size, 1, "");
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/zink/ |
| zink_bo.c | 549 unsigned alloc_size = size; local 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/winsys/amdgpu/drm/ |
| amdgpu_bo.c | 507 request.alloc_size = size; 1391 unsigned alloc_size = size; local 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/ |
| hash.h | 425 size_t alloc_size; local 427 alloc_size = HasherSize(params, one_shot, input_size); 428 hasher->common.extra = BROTLI_ALLOC(m, uint8_t, alloc_size);
|
| /xsrc/external/mit/MesaLib/dist/src/amd/vulkan/ |
| radv_android.c | 839 uint64_t alloc_size = 0; 841 device->ws->buffer_from_fd(device->ws, dma_buf, priority, &mem->bo, &alloc_size); 859 if (alloc_size < mem->image->size) { 865 if (alloc_size < mem->buffer->size) {
|
| /xsrc/external/mit/MesaLib/dist/src/amd/vulkan/winsys/amdgpu/ |
| radv_amdgpu_bo.c | 465 request.alloc_size = size; 699 struct radeon_winsys_bo **out_bo, uint64_t *alloc_size) 732 if (alloc_size) { 733 *alloc_size = info.alloc_size; 736 r = amdgpu_va_range_alloc(ws->dev, amdgpu_gpu_va_range_general, result.alloc_size, 1 << 20, 0, 744 radv_amdgpu_bo_va_op(ws, result.buf_handle, 0, result.alloc_size, va, 0, 0, AMDGPU_VA_OP_MAP); 760 bo->size = result.alloc_size;
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/iris/ |
| iris_bufmgr.c | 755 unsigned alloc_size = size; local 761 alloc_size = alignment; 763 if (alignment > get_slab_entry_alignment(bufmgr, alloc_size)) { 767 unsigned pot_size = get_slab_pot_entry_size(bufmgr, alloc_size); 771 alloc_size = pot_size; 778 struct pb_slabs *slabs = get_slabs(bufmgr, alloc_size); 779 entry = pb_slab_alloc(slabs, alloc_size, heap); 784 entry = pb_slab_alloc(slabs, alloc_size, heap);
|
| /xsrc/external/mit/MesaLib.old/dist/src/amd/vulkan/winsys/amdgpu/ |
| radv_amdgpu_bo.c | 352 request.alloc_size = size; 558 result.alloc_size, 1 << 20, 0, &va, &va_handle, 563 r = radv_amdgpu_bo_va_op(ws, result.buf_handle, 0, result.alloc_size, 577 bo->size = result.alloc_size;
|
| /xsrc/external/mit/libXft/dist/src/ |
| xftfreetype.c | 797 size_t alloc_size; local 909 alloc_size = (sizeof (XftFontInt) + 912 font = malloc (alloc_size); 917 XftMemAlloc (XFT_MEM_FONT, alloc_size);
|