Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 25 of 82) sorted by relevance

1234

/f-stack/freebsd/contrib/openzfs/lib/libzfs/os/freebsd/
H A Dlibzfs_zmount.c57 *iov = realloc(*iov, sizeof (**iov) * (i + 2)); in build_iovec()
58 if (*iov == NULL) { in build_iovec()
62 (*iov)[i].iov_base = strdup(name); in build_iovec()
63 (*iov)[i].iov_len = strlen(name) + 1; in build_iovec()
65 (*iov)[i].iov_base = val; in build_iovec()
72 (*iov)[i].iov_len = (int)len; in build_iovec()
80 struct iovec *iov; in do_mount_() local
96 iov = NULL; in do_mount_()
104 build_iovec(&iov, &iovlen, "xattr", NULL, 0); in do_mount_()
106 build_iovec(&iov, &iovlen, "ro", NULL, 0); in do_mount_()
[all …]
/f-stack/freebsd/kern/
H A Dsubr_uio.c108 uio.uio_iov = iov; in physcopyin()
129 uio.uio_iov = iov; in physcopyout()
211 struct iovec *iov; in uiomove_faultflag() local
269 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_faultflag()
310 struct iovec *iov; in ureadc() local
339 iov->iov_base = (char *)iov->iov_base + 1; in ureadc()
340 iov->iov_len--; in ureadc()
351 *iov = NULL; in copyiniov()
359 *iov = NULL; in copyiniov()
367 struct iovec *iov; in copyinuio() local
[all …]
/f-stack/lib/
H A Dff_kern_subr.c166 struct iovec *iov; in uiomove() local
182 iov = uio->uio_iov; in uiomove()
183 cnt = iov->iov_len; in uiomove()
214 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove()
215 iov->iov_len -= cnt; in uiomove()
230 struct iovec *iov; in copyinuio() local
243 iov = (struct iovec *)(uio + 1); in copyinuio()
244 error = copyin(iovp, iov, iovlen); in copyinuio()
249 uio->uio_iov = iov; in copyinuio()
259 uio->uio_resid += iov->iov_len; in copyinuio()
[all …]
/f-stack/freebsd/arm/arm/
H A Duio_machdep.c65 struct iovec *iov; in uiomove_fromphys() local
80 iov = uio->uio_iov; in uiomove_fromphys()
81 cnt = iov->iov_len; in uiomove_fromphys()
97 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
99 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
107 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
109 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
115 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys()
116 iov->iov_len -= cnt; in uiomove_fromphys()
H A Dmem.c90 struct iovec *iov; in memrw() local
95 iov = uio->uio_iov; in memrw()
96 if (iov->iov_len == 0) { in memrw()
123 c = (u_int)(PAGE_SIZE - ((int)iov->iov_base & PAGE_MASK)); in memrw()
125 c = min(c, (u_int)iov->iov_len); in memrw()
132 c = iov->iov_len; in memrw()
/f-stack/freebsd/i386/i386/
H A Duio_machdep.c65 struct iovec *iov; in uiomove_fromphys() local
79 iov = uio->uio_iov; in uiomove_fromphys()
80 cnt = iov->iov_len; in uiomove_fromphys()
97 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
99 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
108 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
110 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
117 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys()
118 iov->iov_len -= cnt; in uiomove_fromphys()
/f-stack/freebsd/mips/cavium/cryptocteon/
H A Dcavium_crypto.c64 #define IOV_INIT(iov, ptr, idx, len) \ argument
67 (ptr) = (iov)[(idx)].iov_base; \
68 (len) = (iov)[(idx)].iov_len; \
87 (ptr) = (iov)[(idx)].iov_base; \
88 (len) = (iov)[(idx)].iov_len; \
345 IOV_INIT(iov, data, data_i, data_l); in octo_aes_cbc_encrypt()
373 IOV_CONSUME(iov, data, data_i, data_l); in octo_aes_cbc_encrypt()
380 IOV_CONSUME(iov, data, data_i, data_l); in octo_aes_cbc_encrypt()
384 IOV_CONSUME(iov, data, data_i, data_l); in octo_aes_cbc_encrypt()
413 IOV_INIT(iov, data, data_i, data_l); in octo_aes_cbc_decrypt()
[all …]
/f-stack/freebsd/arm64/arm64/
H A Duio_machdep.c62 struct iovec *iov; in uiomove_fromphys() local
78 iov = uio->uio_iov; in uiomove_fromphys()
79 cnt = iov->iov_len; in uiomove_fromphys()
98 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
100 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
106 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
108 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
118 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys()
119 iov->iov_len -= cnt; in uiomove_fromphys()
H A Dmem.c51 struct iovec *iov; in memrw() local
61 iov = uio->uio_iov; in memrw()
62 if (iov->iov_len == 0) { in memrw()
72 cnt = ulmin(iov->iov_len, PAGE_SIZE - (u_int)off); in memrw()
/f-stack/freebsd/amd64/amd64/
H A Duio_machdep.c64 struct iovec *iov; in uiomove_fromphys() local
80 iov = uio->uio_iov; in uiomove_fromphys()
81 cnt = iov->iov_len; in uiomove_fromphys()
100 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
102 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
108 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
110 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
120 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys()
121 iov->iov_len -= cnt; in uiomove_fromphys()
/f-stack/freebsd/mips/mips/
H A Duio_machdep.c68 struct iovec *iov; in uiomove_fromphys() local
84 iov = uio->uio_iov; in uiomove_fromphys()
85 cnt = iov->iov_len; in uiomove_fromphys()
114 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
116 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
125 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
127 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
136 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys()
137 iov->iov_len -= cnt; in uiomove_fromphys()
H A Dmem.c79 struct iovec *iov; in memrw() local
92 iov = uio->uio_iov; in memrw()
93 if (iov->iov_len == 0) { in memrw()
104 cnt = PAGE_SIZE - ((vm_offset_t)iov->iov_base & in memrw()
107 cnt = min(cnt, iov->iov_len); in memrw()
118 + iov->iov_len); in memrw()
134 if (kernacc((void *) va, iov->iov_len, prot) in memrw()
140 error = uiomove((void *)va, iov->iov_len, uio); in memrw()
/f-stack/dpdk/drivers/bus/vmbus/
H A Dvmbus_channel.c108 struct iovec iov[3]; in rte_vmbus_chan_send() local
120 iov[0].iov_base = &pkt; in rte_vmbus_chan_send()
121 iov[0].iov_len = hlen; in rte_vmbus_chan_send()
122 iov[1].iov_base = data; in rte_vmbus_chan_send()
123 iov[1].iov_len = dlen; in rte_vmbus_chan_send()
124 iov[2].iov_base = &pad; in rte_vmbus_chan_send()
150 struct iovec iov[4]; in rte_vmbus_chan_send_sglist() local
166 iov[0].iov_base = &pkt; in rte_vmbus_chan_send_sglist()
168 iov[1].iov_base = sg; in rte_vmbus_chan_send_sglist()
170 iov[2].iov_base = data; in rte_vmbus_chan_send_sglist()
[all …]
/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_readv_chain.c21 struct iovec *iov, iovs[NGX_IOVS_PREALLOCATE]; in ngx_readv_chain() local
71 iov = NULL; in ngx_readv_chain()
96 iov->iov_len += n; in ngx_readv_chain()
103 iov = ngx_array_push(&vec); in ngx_readv_chain()
104 if (iov == NULL) { in ngx_readv_chain()
108 iov->iov_base = (void *) chain->buf->last; in ngx_readv_chain()
109 iov->iov_len = n; in ngx_readv_chain()
118 "readv: %ui, last:%uz", vec.nelts, iov->iov_len); in ngx_readv_chain()
H A Dngx_channel.c19 struct iovec iov[1]; in ngx_write_channel() local
71 iov[0].iov_base = (char *) ch; in ngx_write_channel()
72 iov[0].iov_len = size; in ngx_write_channel()
76 msg.msg_iov = iov; in ngx_write_channel()
100 struct iovec iov[1]; in ngx_read_channel() local
112 iov[0].iov_base = (char *) ch; in ngx_read_channel()
113 iov[0].iov_len = size; in ngx_read_channel()
117 msg.msg_iov = iov; in ngx_read_channel()
H A Dngx_writev_chain.c114 struct iovec *iov; in ngx_output_chain_to_iovec() local
116 iov = NULL; in ngx_output_chain_to_iovec()
157 iov->iov_len += size; in ngx_output_chain_to_iovec()
164 iov = &vec->iovs[n++]; in ngx_output_chain_to_iovec()
166 iov->iov_base = (void *) in->buf->pos; in ngx_output_chain_to_iovec()
167 iov->iov_len = size; in ngx_output_chain_to_iovec()
/f-stack/freebsd/netinet/
H A Dsctp_syscalls.c233 struct iovec iov[1]; local
277 auio.uio_iov = iov;
342 struct iovec *iov, *tiov; local
374 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE);
393 auio.uio_iov = iov;
400 tiov = iov;
438 free(iov, M_IOV);
485 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE);
514 auio.uio_iov = iov;
521 tiov = iov;
[all …]
/f-stack/freebsd/contrib/openzfs/module/zcommon/
H A Dzfs_uio.c60 const struct iovec *iov = uio->uio_iov; in uiomove_iov() local
65 cnt = MIN(iov->iov_len - skip, n); in uiomove_iov()
73 if (copy_to_user(iov->iov_base+skip, p, cnt)) in uiomove_iov()
79 (iov->iov_base + skip), cnt)) { in uiomove_iov()
85 (iov->iov_base + skip), cnt); in uiomove_iov()
90 (iov->iov_base + skip), cnt); in uiomove_iov()
97 iov->iov_len); in uiomove_iov()
106 bcopy(p, iov->iov_base + skip, cnt); in uiomove_iov()
108 bcopy(iov->iov_base + skip, p, cnt); in uiomove_iov()
114 if (skip == iov->iov_len) { in uiomove_iov()
[all …]
/f-stack/freebsd/opencrypto/
H A Dktls_ocf.c167 struct iovec iov[iovcnt + 2]; in ktls_ocf_tls_cbc_encrypt() local
216 iov[0].iov_base = &ad; in ktls_ocf_tls_cbc_encrypt()
217 iov[0].iov_len = sizeof(ad); in ktls_ocf_tls_cbc_encrypt()
221 uio.uio_iov = iov; in ktls_ocf_tls_cbc_encrypt()
262 uio.uio_iov = iov + 1; in ktls_ocf_tls_cbc_encrypt()
327 struct iovec iov[iovcnt + 1]; in ktls_ocf_tls12_gcm_encrypt() local
381 iov[iovcnt].iov_base = trailer; in ktls_ocf_tls12_gcm_encrypt()
383 tag_uio->uio_iov = iov; in ktls_ocf_tls12_gcm_encrypt()
504 memcpy(iov, iniov, iovcnt * sizeof(*iov)); in ktls_ocf_tls13_gcm_encrypt()
505 iov[iovcnt].iov_base = trailer; in ktls_ocf_tls13_gcm_encrypt()
[all …]
H A Dcriov.c64 if (off < iov->iov_len) \
66 off -= iov->iov_len; \
68 iov++; \
87 struct iovec *iov = uio->uio_iov; in cuio_copydata() local
94 count = min(iov->iov_len - off, len); in cuio_copydata()
100 iov++; in cuio_copydata()
107 struct iovec *iov = uio->uio_iov; in cuio_copyback() local
114 count = min(iov->iov_len - off, len); in cuio_copyback()
120 iov++; in cuio_copyback()
572 struct iovec *iov = uio->uio_iov; in cuio_apply() local
[all …]
/f-stack/freebsd/contrib/openzfs/cmd/zed/
H A Dzed_conf.c641 struct iovec iov[3]; in zed_conf_read_state() local
657 iov[0].iov_base = eidp; in zed_conf_read_state()
659 iov[1].iov_base = &etime[0]; in zed_conf_read_state()
661 iov[2].iov_base = &etime[1]; in zed_conf_read_state()
664 n = readv(zcp->state_fd, iov, 3); in zed_conf_read_state()
691 struct iovec iov[3]; in zed_conf_write_state() local
707 iov[0].iov_base = &eid; in zed_conf_write_state()
708 len += iov[0].iov_len = sizeof (eid); in zed_conf_write_state()
709 iov[1].iov_base = &etime[0]; in zed_conf_write_state()
711 iov[2].iov_base = &etime[1]; in zed_conf_write_state()
[all …]
/f-stack/dpdk/kernel/linux/igb_uio/
H A Dcompat.h40 struct iov { in pci_num_vf() struct
48 } *iov = (struct iov *)dev->sriov; in pci_num_vf() local
53 return iov->nr_virtfn; in pci_num_vf()
/f-stack/freebsd/mips/nlm/dev/sec/
H A Dnlmseclib.c133 struct iovec *iov = NULL; in nlm_crypto_form_srcdst_segs() local
137 iov = uio->uio_iov; in nlm_crypto_form_srcdst_segs()
142 (caddr_t)iov->iov_base, iov->iov_len); in nlm_crypto_form_srcdst_segs()
145 dstseg, (caddr_t)iov->iov_base, in nlm_crypto_form_srcdst_segs()
146 iov->iov_len); in nlm_crypto_form_srcdst_segs()
148 iov++; in nlm_crypto_form_srcdst_segs()
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Duio.h107 const struct iovec *iov, unsigned long nr_segs, size_t count) in iov_iter_init_compat() argument
110 iov_iter_init(iter, dir, iov, nr_segs, count); in iov_iter_init_compat()
112 iov_iter_init(iter, iov, nr_segs, count, 0); in iov_iter_init_compat()
119 uio_iovec_init(uio_t *uio, const struct iovec *iov, unsigned long nr_segs, in uio_iovec_init() argument
124 uio->uio_iov = iov; in uio_iovec_init()
/f-stack/app/redis-5.0.5/src/
H A Danet_ff.c324 writev(int sockfd, const struct iovec *iov, int iovcnt) in writev() argument
328 return real_writev(sockfd, iov, iovcnt); in writev()
332 return ff_writev(sockfd, iov, iovcnt); in writev()
334 return real_writev(sockfd, iov, iovcnt); in writev()
353 readv(int sockfd, const struct iovec *iov, int iovcnt) in readv() argument
357 return real_readv(sockfd, iov, iovcnt); in readv()
361 return ff_readv(sockfd, iov, iovcnt); in readv()
363 return real_readv(sockfd, iov, iovcnt); in readv()

1234