| /freebsd-12.1/sys/arm/versatile/ |
| H A D | versatile_clcd.c | 527 if (off >= adp->va_info.vi_width * adp->va_info.vi_height) in clcdr_draw_cursor() 531 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in clcdr_draw_cursor() 532 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in clcdr_draw_cursor() 582 sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2; in versatilefb_update_margins() 629 vi->vi_width = sc->width/8; in versatilefb_init() 635 if (vi->vi_width > COL) in versatilefb_init() 636 vi->vi_width = COL; in versatilefb_init() 640 sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2; in versatilefb_init() 866 if (off >= adp->va_info.vi_width * adp->va_info.vi_height) in versatilefb_putc() 869 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in versatilefb_putc() [all …]
|
| /freebsd-12.1/sys/arm/ti/am335x/ |
| H A D | am335x_lcd_syscons.c | 279 if (off >= adp->va_info.vi_width * adp->va_info.vi_height) in am335x_rend_draw_cursor() 283 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in am335x_rend_draw_cursor() 284 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in am335x_rend_draw_cursor() 344 sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2; in am335x_syscons_update_margins() 430 vi->vi_width = sc->width/8; in am335x_syscons_init() 436 if (vi->vi_width > COL) in am335x_syscons_init() 437 vi->vi_width = COL; in am335x_syscons_init() 441 sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2; in am335x_syscons_init() 688 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in am335x_syscons_putc() 689 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in am335x_syscons_putc()
|
| /freebsd-12.1/sys/arm/broadcom/bcm2835/ |
| H A D | bcm2835_fb.c | 365 if (off >= adp->va_info.vi_width * adp->va_info.vi_height) in bcmrend_draw_cursor() 369 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in bcmrend_draw_cursor() 370 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in bcmrend_draw_cursor() 429 sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2; in bcmfb_update_margins() 522 vi->vi_width = sc->width / vi->vi_cwidth; in bcmfb_init() 528 if (vi->vi_width > COL) in bcmfb_init() 529 vi->vi_width = COL; in bcmfb_init() 533 sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2; in bcmfb_init() 777 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in bcmfb_putc() 778 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in bcmfb_putc()
|
| /freebsd-12.1/sys/dev/terasic/mtl/ |
| H A D | terasic_mtl_syscons.c | 110 vi->vi_width = TERASIC_MTL_COLS; in terasic_mtl_vidsw_init() 111 if (vi->vi_width > COL) in terasic_mtl_vidsw_init() 112 vi->vi_width = COL; in terasic_mtl_vidsw_init() 383 col = (off % adp->va_info.vi_width); in terasic_mtl_vidsw_putc() 384 row = (off / adp->va_info.vi_width); in terasic_mtl_vidsw_putc()
|
| /freebsd-12.1/sys/dev/fb/ |
| H A D | splash_pcx.c | 112 info.vi_width, info.vi_height, in pcx_start() 114 if (info.vi_width >= pcx_info.width in pcx_start() 216 swidth = adp->va_info.vi_width; in pcx_draw()
|
| H A D | vga.c | 871 adp->va_line_width = info->vi_width/2; in update_adapter_info() 885 adp->va_line_width = info->vi_width; in update_adapter_info() 889 adp->va_line_width = info->vi_width; in update_adapter_info() 1156 width = bios_vmode[i].vi_width; in probe_adapters() 1244 bios_vmode[i].vi_width != 90) { in probe_adapters() 1519 if ((info->vi_width != 0) in vga_query_mode() 1520 && (info->vi_width != bios_vmode[i].vi_width)) in vga_query_mode() 2206 buf[0] = info.vi_width; /* COLS */ in vga_save_state() 2333 *row = off / adp->va_info.vi_width; in vga_read_hw_cursor() 2334 *col = off % adp->va_info.vi_width; in vga_read_hw_cursor() [all …]
|
| H A D | machfb.c | 566 vi->vi_width = strtol(buf, NULL, 10); in machfb_init() 574 sc->sc_xmargin = (sc->sc_width - (vi->vi_width * vi->vi_cwidth)) / 2; in machfb_init() 1028 regw(sc, DST_Y_X, ((((off % adp->va_info.vi_width) * in machfb_putc() 1030 (((off / adp->va_info.vi_width) * adp->va_info.vi_cheight) + in machfb_putc() 1067 x2 = (((off + i) % adp->va_info.vi_width) * in machfb_puts() 1069 y2 = (((off + i) / adp->va_info.vi_width) * in machfb_puts()
|
| H A D | creator.c | 490 vi->vi_width = strtol(buf, NULL, 10); in creator_init() 497 sc->sc_xmargin = (sc->sc_width - (vi->vi_width * vi->vi_cwidth)) / 2; in creator_init() 826 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in creator_putc() 827 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in creator_putc()
|
| H A D | vesa.c | 968 vesa_vmode[modes].vi_width = vmode.v_width; in vesa_bios_init() 1248 if ((info->vi_width != 0) in vesa_query_mode() 1249 && (info->vi_width != vesa_vmode[i].vi_width)) in vesa_query_mode() 1404 info.vi_width, vesa_adp->va_line_width); in vesa_set_mode()
|
| H A D | fb.c | 587 info->vi_width, info->vi_height, in fb_dump_mode_info() 592 info->vi_width, info->vi_height, in fb_dump_mode_info()
|
| H A D | splash_bmp.c | 88 (bmp_Init((u_char *)bmp_decoder.data, info.vi_width, in bmp_start()
|
| /freebsd-12.1/sys/dev/syscons/ |
| H A D | scvidctl.c | 120 int vi_width; member 182 if ((xsize <= 0) || (xsize > info.vi_width)) in sc_set_text_mode() 183 xsize = info.vi_width; in sc_set_text_mode() 281 scp->xpixel = info.vi_width; in sc_set_graphics_mode() 354 xsize = info.vi_width/8; in sc_set_pixel_mode() 358 if ((info.vi_width < xsize*8) || (info.vi_height < ysize*fontsize)) in sc_set_pixel_mode() 449 if (info->vi_width * info->vi_height / 8 > info->vi_window_size) in sc_support_pixel_mode()
|
| H A D | scgfbrndr.c | 183 (adp->va_info.vi_width * adp->va_info.vi_height); in gfb_draw() 189 n = (count / adp->va_info.vi_width) + 1; in gfb_draw()
|
| H A D | syscons.c | 460 info.vi_width == 800 && info.vi_height == 600 && in sc_set_vesa_mode() 517 scp->xpixel = info.vi_width; in sc_set_vesa_mode() 3572 scp->xpixel = info.vi_width; in init_scp() 3574 scp->xsize = info.vi_width/info.vi_cwidth; in init_scp() 3579 scp->xsize = info.vi_width; in init_scp()
|
| /freebsd-12.1/sys/powerpc/ofw/ |
| H A D | ofw_syscons.c | 395 vi->vi_width = sc->sc_width/8 - 2*cborder; in ofwfb_init() 402 if (vi->vi_width > COL) in ofwfb_init() 403 vi->vi_width = COL; in ofwfb_init() 407 sc->sc_xmargin = (sc->sc_width - (vi->vi_width * vi->vi_cwidth)) / 2; in ofwfb_init() 821 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in ofwfb_putc8() 822 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in ofwfb_putc8() 873 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in ofwfb_putc32() 874 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in ofwfb_putc32()
|
| /freebsd-12.1/sys/arm/freescale/imx/ |
| H A D | imx51_ipuv3.c | 561 vi->vi_width = sc->width/8; in ipu3fb_init() 567 if (vi->vi_width > COL) in ipu3fb_init() 568 vi->vi_width = COL; in ipu3fb_init() 572 sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2; in ipu3fb_init() 828 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in ipu3fb_putc() 829 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in ipu3fb_putc()
|
| /freebsd-12.1/usr.sbin/vidcontrol/ |
| H A D | vidcontrol.c | 174 size[0] = cur_info.video_mode_info.vi_width / 8; in revert() 838 if ((vesa_cols * 8 > new_mode_info.vi_width) || in video_mode() 840 size[0] = new_mode_info.vi_width / 8; in video_mode() 1157 if (info.vi_width == 0 && info.vi_height == 0 && in show_mode_info() 1168 info.vi_width, info.vi_height, in show_mode_info() 1192 info.vi_width, info.vi_height, in show_mode_info() 1199 info.vi_width, info.vi_height); in show_mode_info()
|
| /freebsd-12.1/sys/dev/syscons/warp/ |
| H A D | warp_saver.c | 141 scrw = info.vi_width; in warp_init()
|
| /freebsd-12.1/sys/dev/syscons/logo/ |
| H A D | logo_saver.c | 152 scrw = info.vi_width; in logo_init()
|
| /freebsd-12.1/sys/dev/syscons/rain/ |
| H A D | rain_saver.c | 155 scrw = info.vi_width; in rain_init()
|
| /freebsd-12.1/sys/dev/syscons/fire/ |
| H A D | fire_saver.c | 155 scrw = info.vi_width; in fire_init()
|
| /freebsd-12.1/lib/libvgl/ |
| H A D | main.c | 295 VGLDisplay->Xsize = VGLModeInfo.vi_width; in VGLInit() 409 VGLDisplay->Xsize = VGLModeInfo.vi_width; in VGLCheckSwitch()
|
| /freebsd-12.1/sys/dev/syscons/plasma/ |
| H A D | plasma_saver.c | 198 scrw = info.vi_width; in plasma_init()
|
| /freebsd-12.1/sys/sys/ |
| H A D | fbio.h | 344 int vi_width; member
|