Lines Matching refs:p_hal

108     HalVp9dCtx *p_hal = (HalVp9dCtx*)hal;  in hal_vp9d_alloc_res()  local
109 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res()
115 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_loop_base[i], PROB_SIZE); in hal_vp9d_alloc_res()
120 mpp_buffer_attach_dev(hw_ctx->prob_loop_base[i], p_hal->dev); in hal_vp9d_alloc_res()
122 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_default_base, PROB_SIZE); in hal_vp9d_alloc_res()
127 mpp_buffer_attach_dev(hw_ctx->prob_default_base, p_hal->dev); in hal_vp9d_alloc_res()
129 ret = mpp_buffer_get(p_hal->group, &hw_ctx->segid_cur_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res()
134 mpp_buffer_attach_dev(hw_ctx->segid_cur_base, p_hal->dev); in hal_vp9d_alloc_res()
135 ret = mpp_buffer_get(p_hal->group, &hw_ctx->segid_last_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res()
140 mpp_buffer_attach_dev(hw_ctx->segid_last_base, p_hal->dev); in hal_vp9d_alloc_res()
143 if (p_hal->fast_mode) { in hal_vp9d_alloc_res()
146 ret = mpp_buffer_get(p_hal->group, in hal_vp9d_alloc_res()
148 mpp_buffer_attach_dev(hw_ctx->g_buf[i].global_base, p_hal->dev); in hal_vp9d_alloc_res()
153 ret = mpp_buffer_get(p_hal->group, in hal_vp9d_alloc_res()
159 mpp_buffer_attach_dev(hw_ctx->g_buf[i].probe_base, p_hal->dev); in hal_vp9d_alloc_res()
160 ret = mpp_buffer_get(p_hal->group, in hal_vp9d_alloc_res()
166 mpp_buffer_attach_dev(hw_ctx->g_buf[i].count_base, p_hal->dev); in hal_vp9d_alloc_res()
170 ret = mpp_buffer_get(p_hal->group, &hw_ctx->global_base, PROB_SIZE); in hal_vp9d_alloc_res()
175 mpp_buffer_attach_dev(hw_ctx->global_base, p_hal->dev); in hal_vp9d_alloc_res()
177 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, PROB_KF_SIZE); in hal_vp9d_alloc_res()
182 mpp_buffer_attach_dev(hw_ctx->probe_base, p_hal->dev); in hal_vp9d_alloc_res()
184 ret = mpp_buffer_get(p_hal->group, &hw_ctx->count_base, COUNT_SIZE); in hal_vp9d_alloc_res()
189 mpp_buffer_attach_dev(hw_ctx->count_base, p_hal->dev); in hal_vp9d_alloc_res()
196 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_release_res() local
197 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_release_res()
231 if (p_hal->fast_mode) { in hal_vp9d_release_res()
322 HalVp9dCtx *p_hal = (HalVp9dCtx *)hal; in hal_vp9d_vdpu383_deinit() local
325 hal_vp9d_release_res(p_hal); in hal_vp9d_vdpu383_deinit()
327 if (p_hal->group) { in hal_vp9d_vdpu383_deinit()
328 ret = mpp_buffer_group_put(p_hal->group); in hal_vp9d_vdpu383_deinit()
334 MPP_FREE(p_hal->hw_ctx); in hal_vp9d_vdpu383_deinit()
342 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu383_init() local
343 MEM_CHECK(ret, p_hal->hw_ctx = mpp_calloc_size(void, sizeof(Vdpu383Vp9dCtx))); in hal_vp9d_vdpu383_init()
344 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu383_init()
349 mpp_slots_set_prop(p_hal->slots, SLOTS_HOR_ALIGN, mpp_align_128_odd_plus_64); in hal_vp9d_vdpu383_init()
350 mpp_slots_set_prop(p_hal->slots, SLOTS_VER_ALIGN, vp9_ver_align); in hal_vp9d_vdpu383_init()
352 if (p_hal->group == NULL) { in hal_vp9d_vdpu383_init()
353 ret = mpp_buffer_group_get_internal(&p_hal->group, MPP_BUFFER_TYPE_ION); in hal_vp9d_vdpu383_init()
360 ret = hal_vp9d_alloc_res(p_hal); in hal_vp9d_vdpu383_init()
445 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_rcb_info_update() local
446 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_rcb_info_update()
463 if (p_hal->fast_mode) { in hal_vp9d_rcb_info_update()
473 mpp_buffer_get(p_hal->group, &rcb_buf, hw_ctx->rcb_buf_size); in hal_vp9d_rcb_info_update()
483 mpp_buffer_get(p_hal->group, &rcb_buf, hw_ctx->rcb_buf_size); in hal_vp9d_rcb_info_update()
504 static MPP_RET prepare_uncompress_header(HalVp9dCtx *p_hal, DXVA_PicParams_VP9 *pp, in prepare_uncompress_header() argument
507 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in prepare_uncompress_header()
707 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu383_gen_regs() local
708 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu383_gen_regs()
716 if (p_hal->fast_mode) { in hal_vp9d_vdpu383_gen_regs()
749 …prepare_uncompress_header(p_hal, pic_param, (RK_U64 *)hw_ctx->header_data, sizeof(hw_ctx->header_d… in hal_vp9d_vdpu383_gen_regs()
769 hw_ctx->mv_count = mpp_buf_slot_get_count(p_hal ->slots); in hal_vp9d_vdpu383_gen_regs()
773 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu383_gen_regs()
842 mpp_buf_slot_get_prop(p_hal->packet_slots, task->dec.input, SLOT_BUFFER, &streambuf); in hal_vp9d_vdpu383_gen_regs()
853 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu383_gen_regs()
895 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu383_gen_regs()
896 mpp_buf_slot_get_prop(p_hal ->slots, task->dec.output, SLOT_BUFFER, &framebuf); in hal_vp9d_vdpu383_gen_regs()
911 mpp_dev_set_reg_offset(p_hal->dev, 128, strm_offset & 0xfffffff0); in hal_vp9d_vdpu383_gen_regs()
958 mpp_buf_slot_get_prop(p_hal ->slots, ref_frame_idx, SLOT_FRAME_PTR, &ref_frame); in hal_vp9d_vdpu383_gen_regs()
975 mpp_buf_slot_get_prop(p_hal ->slots, ref_frame_idx, SLOT_BUFFER, &framebuf); in hal_vp9d_vdpu383_gen_regs()
1081 rcb_buf = p_hal->fast_mode ? hw_ctx->g_buf[task->dec.reg_index].rcb_buf : hw_ctx->rcb_buf; in hal_vp9d_vdpu383_gen_regs()
1082 vdpu383_setup_rcb(&vp9_hw_regs->common_addr, p_hal->dev, rcb_buf, hw_ctx->rcb_info); in hal_vp9d_vdpu383_gen_regs()
1096 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, in hal_vp9d_vdpu383_gen_regs()
1098 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, in hal_vp9d_vdpu383_gen_regs()
1110 vdpu383_setup_down_scale(mframe, p_hal->dev, &vp9_hw_regs->ctrl_regs, in hal_vp9d_vdpu383_gen_regs()
1115 vdpu383_setup_down_scale(mframe, p_hal->dev, &vp9_hw_regs->ctrl_regs, in hal_vp9d_vdpu383_gen_regs()
1131 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu383_start() local
1132 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu383_start()
1134 MppDev dev = p_hal->dev; in hal_vp9d_vdpu383_start()
1136 if (p_hal->fast_mode) { in hal_vp9d_vdpu383_start()
1209 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu383_wait() local
1210 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu383_wait()
1213 if (p_hal->fast_mode) in hal_vp9d_vdpu383_wait()
1218 ret = mpp_dev_ioctl(p_hal->dev, MPP_DEV_CMD_POLL, NULL); in hal_vp9d_vdpu383_wait()
1279 mpp_buf_slot_get_prop(p_hal->slots, task->dec.output, SLOT_FRAME_PTR, &mframe); in hal_vp9d_vdpu383_wait()
1284 if (p_hal->dec_cb && task->dec.flags.wait_done) { in hal_vp9d_vdpu383_wait()
1287 mpp_callback(p_hal->dec_cb, &pic_param->counts); in hal_vp9d_vdpu383_wait()
1290 if (p_hal->fast_mode) { in hal_vp9d_vdpu383_wait()
1300 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu383_reset() local
1301 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu383_reset()
1317 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu383_flush() local
1318 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_vdpu383_flush()
1332 HalVp9dCtx *p_hal = (HalVp9dCtx*)hal; in hal_vp9d_vdpu383_control() local
1339 vdpu383_afbc_align_calc(p_hal->slots, (MppFrame)param, 0); in hal_vp9d_vdpu383_control()
1341 mpp_slots_set_prop(p_hal->slots, SLOTS_HOR_ALIGN, mpp_align_128_odd_plus_64); in hal_vp9d_vdpu383_control()