• Home
  • Raw
  • Download

Lines Matching refs:viu

270 	priv->viu.vpp_line_in_length = hd_end_lines - hd_start_lines + 1;  in meson_overlay_setup_scaler_params()
281 priv->viu.vpp_vsc_start_phase_step = ratio_y << 6; in meson_overlay_setup_scaler_params()
283 priv->viu.vpp_vsc_ini_phase = vphase << 8; in meson_overlay_setup_scaler_params()
284 priv->viu.vpp_vsc_phase_ctrl = (1 << 13) | (4 << 8) | in meson_overlay_setup_scaler_params()
287 priv->viu.vd1_if0_luma_x0 = VD_X_START(hd_start_lines) | in meson_overlay_setup_scaler_params()
289 priv->viu.vd1_if0_chroma_x0 = VD_X_START(hd_start_lines >> 1) | in meson_overlay_setup_scaler_params()
292 priv->viu.viu_vd1_fmt_w = in meson_overlay_setup_scaler_params()
296 priv->viu.vd1_if0_luma_y0 = VD_Y_START(vd_start_lines) | in meson_overlay_setup_scaler_params()
299 priv->viu.vd1_if0_chroma_y0 = VD_Y_START(vd_start_lines >> 1) | in meson_overlay_setup_scaler_params()
302 priv->viu.vpp_pic_in_height = h_in; in meson_overlay_setup_scaler_params()
304 priv->viu.vpp_postblend_vd1_h_start_end = VD_H_START(hsc_startp) | in meson_overlay_setup_scaler_params()
306 priv->viu.vpp_blend_vd2_h_start_end = VD_H_START(hd_start_lines) | in meson_overlay_setup_scaler_params()
308 priv->viu.vpp_hsc_region12_startp = VD_REGION13_END(0) | in meson_overlay_setup_scaler_params()
310 priv->viu.vpp_hsc_region34_startp = in meson_overlay_setup_scaler_params()
313 priv->viu.vpp_hsc_region4_endp = hsc_endp - hsc_startp; in meson_overlay_setup_scaler_params()
314 priv->viu.vpp_hsc_start_phase_step = ratio_x << 6; in meson_overlay_setup_scaler_params()
315 priv->viu.vpp_hsc_region1_phase_slope = 0; in meson_overlay_setup_scaler_params()
316 priv->viu.vpp_hsc_region3_phase_slope = 0; in meson_overlay_setup_scaler_params()
317 priv->viu.vpp_hsc_phase_ctrl = (1 << 21) | (4 << 16); in meson_overlay_setup_scaler_params()
319 priv->viu.vpp_line_in_length = hd_end_lines - hd_start_lines + 1; in meson_overlay_setup_scaler_params()
320 priv->viu.vpp_preblend_h_size = hd_end_lines - hd_start_lines + 1; in meson_overlay_setup_scaler_params()
322 priv->viu.vpp_postblend_vd1_v_start_end = VD_V_START(vsc_startp) | in meson_overlay_setup_scaler_params()
324 priv->viu.vpp_blend_vd2_v_start_end = in meson_overlay_setup_scaler_params()
328 priv->viu.vpp_vsc_region12_startp = 0; in meson_overlay_setup_scaler_params()
329 priv->viu.vpp_vsc_region34_startp = in meson_overlay_setup_scaler_params()
332 priv->viu.vpp_vsc_region4_endp = vsc_endp - vsc_startp; in meson_overlay_setup_scaler_params()
333 priv->viu.vpp_vsc_start_phase_step = ratio_y << 6; in meson_overlay_setup_scaler_params()
353 priv->viu.vd1_if0_gen_reg = VD_URGENT_CHROMA | in meson_overlay_atomic_update()
362 priv->viu.vd1_if0_repeat_loop = 0; in meson_overlay_atomic_update()
363 priv->viu.vd1_if0_luma0_rpt_pat = interlace_mode ? 8 : 0; in meson_overlay_atomic_update()
364 priv->viu.vd1_if0_chroma0_rpt_pat = interlace_mode ? 8 : 0; in meson_overlay_atomic_update()
365 priv->viu.vd1_range_map_y = 0; in meson_overlay_atomic_update()
366 priv->viu.vd1_range_map_cb = 0; in meson_overlay_atomic_update()
367 priv->viu.vd1_range_map_cr = 0; in meson_overlay_atomic_update()
370 priv->viu.vd1_if0_gen_reg2 = 0; in meson_overlay_atomic_update()
371 priv->viu.viu_vd1_fmt_ctrl = 0; in meson_overlay_atomic_update()
376 priv->viu.vd1_if0_gen_reg |= VD_BYTES_PER_PIXEL(1); in meson_overlay_atomic_update()
377 priv->viu.vd1_if0_canvas0 = in meson_overlay_atomic_update()
381 priv->viu.viu_vd1_fmt_ctrl = VD_HORZ_Y_C_RATIO(1) | /* /2 */ in meson_overlay_atomic_update()
390 priv->viu.vd1_if0_gen_reg |= VD_SEPARATE_EN; in meson_overlay_atomic_update()
391 priv->viu.vd1_if0_canvas0 = in meson_overlay_atomic_update()
396 priv->viu.vd1_if0_gen_reg2 = VD_COLOR_MAP(1); in meson_overlay_atomic_update()
398 priv->viu.vd1_if0_gen_reg2 = VD_COLOR_MAP(2); in meson_overlay_atomic_update()
399 priv->viu.viu_vd1_fmt_ctrl = VD_HORZ_Y_C_RATIO(1) | /* /2 */ in meson_overlay_atomic_update()
411 priv->viu.vd1_if0_gen_reg |= VD_SEPARATE_EN; in meson_overlay_atomic_update()
412 priv->viu.vd1_if0_canvas0 = in meson_overlay_atomic_update()
418 priv->viu.viu_vd1_fmt_ctrl = in meson_overlay_atomic_update()
427 priv->viu.viu_vd1_fmt_ctrl = in meson_overlay_atomic_update()
436 priv->viu.viu_vd1_fmt_ctrl = in meson_overlay_atomic_update()
445 priv->viu.viu_vd1_fmt_ctrl = in meson_overlay_atomic_update()
458 priv->viu.vd1_planes = fb->format->num_planes; in meson_overlay_atomic_update()
460 switch (priv->viu.vd1_planes) { in meson_overlay_atomic_update()
463 priv->viu.vd1_addr2 = gem->paddr + fb->offsets[2]; in meson_overlay_atomic_update()
464 priv->viu.vd1_stride2 = fb->pitches[2]; in meson_overlay_atomic_update()
465 priv->viu.vd1_height2 = in meson_overlay_atomic_update()
469 priv->viu.vd1_addr2, in meson_overlay_atomic_update()
470 priv->viu.vd1_stride2, in meson_overlay_atomic_update()
471 priv->viu.vd1_height2); in meson_overlay_atomic_update()
475 priv->viu.vd1_addr1 = gem->paddr + fb->offsets[1]; in meson_overlay_atomic_update()
476 priv->viu.vd1_stride1 = fb->pitches[1]; in meson_overlay_atomic_update()
477 priv->viu.vd1_height1 = in meson_overlay_atomic_update()
481 priv->viu.vd1_addr1, in meson_overlay_atomic_update()
482 priv->viu.vd1_stride1, in meson_overlay_atomic_update()
483 priv->viu.vd1_height1); in meson_overlay_atomic_update()
487 priv->viu.vd1_addr0 = gem->paddr + fb->offsets[0]; in meson_overlay_atomic_update()
488 priv->viu.vd1_stride0 = fb->pitches[0]; in meson_overlay_atomic_update()
489 priv->viu.vd1_height0 = in meson_overlay_atomic_update()
493 priv->viu.vd1_addr0, in meson_overlay_atomic_update()
494 priv->viu.vd1_stride0, in meson_overlay_atomic_update()
495 priv->viu.vd1_height0); in meson_overlay_atomic_update()
498 priv->viu.vd1_enabled = true; in meson_overlay_atomic_update()
513 priv->viu.vd1_enabled = false; in meson_overlay_atomic_disable()