/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace.h | 104 struct iovec iov; in ptrace_read_regs() local 109 iov.iov_base = regs; in ptrace_read_regs() 110 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs() 112 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs() 124 struct iovec iov; in ptrace_write_regs() local 129 iov.iov_base = regs; in ptrace_write_regs() 130 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs() 132 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs() 142 struct iovec iov; in show_tar_registers() local 151 iov.iov_base = (u64 *) reg; in show_tar_registers() [all …]
|
/external/strace/tests/ |
D | pwritev.c | 42 print_iov(const struct iovec *iov) in print_iov() argument 45 unsigned char *buf = iov->iov_base; in print_iov() 48 for (i = 0; i < iov->iov_len; ++i) { in print_iov() 53 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov() 57 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument 60 printf("%p", iov); in print_iovec() 69 printf("... /* %p */", &iov[i]); in print_iovec() 76 print_iov(&iov[i]); in print_iovec() 93 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local 96 iov[i].iov_base = &buf[i]; in main() [all …]
|
D | preadv.c | 41 print_iov(const struct iovec *iov) in print_iov() argument 44 unsigned char *buf = iov->iov_base; in print_iov() 47 for (i = 0; i < iov->iov_len; ++i) in print_iov() 49 printf("\", iov_len=%u}", (unsigned) iov->iov_len); in print_iov() 53 print_iovec(const struct iovec *iov, unsigned int cnt) in print_iovec() argument 60 print_iov(&iov[i]); in print_iovec() 70 TAIL_ALLOC_OBJECT_CONST_PTR(struct iovec, iov); in main() 71 iov->iov_base = buf; in main() 72 iov->iov_len = LEN; in main() 78 if (preadv(0, iov, 1, offset) != LEN) in main() [all …]
|
D | ioctl_sg_io_v3.c | 153 const struct iovec iov[] = { in main() local 162 struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main() 168 sg_io->iovec_count = ARRAY_SIZE(iov); in main() 169 sg_io->dxfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main() 201 *(unsigned char *) (iov[0].iov_base + 0), in main() 202 *(unsigned char *) (iov[0].iov_base + 1), in main() 203 (unsigned int) iov[0].iov_len, in main() 204 *(unsigned char *) (iov[1].iov_base + 0), in main() 205 *(unsigned char *) (iov[1].iov_base + 1), in main() 206 *(unsigned char *) (iov[1].iov_base + 2), in main() [all …]
|
D | ioctl_sg_io_v4.c | 131 const struct iovec iov[] = { in main() local 140 const struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main() 141 sg_io->dout_iovec_count = ARRAY_SIZE(iov); in main() 142 sg_io->dout_xfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main() 204 *(unsigned char *) (iov[0].iov_base + 0), in main() 205 *(unsigned char *) (iov[0].iov_base + 1), in main() 206 (unsigned int) iov[0].iov_len, in main() 207 *(unsigned char *) (iov[1].iov_base + 0), in main() 208 *(unsigned char *) (iov[1].iov_base + 1), in main() 209 *(unsigned char *) (iov[1].iov_base + 2), in main() [all …]
|
/external/strace/tests-mx32/ |
D | pwritev.c | 42 print_iov(const struct iovec *iov) in print_iov() argument 45 unsigned char *buf = iov->iov_base; in print_iov() 48 for (i = 0; i < iov->iov_len; ++i) { in print_iov() 53 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov() 57 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument 60 printf("%p", iov); in print_iovec() 69 printf("... /* %p */", &iov[i]); in print_iovec() 76 print_iov(&iov[i]); in print_iovec() 93 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local 96 iov[i].iov_base = &buf[i]; in main() [all …]
|
D | preadv.c | 41 print_iov(const struct iovec *iov) in print_iov() argument 44 unsigned char *buf = iov->iov_base; in print_iov() 47 for (i = 0; i < iov->iov_len; ++i) in print_iov() 49 printf("\", iov_len=%u}", (unsigned) iov->iov_len); in print_iov() 53 print_iovec(const struct iovec *iov, unsigned int cnt) in print_iovec() argument 60 print_iov(&iov[i]); in print_iovec() 70 TAIL_ALLOC_OBJECT_CONST_PTR(struct iovec, iov); in main() 71 iov->iov_base = buf; in main() 72 iov->iov_len = LEN; in main() 78 if (preadv(0, iov, 1, offset) != LEN) in main() [all …]
|
D | ioctl_sg_io_v3.c | 153 const struct iovec iov[] = { in main() local 162 struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main() 168 sg_io->iovec_count = ARRAY_SIZE(iov); in main() 169 sg_io->dxfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main() 201 *(unsigned char *) (iov[0].iov_base + 0), in main() 202 *(unsigned char *) (iov[0].iov_base + 1), in main() 203 (unsigned int) iov[0].iov_len, in main() 204 *(unsigned char *) (iov[1].iov_base + 0), in main() 205 *(unsigned char *) (iov[1].iov_base + 1), in main() 206 *(unsigned char *) (iov[1].iov_base + 2), in main() [all …]
|
D | ioctl_sg_io_v4.c | 131 const struct iovec iov[] = { in main() local 140 const struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main() 141 sg_io->dout_iovec_count = ARRAY_SIZE(iov); in main() 142 sg_io->dout_xfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main() 204 *(unsigned char *) (iov[0].iov_base + 0), in main() 205 *(unsigned char *) (iov[0].iov_base + 1), in main() 206 (unsigned int) iov[0].iov_len, in main() 207 *(unsigned char *) (iov[1].iov_base + 0), in main() 208 *(unsigned char *) (iov[1].iov_base + 1), in main() 209 *(unsigned char *) (iov[1].iov_base + 2), in main() [all …]
|
/external/strace/tests-m32/ |
D | pwritev.c | 42 print_iov(const struct iovec *iov) in print_iov() argument 45 unsigned char *buf = iov->iov_base; in print_iov() 48 for (i = 0; i < iov->iov_len; ++i) { in print_iov() 53 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov() 57 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument 60 printf("%p", iov); in print_iovec() 69 printf("... /* %p */", &iov[i]); in print_iovec() 76 print_iov(&iov[i]); in print_iovec() 93 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local 96 iov[i].iov_base = &buf[i]; in main() [all …]
|
D | preadv.c | 41 print_iov(const struct iovec *iov) in print_iov() argument 44 unsigned char *buf = iov->iov_base; in print_iov() 47 for (i = 0; i < iov->iov_len; ++i) in print_iov() 49 printf("\", iov_len=%u}", (unsigned) iov->iov_len); in print_iov() 53 print_iovec(const struct iovec *iov, unsigned int cnt) in print_iovec() argument 60 print_iov(&iov[i]); in print_iovec() 70 TAIL_ALLOC_OBJECT_CONST_PTR(struct iovec, iov); in main() 71 iov->iov_base = buf; in main() 72 iov->iov_len = LEN; in main() 78 if (preadv(0, iov, 1, offset) != LEN) in main() [all …]
|
D | ioctl_sg_io_v3.c | 153 const struct iovec iov[] = { in main() local 162 struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main() 168 sg_io->iovec_count = ARRAY_SIZE(iov); in main() 169 sg_io->dxfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main() 201 *(unsigned char *) (iov[0].iov_base + 0), in main() 202 *(unsigned char *) (iov[0].iov_base + 1), in main() 203 (unsigned int) iov[0].iov_len, in main() 204 *(unsigned char *) (iov[1].iov_base + 0), in main() 205 *(unsigned char *) (iov[1].iov_base + 1), in main() 206 *(unsigned char *) (iov[1].iov_base + 2), in main() [all …]
|
D | ioctl_sg_io_v4.c | 131 const struct iovec iov[] = { in main() local 140 const struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main() 141 sg_io->dout_iovec_count = ARRAY_SIZE(iov); in main() 142 sg_io->dout_xfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main() 204 *(unsigned char *) (iov[0].iov_base + 0), in main() 205 *(unsigned char *) (iov[0].iov_base + 1), in main() 206 (unsigned int) iov[0].iov_len, in main() 207 *(unsigned char *) (iov[1].iov_base + 0), in main() 208 *(unsigned char *) (iov[1].iov_base + 1), in main() 209 *(unsigned char *) (iov[1].iov_base + 2), in main() [all …]
|
/external/virglrenderer/src/ |
D | iov.c | 44 size_t vrend_get_iovec_size(const struct iovec *iov, int iovlen) { in vrend_get_iovec_size() argument 48 size += iov->iov_len; in vrend_get_iovec_size() 49 iov++; in vrend_get_iovec_size() 56 size_t vrend_read_from_iovec(const struct iovec *iov, int iovlen, in vrend_read_from_iovec() argument 64 if (iov->iov_len > offset) { in vrend_read_from_iovec() 65 len = iov->iov_len - offset; in vrend_read_from_iovec() 69 memcpy(buf, (char*)iov->iov_base + offset, len); in vrend_read_from_iovec() 76 offset -= iov->iov_len; in vrend_read_from_iovec() 79 iov++; in vrend_read_from_iovec() 86 size_t vrend_write_to_iovec(const struct iovec *iov, int iovlen, in vrend_write_to_iovec() argument [all …]
|
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
D | sendmsg01.c | 64 static struct iovec iov[1]; variable 89 struct iovec *iov; member 108 .iov = iov, 125 .iov = iov, 142 .iov = iov, 159 .iov = iov, 176 .iov = iov, 193 .iov = iov, 209 .iov = iov, 225 .iov = iov, [all …]
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | readv.cc | 16 struct iovec iov[2]; in main() local 19 iov[0].iov_base = buf_ - 1; in main() 21 iov[0].iov_base = buf + 1; in main() 23 iov[0].iov_len = 5; in main() 24 iov[1].iov_base = buf + 10; in main() 25 iov[1].iov_len = 2000; in main() 28 readv(fd, iov, 2); in main()
|
/external/openssh/ |
D | atomicio.c | 107 struct iovec iov_array[IOV_MAX], *iov = iov_array; in atomiciov6() local 115 memcpy(iov, _iov, (size_t)iovcnt * sizeof(*_iov)); in atomiciov6() 121 for (; iovcnt > 0 && iov[0].iov_len > 0;) { in atomiciov6() 122 res = (f) (fd, iov, iovcnt); in atomiciov6() 141 while (iovcnt > 0 && rem >= iov[0].iov_len) { in atomiciov6() 142 rem -= iov[0].iov_len; in atomiciov6() 143 iov++; in atomiciov6() 147 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) { in atomiciov6() 154 iov[0].iov_base = ((char *)iov[0].iov_base) + rem; in atomiciov6() 155 iov[0].iov_len -= rem; in atomiciov6()
|
/external/selinux/libselinux/src/ |
D | setrans_client.c | 84 struct iovec iov[5]; in send_request() local 101 iov[0].iov_base = &function; in send_request() 102 iov[0].iov_len = sizeof(function); in send_request() 103 iov[1].iov_base = &data1_size; in send_request() 104 iov[1].iov_len = sizeof(data1_size); in send_request() 105 iov[2].iov_base = &data2_size; in send_request() 106 iov[2].iov_len = sizeof(data2_size); in send_request() 107 iov[3].iov_base = (char *)data1; in send_request() 108 iov[3].iov_len = data1_size; in send_request() 109 iov[4].iov_base = (char *)data2; in send_request() [all …]
|
/external/ltp/utils/sctp/lib/ |
D | sendmsg.c | 37 struct iovec iov; in sctp_sendmsg() local 44 outmsg.msg_iov = &iov; in sctp_sendmsg() 45 iov.iov_base = (void *)msg; in sctp_sendmsg() 46 iov.iov_len = len; in sctp_sendmsg() 78 struct iovec iov; in sctp_send() local 83 outmsg.msg_iov = &iov; in sctp_send() 84 iov.iov_base = (void *)msg; in sctp_send() 85 iov.iov_len = len; in sctp_send()
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg01.c | 72 struct iovec iov[1]; variable 95 struct iovec *iov; member 111 PF_INET, SOCK_STREAM, 0, iov, 1, buf, sizeof(buf), &msgdat, 0, 117 0, 0, 0, iov, 1, (void *)buf, sizeof(buf), &msgdat, 0, 123 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), 129 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), 134 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)-1, sizeof(buf), 146 PF_INET, SOCK_STREAM, 0, iov, -1, (void *)buf, sizeof(buf), 152 PF_UNIX, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), 158 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), [all …]
|
/external/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice03.c | 19 static struct iovec *iov; variable 25 char *arr_write = iov->iov_base; in vmsplice_test() 27 memset(iov->iov_base, 0, iov->iov_len); in vmsplice_test() 31 written = vmsplice(pipes[0], iov, 1, 0); in vmsplice_test() 67 {&iov, .iov_sizes = (int[]){TEST_BLOCK_SIZE, -1}},
|
/external/ltp/testcases/kernel/connectors/pec/ |
D | pec_listener.c | 90 struct iovec iov; in netlink_send() local 102 memset(&iov, 0, sizeof(struct iovec)); in netlink_send() 103 iov.iov_base = (void *)nlhdr; in netlink_send() 104 iov.iov_len = nlhdr->nlmsg_len; in netlink_send() 109 msg.msg_iov = &iov; in netlink_send() 126 struct iovec iov; in netlink_recv() local 130 memset(&iov, 0, sizeof(iov)); in netlink_recv() 133 iov.iov_base = (void *)nlhdr; in netlink_recv() 134 iov.iov_len = NLMSG_SPACE(MAX_MSG_SIZE); in netlink_recv() 138 msg.msg_iov = &iov; in netlink_recv()
|
/external/strace/ |
D | io.c | 69 const kernel_ulong_t *iov; in print_iovec() local 76 iov = iov_buf; in print_iovec() 78 iov = elem_buf; in print_iovec() 83 len = iov[1]; in print_iovec() 91 printstrn(tcp, iov[0], len); in print_iovec() 99 decode_netlink(tcp, tcp->u_arg[0], iov[0], len); in print_iovec() 102 printaddr(iov[0]); in print_iovec() 106 tprintf(", iov_len=%" PRI_klu "}", iov[1]); in print_iovec() 120 kernel_ulong_t iov[2]; in tprint_iov_upto() local 125 print_array(tcp, addr, len, iov, current_wordsize * 2, in tprint_iov_upto()
|
/external/libfuse/lib/ |
D | fuse_lowlevel.c | 91 static size_t iov_length(const struct iovec *iov, size_t count) in iov_length() argument 97 ret += iov[seg].iov_len; in iov_length() 166 struct iovec *iov, int count) in fuse_send_msg() argument 168 struct fuse_out_header *out = iov[0].iov_base; in fuse_send_msg() 170 out->len = iov_length(iov, count); in fuse_send_msg() 188 iov, count); in fuse_send_msg() 204 int fuse_send_reply_iov_nofree(fuse_req_t req, int error, struct iovec *iov, in fuse_send_reply_iov_nofree() argument 217 iov[0].iov_base = &out; in fuse_send_reply_iov_nofree() 218 iov[0].iov_len = sizeof(struct fuse_out_header); in fuse_send_reply_iov_nofree() 220 return fuse_send_msg(req->se, req->ch, iov, count); in fuse_send_reply_iov_nofree() [all …]
|
/external/libnl/lib/netfilter/ |
D | queue_msg.c | 267 struct iovec iov[3]; in nfnl_queue_msg_send_verdict_payload() local 274 memset(iov, 0, sizeof(iov)); in nfnl_queue_msg_send_verdict_payload() 276 iov[0].iov_base = (void *) nlmsg_hdr(nlmsg); in nfnl_queue_msg_send_verdict_payload() 277 iov[0].iov_len = nlmsg_hdr(nlmsg)->nlmsg_len; in nfnl_queue_msg_send_verdict_payload() 283 iov[1].iov_base = (void *) &nla; in nfnl_queue_msg_send_verdict_payload() 284 iov[1].iov_len = sizeof(nla); in nfnl_queue_msg_send_verdict_payload() 286 iov[2].iov_base = (void *) payload_data; in nfnl_queue_msg_send_verdict_payload() 287 iov[2].iov_len = NLA_ALIGN(payload_len); in nfnl_queue_msg_send_verdict_payload() 290 err = nl_send_iovec(nlh, nlmsg, iov, 3); in nfnl_queue_msg_send_verdict_payload()
|