Lines Matching refs:iov_cnt
25 size_t iov_from_buf_full(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf_full() argument
30 for (i = 0, done = 0; (offset || done < bytes) && i < iov_cnt; i++) { in iov_from_buf_full()
43 size_t iov_to_buf_full(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf_full() argument
48 for (i = 0, done = 0; (offset || done < bytes) && i < iov_cnt; i++) { in iov_to_buf_full()
61 size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, in iov_memset() argument
66 for (i = 0, done = 0; (offset || done < bytes) && i < iov_cnt; i++) { in iov_memset()
79 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt) in iov_size() argument
85 for (i = 0; i < iov_cnt; i++) { in iov_size()
93 do_send_recv(int sockfd, int flags, struct iovec *iov, unsigned iov_cnt, in do_send_recv() argument
101 msg.msg_iovlen = iov_cnt; in do_send_recv()
114 while (i < iov_cnt) { in do_send_recv()
143 ssize_t iov_send_recv(int sockfd, const struct iovec *_iov, unsigned iov_cnt, in iov_send_recv() argument
147 return iov_send_recv_with_flags(sockfd, 0, _iov, iov_cnt, offset, bytes, in iov_send_recv()
153 unsigned iov_cnt, size_t offset, in iov_send_recv_with_flags() argument
166 local_iov = g_new0(struct iovec, iov_cnt); in iov_send_recv_with_flags()
167 iov_copy(local_iov, iov_cnt, _iov, iov_cnt, offset, bytes); in iov_send_recv_with_flags()
174 for (niov = 0; niov < iov_cnt && offset >= iov[niov].iov_len; ++niov) { in iov_send_recv_with_flags()
180 assert(niov < iov_cnt); in iov_send_recv_with_flags()
182 iov_cnt -= niov; in iov_send_recv_with_flags()
193 for (niov = 0; niov < iov_cnt && iov[niov].iov_len <= tail; ++niov) { in iov_send_recv_with_flags()
199 assert(niov < iov_cnt); in iov_send_recv_with_flags()
240 void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt, in iov_hexdump() argument
247 for (v = 0; v < iov_cnt; v++) { in iov_hexdump()
252 iov_to_buf(iov, iov_cnt, 0, buf, size); in iov_hexdump()
258 const struct iovec *iov, unsigned int iov_cnt, in iov_copy() argument
264 i < iov_cnt && j < dst_iov_cnt && (offset || bytes); i++) { in iov_copy()
623 unsigned int *iov_cnt, in iov_discard_front_undoable() argument
634 for (cur = *iov; *iov_cnt > 0; cur++) { in iov_discard_front_undoable()
649 *iov_cnt -= 1; in iov_discard_front_undoable()
656 size_t iov_discard_front(struct iovec **iov, unsigned int *iov_cnt, in iov_discard_front() argument
659 return iov_discard_front_undoable(iov, iov_cnt, bytes, NULL); in iov_discard_front()
663 unsigned int *iov_cnt, in iov_discard_back_undoable() argument
674 if (*iov_cnt == 0) { in iov_discard_back_undoable()
678 cur = iov + (*iov_cnt - 1); in iov_discard_back_undoable()
680 while (*iov_cnt > 0) { in iov_discard_back_undoable()
695 *iov_cnt -= 1; in iov_discard_back_undoable()
701 size_t iov_discard_back(struct iovec *iov, unsigned int *iov_cnt, in iov_discard_back() argument
704 return iov_discard_back_undoable(iov, iov_cnt, bytes, NULL); in iov_discard_back()