Lines Matching refs:view

3  * IBM/3270 Driver - console view.
39 * Main 3270 console view data structure.
42 struct raw3270_view view;
87 * "console view" in the lower left corner and "Running"/"More..."/"Holding"
97 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7);
113 raw3270_buffer_address(cp->view.dev, cp->status->string + 1,
114 cp->view.cols * (cp->view.rows - 1));
115 raw3270_buffer_address(cp->view.dev, cp->status->string + 21,
116 cp->view.cols * cp->view.rows - 8);
118 codepage_convert(cp->view.ascebc, cp->status->string + 8, 12);
119 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7);
135 raw3270_buffer_address(cp->view.dev, s->string + s->len - 3,
136 cp->view.cols * (nr + 1));
154 nr = cp->view.rows - 2 + cp->nr_up;
156 if (nr < cp->view.rows - 1)
186 if (cp->nr_up != 0 && cp->nr_up + cp->view.rows > cp->nr_lines) {
187 cp->nr_up = cp->nr_lines - cp->view.rows + 1;
201 xchg(&((struct con3270 *) rq->view)->write, rq);
218 if (!auto_update && !raw3270_view_active(&cp->view))
220 if (cp->view.dev)
221 raw3270_activate_view(&cp->view);
229 spin_lock_irqsave(&cp->view.lock, flags);
260 raw3270_buffer_address(cp->view.dev, prolog + 1,
261 cp->view.cols * cp->line_nr);
278 rc = raw3270_start(&cp->view, wrq);
287 spin_unlock_irqrestore(&cp->view.lock, flags);
301 cp = (struct con3270 *) rrq->view;
302 spin_lock_irqsave(&cp->view.lock, flags);
310 case 0xf3: /* PF3: deactivate the console view. */
318 nr_up += cp->view.rows - 2;
319 if (nr_up + cp->view.rows - 1 > cp->nr_lines) {
320 nr_up = cp->nr_lines - cp->view.rows + 1;
326 nr_up -= cp->view.rows - 2;
337 spin_unlock_irqrestore(&cp->view.lock, flags);
343 raw3270_start(&cp->view, cp->kreset);
346 raw3270_deactivate_view(&cp->view);
350 raw3270_put_view(&cp->view);
359 raw3270_get_view(rq->view);
361 tasklet_schedule(&((struct con3270 *) rq->view)->readlet);
382 rc = raw3270_start_irq(&cp->view, rrq);
388 * Switch to the console view.
391 con3270_activate(struct raw3270_view *view)
395 cp = (struct con3270 *) view;
402 con3270_deactivate(struct raw3270_view *view)
406 cp = (struct con3270 *) view;
430 /* Console view to a 3270 device. */
452 cp->view.ascebc[(c < ' ') ? ' ' : c];
466 size = (cp->cline->len < cp->view.cols - 5) ?
467 cp->cline->len + 4 : cp->view.cols;
470 if (cp->cline->len < cp->view.cols - 5) {
475 s->string[size] = cp->view.ascebc[' '];
498 spin_lock_irqsave(&cp->view.lock, flags);
505 if (c == '\n' || cp->cline->len >= cp->view.cols)
510 if (cp->view.dev && !timer_pending(&cp->timer))
512 spin_unlock_irqrestore(&cp->view.lock,flags);
529 raw3270_wait_cons_dev(cp->view.dev);
545 if (!cp->view.dev)
547 raw3270_pm_unfreeze(&cp->view);
548 raw3270_activate_view(&cp->view);
549 spin_lock_irqsave(&cp->view.lock, flags);
555 spin_unlock_irqrestore(&cp->view.lock, flags);
557 spin_lock_irqsave(&cp->view.lock, flags);
560 spin_unlock_irqrestore(&cp->view.lock, flags);
617 condev->view.dev = rp;
632 raw3270_add_view(&condev->view, &con3270_fn, 1, RAW3270_VIEW_LOCK_IRQ);
639 condev->cline = alloc_string(&condev->freemem, condev->view.cols);