Searched refs:iovcnt (Results 1 - 25 of 40) sorted by relevance

12

/freebsd-10.1-release/lib/libkse/thread/
H A Dthr_readv.c43 ssize_t __readv(int fd, const struct iovec *iov, int iovcnt);
48 __readv(int fd, const struct iovec *iov, int iovcnt) argument
54 ret = __sys_readv(fd, iov, iovcnt);
H A Dthr_writev.c42 ssize_t __writev(int fd, const struct iovec *iov, int iovcnt);
47 __writev(int fd, const struct iovec *iov, int iovcnt) argument
53 ret = __sys_writev(fd, iov, iovcnt);
/freebsd-10.1-release/crypto/openssh/
H A Datomicio.c101 const struct iovec *_iov, int iovcnt,
109 if (iovcnt > IOV_MAX) {
114 memcpy(iov, _iov, iovcnt * sizeof(*_iov));
120 for (; iovcnt > 0 && iov[0].iov_len > 0;) {
121 res = (f) (fd, iov, iovcnt);
140 while (iovcnt > 0 && rem >= iov[0].iov_len) {
143 iovcnt--;
146 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) {
150 if (iovcnt == 0)
166 const struct iovec *_iov, int iovcnt)
100 atomiciov6(ssize_t (f) int, const struct iovec *, int), int fd, const struct iovec *_iov, int iovcnt, int (*cb)(void *, size_t), void *cb_arg) argument
165 atomiciov(ssize_t (f) int, const struct iovec *, int), int fd, const struct iovec *_iov, int iovcnt) argument
[all...]
H A Datomicio.h47 const struct iovec *_iov, int iovcnt, int (*cb)(void *, size_t), void *);
/freebsd-10.1-release/crypto/heimdal/lib/roken/
H A Dwritev.c39 writev(int d, const struct iovec *iov, int iovcnt) argument
46 for(i = 0; i < iovcnt; ++i)
54 for (i = 0; i < iovcnt; ++i) {
H A Dreadv.c39 readv(int d, const struct iovec *iov, int iovcnt) argument
46 for(i = 0; i < iovcnt; ++i)
/freebsd-10.1-release/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_uio.c55 int error, iovcnt; local
57 iovcnt = uio->uio_iovcnt;
60 for (iov = uio->uio_iov; n > 0 && iovcnt > 0; iov++, iovcnt--) {
/freebsd-10.1-release/usr.bin/wall/
H A Dttymsg.c60 ttymsg(struct iovec *iov, int iovcnt, const char *line, int tmout) argument
71 if (iovcnt > (int)(sizeof(localiov) / sizeof(localiov[0])))
97 for (cnt = 0, left = 0; cnt < iovcnt; ++cnt)
101 wret = writev(fd, iov, iovcnt);
108 iovcnt * sizeof(struct iovec));
114 --iovcnt;
/freebsd-10.1-release/contrib/sendmail/libmilter/
H A Dcomm.c231 ** iovcnt -- number of elements in io vector
241 retry_writev(fd, iov, iovcnt, timeout)
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
[all...]
/freebsd-10.1-release/sys/mips/cavium/cryptocteon/
H A Dcryptocteonvar.h37 typedef int octo_encrypt_t(struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp);
38 typedef int octo_decrypt_t(struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp);
H A Dcryptocteon.c344 size_t iovcnt, iovlen; local
445 iovcnt = 0;
449 od->octo_iov[iovcnt].iov_base = mtod(m, void *);
450 od->octo_iov[iovcnt].iov_len = m->m_len;
453 iovlen += od->octo_iov[iovcnt++].iov_len;
457 for (iovcnt = 0; iovcnt < uiop->uio_iovcnt; iovcnt++) {
458 od->octo_iov[iovcnt].iov_base = uiop->uio_iov[iovcnt]
495 (*od->octo_encrypt)(od, od->octo_iov, iovcnt, iovlen, local
498 (*od->octo_decrypt)(od, od->octo_iov, iovcnt, iovlen, local
[all...]
/freebsd-10.1-release/usr.sbin/ctld/
H A Dpdu.c218 int iovcnt; local
231 iovcnt = 1;
237 iovcnt = 2;
245 iovcnt = 3;
249 ret = writev(pdu->pdu_connection->conn_socket, iov, iovcnt);
/freebsd-10.1-release/sys/sys/
H A Duio.h92 int copyiniov(const struct iovec *iovp, u_int iovcnt, struct iovec **iov,
96 int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop);
/freebsd-10.1-release/usr.sbin/iscsid/
H A Dpdu.c251 int iovcnt; local
264 iovcnt = 1;
270 iovcnt = 2;
278 iovcnt = 3;
282 ret = writev(pdu->pdu_connection->conn_socket, iov, iovcnt);
/freebsd-10.1-release/sys/kern/
H A Dsubr_uio.c324 copyiniov(const struct iovec *iovp, u_int iovcnt, struct iovec **iov, int error) argument
329 if (iovcnt > UIO_MAXIOV)
331 iovlen = iovcnt * sizeof (struct iovec);
342 copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop) argument
350 if (iovcnt > UIO_MAXIOV)
352 iovlen = iovcnt * sizeof (struct iovec);
361 uio->uio_iovcnt = iovcnt;
365 for (i = 0; i < iovcnt; i++) {
H A Dvfs_mount.c265 unsigned int i, iovcnt; local
271 iovcnt = auio->uio_iovcnt;
272 for (i = 0; i < iovcnt; i += 2) {
371 unsigned int iovcnt;
377 u_int iovcnt; local
388 CTR4(KTR_VFS, "%s: iovp %p with iovcnt %d and flags %d", __func__,
389 uap->iovp, uap->iovcnt, flags);
400 iovcnt = uap->iovcnt;
405 if ((iovcnt
[all...]
/freebsd-10.1-release/sys/amd64/linux32/
H A Dlinux32_machdep.c169 linux32_copyinuio(struct l_iovec32 *iovp, l_ulong iovcnt, struct uio **uiop) argument
178 if (iovcnt > UIO_MAXIOV)
180 iovlen = iovcnt * sizeof(struct iovec);
183 for (i = 0; i < iovcnt; i++) {
193 uio->uio_iovcnt = iovcnt;
197 for (i = 0; i < iovcnt; i++) {
210 linux32_copyiniov(struct l_iovec32 *iovp32, l_ulong iovcnt, struct iovec **iovp, argument
219 if (iovcnt > UIO_MAXIOV)
221 iovlen = iovcnt * sizeof(struct iovec);
223 for (i = 0; i < iovcnt;
[all...]
/freebsd-10.1-release/usr.bin/csup/
H A Dmux.c218 sock_writev(int s, struct iovec *iov, int iovcnt) argument
223 nbytes = writev(s, iov, iovcnt);
228 iovcnt--;
785 int error, id, iovcnt, what = 0; local
847 iovcnt = 1;
851 iov[iovcnt].iov_base = buf->data + buf->out;
852 iov[iovcnt].iov_len = len;
853 iovcnt++;
856 iov[iovcnt].iov_base = buf->data;
857 iov[iovcnt]
[all...]
/freebsd-10.1-release/usr.sbin/bhyve/
H A Dpci_virtio_net.c233 pci_vtnet_tap_tx(struct pci_vtnet_softc *sc, struct iovec *iov, int iovcnt, argument
247 iov[iovcnt].iov_base = pad;
248 iov[iovcnt].iov_len = 60 - len;
249 iovcnt++;
251 (void) writev(sc->vsc_tapfd, iov, iovcnt);
H A Dpci_ahci.c445 int i, err, iovcnt, ncq, readop; local
502 iovcnt = hdr->prdtl - seek;
503 if (iovcnt > BLOCKIF_IOV_MAX) {
504 aior->prdtl = iovcnt - BLOCKIF_IOV_MAX;
505 iovcnt = BLOCKIF_IOV_MAX;
512 breq->br_iovcnt = iovcnt;
517 for (i = 0; i < iovcnt; i++) {
939 int i, err, iovcnt; local
971 iovcnt = hdr->prdtl - seek;
972 if (iovcnt > BLOCKIF_IOV_MA
[all...]
/freebsd-10.1-release/usr.sbin/rtadvd/
H A Dcontrol.c175 int iovcnt; local
184 iovcnt = 1;
189 iovcnt++;
197 cm->cm_type, iovcnt, iov_len_total);
199 len = writev(fd, iov, iovcnt);
/freebsd-10.1-release/sys/compat/freebsd32/
H A Dfreebsd32_util.h110 int freebsd32_copyiniov(struct iovec32 *iovp, u_int iovcnt,
H A Dfreebsd32_misc.c825 freebsd32_copyinuio(struct iovec32 *iovp, u_int iovcnt, struct uio **uiop) argument
834 if (iovcnt > UIO_MAXIOV)
836 iovlen = iovcnt * sizeof(struct iovec);
839 for (i = 0; i < iovcnt; i++) {
849 uio->uio_iovcnt = iovcnt;
853 for (i = 0; i < iovcnt; i++) {
871 error = freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio);
885 error = freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio);
899 error = freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio);
913 error = freebsd32_copyinuio(uap->iovp, uap->iovcnt,
922 freebsd32_copyiniov(struct iovec32 *iovp32, u_int iovcnt, struct iovec **iovp, int error) argument
[all...]
/freebsd-10.1-release/lib/libthr/thread/
H A Dthr_syscalls.c496 __readv(int fd, const struct iovec *iov, int iovcnt) argument
502 ret = __sys_readv(fd, iov, iovcnt);
776 __writev(int fd, const struct iovec *iov, int iovcnt) argument
782 ret = __sys_writev(fd, iov, iovcnt);
/freebsd-10.1-release/lib/libfetch/
H A Dcommon.c1083 fetch_writev(conn_t *conn, struct iovec *iov, int iovcnt) argument
1099 while (iovcnt > 0) {
1128 wlen = writev(conn->sd, iov, iovcnt);
1142 while (iovcnt > 0 && wlen >= (ssize_t)iov->iov_len) {
1145 iovcnt--;
1147 if (iovcnt > 0) {

Completed in 297 milliseconds

12