Lines Matching refs:dm
53 uint16 hds = si->dm.h_display_start; /* the current horizontal starting pixel */
54 uint16 vds = si->dm.v_display_start; /* the current vertical starting line */
58 if (x >= si->dm.virtual_width) x = si->dm.virtual_width - 1;
59 if (y >= si->dm.virtual_height) y = si->dm.virtual_height - 1;
66 if (si->dm.flags & DUALHEAD_BITS)
68 switch(si->dm.space)
83 switch(si->dm.space)
101 switch (si->dm.flags & DUALHEAD_BITS)
105 if (x >= ((si->dm.timing.h_display * 2) + hds))
107 hds = ((x - (si->dm.timing.h_display * 2)) + 1 + h_adjust) & ~h_adjust;
109 if ((hds + (si->dm.timing.h_display * 2)) > si->dm.virtual_width)
116 if (x >= (si->dm.timing.h_display + hds))
118 hds = ((x - si->dm.timing.h_display) + 1 + h_adjust) & ~h_adjust;
120 if ((hds + si->dm.timing.h_display) > si->dm.virtual_width)
128 if (y >= (si->dm.timing.v_display + vds))
129 vds = y - si->dm.timing.v_display + 1;
134 if ((hds!=si->dm.h_display_start) || (vds!=si->dm.v_display_start))
145 if (si->switched_crtcs) x -= si->dm.timing.h_display;