Home | History | Annotate | Download | only in dev

Lines Matching refs:top

146 screen_up(struct ite_softc *ip, int top, int bottom, int lines)
153 if (top >= bottom)
156 if (top + lines >= bottom)
158 retina_clear (ip, top, 0, bottom - top, ip->cols);
185 /* write to line TOP */
186 long toploc = top * (md->TX / 16);
191 /* read from line TOP + LINES */
192 long fromloc = (top+lines) * (md->TX / 16);
199 short x = (1 + bottom - (top + lines)) * (md->TX / 16) - 1;
274 screen_down(struct ite_softc *ip, int top, int bottom, int lines)
281 if (top >= bottom)
284 if (top + lines >= bottom)
286 retina_clear (ip, top, 0, bottom - top, ip->cols);
303 /* write to line TOP + LINES */
304 long toloc = (top + lines) * (md->TX / 16);
309 /* read from line TOP */
310 long fromloc = top * (md->TX / 16);
317 short x = (1 + bottom - (top + lines)) * (md->TX / 16) - 1;
318 p += (1 + bottom - (top + lines)) * md->TX;
358 f += top * md->TX * 2;
373 p += top * (md->TX/4);