viogpu.c | 732 struct virtio_gpu_transfer_to_host_2d tth = { 0 }; local in function:viogpu_transfer_to_host_2d 734 tth.hdr.type = virtio_rw32(vsc, VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D); 735 tth.resource_id = virtio_rw32(vsc, resource_id); 736 tth.r.x = virtio_rw32(vsc, x); 737 tth.r.y = virtio_rw32(vsc, y); 738 tth.r.width = virtio_rw32(vsc, width); 739 tth.r.height = virtio_rw32(vsc, height); 740 tth.offset = virtio_rw64(vsc, (y * sc->sc_fb_width + x) * 743 viogpu_cmd_req(sc, &tth, sizeof(tth), [all...] |