/freebsd/sys/dev/vt/ |
H A D | vt_buf.c | 51 (d).tp_col = (s).tp_col; \ 148 vb->vb_mark_start.tp_col = vb->vb_mark_end.tp_col; in vthistory_addlines() 215 (vb->vb_cursor.tp_row == row) && (vb->vb_cursor.tp_col == col)) in vtbuf_iscursor() 220 if (vb->vb_mark_start.tp_col == vb->vb_mark_end.tp_col && in vtbuf_iscursor() 224 sc = vb->vb_mark_start.tp_col; in vtbuf_iscursor() 226 ec = vb->vb_mark_end.tp_col; in vtbuf_iscursor() 272 if (vb->vb_dirtyrect.tr_begin.tp_col > area->tr_begin.tp_col) in vtbuf_dirty() 273 vb->vb_dirtyrect.tr_begin.tp_col = area->tr_begin.tp_col; in vtbuf_dirty() 276 if (vb->vb_dirtyrect.tr_end.tp_col < area->tr_end.tp_col) in vtbuf_dirty() 277 vb->vb_dirtyrect.tr_end.tp_col = area->tr_end.tp_col; in vtbuf_dirty() [all …]
|
H A D | vt_core.c | 251 .vb_mark_start = {.tp_row = 0, .tp_col = 0,}, 252 .vb_mark_end = {.tp_row = 0, .tp_col = 0,}, 255 .tp_col = _VTDEFW, 653 size->tp_col = vd->vd_width; in vt_termsize() 657 size->tp_col = MIN(size->tp_col / vf->vf_width, in vt_termsize() 666 rect->tr_begin.tp_row = rect->tr_begin.tp_col = 0; in vt_termrect() 671 rect->tr_end.tp_col = vd->vd_width; in vt_termrect() 679 rect->tr_end.tp_col = MIN(rect->tr_end.tp_col / vf->vf_width, in vt_termrect() 711 vw->vw_draw_area.tr_begin.tp_col = 0; in vt_compute_drawable_area() 715 vw->vw_draw_area.tr_end.tp_col = vd->vd_width; in vt_compute_drawable_area() [all …]
|
/freebsd/sys/teken/ |
H A D | teken_subr.h | 105 tr.tr_begin.tp_col = 0; in teken_subr_do_scroll() 107 tr.tr_end.tp_col = t->t_winsize.tp_col; in teken_subr_do_scroll() 109 tp.tp_col = 0; in teken_subr_do_scroll() 118 tr.tr_begin.tp_col = 0; in teken_subr_do_scroll() 120 tr.tr_end.tp_col = t->t_winsize.tp_col; in teken_subr_do_scroll() 129 tr.tr_begin.tp_col = 0; in teken_subr_do_scroll() 131 tr.tr_end.tp_col = t->t_winsize.tp_col; in teken_subr_do_scroll() 133 tp.tp_col = 0; in teken_subr_do_scroll() 143 tr.tr_begin.tp_col = 0; in teken_subr_do_scroll() 144 tr.tr_end.tp_col = t->t_winsize.tp_col; in teken_subr_do_scroll() [all …]
|
H A D | teken.c | 92 teken_assert(t->t_cursor.tp_col < t->t_winsize.tp_col); in teken_funcs_cursor() 104 teken_assert(p->tp_col < t->t_winsize.tp_col); in teken_funcs_putchar() 117 teken_assert(r->tr_end.tp_col > r->tr_begin.tp_col); in teken_funcs_fill() 118 teken_assert(r->tr_end.tp_col <= t->t_winsize.tp_col); in teken_funcs_fill() 130 teken_assert(r->tr_end.tp_col > r->tr_begin.tp_col); in teken_funcs_copy() 131 teken_assert(r->tr_end.tp_col <= t->t_winsize.tp_col); in teken_funcs_copy() 133 teken_assert(p->tp_col + (r->tr_end.tp_col - r->tr_begin.tp_col) <= t->t_winsize.tp_col); in teken_funcs_copy() 181 teken_pos_t tp = { .tp_row = 24, .tp_col = 80 }; in teken_init() 263 teken_assert(t->t_cursor.tp_col < t->t_winsize.tp_col); in teken_input_char() 265 teken_assert(t->t_saved_cursor.tp_col < t->t_winsize.tp_col); in teken_input_char() [all …]
|
H A D | teken.h | 64 teken_unit_t tp_col; member
|
/freebsd/sys/teken/demo/ |
H A D | teken_demo.c | 87 assert(p->tp_col < NCOLS); in printchar() 89 px = &buffer[p->tp_col][p->tp_row]; in printchar() 123 mvaddstr(p->tp_row, p->tp_col, str); in printchar() 138 move(p->tp_row, p->tp_col); in test_cursor() 146 buffer[p->tp_col][p->tp_row].c = c; in test_putchar() 147 buffer[p->tp_col][p->tp_row].a = *a; in test_putchar() 159 for (p.tp_col = r->tr_begin.tp_col; p.tp_col < r->tr_end.tp_col; p.tp_col++) in test_fill() 175 ncol = r->tr_end.tp_col - r->tr_begin.tp_col; in test_copy() 179 if (p->tp_col < r->tr_begin.tp_col) { in test_copy() 184 d.tp_col = p->tp_col + x; in test_copy() [all …]
|
/freebsd/stand/i386/libi386/ |
H A D | vidconsole.c | 113 for (p.tp_col = r->tr_begin.tp_col; in term_image_display() 114 p.tp_col < r->tr_end.tp_col; p.tp_col++) { in term_image_display() 115 idx = p.tp_col + p.tp_row * state->tg_tp.tp_col; in term_image_display() 116 if (idx >= state->tg_tp.tp_col * state->tg_tp.tp_row) in term_image_display() 171 if (p->tp_col == TEXT_COLS) in vidc_text_cursor() 172 col = p->tp_col - 1; in vidc_text_cursor() 174 col = p->tp_col; in vidc_text_cursor() 320 idx = p->tp_col + p->tp_row * state->tg_tp.tp_col; in vidc_text_printchar() 348 idx = p->tp_col + p->tp_row * state->tg_tp.tp_col; in vidc_text_putchar() 349 if (idx >= state->tg_tp.tp_col * state->tg_tp.tp_row) in vidc_text_putchar() [all …]
|
/freebsd/stand/efi/libefi/ |
H A D | efi_console.c | 154 for (p.tp_col = r->tr_begin.tp_col; in term_image_display() 155 p.tp_col < r->tr_end.tp_col; p.tp_col++) { in term_image_display() 156 idx = p.tp_col + p.tp_row * state->tg_tp.tp_col; in term_image_display() 157 if (idx >= state->tg_tp.tp_col * state->tg_tp.tp_row) in term_image_display() 185 col = p->tp_col; in efi_text_cursor() 186 if (p->tp_col > in efi_text_cursor() [all...] |
/freebsd/sys/dev/syscons/ |
H A D | scterm-teken.c | 292 tp.tp_col = scp->xsize; in scteken_sync_internal() 295 tp.tp_col = scp->xpos; in scteken_sync_internal() 384 sc_move_cursor(scp, p->tp_col, p->tp_row); in scteken_cursor() 548 cursor = tp->tp_row * scp->xsize + tp->tp_col; in scteken_putchar() 578 if (r->tr_begin.tp_col == 0 && r->tr_end.tp_col == scp->xsize) { in scteken_fill() 585 width = r->tr_end.tp_col - r->tr_begin.tp_col; in scteken_fill() 589 scp->xsize + r->tr_begin.tp_col, in scteken_fill() 596 r->tr_begin.tp_row * scp->xsize + r->tr_begin.tp_col); in scteken_fill() 598 (r->tr_end.tp_row - 1) * scp->xsize + (r->tr_end.tp_col - 1)); in scteken_fill() 616 r->tr_begin.tp_col == 0 && r->tr_end.tp_col == scp->xsize && in scteken_copy() [all …]
|
/freebsd/stand/common/ |
H A D | gfx_fb.c | 944 x = state->tg_origin.tp_col + p->tp_col * width; in gfx_fb_printchar() 961 idx = p->tp_col + p->tp_row * state->tg_tp.tp_col; in gfx_fb_putchar() 962 if (idx >= state->tg_tp.tp_col * state->tg_tp.tp_row) in gfx_fb_putchar() 1003 row = &screen_buffer[p.tp_row * state->tg_tp.tp_col]; in gfx_fb_fill() 1004 for (p.tp_col = r->tr_begin.tp_col; in gfx_fb_fill() 1005 p.tp_col < r->tr_end.tp_col; in gfx_fb_fill() [all...] |
/freebsd/sys/dev/vt/hw/fb/ |
H A D | vt_fb.c | 296 if (x + width > vw->vw_draw_area.tr_end.tp_col) { in vt_fb_bitblt_bitmap() 297 if (x >= vw->vw_draw_area.tr_end.tp_col) in vt_fb_bitblt_bitmap() 299 width = vw->vw_draw_area.tr_end.tp_col - x; in vt_fb_bitblt_bitmap() 362 if (x + width > vw->vw_draw_area.tr_end.tp_col) { in vt_fb_bitblt_text() 363 if (x >= vw->vw_draw_area.tr_end.tp_col) in vt_fb_bitblt_text() 365 width = vw->vw_draw_area.tr_end.tp_col - x; in vt_fb_bitblt_text() 396 for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; in vt_fb_bitblt_text() 399 vw->vw_draw_area.tr_begin.tp_col; in vt_fb_bitblt_text() 436 drawn_area.tr_begin.tp_col in vt_fb_postswitch() [all...] |
/freebsd/sys/dev/vt/hw/vga/ |
H A D | vt_vga.c | 641 if (i < vw->vw_draw_area.tr_begin.tp_col) { in vga_bitblt_one_text_pixels_block() 647 i = vw->vw_draw_area.tr_begin.tp_col; in vga_bitblt_one_text_pixels_block() 651 i < vw->vw_draw_area.tr_end.tp_col) { in vga_bitblt_one_text_pixels_block() 659 col = (i - vw->vw_draw_area.tr_begin.tp_col) / vf->vf_width; in vga_bitblt_one_text_pixels_block() 692 (col * vf->vf_width + vw->vw_draw_area.tr_begin.tp_col); in vga_bitblt_one_text_pixels_block() 695 vw->vw_draw_area.tr_begin.tp_col, in vga_bitblt_one_text_pixels_block() 697 vw->vw_draw_area.tr_end.tp_col); in vga_bitblt_one_text_pixels_block() 699 vw->vw_draw_area.tr_begin.tp_col; in vga_bitblt_one_text_pixels_block() 723 drawn_area.tr_begin.tp_col = x; in vga_bitblt_one_text_pixels_block() 725 drawn_area.tr_end.tp_col in vga_bitblt_one_text_pixels_block() [all...] |
/freebsd/sys/dev/vt/hw/ofwfb/ |
H A D | ofwfb.c | 213 c < width && x + c < vw->vw_draw_area.tr_end.tp_col; in ofwfb_bitblt_bitmap() 270 for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; in ofwfb_bitblt_text() 273 vw->vw_draw_area.tr_begin.tp_col; in ofwfb_bitblt_text() 294 drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width; in ofwfb_bitblt_text() 296 drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf->vf_width; in ofwfb_bitblt_text() 303 vd->vd_mx_drawn + vw->vw_draw_area.tr_begin.tp_col,
|
/freebsd/sys/kern/ |
H A D | subr_terminal.c | 258 r.tr_begin.tp_row = r.tr_begin.tp_col = 0; in terminal_set_winsize_blank() 260 r.tr_end.tp_col = size->ws_col; in terminal_set_winsize_blank() 455 vi->mv_col = p->tp_col; in termtty_ioctl() 459 vi->mv_csz = p->tp_col; in termtty_ioctl() 486 p.tp_col = 0; in termtty_ioctl()
|
/freebsd/stand/liblua/ |
H A D | gfx_utils.c | 66 x1 = gfx_state.tg_origin.tp_col + x1 * gfx_state.tg_font.vf_width; in lua_term_putimage() 69 x2 = gfx_state.tg_origin.tp_col + in lua_term_putimage()
|
/freebsd/stand/ficl/ |
H A D | gfx_loader.c | 81 x1 = gfx_state.tg_origin.tp_col + x1 * gfx_state.tg_font.vf_width; in ficl_term_putimage() 84 x2 = gfx_state.tg_origin.tp_col + in ficl_term_putimage()
|
/freebsd/sys/dev/virtio/gpu/ |
H A D | virtio_gpu.c | 158 x = area->tr_begin.tp_col * vw->vw_font->vf_width + vw->vw_draw_area.tr_begin.tp_col; in vtgpu_fb_bitblt_text() 160 width = area->tr_end.tp_col * vw->vw_font->vf_width + vw->vw_draw_area.tr_begin.tp_col - x; in vtgpu_fb_bitblt_text()
|