Lines Matching refs:vb_curroffset
77 if (vb->vb_roffset != vb->vb_curroffset) { in vthistory_seek()
78 vb->vb_roffset = vb->vb_curroffset; in vthistory_seek()
85 bottom = vb->vb_curroffset; in vthistory_seek()
116 roffset = vb->vb_curroffset; in vthistory_seek()
133 vb->vb_curroffset += offset; in vthistory_addlines()
134 if (vb->vb_curroffset + vb->vb_scr_size.tp_row >= vb->vb_history_size) { in vthistory_addlines()
136 vb->vb_curroffset %= vb->vb_history_size; in vthistory_addlines()
139 vb->vb_roffset = vb->vb_curroffset; in vthistory_addlines()
375 row = vb->vb_rows[(vb->vb_curroffset + pr) % in vtbuf_do_fill()
437 vb->vb_curroffset = 0; in vtbuf_reset_scrollback()
529 vb->vb_curroffset + h >= history_size; in vtbuf_grow()
556 (vb->vb_curroffset + h + r) % in vtbuf_grow()
601 vb->vb_curroffset = old_history_size - h; in vtbuf_grow()
618 (vb->vb_curroffset + h + r + in vtbuf_grow()
638 vb->vb_curroffset = history_size - h; in vtbuf_grow()
643 vb->vb_roffset = vb->vb_curroffset; in vtbuf_grow()
653 if (vb->vb_curroffset > 0 || vb->vb_cursor.tp_row > p->tp_row - 1) in vtbuf_grow()
676 row = vb->vb_rows[(vb->vb_curroffset + p->tp_row) % in vtbuf_putchar()