Lines Matching refs:avail
47 #define vhost_used_event(vq) ((__virtio16 __user *)&vq->avail->ring[vq->num])
289 vq->avail = NULL; in vhost_vq_reset()
1091 struct vring_avail __user *avail, in vq_access_ok() argument
1098 access_ok(VERIFY_READ, avail, in vq_access_ok()
1099 sizeof *avail + num * sizeof *avail->ring + s) && in vq_access_ok()
1143 iotlb_access_ok(vq, VHOST_ACCESS_RO, (u64)(uintptr_t)vq->avail, in vq_iotlb_prefetch()
1144 sizeof *vq->avail + in vq_iotlb_prefetch()
1145 num * sizeof *vq->avail->ring + s) && in vq_iotlb_prefetch()
1185 return vq_access_ok(vq, vq->num, vq->desc, vq->avail, vq->used); in vhost_vq_access_ok()
1355 BUILD_BUG_ON(__alignof__ *vq->avail > VRING_AVAIL_ALIGN_SIZE); in vhost_vring_ioctl()
1388 vq->avail = (void __user *)(unsigned long)a.avail_user_addr; in vhost_vring_ioctl()
1932 if (unlikely(vhost_get_user(vq, avail_idx, &vq->avail->idx))) { in vhost_get_vq_desc()
1934 &vq->avail->idx); in vhost_get_vq_desc()
1955 &vq->avail->ring[last_avail_idx & (vq->num - 1)]))) { in vhost_get_vq_desc()
1958 &vq->avail->ring[last_avail_idx % vq->num]); in vhost_get_vq_desc()
2170 if (vhost_get_user(vq, flags, &vq->avail->flags)) { in vhost_notify()
2226 r = vhost_get_user(vq, avail_idx, &vq->avail->idx); in vhost_vq_avail_empty()
2261 r = vhost_get_user(vq, avail_idx, &vq->avail->idx); in vhost_enable_notify()
2264 &vq->avail->idx, r); in vhost_enable_notify()