Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/bhyve/
H A Dbhyvegc.c44 struct bhyvegc_image *gc_image; member
52 struct bhyvegc_image *gc_image; in bhyvegc_init() local
56 gc_image = calloc(1, sizeof(struct bhyvegc_image)); in bhyvegc_init()
57 gc_image->width = width; in bhyvegc_init()
58 gc_image->height = height; in bhyvegc_init()
60 gc_image->data = fbaddr; in bhyvegc_init()
63 gc_image->data = calloc(width * height, sizeof (uint32_t)); in bhyvegc_init()
67 gc->gc_image = gc_image; in bhyvegc_init()
70 pthread_mutex_init(&gc_image->mtx, NULL); in bhyvegc_init()
80 pthread_mutex_lock(&gc->gc_image->mtx); in bhyvegc_set_fbaddr()
[all …]
H A Dpci_fbuf.c113 struct bhyvegc_image *gc_image; member
161 if (!sc->gc_image->vgamode && sc->memregs.width == 0 && in pci_fbuf_write()
164 sc->gc_image->vgamode = 1; in pci_fbuf_write()
167 } else if (sc->gc_image->vgamode && sc->memregs.width != 0 && in pci_fbuf_write()
170 sc->gc_image->vgamode = 0; in pci_fbuf_write()
363 if (sc->vga_full && sc->gc_image->vgamode) { in pci_fbuf_render()
447 sc->gc_image = console_get_image(); in pci_fbuf_init()
H A Dvga.c61 struct bhyvegc_image *gc_image; member
197 old_width = sc->gc_image->width; in vga_check_size()
198 old_height = sc->gc_image->height; in vga_check_size()
256 sc->gc_image->data[offset] = vga_get_pixel(sc, x, y); in vga_render_graphics()
319 sc->gc_image->data[offset] = vga_get_text_pixel(sc, x, y); in vga_render_text()
332 memset(sc->gc_image->data, 0, in vga_render()
333 sc->gc_image->width * sc->gc_image->height * in vga_render()
1200 if (sc->gc_image) in vga_port_out_handler()
1201 sc->gc_image->vgamode = 1; in vga_port_out_handler()
1313 sc->gc_image = console_get_image(); in vga_init()