Lines Matching full:view
3 * IBM/3270 Driver - console view.
40 * Main 3270 console view data structure.
43 struct raw3270_view view; member
88 * "console view" in the lower left corner and "Running"/"More..."/"Holding"
98 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_update_status()
114 raw3270_buffer_address(cp->view.dev, cp->status->string + 1, in con3270_create_status()
115 cp->view.cols * (cp->view.rows - 1)); in con3270_create_status()
116 raw3270_buffer_address(cp->view.dev, cp->status->string + 21, in con3270_create_status()
117 cp->view.cols * cp->view.rows - 8); in con3270_create_status()
119 codepage_convert(cp->view.ascebc, cp->status->string + 8, 12); in con3270_create_status()
120 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_create_status()
136 raw3270_buffer_address(cp->view.dev, s->string + s->len - 3, in con3270_update_string()
137 cp->view.cols * (nr + 1)); in con3270_update_string()
155 nr = cp->view.rows - 2 + cp->nr_up; in con3270_rebuild_update()
157 if (nr < cp->view.rows - 1) in con3270_rebuild_update()
187 if (cp->nr_up != 0 && cp->nr_up + cp->view.rows > cp->nr_lines) { in con3270_alloc_string()
188 cp->nr_up = cp->nr_lines - cp->view.rows + 1; in con3270_alloc_string()
202 xchg(&((struct con3270 *) rq->view)->write, rq); in con3270_write_callback()
219 if (!auto_update && !raw3270_view_active(&cp->view)) in con3270_update()
221 if (cp->view.dev) in con3270_update()
222 raw3270_activate_view(&cp->view); in con3270_update()
230 spin_lock_irqsave(&cp->view.lock, flags); in con3270_update()
261 raw3270_buffer_address(cp->view.dev, prolog + 1, in con3270_update()
262 cp->view.cols * cp->line_nr); in con3270_update()
279 rc = raw3270_start(&cp->view, wrq); in con3270_update()
288 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_update()
304 cp = (struct con3270 *) rrq->view; in con3270_read_tasklet()
305 spin_lock_irqsave(&cp->view.lock, flags); in con3270_read_tasklet()
313 case 0xf3: /* PF3: deactivate the console view. */ in con3270_read_tasklet()
321 nr_up += cp->view.rows - 2; in con3270_read_tasklet()
322 if (nr_up + cp->view.rows - 1 > cp->nr_lines) { in con3270_read_tasklet()
323 nr_up = cp->nr_lines - cp->view.rows + 1; in con3270_read_tasklet()
329 nr_up -= cp->view.rows - 2; in con3270_read_tasklet()
340 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_read_tasklet()
346 raw3270_start(&cp->view, cp->kreset); in con3270_read_tasklet()
349 raw3270_deactivate_view(&cp->view); in con3270_read_tasklet()
353 raw3270_put_view(&cp->view); in con3270_read_tasklet()
362 raw3270_get_view(rq->view); in con3270_read_callback()
364 tasklet_schedule(&((struct con3270 *) rq->view)->readlet); in con3270_read_callback()
385 rc = raw3270_start_irq(&cp->view, rrq); in con3270_issue_read()
391 * Switch to the console view.
394 con3270_activate(struct raw3270_view *view) in con3270_activate() argument
398 cp = (struct con3270 *) view; in con3270_activate()
405 con3270_deactivate(struct raw3270_view *view) in con3270_deactivate() argument
409 cp = (struct con3270 *) view; in con3270_deactivate()
433 /* Console view to a 3270 device. */
455 cp->view.ascebc[(c < ' ') ? ' ' : c]; in con3270_cline_insert()
469 size = (cp->cline->len < cp->view.cols - 5) ? in con3270_cline_end()
470 cp->cline->len + 4 : cp->view.cols; in con3270_cline_end()
473 if (cp->cline->len < cp->view.cols - 5) { in con3270_cline_end()
478 s->string[size] = cp->view.ascebc[' ']; in con3270_cline_end()
501 spin_lock_irqsave(&cp->view.lock, flags); in con3270_write()
508 if (c == '\n' || cp->cline->len >= cp->view.cols) in con3270_write()
513 if (cp->view.dev && !timer_pending(&cp->timer)) in con3270_write()
515 spin_unlock_irqrestore(&cp->view.lock,flags); in con3270_write()
532 raw3270_wait_cons_dev(cp->view.dev); in con3270_wait_write()
552 if (!cp->view.dev) in con3270_notify()
554 if (!raw3270_view_lock_unavailable(&cp->view)) in con3270_notify()
555 raw3270_activate_view(&cp->view); in con3270_notify()
556 if (!spin_trylock_irqsave(&cp->view.lock, flags)) in con3270_notify()
563 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_notify()
565 spin_lock_irqsave(&cp->view.lock, flags); in con3270_notify()
568 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_notify()
620 condev->view.dev = rp; in con3270_init()
634 raw3270_add_view(&condev->view, &con3270_fn, 1, RAW3270_VIEW_LOCK_IRQ); in con3270_init()
641 condev->cline = alloc_string(&condev->freemem, condev->view.cols); in con3270_init()