Lines Matching refs:com_ctx
15 vdpp_com_ctx *com_ctx = mpp_calloc(vdpp_com_ctx, 1); in rockchip_vdpp_api_alloc_ctx() local
19 if (NULL == com_ctx || NULL == ops) { in rockchip_vdpp_api_alloc_ctx()
20 mpp_err_f("failed to calloc com_ctx %p ops %p\n", com_ctx, ops); in rockchip_vdpp_api_alloc_ctx()
45 com_ctx->ops = ops; in rockchip_vdpp_api_alloc_ctx()
46 com_ctx->priv = ctx; in rockchip_vdpp_api_alloc_ctx()
48 return com_ctx; in rockchip_vdpp_api_alloc_ctx()
51 MPP_FREE(com_ctx); in rockchip_vdpp_api_alloc_ctx()
57 void rockchip_vdpp_api_release_ctx(vdpp_com_ctx *com_ctx) in rockchip_vdpp_api_release_ctx() argument
59 if (NULL == com_ctx) in rockchip_vdpp_api_release_ctx()
62 MPP_FREE(com_ctx->ops); in rockchip_vdpp_api_release_ctx()
63 MPP_FREE(com_ctx->priv); in rockchip_vdpp_api_release_ctx()
64 MPP_FREE(com_ctx); in rockchip_vdpp_api_release_ctx()