Home
last modified time | relevance | path

Searched refs:iovcnt (Results 1 – 25 of 56) sorted by relevance

123

/freebsd/crypto/openssh/
H A Datomicio.c106 const struct iovec *_iov, int iovcnt, in atomiciov6() argument
114 if (iovcnt < 0 || iovcnt > IOV_MAX) { in atomiciov6()
119 memcpy(iov, _iov, (size_t)iovcnt * sizeof(*_iov)); in atomiciov6()
127 for (; iovcnt > 0 && iov[0].iov_len > 0;) { in atomiciov6()
128 res = (f) (fd, iov, iovcnt); in atomiciov6()
150 while (iovcnt > 0 && rem >= iov[0].iov_len) { in atomiciov6()
153 iovcnt--; in atomiciov6()
156 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) { in atomiciov6()
160 if (iovcnt == 0) in atomiciov6()
176 const struct iovec *_iov, int iovcnt) in atomiciov() argument
[all …]
H A Datomicio.h49 const struct iovec *_iov, int iovcnt, int (*cb)(void *, size_t), void *);
/freebsd/contrib/sendmail/libmilter/
H A Dcomm.c241 retry_writev(fd, iov, iovcnt, timeout) in retry_writev() argument
244 int iovcnt;
254 while (iovcnt > 0 && iov[0].iov_len == 0)
257 iovcnt--;
259 if (iovcnt <= 0)
280 n = writev(fd, iov, iovcnt);
289 for (i = 0; i < iovcnt; i++)
300 if (i == iovcnt)
330 int iovcnt; local
345 iovcnt = 1;
[all …]
/freebsd/usr.bin/wall/
H A Dttymsg.c56 ttymsg(struct iovec *iov, int iovcnt, const char *line, int tmout) in ttymsg() argument
67 if (iovcnt > (int)(sizeof(localiov) / sizeof(localiov[0]))) in ttymsg()
93 for (cnt = 0, left = 0; cnt < iovcnt; ++cnt) in ttymsg()
97 wret = writev(fd, iov, iovcnt); in ttymsg()
104 iovcnt * sizeof(struct iovec)); in ttymsg()
110 --iovcnt; in ttymsg()
/freebsd/usr.sbin/bhyve/
H A Dnet_backends_priv.h57 int iovcnt);
74 int iovcnt);
142 ssize_t tap_send(struct net_backend *be, const struct iovec *iov, int iovcnt);
143 ssize_t tap_recv(struct net_backend *be, const struct iovec *iov, int iovcnt);
146 ssize_t tap_recv(struct net_backend *be, const struct iovec *iov, int iovcnt);
H A Dnet_backends.c153 tap_send(struct net_backend *be, const struct iovec *iov, int iovcnt) in tap_send() argument
155 return (writev(be->fd, iov, iovcnt)); in tap_send()
189 tap_recv(struct net_backend *be, const struct iovec *iov, int iovcnt) in tap_recv() argument
200 iov, iovcnt, 0); in tap_recv()
208 ret = readv(be->fd, iov, iovcnt); in tap_recv()
419 netbe_send(struct net_backend *be, const struct iovec *iov, int iovcnt) in netbe_send() argument
422 return (be->send(be, iov, iovcnt)); in netbe_send()
438 netbe_recv(struct net_backend *be, const struct iovec *iov, int iovcnt) in netbe_recv() argument
441 return (be->recv(be, iov, iovcnt)); in netbe_recv()
H A Dnet_backend_netmap.c173 int iovcnt) in netmap_send() argument
187 EPRINTLN("No space, drop %zu bytes", count_iov(iov, iovcnt)); in netmap_send()
194 for (j = 0; j < iovcnt; j++) { in netmap_send()
229 count_iov(iov, iovcnt)); in netmap_send()
272 netmap_recv(struct net_backend *be, const struct iovec *iov, int iovcnt) in netmap_recv() argument
282 assert(iovcnt); in netmap_recv()
317 iovcnt--; in netmap_recv()
318 if (iovcnt == 0) { in netmap_recv()
H A Dnet_backends.h50 ssize_t netbe_send(net_backend_t *be, const struct iovec *iov, int iovcnt);
52 ssize_t netbe_recv(net_backend_t *be, const struct iovec *iov, int iovcnt);
H A Dpci_e82545.c1004 iovcnt--; in e82545_iov_checksum()
1009 while (len > 0 && iovcnt > 0) { in e82545_iov_checksum()
1017 iovcnt--; in e82545_iov_checksum()
1095 iovcnt = 0; in e82545_transmit()
1164 iov[iovcnt].iov_len = len; in e82545_transmit()
1165 iovcnt++; in e82545_transmit()
1217 if (iovcnt > I82545_MAX_TXSEGS) { in e82545_transmit()
1219 iovcnt, I82545_MAX_TXSEGS); in e82545_transmit()
1327 iovcnt--; in e82545_transmit()
1331 iovcnt++; in e82545_transmit()
[all …]
H A Dnet_backend_slirp.c553 slirp_send(struct net_backend *be, const struct iovec *iov, int iovcnt) in slirp_send() argument
557 if (iovcnt == 1) { in slirp_send()
569 for (int i = 0; i < iovcnt; i++) in slirp_send()
575 for (int i = 0; i < iovcnt; i++) { in slirp_send()
609 slirp_recv(struct net_backend *be, const struct iovec *iov, int iovcnt) in slirp_recv() argument
614 n = readv(priv->pipe[0], iov, iovcnt); in slirp_recv()
/freebsd/sys/kern/
H A Dsubr_uio.c360 if (iovcnt > UIO_MAXIOV) in copyiniov()
362 iovlen = iovcnt * sizeof(struct iovec); in copyiniov()
381 if (iovcnt > UIO_MAXIOV) in copyinuio()
383 iovlen = iovcnt * sizeof(struct iovec); in copyinuio()
384 uio = allocuio(iovcnt); in copyinuio()
391 uio->uio_iovcnt = iovcnt; in copyinuio()
395 for (i = 0; i < iovcnt; i++) { in copyinuio()
408 allocuio(u_int iovcnt) in allocuio() argument
413 KASSERT(iovcnt <= UIO_MAXIOV, in allocuio()
414 ("Requested %u iovecs exceed UIO_MAXIOV", iovcnt)); in allocuio()
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dwritev.c39 writev(int d, const struct iovec *iov, int iovcnt) in writev() argument
46 for(i = 0; i < iovcnt; ++i) in writev()
54 for (i = 0; i < iovcnt; ++i) { in writev()
H A Dreadv.c39 readv(int d, const struct iovec *iov, int iovcnt) in readv() argument
46 for(i = 0; i < iovcnt; ++i) in readv()
/freebsd/lib/libiscsiutil/
H A Dpdu.c180 int iovcnt; in pdu_send() local
190 iovcnt = 1; in pdu_send()
196 iovcnt = 2; in pdu_send()
204 iovcnt = 3; in pdu_send()
208 ret = writev(conn->conn_socket, iov, iovcnt); in pdu_send()
/freebsd/lib/libc/sys/
H A Dreadv.c42 readv(int fd, const struct iovec *iov, int iovcnt) in readv() argument
44 return (INTERPOS_SYS(readv, fd, iov, iovcnt)); in readv()
H A Dwritev.c42 writev(int fd, const struct iovec *iov, int iovcnt) in writev() argument
44 return (INTERPOS_SYS(writev, fd, iov, iovcnt)); in writev()
/freebsd/sys/sys/
H A Duio.h79 struct uio *allocuio(u_int iovcnt);
82 int copyiniov(const struct iovec *iovp, u_int iovcnt, struct iovec **iov,
84 int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop);
/freebsd/lib/libnvmf/
H A Dnvmf_tcp.c167 u_int iovcnt, size_t len) in nvmf_tcp_write_pdu_iov() argument
182 iovcnt--; in nvmf_tcp_write_pdu_iov()
428 u_int iovcnt; in nvmf_tcp_construct_pdu() local
458 iovcnt = 1; in nvmf_tcp_construct_pdu()
465 iovcnt++; in nvmf_tcp_construct_pdu()
471 iov[iovcnt].iov_len = pad; in nvmf_tcp_construct_pdu()
472 iovcnt++; in nvmf_tcp_construct_pdu()
477 iov[iovcnt].iov_base = data; in nvmf_tcp_construct_pdu()
478 iov[iovcnt].iov_len = data_len; in nvmf_tcp_construct_pdu()
479 iovcnt++; in nvmf_tcp_construct_pdu()
[all …]
/freebsd/usr.sbin/rtadvd/
H A Dcontrol.c175 int iovcnt; in cm_send() local
184 iovcnt = 1; in cm_send()
189 iovcnt++; in cm_send()
197 cm->cm_type, iovcnt, iov_len_total); in cm_send()
199 len = writev(fd, iov, iovcnt); in cm_send()
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_util.h115 int freebsd32_copyiniov(struct iovec32 *iovp, u_int iovcnt,
117 int freebsd32_copyinuio(const struct iovec32 *iovp, u_int iovcnt,
/freebsd/contrib/ofed/librdmacm/
H A Drsocket.h65 ssize_t rreadv(int socket, const struct iovec *iov, int iovcnt);
67 ssize_t rwritev(int socket, const struct iovec *iov, int iovcnt);
H A Dpreload.c71 ssize_t (*readv)(int socket, const struct iovec *iov, int iovcnt);
77 ssize_t (*writev)(int socket, const struct iovec *iov, int iovcnt);
818 ssize_t readv(int socket, const struct iovec *iov, int iovcnt) in readv() argument
823 rreadv(fd, iov, iovcnt) : real.readv(fd, iov, iovcnt); in readv()
857 ssize_t writev(int socket, const struct iovec *iov, int iovcnt) in writev() argument
862 rwritev(fd, iov, iovcnt) : real.writev(fd, iov, iovcnt); in writev()
/freebsd/lib/libopenbsd/
H A Dimsg.c186 pid_t pid, int fd, const struct iovec *iov, int iovcnt) in imsg_composev() argument
191 for (i = 0; i < iovcnt; i++) in imsg_composev()
197 for (i = 0; i < iovcnt; i++) in imsg_composev()
/freebsd/lib/libthr/thread/
H A Dthr_syscalls.c414 __thr_readv(int fd, const struct iovec *iov, int iovcnt) in __thr_readv() argument
421 ret = __sys_readv(fd, iov, iovcnt); in __thr_readv()
611 __thr_writev(int fd, const struct iovec *iov, int iovcnt) in __thr_writev() argument
618 ret = __sys_writev(fd, iov, iovcnt); in __thr_writev()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_uio.c346 int iovcnt = uio->uio_iovcnt; in zfs_uio_prefaultpages() local
351 for (; n > 0 && iovcnt > 0; iov++, iovcnt--, skip = 0) { in zfs_uio_prefaultpages()

123