/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace.h | 108 struct iovec iov; in show_tar_registers() local 117 iov.iov_base = (u64 *) reg; in show_tar_registers() 118 iov.iov_len = sizeof(unsigned long); in show_tar_registers() 120 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TAR, &iov); in show_tar_registers() 128 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_PPR, &iov); in show_tar_registers() 136 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_DSCR, &iov); in show_tar_registers() 154 struct iovec iov; in write_tar_registers() local 164 iov.iov_base = (u64 *) reg; in write_tar_registers() 165 iov.iov_len = sizeof(unsigned long); in write_tar_registers() 168 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TAR, &iov); in write_tar_registers() [all …]
|
/external/strace/tests/ |
D | pwritev.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() 52 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov() 56 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument 59 printf("%p", iov); in print_iovec() 68 printf("%p", &iov[i]); in print_iovec() 75 print_iov(&iov[i]); in print_iovec() 92 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local 95 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 | 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() 52 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov() 56 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument 59 printf("%p", iov); in print_iovec() 68 printf("%p", &iov[i]); in print_iovec() 75 print_iov(&iov[i]); in print_iovec() 92 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local 95 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 | 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() 52 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov() 56 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument 59 printf("%p", iov); in print_iovec() 68 printf("%p", &iov[i]); in print_iovec() 75 print_iov(&iov[i]); in print_iovec() 92 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local 95 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/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/valgrind/memcheck/tests/linux/ |
D | getregset.c | 48 struct iovec iov; in main() local 63 iov.iov_len = sizeof(buf); in main() 64 iov.iov_base = buf; in main() 65 if (ptrace(0x4204, cpid, NT_PRSTATUS, &iov) == -1) in main() 68 assert(iov.iov_base == buf); in main() 69 assert(iov.iov_len > 0 && iov.iov_len < sizeof(buf)); in main() 73 assert(non_empty(buf, iov.iov_len)); in main()
|
/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/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/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/fio/engines/ |
D | splice.c | 77 struct iovec iov; in fio_splice_read() local 118 iov.iov_base = p; in fio_splice_read() 119 iov.iov_len = ret; in fio_splice_read() 121 while (iov.iov_len) { in fio_splice_read() 122 ret = vmsplice(sd->pipe[0], &iov, 1, SPLICE_F_MOVE); in fio_splice_read() 130 iov.iov_base = p; in fio_splice_read() 145 iov.iov_len -= ret; in fio_splice_read() 146 iov.iov_base += ret; in fio_splice_read() 170 struct iovec iov = { in fio_splice_write() local 179 while (iov.iov_len) { in fio_splice_write() [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/libvncserver/libvncserver/ |
D | rfbcrypto_openssl.c | 29 void digestmd5(const struct iovec *iov, int iovcnt, void *dest) in digestmd5() argument 36 MD5_Update(&c, iov[i].iov_base, iov[i].iov_len); in digestmd5() 40 void digestsha1(const struct iovec *iov, int iovcnt, void *dest) in digestsha1() argument 47 SHA1_Update(&c, iov[i].iov_base, iov[i].iov_len); in digestsha1()
|
D | rfbcrypto_included.c | 29 void digestmd5(const struct iovec *iov, int iovcnt, void *dest) in digestmd5() argument 36 __md5_process_bytes(iov[i].iov_base, iov[i].iov_len, &c); in digestmd5() 40 void digestsha1(const struct iovec *iov, int iovcnt, void *dest) in digestsha1() argument 47 SHA1Input(&c, iov[i].iov_base, iov[i].iov_len); in digestsha1()
|
D | rfbcrypto_polarssl.c | 6 void digestmd5(const struct iovec *iov, int iovcnt, void *dest) in digestmd5() argument 13 md5_update(&c, iov[i].iov_base, iov[i].iov_len); in digestmd5() 17 void digestsha1(const struct iovec *iov, int iovcnt, void *dest) in digestsha1() argument 24 sha1_update(&c, iov[i].iov_base, iov[i].iov_len); in digestsha1()
|
D | rfbcrypto_gnutls.c | 28 void digestmd5(const struct iovec *iov, int iovcnt, void *dest) in digestmd5() argument 35 gcry_md_write(c, iov[i].iov_base, iov[i].iov_len); in digestmd5() 40 void digestsha1(const struct iovec *iov, int iovcnt, void *dest) in digestsha1() argument 47 gcry_md_write(c, iov[i].iov_base, iov[i].iov_len); in digestsha1()
|
/external/valgrind/memcheck/tests/ |
D | sendmsg.c | 17 struct iovec iov[2]; in main() local 37 iov[0].iov_base = "one"; in main() 38 iov[0].iov_len = 3; in main() 39 iov[1].iov_base = "two"; in main() 40 iov[1].iov_len = 3; in main() 41 msg.msg_iov = &iov[0]; in main()
|