Lines Matching refs:view
63 struct raw3270_view view; member
145 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt()
146 count = tp->view.cols * 2 - 11; in tty3270_update_prompt()
150 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt()
153 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt()
154 raw3270_buffer_address(tp->view.dev, line->string+count+8, off); in tty3270_update_prompt()
172 sizeof(blueprint) + tp->view.cols * 2 - 9); in tty3270_create_prompt()
179 offset = tp->view.cols * (tp->view.rows - 2); in tty3270_create_prompt()
180 raw3270_buffer_address(tp->view.dev, line->string + 1, offset); in tty3270_create_prompt()
181 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_prompt()
182 raw3270_buffer_address(tp->view.dev, line->string + 8, offset); in tty3270_create_prompt()
185 tp->input = alloc_string(&tp->freemem, tp->view.cols * 2 - 9 + 6); in tty3270_create_prompt()
199 codepage_convert(tp->view.ascebc, tp->status->string + 8, 7); in tty3270_update_status()
218 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_status()
219 raw3270_buffer_address(tp->view.dev, line->string + 1, offset); in tty3270_create_status()
231 raw3270_buffer_address(tp->view.dev, line->string + 1, in tty3270_update_string()
232 tp->view.cols * nr); in tty3270_update_string()
235 raw3270_buffer_address(tp->view.dev, cp + 1, in tty3270_update_string()
236 tp->view.cols * (nr + 1)); in tty3270_update_string()
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()
329 tp = (struct tty3270 *) rq->view; in tty3270_write_callback()
358 spin_lock(&tp->view.lock); in tty3270_update()
415 rc = raw3270_start(&tp->view, wrq); in tty3270_update()
424 spin_unlock(&tp->view.lock); in tty3270_update()
457 spin_lock_bh(&tp->view.lock); in tty3270_rcl_backward()
472 spin_unlock_bh(&tp->view.lock); in tty3270_rcl_backward()
484 raw3270_deactivate_view(&tp->view); in tty3270_exit_tty()
497 spin_lock_bh(&tp->view.lock); in tty3270_scroll_forward()
498 nr_up = tp->nr_up - tp->view.rows + 2; in tty3270_scroll_forward()
507 spin_unlock_bh(&tp->view.lock); in tty3270_scroll_forward()
520 spin_lock_bh(&tp->view.lock); in tty3270_scroll_backward()
521 nr_up = tp->nr_up + tp->view.rows - 2; in tty3270_scroll_backward()
522 if (nr_up + tp->view.rows - 2 > tp->nr_lines) in tty3270_scroll_backward()
523 nr_up = tp->nr_lines - tp->view.rows + 2; in tty3270_scroll_backward()
530 spin_unlock_bh(&tp->view.lock); in tty3270_scroll_backward()
544 tp = (struct tty3270 *) rrq->view; in tty3270_read_tasklet()
545 spin_lock_bh(&tp->view.lock); in tty3270_read_tasklet()
572 spin_unlock_bh(&tp->view.lock); in tty3270_read_tasklet()
578 raw3270_start(&tp->view, tp->kreset); in tty3270_read_tasklet()
590 raw3270_put_view(&tp->view); in tty3270_read_tasklet()
599 raw3270_get_view(rq->view); in tty3270_read_callback()
601 tasklet_schedule(&((struct tty3270 *) rq->view)->readlet); in tty3270_read_callback()
623 rc = raw3270_start(&tp->view, rrq); in tty3270_issue_read()
625 rc = raw3270_start_irq(&tp->view, rrq); in tty3270_issue_read()
636 tty3270_activate(struct raw3270_view *view) in tty3270_activate() argument
640 tp = (struct tty3270 *) view; in tty3270_activate()
647 tty3270_deactivate(struct raw3270_view *view) in tty3270_deactivate() argument
651 tp = (struct tty3270 *) view; in tty3270_deactivate()
759 size = sizeof(struct tty3270_line) * (tp->view.rows - 2); in tty3270_alloc_screen()
763 for (lines = 0; lines < tp->view.rows - 2; lines++) { in tty3270_alloc_screen()
764 size = sizeof(struct tty3270_cell) * tp->view.cols; in tty3270_alloc_screen()
786 for (lines = 0; lines < tp->view.rows - 2; lines++) in tty3270_free_screen()
795 tty3270_release(struct raw3270_view *view) in tty3270_release() argument
800 tp = (struct tty3270 *) view; in tty3270_release()
806 raw3270_put_view(&tp->view); in tty3270_release()
814 tty3270_free(struct raw3270_view *view) in tty3270_free() argument
816 tty3270_free_screen((struct tty3270 *) view); in tty3270_free()
817 tty3270_free_view((struct tty3270 *) view); in tty3270_free()
833 raw3270_del_view(&tp->view); in tty3270_del_views()
862 tty->winsize.ws_row = tp->view.rows - 2; in tty3270_open()
863 tty->winsize.ws_col = tp->view.cols; in tty3270_open()
892 rc = raw3270_add_view(&tp->view, &tty3270_fn, in tty3270_open()
901 raw3270_put_view(&tp->view); in tty3270_open()
902 raw3270_del_view(&tp->view); in tty3270_open()
909 tty->winsize.ws_row = tp->view.rows - 2; in tty3270_open()
910 tty->winsize.ws_col = tp->view.cols; in tty3270_open()
917 for (i = 0; i < tp->view.rows - 2; i++) in tty3270_open()
925 kbd_ascebc(tp->kbd, tp->view.ascebc); in tty3270_open()
927 raw3270_activate_view(&tp->view); in tty3270_open()
946 raw3270_put_view(&tp->view); in tty3270_close()
972 cell->character = tp->view.ascebc[' ']; in tty3270_put_character()
980 cell->character = tp->view.ascebc[(unsigned int) ch]; in tty3270_put_character()
1019 if (line->len < tp->view.cols) in tty3270_convert_line()
1023 i = tp->view.rows - 2 - line_nr; in tty3270_convert_line()
1074 if (line->len < tp->view.cols) { in tty3270_convert_line()
1081 if (tp->nr_up + line_nr < tp->view.rows - 2) { in tty3270_convert_line()
1111 if (tp->cy < tp->view.rows - 3) { in tty3270_lf()
1119 for (i = 0; i < tp->view.rows - 3; i++) in tty3270_lf()
1121 tp->screen[tp->view.rows - 3] = temp; in tty3270_lf()
1145 line->cells[line->len].character = tp->view.ascebc[' ']; in tty3270_insert_characters()
1150 if (n > tp->view.cols - tp->cx) in tty3270_insert_characters()
1151 n = tp->view.cols - tp->cx; in tty3270_insert_characters()
1152 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n); in tty3270_insert_characters()
1156 if (line->len > tp->view.cols) in tty3270_insert_characters()
1157 line->len = tp->view.cols; in tty3270_insert_characters()
1159 line->cells[tp->cx + n].character = tp->view.ascebc[' ']; in tty3270_insert_characters()
1203 tp->cx = min_t(int, tp->cx, tp->view.cols - 1); in tty3270_erase_characters()
1249 for (i = tp->cy + 1; i < tp->view.rows - 2; i++) { in tty3270_erase_display()
1260 for (i = 0; i < tp->view.rows - 2; i++) { in tty3270_erase_display()
1338 tp->cx = min_t(int, tp->view.cols - 1, max_cx); in tty3270_goto_xy()
1339 cy = min_t(int, tp->view.rows - 3, max_cy); in tty3270_goto_xy()
1520 spin_lock_bh(&tp->view.lock); in tty3270_do_write()
1540 if (tp->cx >= tp->view.cols) { in tty3270_do_write()
1566 if (tp->cx >= tp->view.cols) { in tty3270_do_write()
1582 spin_unlock_bh(&tp->view.lock); in tty3270_do_write()
1665 spin_lock_bh(&tp->view.lock); in tty3270_set_termios()
1674 spin_unlock_bh(&tp->view.lock); in tty3270_set_termios()