virtio_rw32
+ (ETHER_ADDR_LEN * virtio_rw32(vsc, mac_tbl_uc->nentries));
+ (ETHER_ADDR_LEN * virtio_rw32(vsc, mac_tbl_mc->nentries));
ctrlq->ctrlq_mac_tbl_uc->nentries = virtio_rw32(vsc, 1);
ctrlq->ctrlq_mac_tbl_mc->nentries = virtio_rw32(vsc, nentries);
ctrlq->ctrlq_mac_tbl_uc->nentries = virtio_rw32(vsc, 0);
ctrlq->ctrlq_mac_tbl_mc->nentries = virtio_rw32(vsc, 0);
vr->vr_hdr.type = virtio_rw32(vsc, VIRTIO_BLK_T_DISCARD);
vr->vr_hdr.ioprio = virtio_rw32(vsc, 0);
dwz->num_sectors = virtio_rw32(vsc, nblks);
dwz->flags = virtio_rw32(vsc, 0);
vr->vr_hdr.type = virtio_rw32(vsc, VIRTIO_BLK_T_GET_ID);
vr->vr_hdr.ioprio = virtio_rw32(vsc, 0);
vr->vr_hdr.type = virtio_rw32(vsc,
vr->vr_hdr.ioprio = virtio_rw32(vsc, 0);
const uint32_t rt = virtio_rw32(vsc, vr->vr_hdr.type);
vr->vr_hdr.type = virtio_rw32(vsc, VIRTIO_BLK_T_OUT);
vr->vr_hdr.ioprio = virtio_rw32(vsc, 0);
vr->vr_hdr.type = virtio_rw32(vsc, VIRTIO_BLK_T_FLUSH);
vr->vr_hdr.ioprio = virtio_rw32(vsc, 0);
hdr->flags |= virtio_rw32(vsc, VIRTIO_GPU_FLAG_FENCE);
cmd_type = virtio_rw32(vsc,
resp_type = virtio_rw32(vsc, resp->type);
hdr.type = virtio_rw32(vsc, VIRTIO_GPU_CMD_GET_DISPLAY_INFO);
if (virtio_rw32(vsc, info.hdr.type) !=
sc->sc_fb_width = virtio_rw32(vsc, info.pmodes[0].r.width);
sc->sc_fb_height = virtio_rw32(vsc, info.pmodes[0].r.height);
res.hdr.type = virtio_rw32(vsc, VIRTIO_GPU_CMD_RESOURCE_CREATE_2D);
res.resource_id = virtio_rw32(vsc, resource_id);
res.format = virtio_rw32(vsc, VIRTIO_GPU_FORMAT_B8G8R8X8_UNORM);
res.width = virtio_rw32(vsc, width);
res.height = virtio_rw32(vsc, height);
if (virtio_rw32(vsc, resp.type) != VIRTIO_GPU_RESP_OK_NODATA) {
virtio_rw32(vsc, resp.type));
ss.hdr.type = virtio_rw32(vsc, VIRTIO_GPU_CMD_SET_SCANOUT);
ss.scanout_id = virtio_rw32(vsc, scanout_id);
ss.resource_id = virtio_rw32(vsc, resource_id);
ss.r.width = virtio_rw32(vsc, width);
ss.r.height = virtio_rw32(vsc, height);
if (virtio_rw32(vsc, resp.type) != VIRTIO_GPU_RESP_OK_NODATA) {
virtio_rw32(vsc, resp.type));
backing.hdr.type = virtio_rw32(vsc,
backing.resource_id = virtio_rw32(vsc, resource_id);
backing.nr_entries = virtio_rw32(vsc, __arraycount(backing.entries));
backing.entries[0].length = virtio_rw32(vsc,
if (virtio_rw32(vsc, resp.type) != VIRTIO_GPU_RESP_OK_NODATA) {
virtio_rw32(vsc, resp.type));
tth.hdr.type = virtio_rw32(vsc, VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D);
tth.resource_id = virtio_rw32(vsc, resource_id);
tth.r.x = virtio_rw32(vsc, x);
tth.r.y = virtio_rw32(vsc, y);
tth.r.width = virtio_rw32(vsc, width);
tth.r.height = virtio_rw32(vsc, height);
flush.hdr.type = virtio_rw32(vsc, VIRTIO_GPU_CMD_RESOURCE_FLUSH);
flush.resource_id = virtio_rw32(vsc, resource_id);
flush.r.x = virtio_rw32(vsc, x);
flush.r.y = virtio_rw32(vsc, y);
flush.r.width = virtio_rw32(vsc, width);
flush.r.height = virtio_rw32(vsc, height);
xs->resid = virtio_rw32(vsc, vr->vr_res.residual);
virtio_rw32(vsc, vr->vr_res.sense_len));
vd->len = virtio_rw32(sc, sizeof(struct vring_desc) * nsegs);
vds[s].len = virtio_rw32(sc, dmamap->dm_segs[i].ds_len);
vds[s].len = virtio_rw32(sc, len);
slot = virtio_rw32(sc, vq->vq_used->ring[usedidx].id);
*lenp = virtio_rw32(sc, vq->vq_used->ring[usedidx].len);
uint32_t virtio_rw32(struct virtio_softc *sc, uint32_t val);