Lines Matching refs:c2

105 	struct matrox_crtc2 c2;  in matroxfb_dh_restore()  local
110 c2.ctl = 0x00200000; in matroxfb_dh_restore()
113 c2.ctl = 0x00400000; in matroxfb_dh_restore()
117 c2.ctl = 0x00800000; in matroxfb_dh_restore()
120 c2.ctl |= 0x00000001; /* enable CRTC2 */ in matroxfb_dh_restore()
121 c2.datactl = 0; in matroxfb_dh_restore()
124 c2.ctl |= 0x00000006; /* source from secondary pixel PLL */ in matroxfb_dh_restore()
127 c2.ctl |= 0xC0001000; /* Enable H/V vidrst */ in matroxfb_dh_restore()
130 c2.ctl |= 0x00000002; /* source from VDOCLK */ in matroxfb_dh_restore()
131 c2.ctl |= 0xC0000000; /* enable vvidrst & hvidrst */ in matroxfb_dh_restore()
135 c2.ctl |= 0x00000004; /* source from pixclock */ in matroxfb_dh_restore()
139 c2.ctl |= 0x00100000; /* connect CRTC2 to DAC */ in matroxfb_dh_restore()
142 c2.ctl |= 0x02000000; /* interlaced, second field is bigger, as G450 apparently ignores it */ in matroxfb_dh_restore()
149 c2.datactl |= 0x00000010; in matroxfb_dh_restore()
152 c2.ctl |= 0x10000000; /* 0x10000000 is VIDRST polarity */ in matroxfb_dh_restore()
153 c2.hparam = ((mt->HDisplay - 8) << 16) | (mt->HTotal - 8); in matroxfb_dh_restore()
154 c2.hsync = ((mt->HSyncEnd - 8) << 16) | (mt->HSyncStart - 8); in matroxfb_dh_restore()
155 c2.vparam = ((mt->VDisplay - 1) << 16) | (mt->VTotal - 1); in matroxfb_dh_restore()
156 c2.vsync = ((mt->VSyncEnd - 1) << 16) | (mt->VSyncStart - 1); in matroxfb_dh_restore()
157 c2.preload = ((mt->VSyncStart) << 16) | (mt->HSyncStart); in matroxfb_dh_restore()
158 mga_outl(0x3C14, c2.hparam); in matroxfb_dh_restore()
159 mga_outl(0x3C18, c2.hsync); in matroxfb_dh_restore()
160 mga_outl(0x3C1C, c2.vparam); in matroxfb_dh_restore()
161 mga_outl(0x3C20, c2.vsync); in matroxfb_dh_restore()
162 mga_outl(0x3C24, c2.preload); in matroxfb_dh_restore()
165 if (c2.ctl & 0x02000000) { in matroxfb_dh_restore()
177 mga_outl(0x3C4C, c2.datactl); /* data control */ in matroxfb_dh_restore()
178 if (c2.ctl & 0x02000000) { in matroxfb_dh_restore()
181 mga_outl(0x3C10, c2.ctl & ~0x02000000); in matroxfb_dh_restore()
191 mga_outl(0x3C10, c2.ctl); in matroxfb_dh_restore()
192 ACCESS_FBINFO(hw).crtc2.ctl = c2.ctl; in matroxfb_dh_restore()