Lines Matching refs:iov
99 struct iovec *iov; member
117 struct kvec *iov; member
132 static inline void vringh_iov_init(struct vringh_iov *iov, in vringh_iov_init() argument
135 iov->used = iov->i = 0; in vringh_iov_init()
136 iov->consumed = 0; in vringh_iov_init()
137 iov->max_num = num; in vringh_iov_init()
138 iov->iov = iovec; in vringh_iov_init()
141 static inline void vringh_iov_reset(struct vringh_iov *iov) in vringh_iov_reset() argument
143 iov->iov[iov->i].iov_len += iov->consumed; in vringh_iov_reset()
144 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_reset()
145 iov->consumed = 0; in vringh_iov_reset()
146 iov->i = 0; in vringh_iov_reset()
149 static inline void vringh_iov_cleanup(struct vringh_iov *iov) in vringh_iov_cleanup() argument
151 if (iov->max_num & VRINGH_IOV_ALLOCATED) in vringh_iov_cleanup()
152 kfree(iov->iov); in vringh_iov_cleanup()
153 iov->max_num = iov->used = iov->i = iov->consumed = 0; in vringh_iov_cleanup()
154 iov->iov = NULL; in vringh_iov_cleanup()
200 kiov->iov = kvec; in vringh_kiov_init()
205 kiov->iov[kiov->i].iov_len += kiov->consumed; in vringh_kiov_reset()
206 kiov->iov[kiov->i].iov_base -= kiov->consumed; in vringh_kiov_reset()
214 kfree(kiov->iov); in vringh_kiov_cleanup()
216 kiov->iov = NULL; in vringh_kiov_cleanup()
225 len += kiov->iov[i].iov_len; in vringh_kiov_length()