Lines Matching refs:iov
89 struct iovec *iov; member
101 struct kvec *iov; member
116 static inline void vringh_iov_init(struct vringh_iov *iov, in vringh_iov_init() argument
119 iov->used = iov->i = 0; in vringh_iov_init()
120 iov->consumed = 0; in vringh_iov_init()
121 iov->max_num = num; in vringh_iov_init()
122 iov->iov = iovec; in vringh_iov_init()
125 static inline void vringh_iov_reset(struct vringh_iov *iov) in vringh_iov_reset() argument
127 iov->iov[iov->i].iov_len += iov->consumed; in vringh_iov_reset()
128 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_reset()
129 iov->consumed = 0; in vringh_iov_reset()
130 iov->i = 0; in vringh_iov_reset()
133 static inline void vringh_iov_cleanup(struct vringh_iov *iov) in vringh_iov_cleanup() argument
135 if (iov->max_num & VRINGH_IOV_ALLOCATED) in vringh_iov_cleanup()
136 kfree(iov->iov); in vringh_iov_cleanup()
137 iov->max_num = iov->used = iov->i = iov->consumed = 0; in vringh_iov_cleanup()
138 iov->iov = NULL; in vringh_iov_cleanup()
184 kiov->iov = kvec; in vringh_kiov_init()
189 kiov->iov[kiov->i].iov_len += kiov->consumed; in vringh_kiov_reset()
190 kiov->iov[kiov->i].iov_base -= kiov->consumed; in vringh_kiov_reset()
198 kfree(kiov->iov); in vringh_kiov_cleanup()
200 kiov->iov = NULL; in vringh_kiov_cleanup()
209 len += kiov->iov[i].iov_len; in vringh_kiov_length()