Lines Matching refs:view
42 struct raw3270_view view; member
97 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_update_status()
113 raw3270_buffer_address(cp->view.dev, cp->status->string + 1, in con3270_create_status()
114 cp->view.cols * (cp->view.rows - 1)); in con3270_create_status()
115 raw3270_buffer_address(cp->view.dev, cp->status->string + 21, in con3270_create_status()
116 cp->view.cols * cp->view.rows - 8); in con3270_create_status()
118 codepage_convert(cp->view.ascebc, cp->status->string + 8, 12); in con3270_create_status()
119 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_create_status()
135 raw3270_buffer_address(cp->view.dev, s->string + s->len - 3, in con3270_update_string()
136 cp->view.cols * (nr + 1)); in con3270_update_string()
154 nr = cp->view.rows - 2 + cp->nr_up; in con3270_rebuild_update()
156 if (nr < cp->view.rows - 1) in con3270_rebuild_update()
186 if (cp->nr_up != 0 && cp->nr_up + cp->view.rows > cp->nr_lines) { in con3270_alloc_string()
187 cp->nr_up = cp->nr_lines - cp->view.rows + 1; in con3270_alloc_string()
201 xchg(&((struct con3270 *) rq->view)->write, rq); in con3270_write_callback()
218 if (!auto_update && !raw3270_view_active(&cp->view)) in con3270_update()
220 if (cp->view.dev) in con3270_update()
221 raw3270_activate_view(&cp->view); in con3270_update()
229 spin_lock_irqsave(&cp->view.lock, flags); in con3270_update()
260 raw3270_buffer_address(cp->view.dev, prolog + 1, in con3270_update()
261 cp->view.cols * cp->line_nr); in con3270_update()
278 rc = raw3270_start(&cp->view, wrq); in con3270_update()
287 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_update()
301 cp = (struct con3270 *) rrq->view; in con3270_read_tasklet()
302 spin_lock_irqsave(&cp->view.lock, flags); in con3270_read_tasklet()
318 nr_up += cp->view.rows - 2; in con3270_read_tasklet()
319 if (nr_up + cp->view.rows - 1 > cp->nr_lines) { in con3270_read_tasklet()
320 nr_up = cp->nr_lines - cp->view.rows + 1; in con3270_read_tasklet()
326 nr_up -= cp->view.rows - 2; in con3270_read_tasklet()
337 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_read_tasklet()
343 raw3270_start(&cp->view, cp->kreset); in con3270_read_tasklet()
346 raw3270_deactivate_view(&cp->view); in con3270_read_tasklet()
350 raw3270_put_view(&cp->view); in con3270_read_tasklet()
359 raw3270_get_view(rq->view); in con3270_read_callback()
361 tasklet_schedule(&((struct con3270 *) rq->view)->readlet); in con3270_read_callback()
382 rc = raw3270_start_irq(&cp->view, rrq); in con3270_issue_read()
391 con3270_activate(struct raw3270_view *view) in con3270_activate() argument
395 cp = (struct con3270 *) view; in con3270_activate()
402 con3270_deactivate(struct raw3270_view *view) in con3270_deactivate() argument
406 cp = (struct con3270 *) view; in con3270_deactivate()
452 cp->view.ascebc[(c < ' ') ? ' ' : c]; in con3270_cline_insert()
466 size = (cp->cline->len < cp->view.cols - 5) ? in con3270_cline_end()
467 cp->cline->len + 4 : cp->view.cols; in con3270_cline_end()
470 if (cp->cline->len < cp->view.cols - 5) { in con3270_cline_end()
475 s->string[size] = cp->view.ascebc[' ']; in con3270_cline_end()
498 spin_lock_irqsave(&cp->view.lock, flags); in con3270_write()
505 if (c == '\n' || cp->cline->len >= cp->view.cols) in con3270_write()
510 if (cp->view.dev && !timer_pending(&cp->timer)) in con3270_write()
512 spin_unlock_irqrestore(&cp->view.lock,flags); in con3270_write()
529 raw3270_wait_cons_dev(cp->view.dev); in con3270_wait_write()
545 if (!cp->view.dev) in con3270_flush()
547 raw3270_pm_unfreeze(&cp->view); in con3270_flush()
548 raw3270_activate_view(&cp->view); in con3270_flush()
549 spin_lock_irqsave(&cp->view.lock, flags); in con3270_flush()
555 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_flush()
557 spin_lock_irqsave(&cp->view.lock, flags); in con3270_flush()
560 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_flush()
617 condev->view.dev = rp; in con3270_init()
632 raw3270_add_view(&condev->view, &con3270_fn, 1, RAW3270_VIEW_LOCK_IRQ); in con3270_init()
639 condev->cline = alloc_string(&condev->freemem, condev->view.cols); in con3270_init()