Lines Matching refs:g_buf

41     Vp9dRegBuf      g_buf[MAX_GEN_REG];  member
145 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(Vdpu383Vp9dRegSet)); in hal_vp9d_alloc_res()
147 &hw_ctx->g_buf[i].global_base, GBL_SIZE); 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()
154 &hw_ctx->g_buf[i].probe_base, PROB_KF_SIZE); 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()
161 &hw_ctx->g_buf[i].count_base, COUNT_SIZE); 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()
233 if (hw_ctx->g_buf[i].global_base) { in hal_vp9d_release_res()
234 ret = mpp_buffer_put(hw_ctx->g_buf[i].global_base); in hal_vp9d_release_res()
240 if (hw_ctx->g_buf[i].probe_base) { in hal_vp9d_release_res()
241 ret = mpp_buffer_put(hw_ctx->g_buf[i].probe_base); in hal_vp9d_release_res()
247 if (hw_ctx->g_buf[i].count_base) { in hal_vp9d_release_res()
248 ret = mpp_buffer_put(hw_ctx->g_buf[i].count_base); in hal_vp9d_release_res()
254 if (hw_ctx->g_buf[i].hw_regs) { in hal_vp9d_release_res()
255 mpp_free(hw_ctx->g_buf[i].hw_regs); in hal_vp9d_release_res()
256 hw_ctx->g_buf[i].hw_regs = NULL; in hal_vp9d_release_res()
258 if (hw_ctx->g_buf[i].rcb_buf) { in hal_vp9d_release_res()
259 ret = mpp_buffer_put(hw_ctx->g_buf[i].rcb_buf); in hal_vp9d_release_res()
466 for (i = 0; i < MPP_ARRAY_ELEMS(hw_ctx->g_buf); i++) { in hal_vp9d_rcb_info_update()
467 MppBuffer rcb_buf = hw_ctx->g_buf[i].rcb_buf; in hal_vp9d_rcb_info_update()
471 hw_ctx->g_buf[i].rcb_buf = NULL; in hal_vp9d_rcb_info_update()
474 hw_ctx->g_buf[i].rcb_buf = rcb_buf; in hal_vp9d_rcb_info_update()
718 if (!hw_ctx->g_buf[i].use_flag) { in hal_vp9d_vdpu383_gen_regs()
720 hw_ctx->global_base = hw_ctx->g_buf[i].global_base; in hal_vp9d_vdpu383_gen_regs()
721 hw_ctx->probe_base = hw_ctx->g_buf[i].probe_base; in hal_vp9d_vdpu383_gen_regs()
722 hw_ctx->count_base = hw_ctx->g_buf[i].count_base; in hal_vp9d_vdpu383_gen_regs()
723 hw_ctx->hw_regs = hw_ctx->g_buf[i].hw_regs; in hal_vp9d_vdpu383_gen_regs()
724 hw_ctx->g_buf[i].use_flag = 1; 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()
1139 hw_regs = (Vdpu383Vp9dRegSet *)hw_ctx->g_buf[index].hw_regs; in hal_vp9d_vdpu383_start()
1214 hw_regs = (Vdpu383Vp9dRegSet *)hw_ctx->g_buf[task->dec.reg_index].hw_regs; in hal_vp9d_vdpu383_wait()
1291 hw_ctx->g_buf[task->dec.reg_index].use_flag = 0; in hal_vp9d_vdpu383_wait()