/external/mesa3d/src/gallium/frontends/clover/core/ |
D | memory.cpp | 30 size_t size, void *host_ptr) : in memory_obj() argument 32 _size(size), _host_ptr(host_ptr) { in memory_obj() 34 data.append((char *)host_ptr, size); in memory_obj() 65 memory_obj::host_ptr() const { in host_ptr() function in memory_obj 70 size_t size, void *host_ptr) : in buffer() argument 71 memory_obj(ctx, flags, size, host_ptr) { in buffer() 80 size_t size, void *host_ptr) : in root_buffer() argument 81 buffer(ctx, flags, size, host_ptr) { in root_buffer() 88 data_ptr = !data.empty() ? data.data() : host_ptr(); in resource_in() 123 (char *)parent.host_ptr() + offset), in sub_buffer() [all …]
|
D | memory.hpp | 39 size_t size, void *host_ptr); 61 void *host_ptr() const; 78 size_t size, void *host_ptr); 87 size_t size, void *host_ptr); 131 void *host_ptr); 167 void *host_ptr); 178 void *host_ptr);
|
D | resource.cpp | 178 pipe = dev.pipe->resource_from_user_memory(dev.pipe, &info, obj.host_ptr()); in root_resource()
|
/external/OpenCL-CTS/test_common/harness/ |
D | clImageHelper.h | 38 void *host_ptr, in create_image_2d() argument 55 mImage = clCreateImage( context, flags, image_format, &image_desc_dest, host_ptr, errcode_ret ); in create_image_2d() 63 … context, flags, image_format, image_width, image_height, image_row_pitch, host_ptr, errcode_ret ); in create_image_2d() 119 void *host_ptr, in create_image_3d() argument 140 host_ptr, in create_image_3d() 156 host_ptr, in create_image_3d() 176 void *host_ptr, in create_image_2d_array() argument 196 host_ptr, in create_image_2d_array() 214 void *host_ptr, in create_image_1d_array() argument 234 host_ptr, in create_image_1d_array() [all …]
|
/external/mesa3d/src/gallium/frontends/clover/api/ |
D | memory.cpp | 89 void *host_ptr, cl_int *r_errcode) try { in clCreateBuffer() argument 93 if (bool(host_ptr) != bool(flags & (CL_MEM_USE_HOST_PTR | in clCreateBuffer() local 104 return new root_buffer(ctx, flags, size, host_ptr); in clCreateBuffer() 145 void *host_ptr, cl_int *r_errcode) try { in clCreateImage() argument 162 if (!host_ptr && in clCreateImage() 172 if (bool(host_ptr) != bool(d_flags & (CL_MEM_USE_HOST_PTR | in clCreateImage() local 200 row_pitch, host_ptr); in clCreateImage() 220 slice_pitch, host_ptr); in clCreateImage() 243 void *host_ptr, cl_int *r_errcode) { in clCreateImage2D() argument 247 return clCreateImage(d_ctx, d_flags, format, &desc, host_ptr, r_errcode); in clCreateImage2D() [all …]
|
/external/OpenCL-CTS/test_conformance/images/clFillImage/ |
D | test_fill_generic.cpp | 40 void *host_ptr = NULL; in create_image() local 57 host_ptr = malloc( imageInfo->rowPitch ); in create_image() 63 host_ptr = malloc( imageInfo->height * imageInfo->rowPitch ); in create_image() 69 host_ptr = malloc( imageInfo->depth * imageInfo->slicePitch ); in create_image() 75 host_ptr = malloc( imageInfo->arraySize * imageInfo->slicePitch ); in create_image() 81 host_ptr = malloc( imageInfo->arraySize * imageInfo->slicePitch ); in create_image() 87 if ( NULL == host_ptr ) in create_image() 95 img = clCreateImage(context, mem_flags, imageInfo->format, &imageDesc, host_ptr, error); in create_image() 101 … int callbackError = clSetMemObjectDestructorCallback( img, free_pitch_buffer, host_ptr ); in create_image() 104 free( host_ptr ); in create_image() [all …]
|
/external/OpenCL-CTS/test_conformance/images/clGetInfo/ |
D | test_2D.cpp | 29 void *host_ptr = NULL; in test_get_image_info_single() local 36 host_ptr = (char *)imageValues; in test_get_image_info_single() 57 …p...\n", (int)imageInfo->width, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single() 61 …>width, (int)imageInfo->height, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single() 66 …>height, (int)imageInfo->depth, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single() 71 …dth, (int)imageInfo->arraySize, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single() 76 …ght, (int)imageInfo->arraySize, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single() 80 image = clCreateImage(context, flags, imageInfo->format, &imageDesc, host_ptr, &error); in test_get_image_info_single()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/ |
D | opencl_wrapper.cc | 289 const cl_image_desc* image_desc, void* host_ptr, in CreateImage2DLegacy() argument 292 return clCreateImage(context, flags, image_format, image_desc, host_ptr, in CreateImage2DLegacy() 297 image_desc->image_row_pitch, host_ptr, errcode_ret); in CreateImage2DLegacy() 303 const cl_image_desc* image_desc, void* host_ptr, in CreateImage3DLegacy() argument 306 return clCreateImage(context, flags, image_format, image_desc, host_ptr, in CreateImage3DLegacy() 312 image_desc->image_slice_pitch, host_ptr, in CreateImage3DLegacy()
|
D | opencl_wrapper.h | 628 const cl_image_desc *image_desc, void *host_ptr, 635 const cl_image_desc *image_desc, void *host_ptr,
|
/external/OpenCL-CTS/test_conformance/images/clCopyImage/ |
D | test_copy_generic.cpp | 36 void *host_ptr = NULL; in create_image() local 54 host_ptr = malloc( imageInfo->rowPitch ); in create_image() 60 host_ptr = malloc( imageInfo->height * imageInfo->rowPitch ); in create_image() 66 host_ptr = malloc( imageInfo->depth * imageInfo->slicePitch ); in create_image() 72 host_ptr = malloc( imageInfo->arraySize * imageInfo->slicePitch ); in create_image() 78 host_ptr = malloc( imageInfo->arraySize * imageInfo->slicePitch ); in create_image() 87 if ( NULL == host_ptr ) in create_image() 95 img = clCreateImage(context, mem_flags, imageInfo->format, &imageDesc, host_ptr, error); in create_image() 101 … int callbackError = clSetMemObjectDestructorCallback( img, free_pitch_buffer, host_ptr ); in create_image() 104 free( host_ptr ); in create_image() [all …]
|
/external/mesa3d/include/CL/ |
D | cl.h | 1081 void * host_ptr, 1102 void * host_ptr, 1126 void * host_ptr, 1135 void * host_ptr, 1869 void * host_ptr, 1881 void * host_ptr,
|
D | cl_ext_intel.h | 700 void * host_ptr, 709 void * host_ptr,
|
D | cl_icd.h | 138 cl_context context, cl_mem_flags flags, size_t size, void *host_ptr, 145 const cl_image_desc *image_desc, void *host_ptr, 158 size_t size, void *host_ptr, 164 void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_3_0; 712 void *host_ptr, cl_int *errcode_ret) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; 717 size_t image_row_pitch, size_t image_slice_pitch, void *host_ptr,
|
D | cl2.hpp | 3823 void* host_ptr = NULL, in Buffer() argument 3827 object_ = ::clCreateBuffer(context(), flags, size, host_ptr, &error); in Buffer() 3847 void* host_ptr = NULL, in Buffer() argument 3854 object_ = ::clCreateBuffer(context(), flags, size, host_ptr, &error); in Buffer() 4419 void* host_ptr = NULL, in Image1D() argument 4434 host_ptr, in Image1D() 4593 void* host_ptr = NULL, in Image1DArray() argument 4611 host_ptr, in Image1DArray() 4691 void* host_ptr = NULL, in Image2D() argument 4726 host_ptr, in Image2D() [all …]
|
D | cl.hpp | 3186 void* host_ptr = NULL, in Buffer() argument 3190 object_ = ::clCreateBuffer(context(), flags, size, host_ptr, &error); in Buffer() 3210 void* host_ptr = NULL, in Buffer() argument 3217 object_ = ::clCreateBuffer(context(), flags, size, host_ptr, &error); in Buffer() 3676 void* host_ptr = NULL, in Image1D() argument 3691 host_ptr, in Image1D() 3840 void* host_ptr = NULL, in Image1DArray() argument 3858 host_ptr, in Image1DArray() 3930 void* host_ptr = NULL, in Image2D() argument 3965 host_ptr, in Image2D() [all …]
|
/external/ImageMagick/MagickCore/ |
D | opencl-private.h | 123 cl_mem_flags flags,size_t size,void *host_ptr,cl_int *errcode_ret)
|
D | opencl.c | 481 cl_mem_flags flags,size_t size,void *host_ptr) in CreateOpenCLBuffer() argument 483 return(openCL_library->clCreateBuffer(device->context,flags,size,host_ptr, in CreateOpenCLBuffer()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_allocator.c | 1727 void *host_ptr, uint32_t size, in anv_device_import_bo_from_host_ptr() argument 1745 uint32_t gem_handle = anv_gem_userptr(device, host_ptr, size); in anv_device_import_bo_from_host_ptr() 1786 .map = host_ptr, in anv_device_import_bo_from_host_ptr()
|
D | anv_device.c | 3480 mem->host_ptr = NULL; in anv_AllocateMemory() 3648 mem->host_ptr = host_ptr_info->pHostPointer; in anv_AllocateMemory() 3819 if (mem->host_ptr) { in anv_MapMemory() 3820 *ppData = mem->host_ptr + offset; in anv_MapMemory() 3881 if (mem == NULL || mem->host_ptr) in anv_UnmapMemory()
|
D | anv_private.h | 1546 void *host_ptr, uint32_t size, 1863 void * host_ptr; member
|