Home
last modified time | relevance | path

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

123

/freebsd-14.2/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-14.2/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-14.2/usr.bin/wall/
H A Dttymsg.c59 ttymsg(struct iovec *iov, int iovcnt, const char *line, int tmout) in ttymsg() argument
70 if (iovcnt > (int)(sizeof(localiov) / sizeof(localiov[0]))) in ttymsg()
96 for (cnt = 0, left = 0; cnt < iovcnt; ++cnt) in ttymsg()
100 wret = writev(fd, iov, iovcnt); in ttymsg()
107 iovcnt * sizeof(struct iovec)); in ttymsg()
113 --iovcnt; in ttymsg()
/freebsd-14.2/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.c1005 iovcnt--; in e82545_iov_checksum()
1010 while (len > 0 && iovcnt > 0) { in e82545_iov_checksum()
1018 iovcnt--; in e82545_iov_checksum()
1096 iovcnt = 0; in e82545_transmit()
1165 iov[iovcnt].iov_len = len; in e82545_transmit()
1166 iovcnt++; in e82545_transmit()
1218 if (iovcnt > I82545_MAX_TXSEGS) { in e82545_transmit()
1220 iovcnt, I82545_MAX_TXSEGS); in e82545_transmit()
1328 iovcnt--; in e82545_transmit()
1332 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-14.2/sys/kern/
H A Dsubr_uio.c355 if (iovcnt > UIO_MAXIOV) in copyiniov()
357 iovlen = iovcnt * sizeof(struct iovec); in copyiniov()
376 if (iovcnt > UIO_MAXIOV) in copyinuio()
378 iovlen = iovcnt * sizeof(struct iovec); in copyinuio()
379 uio = allocuio(iovcnt); in copyinuio()
386 uio->uio_iovcnt = iovcnt; in copyinuio()
390 for (i = 0; i < iovcnt; i++) { in copyinuio()
403 allocuio(u_int iovcnt) in allocuio() argument
408 KASSERT(iovcnt <= UIO_MAXIOV, in allocuio()
409 ("Requested %u iovecs exceed UIO_MAXIOV", iovcnt)); in allocuio()
[all …]
/freebsd-14.2/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-14.2/lib/libiscsiutil/
H A Dpdu.c181 int iovcnt; in pdu_send() local
191 iovcnt = 1; in pdu_send()
197 iovcnt = 2; in pdu_send()
205 iovcnt = 3; in pdu_send()
209 ret = writev(conn->conn_socket, iov, iovcnt); in pdu_send()
/freebsd-14.2/sys/sys/
H A Duio.h81 struct uio *allocuio(u_int iovcnt);
84 int copyiniov(const struct iovec *iovp, u_int iovcnt, struct iovec **iov,
86 int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop);
/freebsd-14.2/lib/libc/sys/
H A Dreadv.c42 readv(int fd, const struct iovec *iov, int iovcnt) in readv() argument
46 __libc_interposing[INTERPOS_readv])(fd, iov, iovcnt)); in readv()
H A Dwritev.c42 writev(int fd, const struct iovec *iov, int iovcnt) in writev() argument
46 __libc_interposing[INTERPOS_writev])(fd, iov, iovcnt)); in writev()
/freebsd-14.2/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-14.2/sys/compat/freebsd32/
H A Dfreebsd32_util.h115 int freebsd32_copyiniov(struct iovec32 *iovp, u_int iovcnt,
117 int freebsd32_copyinuio(struct iovec32 *iovp, u_int iovcnt,
H A Dfreebsd32_misc.c1202 if (iovcnt > UIO_MAXIOV) in freebsd32_copyinuio()
1204 uio = allocuio(iovcnt); in freebsd32_copyinuio()
1206 for (i = 0; i < iovcnt; i++) { in freebsd32_copyinuio()
1215 uio->uio_iovcnt = iovcnt; in freebsd32_copyinuio()
1219 for (i = 0; i < iovcnt; i++) { in freebsd32_copyinuio()
1297 if (iovcnt > UIO_MAXIOV) in freebsd32_copyiniov()
1301 for (i = 0; i < iovcnt; i++) { in freebsd32_copyiniov()
2773 if (uap->iovcnt & 1) in freebsd32_jail_set()
2792 if (uap->iovcnt & 1) in freebsd32_jail_get()
2800 for (i = 0; i < uap->iovcnt; i++) { in freebsd32_jail_get()
[all …]
/freebsd-14.2/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-14.2/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-14.2/lib/libthr/thread/
H A Dthr_syscalls.c429 __thr_readv(int fd, const struct iovec *iov, int iovcnt) in __thr_readv() argument
436 ret = __sys_readv(fd, iov, iovcnt); in __thr_readv()
626 __thr_writev(int fd, const struct iovec *iov, int iovcnt) in __thr_writev() argument
633 ret = __sys_writev(fd, iov, iovcnt); in __thr_writev()
/freebsd-14.2/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