Lines Matching refs:heads
388 kfree(vq->heads); in vhost_vq_free_iovecs()
389 vq->heads = NULL; in vhost_vq_free_iovecs()
405 vq->heads = kmalloc_array(dev->iov_limit, sizeof(*vq->heads), in vhost_dev_alloc_iovecs()
407 if (!vq->indirect || !vq->log || !vq->heads) in vhost_dev_alloc_iovecs()
501 vq->heads = NULL; in vhost_dev_init()
2365 struct vring_used_elem heads = { in vhost_add_used() local
2370 return vhost_add_used_n(vq, &heads, 1); in vhost_add_used()
2375 struct vring_used_elem *heads, in __vhost_add_used_n() argument
2384 if (vhost_put_used(vq, heads, start, count)) { in __vhost_add_used_n()
2408 int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads, in vhost_add_used_n() argument
2416 r = __vhost_add_used_n(vq, heads, n); in vhost_add_used_n()
2419 heads += n; in vhost_add_used_n()
2422 r = __vhost_add_used_n(vq, heads, count); in vhost_add_used_n()
2502 struct vring_used_elem *heads, unsigned count) in vhost_add_used_and_signal_n() argument
2504 vhost_add_used_n(vq, heads, count); in vhost_add_used_and_signal_n()