/external/qemu/util/ |
D | iov.c | 35 if (offset < iov[i].iov_len) { in iov_from_buf() 36 size_t len = MIN(iov[i].iov_len - offset, bytes - done); in iov_from_buf() 41 offset -= iov[i].iov_len; in iov_from_buf() 54 if (offset < iov[i].iov_len) { in iov_to_buf() 55 size_t len = MIN(iov[i].iov_len - offset, bytes - done); in iov_to_buf() 60 offset -= iov[i].iov_len; in iov_to_buf() 73 if (offset < iov[i].iov_len) { in iov_memset() 74 size_t len = MIN(iov[i].iov_len - offset, bytes - done); in iov_memset() 79 offset -= iov[i].iov_len; in iov_memset() 93 len += iov[i].iov_len; in iov_size() [all …]
|
/external/qemu/slirp-android/ |
D | socket.c | 113 iov[1].iov_len = 0; in sopreprbuf() 115 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; in sopreprbuf() 117 if (iov[0].iov_len > len) in sopreprbuf() 118 iov[0].iov_len = len; in sopreprbuf() 119 if (iov[0].iov_len > mss) in sopreprbuf() 120 iov[0].iov_len -= iov[0].iov_len%mss; in sopreprbuf() 123 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; in sopreprbuf() 125 if (iov[0].iov_len > len) iov[0].iov_len = len; in sopreprbuf() 126 len -= iov[0].iov_len; in sopreprbuf() 129 iov[1].iov_len = sb->sb_rptr - sb->sb_data; in sopreprbuf() [all …]
|
/external/qemu/slirp/ |
D | socket.c | 105 iov[1].iov_len = 0; in sopreprbuf() 107 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; in sopreprbuf() 109 if (iov[0].iov_len > len) in sopreprbuf() 110 iov[0].iov_len = len; in sopreprbuf() 111 if (iov[0].iov_len > mss) in sopreprbuf() 112 iov[0].iov_len -= iov[0].iov_len%mss; in sopreprbuf() 115 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; in sopreprbuf() 117 if (iov[0].iov_len > len) iov[0].iov_len = len; in sopreprbuf() 118 len -= iov[0].iov_len; in sopreprbuf() 121 iov[1].iov_len = sb->sb_rptr - sb->sb_data; in sopreprbuf() [all …]
|
/external/valgrind/main/none/tests/ |
D | process_vm_readv_writev.c | 24 lvec[0].iov_len = 1; in test_process_vm_readv() 26 lvec[1].iov_len = 2; in test_process_vm_readv() 29 rvec[0].iov_len = 2; in test_process_vm_readv() 31 rvec[1].iov_len = 1; in test_process_vm_readv() 60 lvec[0].iov_len = 1; in test_process_vm_writev() 62 lvec[1].iov_len = 2; in test_process_vm_writev() 65 rvec[0].iov_len = 2; in test_process_vm_writev() 67 rvec[1].iov_len = 1; in test_process_vm_writev()
|
/external/android-clat/ |
D | translate.c | 39 if (packet[i].iov_len > 0) { in packet_checksum() 40 checksum = ip_checksum_add(checksum, packet[i].iov_base, packet[i].iov_len); in packet_checksum() 56 len += packet[i].iov_len; in packet_length() 239 out[pos].iov_len = sizeof(struct icmp6_hdr); in icmp_to_icmp6() 260 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp_to_icmp6() 293 out[pos].iov_len = sizeof(struct icmphdr); in icmp6_to_icmp() 306 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp6_to_icmp() 328 out[pos].iov_len = 0; in generic_packet() 330 out[CLAT_POS_PAYLOAD].iov_len = len; in generic_packet() 410 out[pos].iov_len = sizeof(struct udphdr); in udp_translate() [all …]
|
D | ipv4.c | 66 int iov_len; in ipv4_packet() local 107 out[pos].iov_len = sizeof(struct ip6_hdr); in ipv4_packet() 120 out[pos + 1].iov_len = frag_hdr_len; in ipv4_packet() 124 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv4_packet() 126 iov_len = icmp_packet(out, pos + 2, (const struct icmphdr *) next_header, new_sum, len_left); in ipv4_packet() 128 iov_len = tcp_packet(out, pos + 2, (const struct tcphdr *) next_header, old_sum, new_sum, in ipv4_packet() 131 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum, in ipv4_packet() 134 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv4_packet() 145 return iov_len; in ipv4_packet()
|
D | ipv6.c | 86 int iov_len; in ipv6_packet() local 123 out[pos].iov_len = sizeof(struct iphdr); in ipv6_packet() 156 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv6_packet() 158 iov_len = icmp6_packet(out, pos + 2, (const struct icmp6_hdr *) next_header, len_left); in ipv6_packet() 160 iov_len = tcp_packet(out, pos + 2, (const struct tcphdr *) next_header, old_sum, new_sum, in ipv6_packet() 163 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum, in ipv6_packet() 166 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv6_packet() 178 return iov_len; in ipv6_packet()
|
/external/chromium_org/net/quic/ |
D | iovector.h | 24 length += iov[i].iov_len; in TotalIovecLength() 71 Append(static_cast<char*>(iov[i].iov_base), iov[i].iov_len); in AppendIovec() 80 const size_t length = std::min(max_bytes, iov[i].iov_len); in AppendIovecAtMostBytes() 96 if (static_cast<char*>(last.iov_base) + last.iov_len == buffer) { in Append() 97 last.iov_len += length; in Append() 126 for (; iter < end && bytes_to_consume >= iter->iov_len; ++iter) { in Consume() 127 bytes_to_consume -= iter->iov_len; in Consume() 133 iovec_[0].iov_len -= bytes_to_consume; in Consume() 175 static_cast<char *>(iovec_.back().iov_base) + iovec_.back().iov_len : in LastBlockEnd()
|
D | iovector_test.cc | 33 EXPECT_EQ(iov2.iovec()[i].iov_len, iov1.iovec()[i].iov_len); in TEST() 51 EXPECT_EQ(iov2.iovec()[i].iov_len, iov1.iovec()[i].iov_len); in TEST() 83 ASSERT_EQ(strlen(test_data[i]), iov2[i].iov_len); in TEST() 97 EXPECT_EQ(test_iov[i].iov_len, iov.iovec()[i].iov_len); in TEST() 112 EXPECT_EQ(test_iov[i].iov_len, iov.iovec()[i].iov_len); in TEST() 133 ASSERT_EQ(str_len, iov2[0].iov_len); in TEST() 142 ASSERT_EQ(iov2[0].iov_len, str_len - tmp); in TEST() 180 ASSERT_EQ(half_len, iov2[0].iov_len); in TEST() 268 EXPECT_EQ(1u, iov1.iovec()[0].iov_len); in TEST() 270 EXPECT_EQ(1u, iov1.iovec()[1].iov_len); in TEST() [all …]
|
D | quic_data_stream.cc | 60 size_t QuicDataStream::Readv(const struct iovec* iov, size_t iov_len) { in Readv() argument 64 return sequencer()->Readv(iov, iov_len); in Readv() 69 while (iov_index < iov_len && in Readv() 71 size_t bytes_to_read = min(iov[iov_index].iov_len, in Readv() 86 int QuicDataStream::GetReadableRegions(iovec* iov, size_t iov_len) { in GetReadableRegions() argument 88 return sequencer()->GetReadableRegions(iov, iov_len); in GetReadableRegions() 90 if (iov_len == 0) { in GetReadableRegions() 95 iov[0].iov_len = decompressed_headers_.length(); in GetReadableRegions()
|
D | quic_stream_sequencer.cc | 74 data.iovec()[i].iov_len); in OnStreamFrame() 101 byte_offset, string(static_cast<char*>(iov.iov_base), iov.iov_len))); in OnStreamFrame() 102 byte_offset += iov.iov_len; in OnStreamFrame() 103 num_bytes_buffered_ += iov.iov_len; in OnStreamFrame() 138 int QuicStreamSequencer::GetReadableRegions(iovec* iov, size_t iov_len) { in GetReadableRegions() argument 143 while (it != buffered_frames_.end() && index < iov_len) { in GetReadableRegions() 148 iov[index].iov_len = it->second.size(); in GetReadableRegions() 157 int QuicStreamSequencer::Readv(const struct iovec* iov, size_t iov_len) { in Readv() argument 165 while (iov_index < iov_len && in Readv() 168 int bytes_to_read = min(iov[iov_index].iov_len - iov_offset, in Readv() [all …]
|
D | quic_stream_sequencer.h | 46 int GetReadableRegions(iovec* iov, size_t iov_len); 50 int Readv(const struct iovec* iov, size_t iov_len);
|
D | quic_data_stream.h | 97 virtual size_t Readv(const struct iovec* iov, size_t iov_len); 98 virtual int GetReadableRegions(iovec* iov, size_t iov_len);
|
/external/ltrace/sysdeps/linux-gnu/metag/ |
D | regs.c | 38 iov.iov_len = sizeof(regs); in get_instruction_pointer() 52 iov.iov_len = sizeof(regs); in set_instruction_pointer() 59 iov.iov_len = sizeof(regs); in set_instruction_pointer() 70 iov.iov_len = sizeof(regs); in get_stack_pointer() 84 iov.iov_len = sizeof(regs); in get_return_addr()
|
D | trace.c | 83 iov.iov_len = sizeof(regs); in syscall_p() 189 iov.iov_len = sizeof(regs); in metag_next_pcs() 211 iov.iov_len = sizeof(regs); in metag_next_pcs() 256 iov.iov_len = sizeof(regs); in metag_next_pcs() 284 iov.iov_len = sizeof(regs); in metag_next_pcs() 403 iov.iov_len = sizeof(regs); in gimme_arg()
|
/external/valgrind/main/memcheck/tests/linux/ |
D | getregset.c | 63 iov.iov_len = sizeof(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/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_privsep.c | 36 io[0].iov_len = sizeof(cmd); in wpa_priv_cmd() 38 io[1].iov_len = data_len; in wpa_priv_cmd() 70 io[0].iov_len = sizeof(cmd); in l2_packet_send() 72 io[1].iov_len = ETH_ALEN; in l2_packet_send() 74 io[2].iov_len = 2; in l2_packet_send() 76 io[3].iov_len = len; in l2_packet_send()
|
/external/dnsmasq/contrib/wrt/ |
D | dhcp_release.c | 82 if (size <= iov->iov_len) in expand_buf() 93 memcpy(new, iov->iov_base, iov->iov_len); in expand_buf() 98 iov->iov_len = size; in expand_buf() 132 if (!expand_buf(&iov, iov.iov_len + 100)) in netlink_recv() 260 iov.iov_len = 200; in main() 261 iov.iov_base = malloc(iov.iov_len); in main()
|
/external/fio/engines/ |
D | splice.c | 119 iov.iov_len = ret; in fio_splice_read() 121 while (iov.iov_len) { in fio_splice_read() 145 iov.iov_len -= ret; in fio_splice_read() 172 .iov_len = io_u->xfer_buflen, in fio_splice_write() 179 while (iov.iov_len) { in fio_splice_write() 187 iov.iov_len -= ret; in fio_splice_write()
|
/external/dnsmasq/src/ |
D | bpf.c | 23 .iov_len = 0 28 .iov_len = 0 241 iov[0].iov_len = sizeof(ether); in send_via_bpf() 243 iov[1].iov_len = sizeof(ip); in send_via_bpf() 245 iov[2].iov_len = sizeof(udp); in send_via_bpf() 247 iov[3].iov_len = len; in send_via_bpf()
|
/external/chromium_org/components/crash/browser/ |
D | crash_handler_host_linux.cc | 175 iov[0].iov_len = kCrashContextSize; in OnFileCanReadWithoutBlocking() 177 iov[1].iov_len = sizeof(tid_buf_addr); in OnFileCanReadWithoutBlocking() 179 iov[2].iov_len = sizeof(tid_fd); in OnFileCanReadWithoutBlocking() 181 iov[3].iov_len = sizeof(uptime); in OnFileCanReadWithoutBlocking() 183 iov[4].iov_len = sizeof(oom_size); in OnFileCanReadWithoutBlocking() 185 iov[5].iov_len = crash_keys_size; in OnFileCanReadWithoutBlocking() 190 iov[6].iov_len = kMaxAsanReportSize + 1; in OnFileCanReadWithoutBlocking() 411 done_iov.iov_len = 1; in QueueCrashDumpTask()
|
/external/ltrace/sysdeps/linux-gnu/aarch64/ |
D | regs.c | 39 iovec.iov_len = sizeof *regs; in aarch64_read_gregs() 49 iovec.iov_len = sizeof *regs; in aarch64_write_gregs() 60 iovec.iov_len = sizeof *regs; in aarch64_read_fregs()
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | readv.cc | 23 iov[0].iov_len = 5; in main() 25 iov[1].iov_len = 2000; in main()
|
/external/valgrind/main/memcheck/tests/ |
D | sendmsg.c | 37 iov[0].iov_len = 3; in main() 39 iov[1].iov_len = 3; in main()
|
/external/libnl/lib/ |
D | nl.c | 285 .iov_len = nlmsg_hdr(msg)->nlmsg_len, in nl_send() 423 iov.iov_len = page_size; in nl_recv() 424 iov.iov_base = *buf = malloc(iov.iov_len); in nl_recv() 449 if (iov.iov_len < n || in nl_recv() 453 iov.iov_len *= 2; in nl_recv() 454 iov.iov_base = *buf = realloc(*buf, iov.iov_len); in nl_recv()
|