Home
last modified time | relevance | path

Searched refs:align_malloc (Results 1 – 25 of 59) sorted by relevance

123

/external/OpenCL-CTS/test_conformance/buffers/
Dtest_buffer_fill.cpp624 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill()
755 inptr = (TestStruct *)align_malloc(ptrSize * num_elements, in test_buffer_fill_struct()
774 hostptr = (TestStruct *)align_malloc(ptrSize * num_elements, in test_buffer_fill_struct()
799 outptr = align_malloc( ptrSize * num_elements, min_alignment); in test_buffer_fill_struct()
925 inptr[i] = (cl_int *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_int()
933 hostptr[i] = (cl_int *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_int()
990 inptr[i] = (cl_uint *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_uint()
998 hostptr[i] = (cl_uint *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_uint()
1055 inptr[i] = (cl_short *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_short()
1063 hostptr[i] = (cl_short *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_short()
[all …]
Dtest_buffer_write.cpp680 outptr[i] = align_malloc( ptrSizes[i] * (num_elements * 2 ), min_alignment); in test_buffer_write()
691 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_write()
840 inptr[i] = (TestStruct *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_struct()
861 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_struct()
1010 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_array_async()
1121 inptr[i] = (int *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_int()
1160 inptr[i] = (cl_uint *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_uint()
1199 inptr[i] = (cl_short *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_short()
1239 inptr[i] = (cl_ushort *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_ushort()
1279 inptr[i] = (char *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_char()
[all …]
Dtest_buffer_copy.cpp52 int_input_ptr = (cl_int*) align_malloc(sizeof(cl_int) * num_elements, min_alignment); in test_copy()
53 int_output_ptr = (cl_int*)align_malloc(sizeof(cl_int) * num_elements, min_alignment); in test_copy()
151 inptr = (int *)align_malloc( sizeof(int) * num_elements, min_alignment); in testPartialCopy()
156 outptr = (int *)align_malloc( sizeof(int) * num_elements, min_alignment); in testPartialCopy()
Dtest_buffer_read.cpp667 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_read()
672 inptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_read()
808 outptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_read_async()
814 inptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_read_async()
944 outptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_read_array_barrier()
950 inptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_read_array_barrier()
1113 output_ptr = (TestStruct*)align_malloc(objSize * num_elements, min_alignment);
1201 outptr[i] = (int *)align_malloc( ptrSizes[i] * num_elements, min_alignment); in testRandomReadSize()
Dtest_buffer_mem.cpp88 inptr = (cl_int*)align_malloc(sizeof(cl_int) * num_elements, min_alignment); in test_mem_flags()
95 outptr = (cl_int*)align_malloc(sizeof(cl_int) * num_elements, min_alignment); in test_mem_flags()
/external/mesa3d/src/gallium/tests/unit/
Dtranslate_test.c138 buffer[i] = align_malloc(buffer_size, 4096); in main()
140 byte_buffer = align_malloc(buffer_size, 4096); in main()
141 float_buffer = align_malloc(buffer_size, 4096); in main()
142 double_buffer = align_malloc(buffer_size, 4096); in main()
143 half_buffer = align_malloc(buffer_size, 4096); in main()
145 elts = align_malloc(count * sizeof *elts, 4096); in main()
/external/OpenCL-CTS/test_conformance/SVM/
Dtest_shared_address_space_fine_grain.cpp46 Node* pNodes = (Node*) align_malloc(numLists*ListLength*sizeof(Node),128); in test_svm_shared_address_space_fine_grain()
50 size_t* pAllocator = (size_t*) align_malloc(sizeof(cl_int), 128); in test_svm_shared_address_space_fine_grain()
54 cl_int* pNum_correct = (cl_int*) align_malloc(sizeof(cl_int), 128); in test_svm_shared_address_space_fine_grain()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcppcoreguidelines-no-malloc-custom.cpp11 void *align_malloc(size_t size, unsigned short alignment);
25 int *aligned = (int *)align_malloc(20 * sizeof(int), 16); in malloced_array()
/external/mesa3d/src/util/
Du_memory.h61 #define align_malloc(_size, _alignment) os_malloc_aligned(_size, _alignment) macro
68 void *ptr = align_malloc(size, alignment); in align_calloc()
/external/OpenCL-CTS/test_conformance/pipes/
Dtest_pipe_subgroups.cpp124 inptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_subgroups_divergence()
125 outptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_subgroups_divergence()
126 active_work_item_buffer = (cl_int *)align_malloc(size, min_alignment); in test_pipe_subgroups_divergence()
Dtest_pipe_limits.cpp195 inptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_max_args()
205 outptr = align_malloc(size, min_alignment); in test_pipe_max_args()
313 inptr = (cl_char *)align_malloc(size, min_alignment); in test_pipe_max_packet_size()
323 outptr = align_malloc(size, min_alignment); in test_pipe_max_packet_size()
566 inptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_max_active_reservations()
576 outptr = align_malloc(size, min_alignment); in test_pipe_max_active_reservations()
Dtest_pipe_query_functions.cpp114 inptr = (int *)align_malloc(size, min_alignment); in test_pipe_query_functions()
125 outptr1 = align_malloc(size/2, min_alignment); in test_pipe_query_functions()
126 outptr2 = align_malloc(size, min_alignment); in test_pipe_query_functions()
Dtest_pipe_read_write.cpp493 outptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite()
639 inptr = (TestStruct *)align_malloc(size * num_elements, min_alignment); in test_pipe_readwrite_struct_generic()
651 outptr = align_malloc( size * num_elements, min_alignment); in test_pipe_readwrite_struct_generic()
718 inptr[i] = (cl_int *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_int()
771 inptr[i] = (cl_uint *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_uint()
823 inptr[i] = (cl_short *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_short()
875 inptr[i] = (cl_ushort *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_ushort()
928 inptr[i] = (cl_char *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_char()
981 inptr[i] = (cl_uchar *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_uchar()
1032 inptr[i] = (float *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_float()
[all …]
Dtest_pipe_readwrite_errors.cpp92 inptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_readwrite_errors()
104 outptr = align_malloc(size, min_alignment); in test_pipe_readwrite_errors()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_blend.c469 src = align_malloc(stride, stride); in test_one()
470 src1 = align_malloc(stride, stride); in test_one()
471 dst = align_malloc(stride, stride); in test_one()
472 con = align_malloc(stride, stride); in test_one()
473 res = align_malloc(stride, stride); in test_one()
474 ref = align_malloc(stride, stride); in test_one()
Dlp_test_arit.c411 in = align_malloc(length * 4, length * 4); in test_unary()
412 out = align_malloc(length * 4, length * 4); in test_unary()
/external/OpenCL-CTS/test_conformance/math_brute_force/
Dmain.cpp683 gIn = align_malloc(BUFFER_SIZE, min_alignment); in InitCL()
685 gIn2 = align_malloc(BUFFER_SIZE, min_alignment); in InitCL()
687 gIn3 = align_malloc(BUFFER_SIZE, min_alignment); in InitCL()
689 gOut_Ref = align_malloc(BUFFER_SIZE, min_alignment); in InitCL()
691 gOut_Ref2 = align_malloc(BUFFER_SIZE, min_alignment); in InitCL()
696 gOut[i] = align_malloc(BUFFER_SIZE, min_alignment); in InitCL()
698 gOut2[i] = align_malloc(BUFFER_SIZE, min_alignment); in InitCL()
/external/OpenCL-CTS/test_common/harness/
Dalloc.h32 static void* align_malloc(size_t size, size_t alignment) in align_malloc() function
/external/virglrenderer/src/gallium/auxiliary/util/
Du_memory.h63 #define align_malloc(_size, _alignment) os_malloc_aligned(_size, _alignment) macro
/external/OpenCL-CTS/test_conformance/spir/
Ddatagen.h332 pBuffer = align_malloc(allocSize, alignment);
649 pStruct = (T *)align_malloc(size, m_alignment);
666 pStruct = (T *)align_malloc(m_size, m_alignment);
875 pBuffer = (T *)align_malloc(size, alignment);
898 pBuffer = (T *)align_malloc(size, alignment);
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_gs.c665 align_malloc(vector_size, vector_size); in draw_geometry_shader_run()
746 draw->gs.tgsi.machine->Primitives[i] = align_malloc( in draw_gs_init()
748 draw->gs.tgsi.machine->PrimitiveOffsets[i] = align_malloc( in draw_gs_init()
881 gs->gs_input = align_malloc(sizeof(struct draw_gs_inputs), 16); in draw_create_geometry_shader()
885 gs->llvm_emitted_primitives = align_malloc(vector_size * gs->num_vertex_streams, vector_size); in draw_create_geometry_shader()
886 gs->llvm_emitted_vertices = align_malloc(vector_size * gs->num_vertex_streams, vector_size); in draw_create_geometry_shader()
Ddraw_tess.c453 tcs->tcs_input = align_malloc(sizeof(struct draw_tcs_inputs), 16); in draw_create_tess_ctrl_shader()
456 tcs->tcs_output = align_malloc(sizeof(struct draw_tcs_outputs), 16); in draw_create_tess_ctrl_shader()
576 tes->tes_input = align_malloc(sizeof(struct draw_tes_inputs), 16); in draw_create_tess_eval_shader()
/external/mesa3d/src/gallium/auxiliary/tessellator/
Dp_tessellator.cpp137 mem = align_malloc(sizeof(pipe_ts), 256); in p_tess_init()
/external/mesa3d/src/gallium/drivers/i915/
Di915_resource_buffer.c131 buf->data = align_malloc(template->width0, 64); in i915_buffer_create()
/external/mesa3d/src/gallium/winsys/sw/hgl/
Dhgl_sw_winsys.c130 = align_malloc(haikuDisplayTarget->size, alignment); in hgl_winsys_displaytarget_create()

123