Lines Matching refs:screen
100 struct tty3270_line *screen; member
193 return tp->screen + tty3270_line_increment(tp, tp->line_write_start, num); in tty3270_get_write_line()
198 return tp->screen + tty3270_line_increment(tp, tp->line_view_start, num - tp->nr_up); in tty3270_get_view_line()
488 tp->screen[i].dirty = 0; in tty3270_update_lines_visible()
893 struct tty3270_line *screen; in tty3270_alloc_screen() local
897 screen = kcalloc(allocated, sizeof(struct tty3270_line), GFP_KERNEL); in tty3270_alloc_screen()
898 if (!screen) in tty3270_alloc_screen()
901 screen[lines].cells = kcalloc(cols, sizeof(struct tty3270_cell), GFP_KERNEL); in tty3270_alloc_screen()
902 if (!screen[lines].cells) in tty3270_alloc_screen()
906 return screen; in tty3270_alloc_screen()
909 kfree(screen[lines].cells); in tty3270_alloc_screen()
910 kfree(screen); in tty3270_alloc_screen()
950 static void tty3270_free_screen(struct tty3270_line *screen, int old_lines) in tty3270_free_screen() argument
955 kfree(screen[lines].cells); in tty3270_free_screen()
956 kfree(screen); in tty3270_free_screen()
967 struct tty3270_line *screen, *oscreen; in tty3270_resize() local
990 screen = tty3270_alloc_screen(tp, new_rows, new_cols, &new_allocated); in tty3270_resize()
991 if (IS_ERR(screen)) in tty3270_resize()
1000 oscreen = tp->screen; in tty3270_resize()
1001 tp->screen = screen; in tty3270_resize()
1031 tty3270_free_screen(screen, new_rows); in tty3270_resize()
1063 tty3270_free_screen(tp->screen, tp->allocated_lines); in tty3270_free()
1114 tp->screen = tty3270_alloc_screen(tp, tp->view.rows, tp->view.cols, in tty3270_create_view()
1116 if (IS_ERR(tp->screen)) { in tty3270_create_view()
1117 rc = PTR_ERR(tp->screen); in tty3270_create_view()
1167 tty3270_free_screen(tp->screen, tp->view.rows); in tty3270_create_view()