Lines Matching refs:plane
633 static void _dispc_write_firh_reg(enum omap_plane plane, int reg, u32 value) in _dispc_write_firh_reg() argument
635 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_write_firh_reg()
637 dispc_write_reg(DISPC_VID_FIR_COEF_H(plane-1, reg), value); in _dispc_write_firh_reg()
640 static void _dispc_write_firhv_reg(enum omap_plane plane, int reg, u32 value) in _dispc_write_firhv_reg() argument
642 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_write_firhv_reg()
644 dispc_write_reg(DISPC_VID_FIR_COEF_HV(plane-1, reg), value); in _dispc_write_firhv_reg()
647 static void _dispc_write_firv_reg(enum omap_plane plane, int reg, u32 value) in _dispc_write_firv_reg() argument
649 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_write_firv_reg()
651 dispc_write_reg(DISPC_VID_FIR_COEF_V(plane-1, reg), value); in _dispc_write_firv_reg()
654 static void _dispc_set_scale_coef(enum omap_plane plane, int hscaleup, in _dispc_set_scale_coef() argument
753 _dispc_write_firh_reg(plane, i, h); in _dispc_set_scale_coef()
754 _dispc_write_firhv_reg(plane, i, hv); in _dispc_set_scale_coef()
762 _dispc_write_firv_reg(plane, i, v); in _dispc_set_scale_coef()
801 static void _dispc_set_plane_ba0(enum omap_plane plane, u32 paddr) in _dispc_set_plane_ba0() argument
807 dispc_write_reg(ba0_reg[plane], paddr); in _dispc_set_plane_ba0()
810 static void _dispc_set_plane_ba1(enum omap_plane plane, u32 paddr) in _dispc_set_plane_ba1() argument
816 dispc_write_reg(ba1_reg[plane], paddr); in _dispc_set_plane_ba1()
819 static void _dispc_set_plane_pos(enum omap_plane plane, int x, int y) in _dispc_set_plane_pos() argument
826 dispc_write_reg(pos_reg[plane], val); in _dispc_set_plane_pos()
829 static void _dispc_set_pic_size(enum omap_plane plane, int width, int height) in _dispc_set_pic_size() argument
835 dispc_write_reg(siz_reg[plane], val); in _dispc_set_pic_size()
838 static void _dispc_set_vid_size(enum omap_plane plane, int width, int height) in _dispc_set_vid_size() argument
844 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_set_vid_size()
847 dispc_write_reg(vsi_reg[plane-1], val); in _dispc_set_vid_size()
850 static void _dispc_set_pre_mult_alpha(enum omap_plane plane, bool enable) in _dispc_set_pre_mult_alpha() argument
856 plane == OMAP_DSS_VIDEO1) in _dispc_set_pre_mult_alpha()
859 REG_FLD_MOD(dispc_reg_att[plane], enable ? 1 : 0, 28, 28); in _dispc_set_pre_mult_alpha()
862 static void _dispc_setup_global_alpha(enum omap_plane plane, u8 global_alpha) in _dispc_setup_global_alpha() argument
868 plane == OMAP_DSS_VIDEO1) in _dispc_setup_global_alpha()
871 if (plane == OMAP_DSS_GFX) in _dispc_setup_global_alpha()
873 else if (plane == OMAP_DSS_VIDEO2) in _dispc_setup_global_alpha()
877 static void _dispc_set_pix_inc(enum omap_plane plane, s32 inc) in _dispc_set_pix_inc() argument
883 dispc_write_reg(ri_reg[plane], inc); in _dispc_set_pix_inc()
886 static void _dispc_set_row_inc(enum omap_plane plane, s32 inc) in _dispc_set_row_inc() argument
892 dispc_write_reg(ri_reg[plane], inc); in _dispc_set_row_inc()
895 static void _dispc_set_color_mode(enum omap_plane plane, in _dispc_set_color_mode() argument
933 REG_FLD_MOD(dispc_reg_att[plane], m, 4, 1); in _dispc_set_color_mode()
936 static void _dispc_set_channel_out(enum omap_plane plane, in _dispc_set_channel_out() argument
943 switch (plane) { in _dispc_set_channel_out()
956 val = dispc_read_reg(dispc_reg_att[plane]); in _dispc_set_channel_out()
980 dispc_write_reg(dispc_reg_att[plane], val); in _dispc_set_channel_out()
983 void dispc_set_burst_size(enum omap_plane plane, in dispc_set_burst_size() argument
991 switch (plane) { in dispc_set_burst_size()
1004 val = dispc_read_reg(dispc_reg_att[plane]); in dispc_set_burst_size()
1006 dispc_write_reg(dispc_reg_att[plane], val); in dispc_set_burst_size()
1025 static void _dispc_set_vid_color_conv(enum omap_plane plane, bool enable) in _dispc_set_vid_color_conv() argument
1029 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_set_vid_color_conv()
1031 val = dispc_read_reg(dispc_reg_att[plane]); in _dispc_set_vid_color_conv()
1033 dispc_write_reg(dispc_reg_att[plane], val); in _dispc_set_vid_color_conv()
1036 void dispc_enable_replication(enum omap_plane plane, bool enable) in dispc_enable_replication() argument
1040 if (plane == OMAP_DSS_GFX) in dispc_enable_replication()
1046 REG_FLD_MOD(dispc_reg_att[plane], enable, bit, bit); in dispc_enable_replication()
1076 int plane; in dispc_read_plane_fifo_sizes() local
1083 for (plane = 0; plane < ARRAY_SIZE(dispc.fifo_size); ++plane) { in dispc_read_plane_fifo_sizes()
1084 size = FLD_GET(dispc_read_reg(fsz_reg[plane]), start, end); in dispc_read_plane_fifo_sizes()
1085 dispc.fifo_size[plane] = size; in dispc_read_plane_fifo_sizes()
1091 u32 dispc_get_plane_fifo_size(enum omap_plane plane) in dispc_get_plane_fifo_size() argument
1093 return dispc.fifo_size[plane]; in dispc_get_plane_fifo_size()
1096 void dispc_setup_plane_fifo(enum omap_plane plane, u32 low, u32 high) in dispc_setup_plane_fifo() argument
1106 plane, in dispc_setup_plane_fifo()
1107 REG_GET(ftrs_reg[plane], 11, 0), in dispc_setup_plane_fifo()
1108 REG_GET(ftrs_reg[plane], 27, 16), in dispc_setup_plane_fifo()
1114 dispc_write_reg(ftrs_reg[plane], in dispc_setup_plane_fifo()
1131 static void _dispc_set_fir(enum omap_plane plane, int hinc, int vinc) in _dispc_set_fir() argument
1138 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_set_fir()
1146 dispc_write_reg(fir_reg[plane-1], val); in _dispc_set_fir()
1149 static void _dispc_set_vid_accu0(enum omap_plane plane, int haccu, int vaccu) in _dispc_set_vid_accu0() argument
1156 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_set_vid_accu0()
1164 dispc_write_reg(ac0_reg[plane-1], val); in _dispc_set_vid_accu0()
1167 static void _dispc_set_vid_accu1(enum omap_plane plane, int haccu, int vaccu) in _dispc_set_vid_accu1() argument
1174 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_set_vid_accu1()
1182 dispc_write_reg(ac1_reg[plane-1], val); in _dispc_set_vid_accu1()
1186 static void _dispc_set_scaling(enum omap_plane plane, in _dispc_set_scaling() argument
1199 BUG_ON(plane == OMAP_DSS_GFX); in _dispc_set_scaling()
1204 _dispc_set_scale_coef(plane, hscaleup, vscaleup, five_taps); in _dispc_set_scaling()
1216 _dispc_set_fir(plane, fir_hinc, fir_vinc); in _dispc_set_scaling()
1218 l = dispc_read_reg(dispc_reg_att[plane]); in _dispc_set_scaling()
1239 dispc_write_reg(dispc_reg_att[plane], l); in _dispc_set_scaling()
1254 _dispc_set_vid_accu0(plane, 0, accu0); in _dispc_set_scaling()
1255 _dispc_set_vid_accu1(plane, 0, accu1); in _dispc_set_scaling()
1258 static void _dispc_set_rotation_attrs(enum omap_plane plane, u8 rotation, in _dispc_set_rotation_attrs() argument
1305 REG_FLD_MOD(dispc_reg_att[plane], vidrot, 13, 12); in _dispc_set_rotation_attrs()
1307 REG_FLD_MOD(dispc_reg_att[plane], row_repeat ? 1 : 0, 18, 18); in _dispc_set_rotation_attrs()
1641 void dispc_set_channel_out(enum omap_plane plane, enum omap_channel channel_out) in dispc_set_channel_out() argument
1644 _dispc_set_channel_out(plane, channel_out); in dispc_set_channel_out()
1648 static int _dispc_setup_plane(enum omap_plane plane, in _dispc_setup_plane() argument
1687 if (!dss_feat_color_mode_supported(plane, color_mode)) in _dispc_setup_plane()
1690 if (plane == OMAP_DSS_GFX) { in _dispc_setup_plane()
1776 _dispc_set_color_mode(plane, color_mode); in _dispc_setup_plane()
1778 _dispc_set_plane_ba0(plane, paddr + offset0); in _dispc_setup_plane()
1779 _dispc_set_plane_ba1(plane, paddr + offset1); in _dispc_setup_plane()
1781 _dispc_set_row_inc(plane, row_inc); in _dispc_setup_plane()
1782 _dispc_set_pix_inc(plane, pix_inc); in _dispc_setup_plane()
1787 _dispc_set_plane_pos(plane, pos_x, pos_y); in _dispc_setup_plane()
1789 _dispc_set_pic_size(plane, width, height); in _dispc_setup_plane()
1791 if (plane != OMAP_DSS_GFX) { in _dispc_setup_plane()
1792 _dispc_set_scaling(plane, width, height, in _dispc_setup_plane()
1795 _dispc_set_vid_size(plane, out_width, out_height); in _dispc_setup_plane()
1796 _dispc_set_vid_color_conv(plane, cconv); in _dispc_setup_plane()
1799 _dispc_set_rotation_attrs(plane, rotation, mirror, color_mode); in _dispc_setup_plane()
1801 _dispc_set_pre_mult_alpha(plane, pre_mult_alpha); in _dispc_setup_plane()
1802 _dispc_setup_global_alpha(plane, global_alpha); in _dispc_setup_plane()
1807 static void _dispc_enable_plane(enum omap_plane plane, bool enable) in _dispc_enable_plane() argument
1809 REG_FLD_MOD(dispc_reg_att[plane], enable ? 1 : 0, 0, 0); in _dispc_enable_plane()
3371 int dispc_enable_plane(enum omap_plane plane, bool enable) in dispc_enable_plane() argument
3373 DSSDBG("dispc_enable_plane %d, %d\n", plane, enable); in dispc_enable_plane()
3376 _dispc_enable_plane(plane, enable); in dispc_enable_plane()
3382 int dispc_setup_plane(enum omap_plane plane, in dispc_setup_plane() argument
3397 plane, paddr, screen_width, pos_x, pos_y, in dispc_setup_plane()
3405 r = _dispc_setup_plane(plane, in dispc_setup_plane()