Lines Matching refs:p_hal
87 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_alloc_res() local
88 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res()
94 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_loop_base[i], PROB_SIZE); in hal_vp9d_alloc_res()
100 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_default_base, PROB_SIZE); in hal_vp9d_alloc_res()
106 if (p_hal->fast_mode) { in hal_vp9d_alloc_res()
109 … ret = mpp_buffer_get(p_hal->group, &hw_ctx->g_buf[i].probe_base, VDPU382_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res()
117 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, VDPU382_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res()
124 ret = mpp_buffer_get(p_hal->group, &hw_ctx->seg_base, MAX_SEGMAP_SIZE_ALIGN_TO_4K * 2); in hal_vp9d_alloc_res()
136 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_release_res() local
137 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_release_res()
155 if (p_hal->fast_mode) { in hal_vp9d_release_res()
220 HalVp9dCtx *p_hal = (HalVp9dCtx *)hal; in hal_vp9d_vdpu382_deinit() local
222 hal_vp9d_release_res(p_hal); in hal_vp9d_vdpu382_deinit()
224 if (p_hal->group) { in hal_vp9d_vdpu382_deinit()
225 ret = mpp_buffer_group_put(p_hal->group); in hal_vp9d_vdpu382_deinit()
231 MPP_FREE(p_hal->hw_ctx); in hal_vp9d_vdpu382_deinit()
238 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu382_init() local
239 MEM_CHECK(ret, p_hal->hw_ctx = mpp_calloc_size(void, sizeof(Vdpu382Vp9dCtx))); in hal_vp9d_vdpu382_init()
240 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu382_init()
244 mpp_slots_set_prop(p_hal->slots, SLOTS_HOR_ALIGN, vp9_hor_align); in hal_vp9d_vdpu382_init()
245 mpp_slots_set_prop(p_hal->slots, SLOTS_VER_ALIGN, vp9_ver_align); in hal_vp9d_vdpu382_init()
247 if (p_hal->group == NULL) { in hal_vp9d_vdpu382_init()
248 ret = mpp_buffer_group_get_internal(&p_hal->group, MPP_BUFFER_TYPE_ION); in hal_vp9d_vdpu382_init()
255 ret = hal_vp9d_alloc_res(p_hal); in hal_vp9d_vdpu382_init()
345 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_rcb_info_update() local
346 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_rcb_info_update()
361 if (p_hal->fast_mode) { in hal_vp9d_rcb_info_update()
371 mpp_buffer_get(p_hal->group, &rcb_buf, hw_ctx->rcb_buf_size); in hal_vp9d_rcb_info_update()
381 mpp_buffer_get(p_hal->group, &rcb_buf, hw_ctx->rcb_buf_size); in hal_vp9d_rcb_info_update()
395 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu382_setup_colmv_buf() local
396 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu382_setup_colmv_buf()
401 RK_U32 compress = p_hal->hw_info ? p_hal->hw_info->cap_colmv_compress : 1; in hal_vp9d_vdpu382_setup_colmv_buf()
418 hw_ctx->mv_count = mpp_buf_slot_get_count(p_hal ->slots); in hal_vp9d_vdpu382_setup_colmv_buf()
446 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu382_gen_regs() local
447 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu382_gen_regs()
451 if (p_hal->fast_mode) { in hal_vp9d_vdpu382_gen_regs()
505 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu382_gen_regs()
512 mpp_buf_slot_get_prop(p_hal ->slots, ref_frame_idx, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu382_gen_regs()
520 mpp_buf_slot_get_prop(p_hal ->slots, ref_frame_idx, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu382_gen_regs()
528 mpp_buf_slot_get_prop(p_hal ->slots, ref_frame_idx, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu382_gen_regs()
542 mpp_dev_set_reg_offset(p_hal->dev, 168, hw_ctx->offset_segid_last); in hal_vp9d_vdpu382_gen_regs()
543 mpp_dev_set_reg_offset(p_hal->dev, 169, hw_ctx->offset_segid_cur); in hal_vp9d_vdpu382_gen_regs()
545 mpp_dev_set_reg_offset(p_hal->dev, 168, hw_ctx->offset_segid_cur); in hal_vp9d_vdpu382_gen_regs()
546 mpp_dev_set_reg_offset(p_hal->dev, 169, hw_ctx->offset_segid_last); in hal_vp9d_vdpu382_gen_regs()
619 …vp9_hw_regs->common.reg012.colmv_compress_en = p_hal->hw_info ? p_hal->hw_info->cap_colmv_compress… in hal_vp9d_vdpu382_gen_regs()
624 mpp_buf_slot_get_prop(p_hal ->packet_slots, task->dec.input, SLOT_BUFFER, &streambuf); in hal_vp9d_vdpu382_gen_regs()
637 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu382_gen_regs()
665 mpp_buf_slot_get_prop(p_hal ->slots, task->dec.output, SLOT_BUFFER, &framebuf); in hal_vp9d_vdpu382_gen_regs()
671 mpp_dev_set_reg_offset(p_hal->dev, 167, hw_ctx->offset_count); in hal_vp9d_vdpu382_gen_regs()
693 mpp_buf_slot_get_prop(p_hal ->slots, ref_frame_idx, SLOT_FRAME_PTR, &frame); in hal_vp9d_vdpu382_gen_regs()
713 …mpp_buf_slot_get_prop(p_hal ->slots, pic_param->ref_frame_map[ref_idx].Index7Bits, SLOT_BUFFER, &f… in hal_vp9d_vdpu382_gen_regs()
856 rcb_buf = p_hal->fast_mode ? hw_ctx->g_buf[task->dec.reg_index].rcb_buf : hw_ctx->rcb_buf; in hal_vp9d_vdpu382_gen_regs()
857 vdpu382_setup_rcb(&vp9_hw_regs->common_addr, p_hal->dev, rcb_buf, hw_ctx->rcb_info); in hal_vp9d_vdpu382_gen_regs()
863 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu382_gen_regs()
869 vdpu382_setup_down_scale(mframe, p_hal->dev, &vp9_hw_regs->common); in hal_vp9d_vdpu382_gen_regs()
889 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu382_start() local
890 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu382_start()
892 MppDev dev = p_hal->dev; in hal_vp9d_vdpu382_start()
894 if (p_hal->fast_mode) { in hal_vp9d_vdpu382_start()
1014 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu382_wait() local
1015 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu382_wait()
1018 if (p_hal->fast_mode) in hal_vp9d_vdpu382_wait()
1023 ret = mpp_dev_ioctl(p_hal->dev, MPP_DEV_CMD_POLL, NULL); in hal_vp9d_vdpu382_wait()
1039 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu382_wait()
1043 if (p_hal->dec_cb && task->dec.flags.wait_done) { in hal_vp9d_vdpu382_wait()
1048 mpp_callback(p_hal->dec_cb, &pic_param->counts); in hal_vp9d_vdpu382_wait()
1051 if (p_hal->fast_mode) { in hal_vp9d_vdpu382_wait()
1061 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu382_reset() local
1062 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu382_reset()
1081 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu382_flush() local
1082 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu382_flush()
1096 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu382_control() local
1103 vdpu382_afbc_align_calc(p_hal->slots, (MppFrame)param, 0); in hal_vp9d_vdpu382_control()
1105 mpp_slots_set_prop(p_hal->slots, SLOTS_HOR_ALIGN, vp9_hor_align); in hal_vp9d_vdpu382_control()