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(Vdpu382Vp9dRegSet)); 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()
157 if (hw_ctx->g_buf[i].probe_base) { in hal_vp9d_release_res()
158 ret = mpp_buffer_put(hw_ctx->g_buf[i].probe_base); in hal_vp9d_release_res()
164 if (hw_ctx->g_buf[i].hw_regs) { in hal_vp9d_release_res()
165 mpp_free(hw_ctx->g_buf[i].hw_regs); in hal_vp9d_release_res()
166 hw_ctx->g_buf[i].hw_regs = NULL; in hal_vp9d_release_res()
168 if (hw_ctx->g_buf[i].rcb_buf) { in hal_vp9d_release_res()
169 ret = mpp_buffer_put(hw_ctx->g_buf[i].rcb_buf); in hal_vp9d_release_res()
364 for (i = 0; i < MPP_ARRAY_ELEMS(hw_ctx->g_buf); i++) { in hal_vp9d_rcb_info_update()
365 MppBuffer rcb_buf = hw_ctx->g_buf[i].rcb_buf; in hal_vp9d_rcb_info_update()
369 hw_ctx->g_buf[i].rcb_buf = NULL; in hal_vp9d_rcb_info_update()
372 hw_ctx->g_buf[i].rcb_buf = rcb_buf; in hal_vp9d_rcb_info_update()
453 if (!hw_ctx->g_buf[i].use_flag) { in hal_vp9d_vdpu382_gen_regs()
455 hw_ctx->probe_base = hw_ctx->g_buf[i].probe_base; in hal_vp9d_vdpu382_gen_regs()
457 hw_ctx->hw_regs = hw_ctx->g_buf[i].hw_regs; in hal_vp9d_vdpu382_gen_regs()
458 hw_ctx->g_buf[i].use_flag = 1; 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()
896 hw_regs = (Vdpu382Vp9dRegSet *)hw_ctx->g_buf[index].hw_regs; in hal_vp9d_vdpu382_start()
1019 hw_regs = (Vdpu382Vp9dRegSet *)hw_ctx->g_buf[task->dec.reg_index].hw_regs; in hal_vp9d_vdpu382_wait()
1052 hw_ctx->g_buf[task->dec.reg_index].use_flag = 0; in hal_vp9d_vdpu382_wait()