cpu_to_vhost16
num_buffers = cpu_to_vhost16(vq, headcount);
gso->hdr_len = cpu_to_vhost16(vq,
return vhost_put_user(vq, cpu_to_vhost16(vq, vq->avail_idx),
return vhost_put_user(vq, cpu_to_vhost16(vq, vq->used_flags),
return vhost_put_user(vq, cpu_to_vhost16(vq, vq->last_used_idx),
if (!(desc->flags & cpu_to_vhost16(vq, VRING_DESC_F_NEXT)))
if (unlikely(desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_INDIRECT))) {
if (desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_WRITE))
if (desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_INDIRECT)) {
if (desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_WRITE))
return !(flags & cpu_to_vhost16(vq, VRING_AVAIL_F_NO_INTERRUPT));