Lines Matching refs:p_hal

58     HalVp9dCtx *p_hal = (HalVp9dCtx*)hal;  in hal_vp9d_alloc_res()  local
59 Vp9dRkvCtx *hw_ctx = (Vp9dRkvCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res()
61 if (p_hal->fast_mode) { in hal_vp9d_alloc_res()
64 ret = mpp_buffer_get(p_hal->group, in hal_vp9d_alloc_res()
70 ret = mpp_buffer_get(p_hal->group, in hal_vp9d_alloc_res()
76 ret = mpp_buffer_get(p_hal->group, in hal_vp9d_alloc_res()
82 ret = mpp_buffer_get(p_hal->group, in hal_vp9d_alloc_res()
91 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, PROB_SIZE); in hal_vp9d_alloc_res()
96 ret = mpp_buffer_get(p_hal->group, &hw_ctx->count_base, COUNT_SIZE); in hal_vp9d_alloc_res()
101 ret = mpp_buffer_get(p_hal->group, &hw_ctx->segid_cur_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res()
106 ret = mpp_buffer_get(p_hal->group, &hw_ctx->segid_last_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res()
119 HalVp9dCtx *p_hal = hal; in hal_vp9d_release_res() local
120 Vp9dRkvCtx *hw_ctx = (Vp9dRkvCtx*)p_hal->hw_ctx; in hal_vp9d_release_res()
122 if (p_hal->fast_mode) { in hal_vp9d_release_res()
197 HalVp9dCtx *p_hal = (HalVp9dCtx *)hal; in hal_vp9d_rkv_init() local
198 MEM_CHECK(ret, p_hal->hw_ctx = mpp_calloc_size(void, sizeof(Vp9dRkvCtx))); in hal_vp9d_rkv_init()
199 Vp9dRkvCtx *ctx = (Vp9dRkvCtx *)p_hal->hw_ctx; in hal_vp9d_rkv_init()
204 mpp_slots_set_prop(p_hal->slots, SLOTS_HOR_ALIGN, vp9_hor_align); in hal_vp9d_rkv_init()
205 mpp_slots_set_prop(p_hal->slots, SLOTS_VER_ALIGN, vp9_ver_align); in hal_vp9d_rkv_init()
207 if (p_hal->group == NULL) { in hal_vp9d_rkv_init()
208 ret = mpp_buffer_group_get_internal(&p_hal->group, MPP_BUFFER_TYPE_ION); in hal_vp9d_rkv_init()
215 ret = hal_vp9d_alloc_res(p_hal); in hal_vp9d_rkv_init()
232 HalVp9dCtx *p_hal = (HalVp9dCtx *)hal; in hal_vp9d_rkv_deinit() local
234 hal_vp9d_release_res(p_hal); in hal_vp9d_rkv_deinit()
236 if (p_hal->group) { in hal_vp9d_rkv_deinit()
237 ret = mpp_buffer_group_put(p_hal->group); in hal_vp9d_rkv_deinit()
243 MPP_FREE(p_hal->hw_ctx); in hal_vp9d_rkv_deinit()
267 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_rkv_gen_regs() local
268 Vp9dRkvCtx *hw_ctx = (Vp9dRkvCtx*)p_hal->hw_ctx; in hal_vp9d_rkv_gen_regs()
272 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_rkv_gen_regs()
274 if (p_hal->fast_mode) { in hal_vp9d_rkv_gen_regs()
301 mpp_buf_slot_get_prop(p_hal->packet_slots, task->dec.input, SLOT_BUFFER, &streambuf); in hal_vp9d_rkv_gen_regs()
330 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_BUFFER, &framebuf); in hal_vp9d_rkv_gen_regs()
356 mpp_dev_set_reg_offset(p_hal->dev, 52, hw_ctx->pre_mv_base_offset); in hal_vp9d_rkv_gen_regs()
366 mpp_buf_slot_get_prop(p_hal->slots, ref_frame_idx, SLOT_FRAME_PTR, &mframe); in hal_vp9d_rkv_gen_regs()
380 mpp_buf_slot_get_prop(p_hal->slots, ref_frame_idx, SLOT_BUFFER, &framebuf); in hal_vp9d_rkv_gen_regs()
528 HalVp9dCtx *p_hal = (HalVp9dCtx *)hal; in hal_vp9d_rkv_start() local
529 Vp9dRkvCtx *hw_ctx = (Vp9dRkvCtx*)p_hal->hw_ctx; in hal_vp9d_rkv_start()
531 MppDev dev = p_hal->dev; in hal_vp9d_rkv_start()
533 if (p_hal->fast_mode) { in hal_vp9d_rkv_start()
587 HalVp9dCtx *p_hal = (HalVp9dCtx *)hal; in hal_vp9d_rkv_wait() local
588 Vp9dRkvCtx *hw_ctx = (Vp9dRkvCtx*)p_hal->hw_ctx; in hal_vp9d_rkv_wait()
591 if (p_hal->fast_mode) in hal_vp9d_rkv_wait()
596 ret = mpp_dev_ioctl(p_hal->dev, MPP_DEV_CMD_POLL, NULL); in hal_vp9d_rkv_wait()
612 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_rkv_wait()
616 if (p_hal->dec_cb && task->dec.flags.wait_done) { in hal_vp9d_rkv_wait()
622 mpp_callback(p_hal->dec_cb, &pic_param->counts); in hal_vp9d_rkv_wait()
624 if (p_hal->fast_mode) { in hal_vp9d_rkv_wait()
634 HalVp9dCtx *p_hal = (HalVp9dCtx *)hal; in hal_vp9d_rkv_reset() local
635 Vp9dRkvCtx *hw_ctx = (Vp9dRkvCtx*)p_hal->hw_ctx; in hal_vp9d_rkv_reset()
651 HalVp9dCtx *p_hal = (HalVp9dCtx *)hal; in hal_vp9d_rkv_flush() local
652 Vp9dRkvCtx *hw_ctx = p_hal->hw_ctx; in hal_vp9d_rkv_flush()