Lines Matching refs:regs

124     HalVepu580RegSet *regs = ctx->regs_set;  in vepu580_h264e_tune_reg_patch()  local
139 memcpy(&regs->reg_rc_klut.klut_wgt0, src, CHROMA_KLUT_TAB_SIZE); in vepu580_h264e_tune_reg_patch()
142 regs->reg_rc_klut.md_sad_thd.md_sad_thd0 = 4; in vepu580_h264e_tune_reg_patch()
143 regs->reg_rc_klut.md_sad_thd.md_sad_thd1 = 9; in vepu580_h264e_tune_reg_patch()
144 regs->reg_rc_klut.md_sad_thd.md_sad_thd2 = 15; in vepu580_h264e_tune_reg_patch()
145 regs->reg_rc_klut.madi_thd.madi_thd0 = 4; in vepu580_h264e_tune_reg_patch()
146 regs->reg_rc_klut.madi_thd.madi_thd1 = 9; in vepu580_h264e_tune_reg_patch()
147 regs->reg_rc_klut.madi_thd.madi_thd2 = 15; in vepu580_h264e_tune_reg_patch()
150 regs->reg_s3.lvl16_intra_UL_CST_THD.lvl16_intra_ul_cst_thld = 2501; in vepu580_h264e_tune_reg_patch()
151 regs->reg_s3.RDO_QUANT.quant_f_bias_P = 341; in vepu580_h264e_tune_reg_patch()
152 regs->reg_base.iprd_csts.vthd_y = 0; in vepu580_h264e_tune_reg_patch()
153 regs->reg_base.iprd_csts.vthd_c = 0; in vepu580_h264e_tune_reg_patch()
154 regs->reg_rc_klut.klut_ofst.chrm_klut_ofst = 0; in vepu580_h264e_tune_reg_patch()
155 regs->reg_base.rdo_cfg.atf_intra_e = 0; in vepu580_h264e_tune_reg_patch()
156 regs->reg_rdo.rdo_sqi_cfg.atf_pskip_en = 0; in vepu580_h264e_tune_reg_patch()
157 regs->reg_s3.ATR_THD1.atr_thdqp = 51; in vepu580_h264e_tune_reg_patch()
158 regs->reg_s3.cime_sqi_cfg.cime_pmv_set_zero = 0; in vepu580_h264e_tune_reg_patch()
159 regs->reg_s3.rime_sqi_thd.cime_sad_th0 = 0; in vepu580_h264e_tune_reg_patch()
160 regs->reg_s3.fme_sqi_thd0.cime_sad_pu16_th = 0; in vepu580_h264e_tune_reg_patch()
161 regs->reg_s3.fme_sqi_thd1.move_lambda = 8; in vepu580_h264e_tune_reg_patch()
164 regs->reg_rdo.rdo_intra_cime_thd0.atf_rdo_intra_cime_thd0 = 28; in vepu580_h264e_tune_reg_patch()
165 regs->reg_rdo.rdo_intra_cime_thd0.atf_rdo_intra_cime_thd1 = 44; in vepu580_h264e_tune_reg_patch()
166 regs->reg_rdo.rdo_intra_cime_thd1.atf_rdo_intra_cime_thd2 = 72; in vepu580_h264e_tune_reg_patch()
167 regs->reg_rdo.rdo_intra_atf_wgt0.atf_rdo_intra_wgt00 = intra_atf_wgt[scene_motion_flag][0]; in vepu580_h264e_tune_reg_patch()
168 regs->reg_rdo.rdo_intra_atf_wgt0.atf_rdo_intra_wgt01 = intra_atf_wgt[scene_motion_flag][1]; in vepu580_h264e_tune_reg_patch()
169 regs->reg_rdo.rdo_intra_atf_wgt0.atf_rdo_intra_wgt02 = intra_atf_wgt[scene_motion_flag][2]; in vepu580_h264e_tune_reg_patch()
170 regs->reg_rdo.rdo_intra_atf_wgt1.atf_rdo_intra_wgt10 = intra_atf_wgt[scene_motion_flag][3]; in vepu580_h264e_tune_reg_patch()
171 regs->reg_rdo.rdo_intra_atf_wgt1.atf_rdo_intra_wgt11 = intra_atf_wgt[scene_motion_flag][4]; in vepu580_h264e_tune_reg_patch()
172 regs->reg_rdo.rdo_intra_atf_wgt1.atf_rdo_intra_wgt12 = intra_atf_wgt[scene_motion_flag][5]; in vepu580_h264e_tune_reg_patch()
173 regs->reg_rdo.rdo_intra_atf_wgt2.atf_rdo_intra_wgt20 = intra_atf_wgt[scene_motion_flag][6]; in vepu580_h264e_tune_reg_patch()
174 regs->reg_rdo.rdo_intra_atf_wgt2.atf_rdo_intra_wgt21 = intra_atf_wgt[scene_motion_flag][7]; in vepu580_h264e_tune_reg_patch()
175 regs->reg_rdo.rdo_intra_atf_wgt2.atf_rdo_intra_wgt22 = intra_atf_wgt[scene_motion_flag][8]; in vepu580_h264e_tune_reg_patch()
176 regs->reg_rdo.rdo_intra_atf_wgt3.atf_rdo_intra_wgt30 = intra_atf_wgt[scene_motion_flag][9]; in vepu580_h264e_tune_reg_patch()
177 regs->reg_rdo.rdo_intra_atf_wgt3.atf_rdo_intra_wgt31 = intra_atf_wgt[scene_motion_flag][10]; in vepu580_h264e_tune_reg_patch()
178 regs->reg_rdo.rdo_intra_atf_wgt3.atf_rdo_intra_wgt32 = intra_atf_wgt[scene_motion_flag][11]; in vepu580_h264e_tune_reg_patch()
180 regs->reg_rdo.rdo_skip_cime_thd0.atf_rdo_skip_cime_thd0 = 10; in vepu580_h264e_tune_reg_patch()
181 regs->reg_rdo.rdo_skip_cime_thd0.atf_rdo_skip_cime_thd1 = 8; in vepu580_h264e_tune_reg_patch()
182 regs->reg_rdo.rdo_skip_cime_thd1.atf_rdo_skip_cime_thd2 = 15; in vepu580_h264e_tune_reg_patch()
183 regs->reg_rdo.rdo_skip_cime_thd1.atf_rdo_skip_cime_thd3 = 25; in vepu580_h264e_tune_reg_patch()
184 regs->reg_rdo.rdo_skip_atf_wgt0.atf_rdo_skip_atf_wgt00 = skip_atf_wgt[scene_motion_flag][0]; in vepu580_h264e_tune_reg_patch()
185 regs->reg_rdo.rdo_skip_atf_wgt0.atf_rdo_skip_atf_wgt10 = skip_atf_wgt[scene_motion_flag][1]; in vepu580_h264e_tune_reg_patch()
186 regs->reg_rdo.rdo_skip_atf_wgt0.atf_rdo_skip_atf_wgt11 = skip_atf_wgt[scene_motion_flag][2]; in vepu580_h264e_tune_reg_patch()
187 regs->reg_rdo.rdo_skip_atf_wgt0.atf_rdo_skip_atf_wgt12 = skip_atf_wgt[scene_motion_flag][3]; in vepu580_h264e_tune_reg_patch()
188 regs->reg_rdo.rdo_skip_atf_wgt1.atf_rdo_skip_atf_wgt20 = skip_atf_wgt[scene_motion_flag][4]; in vepu580_h264e_tune_reg_patch()
189 regs->reg_rdo.rdo_skip_atf_wgt1.atf_rdo_skip_atf_wgt21 = skip_atf_wgt[scene_motion_flag][5]; in vepu580_h264e_tune_reg_patch()
190 regs->reg_rdo.rdo_skip_atf_wgt1.atf_rdo_skip_atf_wgt22 = skip_atf_wgt[scene_motion_flag][6]; in vepu580_h264e_tune_reg_patch()
191 regs->reg_rdo.rdo_skip_atf_wgt2.atf_rdo_skip_atf_wgt30 = skip_atf_wgt[scene_motion_flag][7]; in vepu580_h264e_tune_reg_patch()
192 regs->reg_rdo.rdo_skip_atf_wgt2.atf_rdo_skip_atf_wgt31 = skip_atf_wgt[scene_motion_flag][8]; in vepu580_h264e_tune_reg_patch()
193 regs->reg_rdo.rdo_skip_atf_wgt2.atf_rdo_skip_atf_wgt32 = skip_atf_wgt[scene_motion_flag][9]; in vepu580_h264e_tune_reg_patch()
194 regs->reg_rdo.rdo_skip_atf_wgt3.atf_rdo_skip_atf_wgt40 = skip_atf_wgt[scene_motion_flag][10]; in vepu580_h264e_tune_reg_patch()
195 regs->reg_rdo.rdo_skip_atf_wgt3.atf_rdo_skip_atf_wgt41 = skip_atf_wgt[scene_motion_flag][11]; in vepu580_h264e_tune_reg_patch()
196 regs->reg_rdo.rdo_skip_atf_wgt3.atf_rdo_skip_atf_wgt42 = skip_atf_wgt[scene_motion_flag][12]; in vepu580_h264e_tune_reg_patch()
199 regs->reg_s3.Lvl16_ATR_WGT.lvl16_atr_wgt0 = atr_wgt[scene_motion_flag][0]; in vepu580_h264e_tune_reg_patch()
200 regs->reg_s3.Lvl16_ATR_WGT.lvl16_atr_wgt1 = atr_wgt[scene_motion_flag][1]; in vepu580_h264e_tune_reg_patch()
201 regs->reg_s3.Lvl16_ATR_WGT.lvl16_atr_wgt2 = atr_wgt[scene_motion_flag][2]; in vepu580_h264e_tune_reg_patch()
202 regs->reg_s3.Lvl8_ATR_WGT.lvl8_atr_wgt0 = atr_wgt[scene_motion_flag][3]; in vepu580_h264e_tune_reg_patch()
203 regs->reg_s3.Lvl8_ATR_WGT.lvl8_atr_wgt1 = atr_wgt[scene_motion_flag][4]; in vepu580_h264e_tune_reg_patch()
204 regs->reg_s3.Lvl8_ATR_WGT.lvl8_atr_wgt2 = atr_wgt[scene_motion_flag][5]; in vepu580_h264e_tune_reg_patch()
205 regs->reg_s3.Lvl4_ATR_WGT.lvl4_atr_wgt0 = atr_wgt[scene_motion_flag][6]; in vepu580_h264e_tune_reg_patch()
206 regs->reg_s3.Lvl4_ATR_WGT.lvl4_atr_wgt1 = atr_wgt[scene_motion_flag][7]; in vepu580_h264e_tune_reg_patch()
207 regs->reg_s3.Lvl4_ATR_WGT.lvl4_atr_wgt2 = atr_wgt[scene_motion_flag][8]; in vepu580_h264e_tune_reg_patch()
210 regs->reg_s3.cime_sqi_multi0.cime_multi0 = cime_multi[scene_motion_flag][0]; in vepu580_h264e_tune_reg_patch()
211 regs->reg_s3.cime_sqi_multi0.cime_multi1 = cime_multi[scene_motion_flag][1]; in vepu580_h264e_tune_reg_patch()
212 regs->reg_s3.cime_sqi_multi1.cime_multi2 = cime_multi[scene_motion_flag][2]; in vepu580_h264e_tune_reg_patch()
213 regs->reg_s3.cime_sqi_multi1.cime_multi3 = cime_multi[scene_motion_flag][3]; in vepu580_h264e_tune_reg_patch()
215 regs->reg_s3.rime_sqi_multi.rime_multi0 = rime_multi[scene_motion_flag][0]; in vepu580_h264e_tune_reg_patch()
216 regs->reg_s3.rime_sqi_multi.rime_multi1 = rime_multi[scene_motion_flag][1]; in vepu580_h264e_tune_reg_patch()
217 regs->reg_s3.rime_sqi_multi.rime_multi2 = rime_multi[scene_motion_flag][2]; in vepu580_h264e_tune_reg_patch()
220 regs->reg_s3.RDO_QUANT.quant_f_bias_I = hw->qbias_i ? hw->qbias_i : 683; in vepu580_h264e_tune_reg_patch()
221 regs->reg_s3.RDO_QUANT.quant_f_bias_P = hw->qbias_p ? hw->qbias_p : 341; in vepu580_h264e_tune_reg_patch()
248 HalVepu580RegSet *regs = &ctx->regs_sets[task->flags.reg_idx]; in vepu580_h264e_tune_stat_update() local
251 madp_cnt_statistics[i] = regs->reg_st.md_sad_b16num0 * madp_num_map[i][0] + in vepu580_h264e_tune_stat_update()
252 regs->reg_st.md_sad_b16num1 * madp_num_map[i][1] + in vepu580_h264e_tune_stat_update()
253 regs->reg_st.md_sad_b16num2 * madp_num_map[i][2] + in vepu580_h264e_tune_stat_update()
254 regs->reg_st.md_sad_b16num3 * madp_num_map[i][3]; in vepu580_h264e_tune_stat_update()
258 tune->pre_madi[0] = (!regs->reg_st.st_bnum_b16.num_b16) ? 0 : in vepu580_h264e_tune_stat_update()
259 regs->reg_st.madi / regs->reg_st.st_bnum_b16.num_b16; in vepu580_h264e_tune_stat_update()
261 tune->pre_madp[0] = (!regs->reg_st.st_bnum_cme.num_ctu) ? 0 : in vepu580_h264e_tune_stat_update()
262 regs->reg_st.madp / regs->reg_st.st_bnum_cme.num_ctu; in vepu580_h264e_tune_stat_update()
264 mb_num = regs->reg_st.madi_b16num0 + regs->reg_st.madi_b16num1 + in vepu580_h264e_tune_stat_update()
265 regs->reg_st.madi_b16num2 + regs->reg_st.madi_b16num3; in vepu580_h264e_tune_stat_update()