Lines Matching refs:heads
360 kfree(vq->heads); in vhost_vq_free_iovecs()
361 vq->heads = NULL; in vhost_vq_free_iovecs()
375 vq->heads = kmalloc(sizeof *vq->heads * UIO_MAXIOV, GFP_KERNEL); in vhost_dev_alloc_iovecs()
376 if (!vq->indirect || !vq->log || !vq->heads) in vhost_dev_alloc_iovecs()
421 vq->heads = NULL; in vhost_dev_init()
2065 struct vring_used_elem heads = { in vhost_add_used() local
2070 return vhost_add_used_n(vq, &heads, 1); in vhost_add_used()
2075 struct vring_used_elem *heads, in __vhost_add_used_n() argument
2085 if (vhost_put_user(vq, heads[0].id, &used->id)) { in __vhost_add_used_n()
2089 if (vhost_put_user(vq, heads[0].len, &used->len)) { in __vhost_add_used_n()
2093 } else if (vhost_copy_to_user(vq, used, heads, count * sizeof *used)) { in __vhost_add_used_n()
2119 int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads, in vhost_add_used_n() argument
2127 r = __vhost_add_used_n(vq, heads, n); in vhost_add_used_n()
2130 heads += n; in vhost_add_used_n()
2133 r = __vhost_add_used_n(vq, heads, count); in vhost_add_used_n()
2213 struct vring_used_elem *heads, unsigned count) in vhost_add_used_and_signal_n() argument
2215 vhost_add_used_n(vq, heads, count); in vhost_add_used_and_signal_n()