Lines Matching refs:g_buf

47     Vp9dRegBuf      g_buf[MAX_GEN_REG];  member
108 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(Vdpu34xVp9dRegSet)); in hal_vp9d_alloc_res()
109 … ret = mpp_buffer_get(p_hal->group, &hw_ctx->g_buf[i].probe_base, VDPU34X_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res()
156 if (hw_ctx->g_buf[i].probe_base) { in hal_vp9d_release_res()
157 ret = mpp_buffer_put(hw_ctx->g_buf[i].probe_base); in hal_vp9d_release_res()
163 if (hw_ctx->g_buf[i].hw_regs) { in hal_vp9d_release_res()
164 mpp_free(hw_ctx->g_buf[i].hw_regs); in hal_vp9d_release_res()
165 hw_ctx->g_buf[i].hw_regs = NULL; in hal_vp9d_release_res()
167 if (hw_ctx->g_buf[i].rcb_buf) { in hal_vp9d_release_res()
168 ret = mpp_buffer_put(hw_ctx->g_buf[i].rcb_buf); in hal_vp9d_release_res()
352 for (i = 0; i < MPP_ARRAY_ELEMS(hw_ctx->g_buf); i++) { in hal_vp9d_rcb_info_update()
353 MppBuffer rcb_buf = hw_ctx->g_buf[i].rcb_buf; in hal_vp9d_rcb_info_update()
357 hw_ctx->g_buf[i].rcb_buf = NULL; in hal_vp9d_rcb_info_update()
360 hw_ctx->g_buf[i].rcb_buf = rcb_buf; in hal_vp9d_rcb_info_update()
440 if (!hw_ctx->g_buf[i].use_flag) { in hal_vp9d_vdpu34x_gen_regs()
442 hw_ctx->probe_base = hw_ctx->g_buf[i].probe_base; in hal_vp9d_vdpu34x_gen_regs()
444 hw_ctx->hw_regs = hw_ctx->g_buf[i].hw_regs; in hal_vp9d_vdpu34x_gen_regs()
445 hw_ctx->g_buf[i].use_flag = 1; in hal_vp9d_vdpu34x_gen_regs()
839 rcb_buf = p_hal->fast_mode ? hw_ctx->g_buf[task->dec.reg_index].rcb_buf : hw_ctx->rcb_buf; in hal_vp9d_vdpu34x_gen_regs()
862 hw_regs = (Vdpu34xVp9dRegSet *)hw_ctx->g_buf[index].hw_regs; in hal_vp9d_vdpu34x_start()
987 hw_regs = (Vdpu34xVp9dRegSet *)hw_ctx->g_buf[task->dec.reg_index].hw_regs; in hal_vp9d_vdpu34x_wait()
1020 hw_ctx->g_buf[task->dec.reg_index].use_flag = 0; in hal_vp9d_vdpu34x_wait()