Home
last modified time | relevance | path

Searched refs:iov_base (Results 1 – 25 of 114) sorted by relevance

12345

/external/valgrind/main/none/tests/
Dprocess_vm_readv_writev.c21 lvec[0].iov_base = lbuf + 1; in test_process_vm_readv()
23 lvec[1].iov_base = lbuf + 3; in test_process_vm_readv()
26 rvec[0].iov_base = rbuf + 1; in test_process_vm_readv()
28 rvec[1].iov_base = rbuf + 4; in test_process_vm_readv()
57 lvec[0].iov_base = lbuf + 1; in test_process_vm_writev()
59 lvec[1].iov_base = lbuf + 3; in test_process_vm_writev()
62 rvec[0].iov_base = rbuf + 1; in test_process_vm_writev()
64 rvec[1].iov_base = rbuf + 4; in test_process_vm_writev()
/external/chromium_org/net/quic/
Diovector_test.cc32 EXPECT_TRUE(iov2.iovec()[i].iov_base == iov1.iovec()[i].iov_base); in TEST()
50 EXPECT_TRUE(iov2.iovec()[i].iov_base == iov1.iovec()[i].iov_base); in TEST()
82 ASSERT_TRUE(test_data[i] == iov2[i].iov_base); in TEST()
96 EXPECT_EQ(test_iov[i].iov_base, iov.iovec()[i].iov_base); in TEST()
106 iov.Append(static_cast<char*>(test_iov[1].iov_base) + 2, 1); in TEST()
111 EXPECT_EQ(test_iov[i].iov_base, iov.iovec()[i].iov_base); in TEST()
132 ASSERT_TRUE(iov2[0].iov_base == test_data[i]); in TEST()
141 ASSERT_TRUE(iov2[0].iov_base == test_data[i] + tmp); in TEST()
178 ASSERT_TRUE(iov2[0].iov_base == in TEST()
267 EXPECT_EQ(&c[0], iov1.iovec()[0].iov_base); in TEST()
[all …]
Diovector.h72 Append(static_cast<char*>(iov[i].iov_base), iov[i].iov_len); in AppendIovec()
82 Append(static_cast<char*>(iov[i].iov_base), length); in AppendIovecAtMostBytes()
97 if (static_cast<char*>(last.iov_base) + last.iov_len == buffer) { in Append()
132 iovec_[0].iov_base = in Consume()
133 static_cast<char*>(iovec_[0].iov_base) + bytes_to_consume; in Consume()
176 static_cast<char *>(iovec_.back().iov_base) + iovec_.back().iov_len : in LastBlockEnd()
Dquic_stream_sequencer.cc100 static_cast<char*>(data.iovec()[i].iov_base), in OnStreamFrame()
123 static_cast<char*>(data.iovec()[i].iov_base), in OnStreamFrame()
165 iov[index].iov_base = static_cast<void*>( in GetReadableRegions()
189 char* iov_ptr = static_cast<char*>(iov[iov_index].iov_base) + iov_offset; in Readv()
Dquic_data_stream.cc77 char* iov_ptr = static_cast<char*>(iov[iov_index].iov_base); in Readv()
94 iov[0].iov_base = static_cast<void*>( in GetReadableRegions()
253 StringPiece(static_cast<char*>(iovec.iov_base), in OnDecompressorAvailable()
/external/qemu/
Dcutils.c165 qiov->iov[qiov->niov].iov_base = base; in qemu_iovec_add()
183 void *iov_base; in qemu_iovec_copy() local
196 iov_base = (uint8_t*) src->iov[i].iov_base + skip; in qemu_iovec_copy()
202 qemu_iovec_add(dst, iov_base, size - done); in qemu_iovec_copy()
205 qemu_iovec_add(dst, iov_base, iov_len); in qemu_iovec_copy()
237 memcpy(p, qiov->iov[i].iov_base, qiov->iov[i].iov_len); in qemu_iovec_to_buffer()
252 memcpy(qiov->iov[i].iov_base, p, copy); in qemu_iovec_from_buffer()
265 memset(qiov->iov[i].iov_base, c, n); in qemu_iovec_memset()
275 void *iov_base; in qemu_iovec_memset_skip() local
286 iov_base = (uint8_t*) qiov->iov[i].iov_base + skip; in qemu_iovec_memset_skip()
[all …]
/external/dnsmasq/src/
Dbpf.c22 .iov_base = NULL,
27 .iov_base = NULL,
51 ifc.ifc_buf = ifconf.iov_base; in iface_enumerate()
83 ifr = (struct ifreq *)ifreq.iov_base; in iface_enumerate()
145 sprintf(ifreq.iov_base, "/dev/bpf%d", i++); in init_bpf()
146 if ((daemon->dhcp_raw_fd = open(ifreq.iov_base, O_RDWR, 0)) != -1) in init_bpf()
240 iov[0].iov_base = &ether; in send_via_bpf()
242 iov[1].iov_base = &ip; in send_via_bpf()
244 iov[2].iov_base = &udp; in send_via_bpf()
246 iov[3].iov_base = mess; in send_via_bpf()
Dutil.c441 if (iov->iov_base) in expand_buf()
443 memcpy(new, iov->iov_base, iov->iov_len); in expand_buf()
444 free(iov->iov_base); in expand_buf()
447 iov->iov_base = new; in expand_buf()
Dnetlink.c72 iov.iov_base = safe_malloc(iov.iov_len); in netlink_init()
170 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) in iface_enumerate()
249 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) in netlink_multicast()
/external/kernel-headers/original/linux/sunrpc/
Dsvc.h84 vp = iov->iov_base; in svc_getu32()
86 iov->iov_base = (void*)vp; in svc_getu32()
93 u32 *vp = (u32 *)iov->iov_base; in svc_ungetu32()
94 iov->iov_base = (void *)(vp - 1); in svc_ungetu32()
100 u32 *vp = iov->iov_base + iov->iov_len; in svc_putu32()
176 return cp >= (char*)vec->iov_base in xdr_argsize_check()
177 && cp <= (char*)vec->iov_base + vec->iov_len; in xdr_argsize_check()
186 vec->iov_len = cp - (char*)vec->iov_base; in xdr_ressize_check()
/external/compiler-rt/lib/asan/lit_tests/TestCases/
Dreadv.cc19 iov[0].iov_base = buf_ - 1; in main()
21 iov[0].iov_base = buf + 1; in main()
24 iov[1].iov_base = buf + 10; in main()
/external/chromium_org/components/breakpad/browser/
Dcrash_handler_host_linux.cc177 iov[0].iov_base = crash_context; in OnFileCanReadWithoutBlocking()
179 iov[1].iov_base = distro; in OnFileCanReadWithoutBlocking()
181 iov[2].iov_base = &tid_buf_addr; in OnFileCanReadWithoutBlocking()
183 iov[3].iov_base = &tid_fd; in OnFileCanReadWithoutBlocking()
185 iov[4].iov_base = &uptime; in OnFileCanReadWithoutBlocking()
187 iov[5].iov_base = &oom_size; in OnFileCanReadWithoutBlocking()
189 iov[6].iov_base = serialized_crash_keys; in OnFileCanReadWithoutBlocking()
192 iov[7].iov_base = asan_report_str_; in OnFileCanReadWithoutBlocking()
439 done_iov.iov_base = const_cast<char*>("\x42"); in QueueCrashDumpTask()
/external/android-clat/
Dtranslate.c40 checksum = ip_checksum_add(checksum, packet[i].iov_base, packet[i].iov_len); in packet_checksum()
229 struct icmp6_hdr *icmp6_targ = out[pos].iov_base; in icmp_to_icmp6()
259 out[CLAT_POS_PAYLOAD].iov_base = (char *) payload; in icmp_to_icmp6()
283 struct icmphdr *icmp_targ = out[pos].iov_base; in icmp6_to_icmp()
305 out[CLAT_POS_PAYLOAD].iov_base = (char *) payload; in icmp6_to_icmp()
329 out[CLAT_POS_PAYLOAD].iov_base = (char *) payload; in generic_packet()
406 struct udphdr *udp_targ = out[pos].iov_base; in udp_translate()
411 out[CLAT_POS_PAYLOAD].iov_base = (char *) payload; in udp_translate()
446 struct tcphdr *tcp_targ = out[pos].iov_base; in tcp_translate()
459 out[CLAT_POS_PAYLOAD].iov_base = (char *)payload; in tcp_translate()
Dipv4.c59 struct ip6_hdr *ip6_targ = (struct ip6_hdr *) out[pos].iov_base; in ipv4_packet()
118 frag_hdr = (struct ip6_frag *) out[pos + 1].iov_base; in ipv4_packet()
/external/chromium/chrome/browser/
Dcrash_handler_host_linux.cc143 iov[0].iov_base = crash_context; in OnFileCanReadWithoutBlocking()
145 iov[1].iov_base = guid; in OnFileCanReadWithoutBlocking()
147 iov[2].iov_base = crash_url; in OnFileCanReadWithoutBlocking()
149 iov[3].iov_base = distro; in OnFileCanReadWithoutBlocking()
151 iov[4].iov_base = &tid_buf_addr; in OnFileCanReadWithoutBlocking()
153 iov[5].iov_base = &tid_fd; in OnFileCanReadWithoutBlocking()
155 iov[6].iov_base = &uptime; in OnFileCanReadWithoutBlocking()
361 done_iov.iov_base = const_cast<char*>("\x42"); in QueueCrashDumpTask()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_privsep.c35 io[0].iov_base = &cmd; in wpa_priv_cmd()
37 io[1].iov_base = (u8 *) data; in wpa_priv_cmd()
69 io[0].iov_base = &cmd; in l2_packet_send()
71 io[1].iov_base = &dst_addr; in l2_packet_send()
73 io[2].iov_base = &proto; in l2_packet_send()
75 io[3].iov_base = (u8 *) buf; in l2_packet_send()
/external/qemu/slirp/
Dsocket.c103 iov[0].iov_base = sb->sb_wptr; in sopreprbuf()
104 iov[1].iov_base = NULL; in sopreprbuf()
120 iov[1].iov_base = sb->sb_data; in sopreprbuf()
174 nn = recv(so->s, iov[0].iov_base, iov[0].iov_len,0); in soread()
199 ret = recv(so->s, iov[1].iov_base, iov[1].iov_len,0); in soread()
232 memcpy(iov[0].iov_base, buf, nn); in soreadbuf()
240 memcpy(iov[1].iov_base, buf, copy); in soreadbuf()
373 iov[0].iov_base = sb->sb_rptr; in sowrite()
374 iov[1].iov_base = NULL; in sowrite()
386 iov[1].iov_base = sb->sb_data; in sowrite()
[all …]
/external/qemu/slirp-android/
Dsocket.c111 iov[0].iov_base = sb->sb_wptr; in sopreprbuf()
112 iov[1].iov_base = NULL; in sopreprbuf()
128 iov[1].iov_base = sb->sb_data; in sopreprbuf()
182 nn = socket_recv(so->s, iov[0].iov_base, iov[0].iov_len); in soread()
207 ret = socket_recv(so->s, iov[1].iov_base, iov[1].iov_len); in soread()
240 memcpy(iov[0].iov_base, buf, nn); in soreadbuf()
248 memcpy(iov[1].iov_base, buf, copy); in soreadbuf()
381 iov[0].iov_base = sb->sb_rptr; in sowrite()
382 iov[1].iov_base = NULL; in sowrite()
394 iov[1].iov_base = sb->sb_data; in sowrite()
[all …]
/external/dnsmasq/contrib/wrt/
Ddhcp_release.c91 if (iov->iov_base) in expand_buf()
93 memcpy(new, iov->iov_base, iov->iov_len); in expand_buf()
94 free(iov->iov_base); in expand_buf()
97 iov->iov_base = new; in expand_buf()
219 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) in find_interface()
261 iov.iov_base = malloc(iov.iov_len); in main()
/external/kernel-headers/original/linux/
Duio.h22 void __user *iov_base; /* BSD uses caddr_t (1003.1g requires void *) */ member
29 void *iov_base; /* and that should *never* hold a userland pointer */ member
/external/libppp/src/
Datm.c113 iov[*niov].iov_base = realloc(d, sz); in atm_device2iov()
114 if (iov[*niov].iov_base == NULL) { in atm_device2iov()
148 struct atmdevice *dev = (struct atmdevice *)iov[(*niov)++].iov_base; in atm_iov2device()
/external/openssh/
Datomicio.c149 iov[0].iov_base = ((char *)iov[0].iov_base) + rem; in atomiciov6()
Dmonitor_fdpass.c77 vec.iov_base = &ch; in mm_send_fd()
126 vec.iov_base = &ch; in mm_receive_fd()
/external/chromium_org/net/base/
Diovec.h13 void* iov_base; /* Pointer to data. */ member
/external/chromium_org/sandbox/linux/seccomp-bpf/
Ddemo.cc63 iov[0].iov_base = &dummy; in SendFds()
66 iov[1].iov_base = const_cast<void *>(buf); in SendFds()
101 iov[0].iov_base = &err; in GetFds()
104 iov[1].iov_base = buf; in GetFds()

12345