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