Lines Matching refs:p_regs

156     M2vdVdpu2Reg *p_regs = (M2vdVdpu2Reg *)ctx->regs;  in hal_m2vd_vdpu2_init_hwcfg()  local
158 memset(p_regs, 0, sizeof(M2vdVdpu2Reg)); in hal_m2vd_vdpu2_init_hwcfg()
160 p_regs->sw56.dec_axi_rn_id = 0; in hal_m2vd_vdpu2_init_hwcfg()
161 p_regs->sw57.dec_timeout_e = 1; in hal_m2vd_vdpu2_init_hwcfg()
162 p_regs->sw54.dec_strswap32_e = 1; //change in hal_m2vd_vdpu2_init_hwcfg()
163 p_regs->sw54.dec_strendian_e = DEC_LITTLE_ENDIAN; in hal_m2vd_vdpu2_init_hwcfg()
164 p_regs->sw54.dec_inswap32_e = 1; //change in hal_m2vd_vdpu2_init_hwcfg()
165 p_regs->sw54.dec_outswap32_e = 1; //change in hal_m2vd_vdpu2_init_hwcfg()
168 p_regs->sw57.dec_clk_gate_e = 1; //change in hal_m2vd_vdpu2_init_hwcfg()
169 p_regs->sw54.dec_in_endian = DEC_LITTLE_ENDIAN; //change in hal_m2vd_vdpu2_init_hwcfg()
170 p_regs->sw54.dec_out_endian = DEC_LITTLE_ENDIAN; in hal_m2vd_vdpu2_init_hwcfg()
172 p_regs->sw50.dec_out_tiled_e = 0; in hal_m2vd_vdpu2_init_hwcfg()
173 p_regs->sw56.dec_max_burst = DEC_BUS_BURST_LENGTH_16; in hal_m2vd_vdpu2_init_hwcfg()
174 p_regs->sw50.dec_scmd_dis = 0; in hal_m2vd_vdpu2_init_hwcfg()
175 p_regs->sw50.dec_adv_pre_dis = 0; in hal_m2vd_vdpu2_init_hwcfg()
176 p_regs->sw52.apf_threshold = 8; in hal_m2vd_vdpu2_init_hwcfg()
178 p_regs->sw50.dec_latency = 0; in hal_m2vd_vdpu2_init_hwcfg()
179 p_regs->sw56.dec_data_disc_e = 0; in hal_m2vd_vdpu2_init_hwcfg()
181 p_regs->sw55.dec_irq = 0; in hal_m2vd_vdpu2_init_hwcfg()
182 p_regs->sw56.dec_axi_rn_id = 0; in hal_m2vd_vdpu2_init_hwcfg()
183 p_regs->sw56.dec_axi_wr_id = 0; in hal_m2vd_vdpu2_init_hwcfg()
185 p_regs->sw53.sw_dec_mode = 8; in hal_m2vd_vdpu2_init_hwcfg()
187 p_regs->ppReg[0] = 0; in hal_m2vd_vdpu2_init_hwcfg()
188 p_regs->sw136.mv_accuracy_fwd = 1; in hal_m2vd_vdpu2_init_hwcfg()
189 p_regs->sw136.mv_accuracy_bwd = 1; in hal_m2vd_vdpu2_init_hwcfg()
204 M2vdVdpu2Reg *p_regs = ctx->regs; in hal_m2vd_vdpu2_gen_regs() local
213 p_regs->sw136.mv_accuracy_fwd = 1; in hal_m2vd_vdpu2_gen_regs()
214 p_regs->sw136.mv_accuracy_bwd = 1; in hal_m2vd_vdpu2_gen_regs()
216 p_regs->sw53.sw_dec_mode = 5; in hal_m2vd_vdpu2_gen_regs()
217 p_regs->sw136.fcode_fwd_hor = dx->pic.full_pel_forward_vector; in hal_m2vd_vdpu2_gen_regs()
218 p_regs->sw136.fcode_fwd_ver = dx->pic.forward_f_code; in hal_m2vd_vdpu2_gen_regs()
219 p_regs->sw136.fcode_bwd_hor = dx->pic.full_pel_backward_vector; in hal_m2vd_vdpu2_gen_regs()
220 p_regs->sw136.fcode_bwd_ver = dx->pic.backward_f_code; in hal_m2vd_vdpu2_gen_regs()
223 p_regs->sw53.sw_dec_mode = 6; in hal_m2vd_vdpu2_gen_regs()
224 p_regs->sw136.fcode_fwd_hor = dx->pic.forward_f_code; in hal_m2vd_vdpu2_gen_regs()
225 p_regs->sw136.fcode_fwd_ver = dx->pic.forward_f_code; in hal_m2vd_vdpu2_gen_regs()
226 p_regs->sw136.fcode_bwd_hor = dx->pic.backward_f_code; in hal_m2vd_vdpu2_gen_regs()
227 p_regs->sw136.fcode_bwd_ver = dx->pic.backward_f_code; in hal_m2vd_vdpu2_gen_regs()
229 p_regs->sw136.mv_accuracy_fwd = 0; in hal_m2vd_vdpu2_gen_regs()
231 p_regs->sw136.mv_accuracy_bwd = 0; in hal_m2vd_vdpu2_gen_regs()
234 p_regs->sw120.pic_mb_width = (dx->seq.decode_width + 15) >> 4; in hal_m2vd_vdpu2_gen_regs()
235 p_regs->sw120.pic_mb_height_p = (dx->seq.decode_height + 15) >> 4; in hal_m2vd_vdpu2_gen_regs()
236 p_regs->sw57.pic_interlace_e = 1 - dx->seq_ext.progressive_sequence; in hal_m2vd_vdpu2_gen_regs()
238 p_regs->sw57.pic_fieldmode_e = 0; in hal_m2vd_vdpu2_gen_regs()
240 p_regs->sw57.pic_fieldmode_e = 1; in hal_m2vd_vdpu2_gen_regs()
241 p_regs->sw57.pic_topfield_e = dx->pic_code_ext.picture_structure == 1; in hal_m2vd_vdpu2_gen_regs()
244 p_regs->sw57.pic_b_e = 1; in hal_m2vd_vdpu2_gen_regs()
246 p_regs->sw57.pic_b_e = 0; in hal_m2vd_vdpu2_gen_regs()
248 p_regs->sw57.pic_inter_e = 0; in hal_m2vd_vdpu2_gen_regs()
250 p_regs->sw57.pic_inter_e = 1; in hal_m2vd_vdpu2_gen_regs()
252 p_regs->sw120.topfieldfirst_e = dx->pic_code_ext.top_field_first; in hal_m2vd_vdpu2_gen_regs()
253 p_regs->sw57.fwd_interlace_e = 0; in hal_m2vd_vdpu2_gen_regs()
254 p_regs->sw57.write_mvs_e = 0;//concealment_motion_vectors; in hal_m2vd_vdpu2_gen_regs()
255 p_regs->sw120.alt_scan_e = dx->pic_code_ext.alternate_scan; in hal_m2vd_vdpu2_gen_regs()
256 p_regs->sw136.alt_scan_flag_e = dx->pic_code_ext.alternate_scan; in hal_m2vd_vdpu2_gen_regs()
258 p_regs->sw122.qscale_type = dx->pic_code_ext.q_scale_type; in hal_m2vd_vdpu2_gen_regs()
259 p_regs->sw122.intra_dc_prec = dx->pic_code_ext.intra_dc_precision; in hal_m2vd_vdpu2_gen_regs()
260 p_regs->sw122.con_mv_e = dx->pic_code_ext.concealment_motion_vectors; in hal_m2vd_vdpu2_gen_regs()
261 p_regs->sw122.intra_vlc_tab = dx->pic_code_ext.intra_vlc_format; in hal_m2vd_vdpu2_gen_regs()
262 p_regs->sw122.frame_pred_dct = dx->pic_code_ext.frame_pred_frame_dct; in hal_m2vd_vdpu2_gen_regs()
263 p_regs->sw51.init_qp = 1; in hal_m2vd_vdpu2_gen_regs()
266 p_regs->sw64.VLC_base = mpp_buffer_get_fd(streambuf); in hal_m2vd_vdpu2_gen_regs()
276 p_regs->sw63.cur_pic_base = mpp_buffer_get_fd(framebuf); //just index need map in hal_m2vd_vdpu2_gen_regs()
278 p_regs->sw63.cur_pic_base = mpp_buffer_get_fd(framebuf); in hal_m2vd_vdpu2_gen_regs()
284 p_regs->sw131.ref0 = mpp_buffer_get_fd(framebuf); //just index need map in hal_m2vd_vdpu2_gen_regs()
287 p_regs->sw148.ref1 = mpp_buffer_get_fd(framebuf); //just index need map in hal_m2vd_vdpu2_gen_regs()
290 p_regs->sw134.ref2 = mpp_buffer_get_fd(framebuf); //just index need map in hal_m2vd_vdpu2_gen_regs()
293 p_regs->sw135.ref3 = mpp_buffer_get_fd(framebuf); //just index need map in hal_m2vd_vdpu2_gen_regs()
295 p_regs->sw61.slice_table = mpp_buffer_get_fd(ctx->qp_table); in hal_m2vd_vdpu2_gen_regs()
297 p_regs->sw52.startmb_x = 0; in hal_m2vd_vdpu2_gen_regs()
298 p_regs->sw52.startmb_y = 0; in hal_m2vd_vdpu2_gen_regs()
299 p_regs->sw57.dec_out_dis = 0; in hal_m2vd_vdpu2_gen_regs()
300 p_regs->sw50.filtering_dis = 1; in hal_m2vd_vdpu2_gen_regs()
302 p_regs->sw51.stream_len = dx->bitstream_length; in hal_m2vd_vdpu2_gen_regs()
303 p_regs->sw122.stream_start_bit = dx->bitstream_start_bit; in hal_m2vd_vdpu2_gen_regs()
304 p_regs->sw57.dec_e = 1; in hal_m2vd_vdpu2_gen_regs()
308 RK_U32 *p_reg = (RK_U32 *)p_regs; in hal_m2vd_vdpu2_gen_regs()
315 RK_U32 *p_reg = (RK_U32*)p_regs; in hal_m2vd_vdpu2_gen_regs()