Lines Matching refs:used
85 while (len && iov->i < iov->used) { in vringh_kiov_advance()
116 while (len && iov->i < iov->used) { in vringh_iov_xfer()
310 riov->i = riov->used = riov->consumed = 0; in __vringh_iov()
312 wiov->i = wiov->used = wiov->consumed = 0; in __vringh_iov()
362 if (unlikely(wiov && wiov->used)) { in __vringh_iov()
388 if (unlikely(iov->used == (iov->max_num & ~VRINGH_IOV_ALLOCATED))) { in __vringh_iov()
394 iov->iov[iov->used].iov_base = addr; in __vringh_iov()
395 iov->iov[iov->used].iov_len = len; in __vringh_iov()
396 iov->used++; in __vringh_iov()
432 const struct vring_used_elem *used, in __vringh_complete() argument
445 used_ring = vrh->vring.used; in __vringh_complete()
453 err = putused(vrh, &used_ring->ring[off], used, part); in __vringh_complete()
455 err = putused(vrh, &used_ring->ring[0], used + part, in __vringh_complete()
458 err = putused(vrh, &used_ring->ring[off], used, num_used); in __vringh_complete()
469 err = putu16(vrh, &vrh->vring.used->idx, used_idx + num_used); in __vringh_complete()
472 &vrh->vring.used->idx); in __vringh_complete()
538 if (putu16(vrh, &vrh->vring.used->flags, 0) != 0) { in __vringh_notify_enable()
540 &vrh->vring.used->flags); in __vringh_notify_enable()
574 if (putu16(vrh, &vrh->vring.used->flags, in __vringh_notify_disable()
577 &vrh->vring.used->flags); in __vringh_notify_disable()
644 vring_used_t __user *used) in vringh_init_user() argument
662 vrh->vring.used = (__force struct vring_used *)used; in vringh_init_user()
711 BUILD_BUG_ON(offsetof(struct vringh_kiov, used) != in vringh_getdesc_user()
712 offsetof(struct vringh_iov, used)); in vringh_getdesc_user()
794 struct vring_used_elem used; in vringh_complete_user() local
796 used.id = cpu_to_vringh32(vrh, head); in vringh_complete_user()
797 used.len = cpu_to_vringh32(vrh, len); in vringh_complete_user()
798 return __vringh_complete(vrh, &used, 1, putu16_user, putused_user); in vringh_complete_user()
812 const struct vring_used_elem used[], in vringh_complete_multi_user() argument
815 return __vringh_complete(vrh, used, num_used, in vringh_complete_multi_user()
918 struct vring_used *used) in vringh_init_kern() argument
935 vrh->vring.used = used; in vringh_init_kern()
1042 struct vring_used_elem used; in vringh_complete_kern() local
1044 used.id = cpu_to_vringh32(vrh, head); in vringh_complete_kern()
1045 used.len = cpu_to_vringh32(vrh, len); in vringh_complete_kern()
1047 return __vringh_complete(vrh, &used, 1, putu16_kern, putused_kern); in vringh_complete_kern()
1281 struct vring_used *used) in vringh_init_iotlb() argument
1284 desc, avail, used); in vringh_init_iotlb()
1411 struct vring_used_elem used; in vringh_complete_iotlb() local
1413 used.id = cpu_to_vringh32(vrh, head); in vringh_complete_iotlb()
1414 used.len = cpu_to_vringh32(vrh, len); in vringh_complete_iotlb()
1416 return __vringh_complete(vrh, &used, 1, putu16_iotlb, putused_iotlb); in vringh_complete_iotlb()