Lines Matching refs:guest
267 struct VncSurface *s = &vs->guest;
348 /* guest surface */
349 if (!vs->guest.ds)
350 vs->guest.ds = qemu_mallocz(sizeof(*vs->guest.ds));
351 if (ds_get_bytes_per_pixel(ds) != vs->guest.ds->pf.bytes_per_pixel)
354 size_changed = ds_get_width(ds) != vs->guest.ds->width ||
355 ds_get_height(ds) != vs->guest.ds->height;
356 *(vs->guest.ds) = *(ds->surface);
367 memset(vs->guest.dirty, 0xFF, sizeof(vs->guest.dirty));
377 memset(vs->server.dirty, 0xFF, sizeof(vs->guest.dirty));
726 * Walk through the guest dirty map.
727 * Check and copy modified bits from guest to server surface.
732 guest_row = vs->guest.ds->data;
734 for (y = 0; y < vs->guest.ds->height; y++) {
735 if (vnc_and_bits(vs->guest.dirty[y], width_mask, VNC_DIRTY_WORDS)) {
743 for (x = 0; x < vs->guest.ds->width;
745 if (!vnc_get_bit(vs->guest.dirty[y], (x / 16)))
747 vnc_clear_bit(vs->guest.dirty[y], (x / 16));
766 * surface and server dirty map. guest surface updates
920 qemu_free(vs->guest.ds);
1498 vnc_set_bits(vs->guest.dirty[y_position + i],
1629 vs->clientds = *(vs->guest.ds);