Lines Matching refs:hnd
226 IM_API rga_buffer_handle_t importbuffer_GraphicBuffer_handle(buffer_handle_t hnd) { in importbuffer_GraphicBuffer_handle() argument
235 ret = RkRgaGetHandleAttributes(hnd, &dstAttrs); in importbuffer_GraphicBuffer_handle()
237 IM_LOGE("handle get Attributes fail ret = %d,hnd=%p", ret, &hnd); in importbuffer_GraphicBuffer_handle()
245 ret = rkRga.RkRgaGetBufferFd(hnd, &fd); in importbuffer_GraphicBuffer_handle()
247 IM_LOGE("rga_im2d: get buffer fd fail: %s, hnd=%p", strerror(errno), (void*)(hnd)); in importbuffer_GraphicBuffer_handle()
250 ret = rkRga.RkRgaGetHandleMapCpuAddress(hnd, &virt_addr); in importbuffer_GraphicBuffer_handle()
252 … IM_LOGE("invaild GraphicBuffer, can not get fd and virtual address, hnd = %p", (void *)hnd); in importbuffer_GraphicBuffer_handle()
268 IM_API rga_buffer_t wrapbuffer_handle(buffer_handle_t hnd) { in wrapbuffer_handle() argument
277 ret = rkRga.RkRgaGetBufferFd(hnd, &buffer.fd); in wrapbuffer_handle()
279 IM_LOGE("rga_im2d: get buffer fd fail: %s, hnd=%p", strerror(errno), (void*)(hnd)); in wrapbuffer_handle()
282 ret = rkRga.RkRgaGetHandleMapCpuAddress(hnd, &buffer.vir_addr); in wrapbuffer_handle()
284 … IM_LOGE("invaild GraphicBuffer, can not get fd and virtual address, hnd = %p", (void *)hnd); in wrapbuffer_handle()
289 ret = RkRgaGetHandleAttributes(hnd, &dstAttrs); in wrapbuffer_handle()
291 IM_LOGE("handle get Attributes fail, ret = %d,hnd = %p", ret, (void *)hnd); in wrapbuffer_handle()