Searched refs:impl_ctx (Results 1 – 1 of 1) sorted by relevance
74 void *impl_ctx = mpp_calloc_size(void, api->ctx_size); in mpp_dev_init() local75 if (NULL == impl || NULL == impl_ctx) { in mpp_dev_init()76 mpp_err_f("malloc failed impl %p impl_ctx %p\n", impl, impl_ctx); in mpp_dev_init()78 MPP_FREE(impl_ctx); in mpp_dev_init()82 impl->ctx = impl_ctx; in mpp_dev_init()87 return api->init(impl_ctx, type); in mpp_dev_init()118 void *impl_ctx = p->ctx; in mpp_dev_ioctl() local121 if (NULL == impl_ctx || NULL == api) in mpp_dev_ioctl()127 ret = api->attach(impl_ctx); in mpp_dev_ioctl()131 ret = api->detach(impl_ctx); in mpp_dev_ioctl()[all …]