Lines Matching refs:hds
53 uint16 hds = si->dm.h_display_start; /* the current horizontal starting pixel */ in MOVE_CURSOR() local
105 if (x >= ((si->dm.timing.h_display * 2) + hds)) in MOVE_CURSOR()
107 hds = ((x - (si->dm.timing.h_display * 2)) + 1 + h_adjust) & ~h_adjust; in MOVE_CURSOR()
109 if ((hds + (si->dm.timing.h_display * 2)) > si->dm.virtual_width) in MOVE_CURSOR()
110 hds -= (h_adjust + 1); in MOVE_CURSOR()
112 else if (x < hds) in MOVE_CURSOR()
113 hds = x & ~h_adjust; in MOVE_CURSOR()
116 if (x >= (si->dm.timing.h_display + hds)) in MOVE_CURSOR()
118 hds = ((x - si->dm.timing.h_display) + 1 + h_adjust) & ~h_adjust; in MOVE_CURSOR()
120 if ((hds + si->dm.timing.h_display) > si->dm.virtual_width) in MOVE_CURSOR()
121 hds -= (h_adjust + 1); in MOVE_CURSOR()
123 else if (x < hds) in MOVE_CURSOR()
124 hds = x & ~h_adjust; in MOVE_CURSOR()
134 if ((hds!=si->dm.h_display_start) || (vds!=si->dm.v_display_start)) in MOVE_CURSOR()
136 MOVE_DISPLAY(hds,vds); in MOVE_CURSOR()
141 x -= hds + si->cursor.hot_x; in MOVE_CURSOR()