Lines Matching refs:api
38 const MppEncHalApi *api; member
47 const MppEncHalApi *api = NULL; in hal_jpege_init() local
55 api = &hal_jpege_vepu2; in hal_jpege_init()
57 api = &hal_jpege_vepu1; in hal_jpege_init()
59 api = &hal_jpege_vpu720; in hal_jpege_init()
64 api = &hal_jpege_vepu540c; in hal_jpege_init()
66 api = &hal_jpege_vepu511; in hal_jpege_init()
69 if (!api) { in hal_jpege_init()
74 hw_ctx = mpp_calloc_size(void, api->ctx_size); in hal_jpege_init()
75 ctx->api = api; in hal_jpege_init()
78 ret = api->init(hw_ctx, cfg); in hal_jpege_init()
85 const MppEncHalApi *api = ctx->api; in hal_jpege_deinit() local
89 if (!hw_ctx || !api || !api->deinit) in hal_jpege_deinit()
92 ret = api->deinit(hw_ctx); in hal_jpege_deinit()
101 const MppEncHalApi *api = ctx->api; \
104 if (!hw_ctx || !api || !api->func) \
107 return api->func(hw_ctx); \
114 const MppEncHalApi *api = ctx->api; \
117 if (!hw_ctx || !api || !api->func) \
120 return api->func(hw_ctx, task); \