/freebsd/usr.sbin/bhyve/ |
H A D | iov.c | 70 count_iov(const struct iovec *iov, int niov) in count_iov() argument 75 for (i = 0; i < niov; i++) in count_iov() 82 truncate_iov(struct iovec *iov, int *niov, size_t length) in truncate_iov() argument 87 for (i = 0; i < *niov; i++) { in truncate_iov() 93 *niov = i + 1; in truncate_iov() 100 iov_to_buf(const struct iovec *iov, int niov, void **buf) in iov_to_buf() argument 105 total = count_iov(iov, niov); in iov_to_buf() 110 for (i = 0, ptr = 0; i < niov; i++) { in iov_to_buf() 119 buf_to_iov(const void *buf, size_t buflen, const struct iovec *iov, int niov, in buf_to_iov() argument 129 diov = malloc(sizeof(struct iovec) * niov); in buf_to_iov() [all …]
|
H A D | iov.h | 36 void truncate_iov(struct iovec *iov, int *niov, size_t length); 37 size_t count_iov(const struct iovec *iov, int niov); 38 ssize_t iov_to_buf(const struct iovec *iov, int niov, void **buf); 40 int niov, size_t seek);
|
H A D | pci_virtio_9p.c | 146 pci_vt9p_get_buffer(struct l9p_request *req, struct iovec *iov, size_t *niov, in pci_vt9p_get_buffer() argument 154 *niov = n; in pci_vt9p_get_buffer() 160 const size_t niov __unused, const size_t iolen, void *arg __unused) in pci_vt9p_send() 177 size_t niov __unused, void *arg __unused) in pci_vt9p_drop()
|
H A D | pci_virtio_console.c | 465 struct iovec *iov, int niov) in pci_vtcon_sock_tx() argument 475 for (i = 0; i < niov; i++) { in pci_vtcon_sock_tx() 491 struct iovec *iov, int niov) in pci_vtcon_control_tx() argument 498 assert(niov == 1); in pci_vtcon_control_tx()
|
H A D | virtio.c | 270 vq_getchain(struct vqueue_info *vq, struct iovec *iov, int niov, in vq_getchain() argument 332 _vq_record(i, vdir, ctx, iov, niov, &req); in vq_getchain() 369 _vq_record(i, vp, ctx, iov, niov, &req); in vq_getchain()
|
H A D | virtio.h | 417 int vq_getchain(struct vqueue_info *vq, struct iovec *iov, int niov,
|
/freebsd/usr.sbin/ppp/ |
H A D | physical.c | 571 iov2physical(struct datalink *dl, struct iovec *iov, int *niov, int maxiov, in iov2physical() argument 578 p = (struct physical *)iov[(*niov)++].iov_base; in iov2physical() 617 p->link.stats.total.in.SampleOctets = (long long *)iov[(*niov)++].iov_base; in iov2physical() 618 p->link.stats.total.out.SampleOctets = (long long *)iov[(*niov)++].iov_base; in iov2physical() 626 p->handler = (*devices[h].iov2device)(type, p, iov, niov, maxiov, in iov2physical() 630 free(iov[(*niov)++].iov_base); in iov2physical() 663 physical2iov(struct physical *p, struct iovec *iov, int *niov, int maxiov, in physical2iov() argument 692 if (*niov + 2 >= maxiov) { in physical2iov() 700 iov[*niov].iov_base = (void *)p; in physical2iov() 701 iov[*niov].iov_len = sizeof *p; in physical2iov() [all …]
|
H A D | udp.c | 140 udp_device2iov(struct device *d, struct iovec *iov, int *niov, in udp_device2iov() argument 145 iov[*niov].iov_base = realloc(d, sz); in udp_device2iov() 146 if (iov[*niov].iov_base == NULL) { in udp_device2iov() 150 iov[*niov].iov_len = sz; in udp_device2iov() 151 (*niov)++; in udp_device2iov() 176 udp_iov2device(int type, struct physical *p, struct iovec *iov, int *niov, in udp_iov2device() argument 180 struct udpdevice *dev = (struct udpdevice *)iov[(*niov)++].iov_base; in udp_iov2device()
|
H A D | bundle.c | 1358 int niov, expect, f; in bundle_LinkSize() local 1362 niov = 1; in bundle_LinkSize() 1363 if (datalink2iov(NULL, iov, &niov, SCATTER_SEGMENTS, NULL, NULL) == -1) { in bundle_LinkSize() 1368 for (f = expect = 0; f < niov; f++) in bundle_LinkSize() 1378 int niov, expect, f, *fd, nfd, onfd; in bundle_ReceiveDatalink() local 1395 niov = 1; in bundle_ReceiveDatalink() 1396 if (datalink2iov(NULL, iov, &niov, SCATTER_SEGMENTS, NULL, NULL) == -1) { in bundle_ReceiveDatalink() 1402 for (f = expect = 0; f < niov; f++) { in bundle_ReceiveDatalink() 1434 while (niov--) in bundle_ReceiveDatalink() 1435 free(iov[niov].iov_base); in bundle_ReceiveDatalink() [all …]
|
H A D | exec.c | 96 exec_device2iov(struct device *d, struct iovec *iov, int *niov, in exec_device2iov() argument 102 iov[*niov].iov_base = d = realloc(d, sz); in exec_device2iov() 107 iov[*niov].iov_len = sz; in exec_device2iov() 108 (*niov)++; in exec_device2iov() 175 int *niov, int maxiov __unused, int *auxfd, int *nauxfd) in exec_iov2device() argument 178 struct execdevice *dev = (struct execdevice *)iov[(*niov)++].iov_base; in exec_iov2device()
|
H A D | datalink.c | 1292 iov2datalink(struct bundle *bundle, struct iovec *iov, int *niov, int maxiov, in iov2datalink() argument 1299 dl = (struct datalink *)iov[(*niov)++].iov_base; in iov2datalink() 1300 dl->name = iov[*niov].iov_base; in iov2datalink() 1314 for ((*niov)--; *niov < maxiov; (*niov)++) in iov2datalink() 1315 free(iov[*niov].iov_base); in iov2datalink() 1330 free(iov[*niov].iov_base); in iov2datalink() 1332 (*niov)++; in iov2datalink() 1358 dl->physical = iov2physical(dl, iov, niov, maxiov, fd, auxfd, nauxfd); in iov2datalink() 1386 datalink2iov(struct datalink *dl, struct iovec *iov, int *niov, int maxiov, in datalink2iov() argument 1400 if (*niov >= maxiov - 1) { in datalink2iov() [all …]
|
H A D | ether.c | 193 ether_device2iov(struct device *d, struct iovec *iov, int *niov, in ether_device2iov() argument 199 iov[*niov].iov_base = d = realloc(d, sz); in ether_device2iov() 204 iov[*niov].iov_len = sz; in ether_device2iov() 205 (*niov)++; in ether_device2iov() 346 ether_iov2device(int type, struct physical *p, struct iovec *iov, int *niov, in ether_iov2device() argument 350 struct etherdevice *dev = (struct etherdevice *)iov[(*niov)++].iov_base; in ether_iov2device()
|
H A D | netgraph.c | 281 ng_device2iov(struct device *d, struct iovec *iov, int *niov, in ng_device2iov() argument 287 iov[*niov].iov_base = d = realloc(d, sz); in ng_device2iov() 292 iov[*niov].iov_len = sz; in ng_device2iov() 293 (*niov)++; in ng_device2iov() 322 ng_iov2device(int type, struct physical *p, struct iovec *iov, int *niov, in ng_iov2device() argument 326 struct ngdevice *dev = (struct ngdevice *)iov[(*niov)++].iov_base; in ng_iov2device()
|
H A D | tty.c | 575 tty_device2iov(struct device *d, struct iovec *iov, int *niov, in tty_device2iov() argument 587 iov[*niov].iov_base = d = realloc(d, sz); in tty_device2iov() 592 iov[*niov].iov_len = sz; in tty_device2iov() 593 (*niov)++; in tty_device2iov() 632 tty_iov2device(int type, struct physical *p, struct iovec *iov, int *niov, in tty_iov2device() argument 642 struct ttydevice *dev = (struct ttydevice *)iov[(*niov)++].iov_base; in tty_iov2device()
|
H A D | tcp.c | 122 int *niov, int maxiov __unused, int *auxfd __unused, in tcp_iov2device() argument 126 free(iov[(*niov)++].iov_base); in tcp_iov2device()
|
/freebsd/usr.sbin/lpr/common_source/ |
H A D | rmjob.c | 300 int i, elem, firstreq, niov, rem, totlen; in rmremote() local 325 niov = 4 + 2 * users + requests + 1; in rmremote() 327 niov = 4 + requests + 1; in rmremote() 328 iov = malloc(niov * sizeof *iov); in rmremote() 349 for (totlen = i = 0; i < niov; i++) in rmremote() 361 if (writev(rem, iov, niov) != totlen) in rmremote()
|
/freebsd/contrib/lib9p/ |
H A D | connection.c | 90 const size_t niov, void *aux) in l9p_connection_recv() argument 100 req->lr_req_msg.lm_niov = niov; in l9p_connection_recv() 101 memcpy(req->lr_req_msg.lm_iov, iov, sizeof (struct iovec) * niov); in l9p_connection_recv()
|
H A D | lib9p.h | 227 size_t niov, void *aux); 241 size_t l9p_truncate_iov(struct iovec *iov, size_t niov, size_t length);
|
H A D | utils.c | 164 l9p_truncate_iov(struct iovec *iov, size_t niov, size_t length) in l9p_truncate_iov() argument 168 for (i = 0; i < niov; i++) { in l9p_truncate_iov() 178 return (niov); in l9p_truncate_iov()
|
/freebsd/contrib/lib9p/transport/ |
H A D | socket.c | 287 const struct iovec *iov, const size_t niov __unused, const size_t iolen, in l9p_socket_send_response() 308 const struct iovec *iov, size_t niov __unused, void *arg __unused) in l9p_socket_drop_response()
|
/freebsd/contrib/lib9p/backend/ |
H A D | fs.c | 1700 size_t niov = l9p_truncate_iov(req->lr_data_iov, in fs_read() local 1704 ret = preadv(file->ff_fd, req->lr_data_iov, niov, in fs_read() 1711 ret = (uint32_t)readv(file->ff_fd, req->lr_data_iov, (int)niov); in fs_read() 1991 size_t niov = l9p_truncate_iov(req->lr_data_iov, in fs_write() local 1995 ret = pwritev(file->ff_fd, req->lr_data_iov, niov, in fs_write() 2003 (int)niov); in fs_write()
|