/external/OpenCL-CTS/test_conformance/buffers/ |
D | array_info.cpp | 30 cl_mem memobj; in test_array_info_size() local 36 memobj = clCreateBuffer(context, CL_MEM_READ_WRITE, elementSize * w * h * d, in test_array_info_size() 40 err = clGetMemObjectInfo(memobj, CL_MEM_SIZE, sizeof( size_t ), (void *)&retSize, NULL); in test_array_info_size() 43 clReleaseMemObject(memobj); in test_array_info_size() 48 clReleaseMemObject(memobj); in test_array_info_size() 56 clReleaseMemObject(memobj); in test_array_info_size()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/ |
D | converter.cc | 103 if (texture && texture->memobj) { in GetOpenCLMemory() 104 *memory = texture->memobj; in GetOpenCLMemory() 105 } else if (buffer && buffer->memobj) { in GetOpenCLMemory() 106 *memory = buffer->memobj; in GetOpenCLMemory() 268 if (!output || !output->memobj) { in Convert() 278 return DispatchKernel(output->memobj, &tensor); in Convert() 363 if (!input || !input->memobj) { in Convert() 372 return DispatchKernel(input->memobj, &tensor); in Convert() 442 if (input.memobj == output.memobj) { in Copy() 446 clEnqueueCopyBuffer(queue_->queue(), input.memobj, output.memobj, 0, 0, in Copy() [all …]
|
/external/angle/src/libANGLE/ |
D | CLMemory.h | 51 static Memory *Cast(cl_mem memobj); 138 inline Memory *Memory::Cast(cl_mem memobj) in Cast() argument 140 return static_cast<Memory *>(memobj); in Cast()
|
D | validationCL_autogen.h | 71 cl_int ValidateRetainMemObject(cl_mem memobj); 72 cl_int ValidateReleaseMemObject(cl_mem memobj); 79 cl_int ValidateGetMemObjectInfo(cl_mem memobj, 259 cl_mem memobj, 328 cl_int ValidateSetMemObjectDestructorCallback(cl_mem memobj, 329 void(CL_CALLBACK *pfn_notify)(cl_mem memobj,
|
D | validationCL.cpp | 866 cl_int ValidateRetainMemObject(cl_mem memobj) in ValidateRetainMemObject() argument 869 return Memory::IsValid(memobj) ? CL_SUCCESS : CL_INVALID_MEM_OBJECT; in ValidateRetainMemObject() 872 cl_int ValidateReleaseMemObject(cl_mem memobj) in ValidateReleaseMemObject() argument 875 return Memory::IsValid(memobj) ? CL_SUCCESS : CL_INVALID_MEM_OBJECT; in ValidateReleaseMemObject() 906 cl_int ValidateGetMemObjectInfo(cl_mem memobj, in ValidateGetMemObjectInfo() argument 913 if (!Memory::IsValid(memobj)) in ValidateGetMemObjectInfo() 919 const cl_version version = memobj->cast<Memory>().getContext().getPlatform().getVersion(); in ValidateGetMemObjectInfo() 1981 cl_mem memobj, in ValidateEnqueueUnmapMemObject() argument 1992 if (!Memory::IsValid(memobj)) in ValidateEnqueueUnmapMemObject() 1996 const Memory &memory = memobj->cast<Memory>(); in ValidateEnqueueUnmapMemObject() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/ |
D | api.h | 101 explicit OpenClBuffer(cl_mem new_memobj) : memobj(new_memobj) {} in OpenClBuffer() 103 cl_mem memobj = nullptr; member 108 explicit OpenClTexture(cl_mem new_memobj) : memobj(new_memobj) {} in OpenClTexture() 110 cl_mem memobj = nullptr; member
|
D | api.cc | 49 bool operator()(OpenClBuffer obj) const { return obj.memobj; } in operator ()() 50 bool operator()(OpenClTexture obj) const { return obj.memobj; } in operator ()()
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_resource.c | 1270 struct fd_memory_object *memobj = fd_memory_object(pmemobj); in fd_resource_from_memobj() local 1274 assert(memobj->bo); in fd_resource_from_memobj() 1295 if (fd_bo_size(memobj->bo) < size) { in fd_resource_from_memobj() 1301 fd_resource_set_bo(rsc, fd_bo_ref(memobj->bo)); in fd_resource_from_memobj() 1311 struct fd_memory_object *memobj = CALLOC_STRUCT(fd_memory_object); in fd_memobj_create_from_handle() local 1312 if (!memobj) in fd_memobj_create_from_handle() 1317 free(memobj); in fd_memobj_create_from_handle() 1321 memobj->b.dedicated = dedicated; in fd_memobj_create_from_handle() 1322 memobj->bo = bo; in fd_memobj_create_from_handle() 1324 return &memobj->b; in fd_memobj_create_from_handle() [all …]
|
/external/angle/src/libGLESv2/ |
D | cl_stubs.cpp | 289 cl_int RetainMemObject(cl_mem memobj) in RetainMemObject() argument 291 memobj->cast<Memory>().retain(); in RetainMemObject() 295 cl_int ReleaseMemObject(cl_mem memobj) in ReleaseMemObject() argument 297 Memory &memory = memobj->cast<Memory>(); in ReleaseMemObject() 316 cl_int GetMemObjectInfo(cl_mem memobj, in GetMemObjectInfo() argument 322 return memobj->cast<Memory>().getInfo(param_name, param_value_size, param_value, in GetMemObjectInfo() 346 cl_int SetMemObjectDestructorCallback(cl_mem memobj, in SetMemObjectDestructorCallback() argument 347 void(CL_CALLBACK *pfn_notify)(cl_mem memobj, void *user_data), in SetMemObjectDestructorCallback() argument 350 return memobj->cast<Memory>().setDestructorCallback(pfn_notify, user_data); in SetMemObjectDestructorCallback() 949 cl_mem memobj, in EnqueueUnmapMemObject() argument [all …]
|
D | entry_points_cl_autogen.cpp | 281 cl_int CL_API_CALL clRetainMemObject(cl_mem memobj) in clRetainMemObject() argument 283 CL_EVENT(RetainMemObject, "memobj = 0x%016" PRIxPTR "", (uintptr_t)memobj); in clRetainMemObject() 285 ANGLE_CL_VALIDATE_ERROR(RetainMemObject, memobj); in clRetainMemObject() 287 return RetainMemObject(memobj); in clRetainMemObject() 290 cl_int CL_API_CALL clReleaseMemObject(cl_mem memobj) in clReleaseMemObject() argument 292 CL_EVENT(ReleaseMemObject, "memobj = 0x%016" PRIxPTR "", (uintptr_t)memobj); in clReleaseMemObject() 294 ANGLE_CL_VALIDATE_ERROR(ReleaseMemObject, memobj); in clReleaseMemObject() 296 return ReleaseMemObject(memobj); in clReleaseMemObject() 323 cl_int CL_API_CALL clGetMemObjectInfo(cl_mem memobj, in clGetMemObjectInfo() argument 333 (uintptr_t)memobj, param_name, param_value_size, (uintptr_t)param_value, in clGetMemObjectInfo() [all …]
|
D | cl_stubs_autogen.h | 122 cl_int RetainMemObject(cl_mem memobj); 123 cl_int ReleaseMemObject(cl_mem memobj); 130 cl_int GetMemObjectInfo(cl_mem memobj, 145 cl_int SetMemObjectDestructorCallback(cl_mem memobj, 146 void(CL_CALLBACK *pfn_notify)(cl_mem memobj, void *user_data), 445 cl_mem memobj,
|
D | entry_points_cl_autogen.h | 75 cl_int CL_API_CALL clRetainMemObject(cl_mem memobj); 76 cl_int CL_API_CALL clReleaseMemObject(cl_mem memobj); 83 cl_int CL_API_CALL clGetMemObjectInfo(cl_mem memobj, 270 cl_mem memobj, 344 cl_int CL_API_CALL clSetMemObjectDestructorCallback(cl_mem memobj, 345 void(CL_CALLBACK *pfn_notify)(cl_mem memobj,
|
/external/mesa3d/src/gallium/auxiliary/driver_trace/ |
D | tr_screen.c | 449 struct pipe_memory_object *memobj, in trace_screen_resource_from_memobj() argument 457 trace_dump_arg(ptr, memobj); in trace_screen_resource_from_memobj() 461 screen->resource_from_memobj(screen, templ, memobj, offset); in trace_screen_resource_from_memobj() 612 struct pipe_memory_object *memobj) in trace_screen_memobj_destroy() argument 618 trace_dump_arg(ptr, memobj); in trace_screen_memobj_destroy() 621 screen->memobj_destroy(screen, memobj); in trace_screen_memobj_destroy()
|
/external/mesa3d/include/CL/ |
D | cl_gl.h | 88 clGetGLObjectInfo(cl_mem memobj, 93 clGetGLTextureInfo(cl_mem memobj,
|
/external/angle/include/CL/ |
D | cl_gl.h | 76 clGetGLObjectInfo(cl_mem memobj, 81 clGetGLTextureInfo(cl_mem memobj,
|
/external/OpenCL-CTS/dependencies/ocl-headers/CL/ |
D | cl_gl.h | 76 clGetGLObjectInfo(cl_mem memobj, 81 clGetGLTextureInfo(cl_mem memobj,
|
/external/angle/src/libOpenCL/ |
D | libOpenCL_autogen.cpp | 129 cl_int CL_API_CALL clRetainMemObject(cl_mem memobj) in clRetainMemObject() argument 131 return cl::GetDispatch().clRetainMemObject(memobj); in clRetainMemObject() 134 cl_int CL_API_CALL clReleaseMemObject(cl_mem memobj) in clReleaseMemObject() argument 136 return cl::GetDispatch().clReleaseMemObject(memobj); in clReleaseMemObject() 150 cl_int CL_API_CALL clGetMemObjectInfo(cl_mem memobj, in clGetMemObjectInfo() argument 156 return cl::GetDispatch().clGetMemObjectInfo(memobj, param_name, param_value_size, param_value, in clGetMemObjectInfo() 514 cl_mem memobj, in clEnqueueUnmapMemObject() argument 521 command_queue, memobj, mapped_ptr, num_events_in_wait_list, event_wait_list, event); in clEnqueueUnmapMemObject() 659 cl_int CL_API_CALL clSetMemObjectDestructorCallback(cl_mem memobj, in clSetMemObjectDestructorCallback() argument 660 void(CL_CALLBACK *pfn_notify)(cl_mem memobj, in clSetMemObjectDestructorCallback() argument [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_texture.c | 1853 struct r600_memory_object *memobj = CALLOC_STRUCT(r600_memory_object); in r600_memobj_from_handle() local 1856 if (!memobj) in r600_memobj_from_handle() 1862 free(memobj); in r600_memobj_from_handle() 1866 memobj->b.dedicated = dedicated; in r600_memobj_from_handle() 1867 memobj->buf = buf; in r600_memobj_from_handle() 1868 memobj->stride = whandle->stride; in r600_memobj_from_handle() 1869 memobj->offset = whandle->offset; in r600_memobj_from_handle() 1871 return (struct pipe_memory_object *)memobj; in r600_memobj_from_handle() 1879 struct r600_memory_object *memobj = (struct r600_memory_object *)_memobj; in r600_memobj_destroy() local 1881 pb_reference(&memobj->buf, NULL); in r600_memobj_destroy() [all …]
|
/external/mesa3d/src/gallium/include/pipe/ |
D | p_screen.h | 454 struct pipe_memory_object *memobj); 464 struct pipe_memory_object *memobj,
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_texture.c | 2252 struct si_memory_object *memobj = CALLOC_STRUCT(si_memory_object); in si_memobj_from_handle() local 2255 if (!memobj) in si_memobj_from_handle() 2260 free(memobj); in si_memobj_from_handle() 2264 memobj->b.dedicated = dedicated; in si_memobj_from_handle() 2265 memobj->buf = buf; in si_memobj_from_handle() 2266 memobj->stride = whandle->stride; in si_memobj_from_handle() 2268 return (struct pipe_memory_object *)memobj; in si_memobj_from_handle() 2273 struct si_memory_object *memobj = (struct si_memory_object *)_memobj; in si_memobj_destroy() local 2275 pb_reference(&memobj->buf, NULL); in si_memobj_destroy() 2276 free(memobj); in si_memobj_destroy() [all …]
|
/external/mesa3d/src/gallium/auxiliary/driver_ddebug/ |
D | dd_screen.c | 269 struct pipe_memory_object *memobj, in dd_screen_resource_from_memobj() argument 274 screen->resource_from_memobj(screen, templ, memobj, offset); in dd_screen_resource_from_memobj() 405 struct pipe_memory_object *memobj) in dd_screen_memobj_destroy() argument 409 screen->memobj_destroy(screen, memobj); in dd_screen_memobj_destroy()
|
/external/ImageMagick/MagickCore/ |
D | opencl-private.h | 127 (CL_API_CALL *MAGICKpfn_clRetainMemObject)(cl_mem memobj) 131 (CL_API_CALL *MAGICKpfn_clReleaseMemObject)(cl_mem memobj) 202 cl_command_queue command_queue,cl_mem memobj,void *mapped_ptr,
|
/external/OpenCL-CTS/test_common/gles/ |
D | helpers.h | 67 (CL_API_CALL *clGetGLObjectInfo_fn)(cl_mem memobj , 72 (CL_API_CALL *clGetGLTextureInfo_fn)(cl_mem memobj ,
|
/external/python/cpython2/Modules/ |
D | puremodule.c | 347 PyObject* memobj = Py_BuildValue("lil", memrep, user_size, in map_pool_callback() local 350 if (memobj == NULL) in map_pool_callback() 353 result = PyEval_CallObject(MapCallable, memobj); in map_pool_callback() 355 Py_DECREF(memobj); in map_pool_callback()
|
/external/python/cpython3/Modules/_io/ |
D | bufferedio.c | 1460 PyObject *memobj, *res; in _bufferedreader_raw_read() local 1465 memobj = PyMemoryView_FromBuffer(&buf); in _bufferedreader_raw_read() 1466 if (memobj == NULL) in _bufferedreader_raw_read() 1474 res = PyObject_CallMethodOneArg(self->raw, _PyIO_str_readinto, memobj); in _bufferedreader_raw_read() 1476 Py_DECREF(memobj); in _bufferedreader_raw_read() 1806 PyObject *memobj, *res; in _bufferedwriter_raw_write() local 1812 memobj = PyMemoryView_FromBuffer(&buf); in _bufferedwriter_raw_write() 1813 if (memobj == NULL) in _bufferedwriter_raw_write() 1822 res = PyObject_CallMethodOneArg(self->raw, _PyIO_str_write, memobj); in _bufferedwriter_raw_write() 1825 Py_DECREF(memobj); in _bufferedwriter_raw_write()
|