Lines Matching refs:impl
96 RgaCtxImpl *impl = NULL; in rga_init() local
102 impl = mpp_malloc(RgaCtxImpl, 1); in rga_init()
103 if (!impl) { in rga_init()
109 impl->rga_fd = open(DEFAULT_RGA_DEV, O_RDWR | O_CLOEXEC, 0); in rga_init()
110 if (impl->rga_fd < 0) { in rga_init()
112 mpp_free(impl); in rga_init()
113 impl = NULL; in rga_init()
119 *ctx = impl; in rga_init()
127 RgaCtxImpl *impl = NULL; in rga_deinit() local
131 impl = (RgaCtxImpl *)ctx; in rga_deinit()
132 if (!impl) { in rga_deinit()
138 if (impl->rga_fd >= 0) { in rga_deinit()
139 close(impl->rga_fd); in rga_deinit()
140 impl->rga_fd = -1; in rga_deinit()
143 mpp_free(impl); in rga_deinit()
149 static MPP_RET rga_ioctl(RgaCtxImpl *impl) in rga_ioctl() argument
151 int io_ret = ioctl(impl->rga_fd, RGA_BLIT_SYNC, &impl->request); in rga_ioctl()
188 RgaCtxImpl *impl = (RgaCtxImpl *)ctx; in config_rga_yuv2rgb_mode() local
189 RgaReq *request = &impl->request; in config_rga_yuv2rgb_mode()
220 RgaCtxImpl *impl = (RgaCtxImpl *)ctx; in rga_control() local
221 RgaReq *request = &impl->request; in rga_control()
260 ret = rga_ioctl(impl); in rga_control()
276 RgaCtxImpl *impl = (RgaCtxImpl *)ctx; in rga_copy() local
285 RgaReq *request = &impl->request; in rga_copy()
336 ret = rga_ioctl(impl); in rga_copy()
346 RgaCtxImpl *impl = (RgaCtxImpl *)ctx; in rga_dup_field() local
355 RgaReq *request = &impl->request; in rga_dup_field()
394 ret = rga_ioctl(impl); in rga_dup_field()