Lines Matching refs:rows
153 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt()
179 offset = tp->view.cols * (tp->view.rows - 2); in tty3270_create_prompt()
181 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_prompt()
218 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_status()
254 line = tp->view.rows - 3; in tty3270_rebuild_update()
282 BUG_ON(tp->nr_lines <= tp->view.rows - 2); in tty3270_alloc_string()
293 tp->nr_up + tp->view.rows - 2 >= tp->nr_lines) { in tty3270_alloc_string()
294 tp->nr_up = tp->nr_lines - tp->view.rows + 2; in tty3270_alloc_string()
494 nr_up = tp->nr_up - tp->view.rows + 2; in tty3270_scroll_forward()
516 nr_up = tp->nr_up + tp->view.rows - 2; in tty3270_scroll_backward()
517 if (nr_up + tp->view.rows - 2 > tp->nr_lines) in tty3270_scroll_backward()
518 nr_up = tp->nr_lines - tp->view.rows + 2; in tty3270_scroll_backward()
759 tty3270_alloc_screen(unsigned int rows, unsigned int cols) in tty3270_alloc_screen() argument
765 size = sizeof(struct tty3270_line) * (rows - 2); in tty3270_alloc_screen()
769 for (lines = 0; lines < rows - 2; lines++) { in tty3270_alloc_screen()
788 tty3270_free_screen(struct tty3270_line *screen, unsigned int rows) in tty3270_free_screen() argument
792 for (lines = 0; lines < rows - 2; lines++) in tty3270_free_screen()
814 orows = tp->view.rows; in tty3270_resize_work()
816 tp->view.rows = tp->n_rows; in tty3270_resize_work()
824 while (tp->nr_lines < tp->view.rows - 2) in tty3270_resize_work()
834 ws.ws_row = tp->view.rows - 2; in tty3270_resize_work()
840 tty3270_resize(struct raw3270_view *view, int model, int rows, int cols) in tty3270_resize() argument
845 tp->n_rows = rows; in tty3270_resize()
877 tty3270_free_screen(tp->screen, tp->view.rows); in tty3270_free()
919 tty->winsize.ws_row = tp->view.rows - 2; in tty3270_install()
942 tp->screen = tty3270_alloc_screen(tp->view.rows, tp->view.cols); in tty3270_install()
953 tty->winsize.ws_row = tp->view.rows - 2; in tty3270_install()
961 for (i = 0; i < tp->view.rows - 2; i++) in tty3270_install()
1096 i = tp->view.rows - 2 - line_nr; in tty3270_convert_line()
1154 if (tp->nr_up + line_nr < tp->view.rows - 2) { in tty3270_convert_line()
1184 if (tp->cy < tp->view.rows - 3) { in tty3270_lf()
1192 for (i = 0; i < tp->view.rows - 3; i++) in tty3270_lf()
1194 tp->screen[tp->view.rows - 3] = temp; in tty3270_lf()
1322 for (i = tp->cy + 1; i < tp->view.rows - 2; i++) { in tty3270_erase_display()
1333 for (i = 0; i < tp->view.rows - 2; i++) { in tty3270_erase_display()
1412 cy = min_t(int, tp->view.rows - 3, max_cy); in tty3270_goto_xy()