Lines Matching full:row
56 static int vtbuf_htw(const struct vt_buf *vb, int row);
57 static int vtbuf_wth(const struct vt_buf *vb, int row);
161 /* Translate history row to current view row number. */
163 vtbuf_htw(const struct vt_buf *vb, int row) in vtbuf_htw() argument
172 return ((row - vb->vb_roffset + vb->vb_history_size) % in vtbuf_htw()
176 /* Translate current view row number to history row. */
178 vtbuf_wth(const struct vt_buf *vb, int row) in vtbuf_wth() argument
181 return ((vb->vb_roffset + row) % vb->vb_history_size); in vtbuf_wth()
208 vtbuf_iscursor(const struct vt_buf *vb, int row, int col) in vtbuf_iscursor() argument
215 (vb->vb_cursor.tp_row == row) && (vb->vb_cursor.tp_col == col)) in vtbuf_iscursor()
236 row = vtbuf_wth(vb, row); in vtbuf_iscursor()
244 if (vtbuf_in_this_range(POS_INDEX(sc, sr), POS_INDEX(col, row), in vtbuf_iscursor()
340 r->tr_end.tp_col == vb->vb_scr_size.tp_col && /* Full row. */ in vtbuf_copy()
371 term_char_t *row; in vtbuf_do_fill() local
374 row = vb->vb_rows[(vb->vb_curroffset + pr) % in vtbuf_do_fill()
377 row[pc] = c; in vtbuf_do_fill()
500 term_char_t *old, *new, **rows, **oldrows, **copyrows, *row, *oldrow; in vtbuf_grow() local
538 * Copy rows to the new buffer. The first row in the history in vtbuf_grow()
543 row = rows[r]; in vtbuf_grow()
545 /* Compute the corresponding row in the old buffer. */ in vtbuf_grow()
548 * The buffer is full, the "top" row is in vtbuf_grow()
551 * cycling buffer. The corresponding row in vtbuf_grow()
552 * is computed from this top row. in vtbuf_grow()
566 memmove(row, oldrow, in vtbuf_grow()
575 row[c] = VTBUF_SPACE_CHAR(ch); in vtbuf_grow()
581 row = rows[r]; in vtbuf_grow()
583 row[c] = VTBUF_SPACE_CHAR(ch); in vtbuf_grow()
607 row = rows[r]; in vtbuf_grow()
610 * Compute the corresponding row in the old buffer. in vtbuf_grow()
623 memmove(row, oldrow, in vtbuf_grow()
632 row[c] = VTBUF_SPACE_CHAR(ch); in vtbuf_grow()
666 term_char_t *row; in vtbuf_putchar() local
675 row = vb->vb_rows[(vb->vb_curroffset + p->tp_row) % in vtbuf_putchar()
677 if (row[p->tp_col] != c) { in vtbuf_putchar()
678 row[p->tp_col] = c; in vtbuf_putchar()
817 vtbuf_set_mark(struct vt_buf *vb, int type, int col, int row) in vtbuf_set_mark() argument
831 vb->vb_mark_end.tp_row = vtbuf_wth(vb, row); in vtbuf_set_mark()
836 vb->vb_mark_start.tp_row = vtbuf_wth(vb, row); in vtbuf_set_mark()
839 vb->vb_mark_end.tp_row = vtbuf_wth(vb, row); in vtbuf_set_mark()
844 vtbuf_wth(vb, row); in vtbuf_set_mark()
873 vtbuf_wth(vb, row); in vtbuf_set_mark()