Home
last modified time | relevance | path

Searched refs:gc_image (Results 1 – 4 of 4) sorted by relevance

/freebsd/usr.sbin/bhyve/
H A Dbhyvegc.c38 struct bhyvegc_image *gc_image; member
46 struct bhyvegc_image *gc_image; in bhyvegc_init() local
50 gc_image = calloc(1, sizeof(struct bhyvegc_image)); in bhyvegc_init()
51 gc_image->width = width; in bhyvegc_init()
52 gc_image->height = height; in bhyvegc_init()
54 gc_image->data = fbaddr; in bhyvegc_init()
57 gc_image->data = calloc(width * height, sizeof (uint32_t)); in bhyvegc_init()
61 gc->gc_image = gc_image; in bhyvegc_init()
70 if (gc->gc_image->data && gc->gc_image->data != fbaddr) in bhyvegc_set_fbaddr()
71 free(gc->gc_image->data); in bhyvegc_set_fbaddr()
[all …]
H A Dpci_fbuf.c108 struct bhyvegc_image *gc_image; member
156 if (!sc->gc_image->vgamode && sc->memregs.width == 0 && in pci_fbuf_write()
159 sc->gc_image->vgamode = 1; in pci_fbuf_write()
162 } else if (sc->gc_image->vgamode && sc->memregs.width != 0 && in pci_fbuf_write()
165 sc->gc_image->vgamode = 0; in pci_fbuf_write()
349 if (sc->vga_full && sc->gc_image->vgamode) { in pci_fbuf_render()
429 sc->gc_image = console_get_image(); in pci_fbuf_init()
H A Drfb.c267 struct bhyvegc_image *gc_image; in rfb_send_server_init_msg() local
270 gc_image = console_get_image(); in rfb_send_server_init_msg()
272 sinfo.width = htons(gc_image->width); in rfb_send_server_init_msg()
273 sinfo.height = htons(gc_image->height); in rfb_send_server_init_msg()
667 struct bhyvegc_image *gc_image; in rfb_send_screen() local
696 gc_image = console_get_image(); in rfb_send_screen()
699 if (rc->crc_width != gc_image->width || in rfb_send_screen()
700 rc->crc_height != gc_image->height) { in rfb_send_screen()
704 rc->crc_width = gc_image->width; in rfb_send_screen()
705 rc->crc_height = gc_image->height; in rfb_send_screen()
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A Dvga.c55 struct bhyvegc_image *gc_image; member
191 old_width = sc->gc_image->width; in vga_check_size()
192 old_height = sc->gc_image->height; in vga_check_size()
250 sc->gc_image->data[offset] = vga_get_pixel(sc, x, y); in vga_render_graphics()
313 sc->gc_image->data[offset] = vga_get_text_pixel(sc, x, y); in vga_render_text()
326 memset(sc->gc_image->data, 0, in vga_render()
327 sc->gc_image->width * sc->gc_image->height * in vga_render()
1174 if (sc->gc_image) in vga_port_out_handler()
1175 sc->gc_image->vgamode = 1; in vga_port_out_handler()
1287 sc->gc_image = console_get_image(); in vga_init()