Lines Matching full:view
34 struct raw3270_view view; member
39 int active; /* Fullscreen view is active. */
56 * The fullscreen view is in working order if the view in fs3270_working()
62 static int fs3270_do_io(struct raw3270_view *view, struct raw3270_request *rq) in fs3270_do_io() argument
67 fp = (struct fs3270 *)view; in fs3270_do_io()
73 /* Fullscreen view isn't ready yet. */ in fs3270_do_io()
79 rc = raw3270_start(view, rq); in fs3270_do_io()
89 * Switch to the fullscreen view.
95 fp = (struct fs3270 *)rq->view; in fs3270_reset_callback()
104 fp = (struct fs3270 *)rq->view; in fs3270_restore_callback()
114 static int fs3270_activate(struct raw3270_view *view) in fs3270_activate() argument
120 fp = (struct fs3270 *)view; in fs3270_activate()
148 rc = raw3270_start_locked(view, fp->init); in fs3270_activate()
158 * Shutdown fullscreen view.
164 fp = (struct fs3270 *)rq->view; in fs3270_save_callback()
187 static void fs3270_deactivate(struct raw3270_view *view) in fs3270_deactivate() argument
191 fp = (struct fs3270 *)view; in fs3270_deactivate()
212 fp->init->rc = raw3270_start_locked(view, fp->init); in fs3270_deactivate()
263 rc = fs3270_do_io(&fp->view, rq); in fs3270_read()
306 rc = fs3270_do_io(&fp->view, rq); in fs3270_write()
353 iocb.model = fp->view.model; in fs3270_ioctl()
354 iocb.line_cnt = fp->view.rows; in fs3270_ioctl()
355 iocb.col_cnt = fp->view.cols; in fs3270_ioctl()
388 static void fs3270_free_view(struct raw3270_view *view) in fs3270_free_view() argument
392 fp = (struct fs3270 *)view; in fs3270_free_view()
395 raw3270_request_free(((struct fs3270 *)view)->init); in fs3270_free_view()
396 kfree(view); in fs3270_free_view()
402 static void fs3270_release(struct raw3270_view *view) in fs3270_release() argument
406 fp = (struct fs3270 *)view; in fs3270_release()
411 /* View to a 3270 device. Can be console, tty or fullscreen. */
447 raw3270_put_view(&fp->view); in fs3270_open()
451 /* Allocate fullscreen view structure. */ in fs3270_open()
460 rc = raw3270_add_view(&fp->view, &fs3270_fn, minor, in fs3270_open()
463 fs3270_free_view(&fp->view); in fs3270_open()
468 ib = idal_buffer_alloc(2 * fp->view.rows * fp->view.cols + 5, 0); in fs3270_open()
470 raw3270_put_view(&fp->view); in fs3270_open()
471 raw3270_del_view(&fp->view); in fs3270_open()
477 rc = raw3270_activate_view(&fp->view); in fs3270_open()
479 raw3270_put_view(&fp->view); in fs3270_open()
480 raw3270_del_view(&fp->view); in fs3270_open()
503 raw3270_reset(&fp->view); in fs3270_close()
504 raw3270_put_view(&fp->view); in fs3270_close()
505 raw3270_del_view(&fp->view); in fs3270_close()