Lines Matching refs:win
55 #define VOP_WIN_SET(x, win, name, v) \ argument
56 REG_SET(x, win->base, win->phy->name, v, RELAXED)
57 #define VOP_SCL_SET(x, win, name, v) \ argument
58 REG_SET(x, win->base, win->phy->scl->name, v, RELAXED)
59 #define VOP_SCL_SET_EXT(x, win, name, v) \ argument
60 REG_SET(x, win->base, win->phy->scl->ext->name, v, RELAXED)
83 #define VOP_WIN_GET(x, win, name) \ argument
84 vop_read_reg(x, win->base, &win->phy->name)
86 #define VOP_WIN_GET_YRGBADDR(vop, win) \ argument
87 vop_readl(vop, win->base + win->phy->yrgb_mst.offset)
146 struct vop_win win[]; member
300 static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win, in scl_vop_cal_scl_fac() argument
322 if (!win->phy->scl->ext) { in scl_vop_cal_scl_fac()
323 VOP_SCL_SET(vop, win, scale_yrgb_x, in scl_vop_cal_scl_fac()
325 VOP_SCL_SET(vop, win, scale_yrgb_y, in scl_vop_cal_scl_fac()
328 VOP_SCL_SET(vop, win, scale_cbcr_x, in scl_vop_cal_scl_fac()
330 VOP_SCL_SET(vop, win, scale_cbcr_y, in scl_vop_cal_scl_fac()
353 VOP_SCL_SET_EXT(vop, win, lb_mode, lb_mode); in scl_vop_cal_scl_fac()
372 VOP_SCL_SET(vop, win, scale_yrgb_x, val); in scl_vop_cal_scl_fac()
375 VOP_SCL_SET(vop, win, scale_yrgb_y, val); in scl_vop_cal_scl_fac()
377 VOP_SCL_SET_EXT(vop, win, vsd_yrgb_gt4, vskiplines == 4); in scl_vop_cal_scl_fac()
378 VOP_SCL_SET_EXT(vop, win, vsd_yrgb_gt2, vskiplines == 2); in scl_vop_cal_scl_fac()
380 VOP_SCL_SET_EXT(vop, win, yrgb_hor_scl_mode, yrgb_hor_scl_mode); in scl_vop_cal_scl_fac()
381 VOP_SCL_SET_EXT(vop, win, yrgb_ver_scl_mode, yrgb_ver_scl_mode); in scl_vop_cal_scl_fac()
382 VOP_SCL_SET_EXT(vop, win, yrgb_hsd_mode, SCALE_DOWN_BIL); in scl_vop_cal_scl_fac()
383 VOP_SCL_SET_EXT(vop, win, yrgb_vsd_mode, SCALE_DOWN_BIL); in scl_vop_cal_scl_fac()
384 VOP_SCL_SET_EXT(vop, win, yrgb_vsu_mode, vsu_mode); in scl_vop_cal_scl_fac()
388 VOP_SCL_SET(vop, win, scale_cbcr_x, val); in scl_vop_cal_scl_fac()
391 VOP_SCL_SET(vop, win, scale_cbcr_y, val); in scl_vop_cal_scl_fac()
393 VOP_SCL_SET_EXT(vop, win, vsd_cbcr_gt4, vskiplines == 4); in scl_vop_cal_scl_fac()
394 VOP_SCL_SET_EXT(vop, win, vsd_cbcr_gt2, vskiplines == 2); in scl_vop_cal_scl_fac()
395 VOP_SCL_SET_EXT(vop, win, cbcr_hor_scl_mode, cbcr_hor_scl_mode); in scl_vop_cal_scl_fac()
396 VOP_SCL_SET_EXT(vop, win, cbcr_ver_scl_mode, cbcr_ver_scl_mode); in scl_vop_cal_scl_fac()
397 VOP_SCL_SET_EXT(vop, win, cbcr_hsd_mode, SCALE_DOWN_BIL); in scl_vop_cal_scl_fac()
398 VOP_SCL_SET_EXT(vop, win, cbcr_vsd_mode, SCALE_DOWN_BIL); in scl_vop_cal_scl_fac()
399 VOP_SCL_SET_EXT(vop, win, cbcr_vsu_mode, vsu_mode); in scl_vop_cal_scl_fac()
577 struct vop_win *vop_win = &vop->win[i]; in vop_crtc_disable()
578 const struct vop_win_data *win = vop_win->data; in vop_crtc_disable() local
581 VOP_WIN_SET(vop, win, enable, 0); in vop_crtc_disable()
642 const struct vop_win_data *win = vop_win->data; in vop_plane_atomic_check() local
645 int min_scale = win->phy->scl ? FRAC_16_16(1, 8) : in vop_plane_atomic_check()
647 int max_scale = win->phy->scl ? FRAC_16_16(8, 1) : in vop_plane_atomic_check()
689 const struct vop_win_data *win = vop_win->data; in vop_plane_atomic_disable() local
697 VOP_WIN_SET(vop, win, enable, 0); in vop_plane_atomic_disable()
708 const struct vop_win_data *win = vop_win->data; in vop_plane_atomic_update() local
760 VOP_WIN_SET(vop, win, format, format); in vop_plane_atomic_update()
761 VOP_WIN_SET(vop, win, yrgb_vir, fb->pitches[0] >> 2); in vop_plane_atomic_update()
762 VOP_WIN_SET(vop, win, yrgb_mst, dma_addr); in vop_plane_atomic_update()
775 VOP_WIN_SET(vop, win, uv_vir, fb->pitches[1] >> 2); in vop_plane_atomic_update()
776 VOP_WIN_SET(vop, win, uv_mst, dma_addr); in vop_plane_atomic_update()
779 if (win->phy->scl) in vop_plane_atomic_update()
780 scl_vop_cal_scl_fac(vop, win, actual_w, actual_h, in vop_plane_atomic_update()
784 VOP_WIN_SET(vop, win, act_info, act_info); in vop_plane_atomic_update()
785 VOP_WIN_SET(vop, win, dsp_info, dsp_info); in vop_plane_atomic_update()
786 VOP_WIN_SET(vop, win, dsp_st, dsp_st); in vop_plane_atomic_update()
789 VOP_WIN_SET(vop, win, rb_swap, rb_swap); in vop_plane_atomic_update()
792 VOP_WIN_SET(vop, win, dst_alpha_ctl, in vop_plane_atomic_update()
799 VOP_WIN_SET(vop, win, src_alpha_ctl, val); in vop_plane_atomic_update()
801 VOP_WIN_SET(vop, win, src_alpha_ctl, SRC_ALPHA_EN(0)); in vop_plane_atomic_update()
804 VOP_WIN_SET(vop, win, enable, 1); in vop_plane_atomic_update()
1213 struct vop_win *vop_win = &vop->win[i]; in vop_create_crtc()
1251 struct vop_win *vop_win = &vop->win[i]; in vop_create_crtc()
1398 const struct vop_win_data *win = &vop_data->win[i]; in vop_initial() local
1400 VOP_WIN_SET(vop, win, enable, 0); in vop_initial()
1447 struct vop_win *vop_win = &vop->win[i]; in vop_win_init()
1448 const struct vop_win_data *win_data = &vop_data->win[i]; in vop_win_init()
1513 alloc_size = sizeof(*vop) + sizeof(*vop->win) * vop_data->win_size; in vop_bind()