• Home
  • Raw
  • Download

Lines Matching refs:view

41 	struct raw3270_view view;  member
96 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_update_status()
112 raw3270_buffer_address(cp->view.dev, cp->status->string + 1, in con3270_create_status()
113 cp->view.cols * (cp->view.rows - 1)); in con3270_create_status()
114 raw3270_buffer_address(cp->view.dev, cp->status->string + 21, in con3270_create_status()
115 cp->view.cols * cp->view.rows - 8); in con3270_create_status()
117 codepage_convert(cp->view.ascebc, cp->status->string + 8, 12); in con3270_create_status()
118 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_create_status()
127 if (s->len >= cp->view.cols - 5) in con3270_update_string()
129 raw3270_buffer_address(cp->view.dev, s->string + s->len - 3, in con3270_update_string()
130 cp->view.cols * (nr + 1)); in con3270_update_string()
148 nr = cp->view.rows - 2 + cp->nr_up; in con3270_rebuild_update()
150 if (nr < cp->view.rows - 1) in con3270_rebuild_update()
180 if (cp->nr_up != 0 && cp->nr_up + cp->view.rows > cp->nr_lines) { in con3270_alloc_string()
181 cp->nr_up = cp->nr_lines - cp->view.rows + 1; in con3270_alloc_string()
195 xchg(&((struct con3270 *) rq->view)->write, rq); in con3270_write_callback()
211 if (!auto_update && !raw3270_view_active(&cp->view)) in con3270_update()
213 if (cp->view.dev) in con3270_update()
214 raw3270_activate_view(&cp->view); in con3270_update()
222 spin_lock_irqsave(&cp->view.lock, flags); in con3270_update()
253 raw3270_buffer_address(cp->view.dev, prolog + 1, in con3270_update()
254 cp->view.cols * cp->line_nr); in con3270_update()
271 rc = raw3270_start(&cp->view, wrq); in con3270_update()
280 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_update()
294 cp = (struct con3270 *) rrq->view; in con3270_read_tasklet()
295 spin_lock_irqsave(&cp->view.lock, flags); in con3270_read_tasklet()
311 nr_up += cp->view.rows - 2; in con3270_read_tasklet()
312 if (nr_up + cp->view.rows - 1 > cp->nr_lines) { in con3270_read_tasklet()
313 nr_up = cp->nr_lines - cp->view.rows + 1; in con3270_read_tasklet()
319 nr_up -= cp->view.rows - 2; in con3270_read_tasklet()
330 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_read_tasklet()
336 raw3270_start(&cp->view, cp->kreset); in con3270_read_tasklet()
339 raw3270_deactivate_view(&cp->view); in con3270_read_tasklet()
343 raw3270_put_view(&cp->view); in con3270_read_tasklet()
352 raw3270_get_view(rq->view); in con3270_read_callback()
354 tasklet_schedule(&((struct con3270 *) rq->view)->readlet); in con3270_read_callback()
375 rc = raw3270_start_irq(&cp->view, rrq); in con3270_issue_read()
384 con3270_activate(struct raw3270_view *view) in con3270_activate() argument
388 cp = (struct con3270 *) view; in con3270_activate()
395 con3270_deactivate(struct raw3270_view *view) in con3270_deactivate() argument
399 cp = (struct con3270 *) view; in con3270_deactivate()
446 cp->view.ascebc[(c < ' ') ? ' ' : c]; in con3270_cline_insert()
460 size = (cp->cline->len < cp->view.cols - 5) ? in con3270_cline_end()
461 cp->cline->len + 4 : cp->view.cols; in con3270_cline_end()
464 if (s->len < cp->view.cols - 5) { in con3270_cline_end()
469 s->string[size] = cp->view.ascebc[' ']; in con3270_cline_end()
492 spin_lock_irqsave(&cp->view.lock, flags); in con3270_write()
499 if (c == '\n' || cp->cline->len >= cp->view.cols) in con3270_write()
504 if (cp->view.dev && !timer_pending(&cp->timer)) in con3270_write()
506 spin_unlock_irqrestore(&cp->view.lock,flags); in con3270_write()
523 raw3270_wait_cons_dev(cp->view.dev); in con3270_wait_write()
539 if (!cp->view.dev) in con3270_flush()
541 raw3270_pm_unfreeze(&cp->view); in con3270_flush()
542 raw3270_activate_view(&cp->view); in con3270_flush()
543 spin_lock_irqsave(&cp->view.lock, flags); in con3270_flush()
549 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_flush()
551 spin_lock_irqsave(&cp->view.lock, flags); in con3270_flush()
554 spin_unlock_irqrestore(&cp->view.lock, flags); in con3270_flush()
609 condev->view.dev = rp; in con3270_init()
625 raw3270_add_view(&condev->view, &con3270_fn, 1); in con3270_init()
632 condev->cline = alloc_string(&condev->freemem, condev->view.cols); in con3270_init()