HomeSort by relevance Sort by last modified time
    Searched refs:iov (Results 1 - 25 of 177) sorted by null

1 2 3 4 5 6 7 8

  /external/compiler-rt/lib/asan/lit_tests/TestCases/
readv.cc 16 struct iovec iov[2]; local
19 iov[0].iov_base = buf_ - 1;
21 iov[0].iov_base = buf + 1;
23 iov[0].iov_len = 5;
24 iov[1].iov_base = buf + 10;
25 iov[1].iov_len = 2000;
28 readv(fd, iov, 2);
  /bionic/libc/upstream-freebsd/lib/libc/stdio/
puts.c 56 struct __siov iov[2]; local
58 iov[0].iov_base = (void *)s;
59 iov[0].iov_len = c;
60 iov[1].iov_base = "\n";
61 iov[1].iov_len = 1;
63 uio.uio_iov = &iov[0];
putw.c 50 struct __siov iov; local
52 iov.iov_base = &w;
53 iov.iov_len = uio.uio_resid = sizeof(w);
54 uio.uio_iov = &iov;
fputs.c 55 struct __siov iov; local
57 iov.iov_base = (void *)s;
58 iov.iov_len = uio.uio_resid = strlen(s);
59 uio.uio_iov = &iov;
fwrite.c 57 struct __siov iov; local
80 iov.iov_base = (void *)buf;
81 uio.uio_resid = iov.iov_len = n;
82 uio.uio_iov = &iov;
  /external/chromium_org/net/quic/
iovector_test.cc 57 IOVector iov; local
59 const struct iovec* iov2 = iov.iovec();
61 ASSERT_EQ(0u, iov.Size());
67 iov.Append(const_cast<char*>(test_data[i]), append_len);
69 ASSERT_EQ(i + 1, static_cast<size_t>(iov.Size()));
70 ASSERT_TRUE(iov.LastBlockEnd() == test_data[i] + append_len);
72 iov.Append(const_cast<char*>(test_data[i] + append_len),
75 ASSERT_EQ(i + 1, static_cast<size_t>(iov.Size()));
76 ASSERT_TRUE(iov.LastBlockEnd() == test_data[i] + str_len);
79 iov2 = iov.iovec()
88 IOVector iov; local
117 IOVector iov; local
161 IOVector iov; local
192 IOVector iov; local
217 IOVector iov; local
236 IOVector iov; local
    [all...]
iovector.h 20 inline size_t TotalIovecLength(const struct iovec* iov, size_t iovcnt) {
22 if (iov != NULL) {
24 length += iov[i].iov_len;
70 void AppendIovec(const struct iovec* iov, size_t iovcnt) {
72 Append(static_cast<char*>(iov[i].iov_base), iov[i].iov_len);
76 size_t AppendIovecAtMostBytes(const struct iovec* iov,
81 const size_t length = std::min(max_bytes, iov[i].iov_len);
82 Append(static_cast<char*>(iov[i].iov_base), length);
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
uio.h 36 static __inline__ size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
42 ret += iov[seg].iov_len;
46 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/
uio.h 36 static __inline__ size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
42 ret += iov[seg].iov_len;
46 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/
uio.h 36 static __inline__ size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
42 ret += iov[seg].iov_len;
46 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
  /external/chromium_org/third_party/ots/src/
glyf.h 16 std::vector<std::pair<const uint8_t*, size_t> > iov; member in struct:ots::OpenTypeGLYF
  /external/kernel-headers/original/linux/
uio.h 54 static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
60 ret += iov[seg].iov_len;
64 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
  /external/openssh/
atomicio.c 102 struct iovec iov_array[IOV_MAX], *iov = iov_array; local
109 /* Make a copy of the iov array because we may modify it below */
110 memcpy(iov, _iov, iovcnt * sizeof(*_iov));
116 for (; iovcnt > 0 && iov[0].iov_len > 0;) {
117 res = (f) (fd, iov, iovcnt);
135 /* skip completed iov entries */
136 while (iovcnt > 0 && rem >= iov[0].iov_len) {
137 rem -= iov[0].iov_len;
138 iov++;
142 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len))
    [all...]
  /external/qemu/slirp/
socket.c 88 size_t sopreprbuf(struct socket *so, struct iovec *iov, int *np)
103 iov[0].iov_base = sb->sb_wptr;
104 iov[1].iov_base = NULL;
105 iov[1].iov_len = 0;
107 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr;
109 if (iov[0].iov_len > len)
110 iov[0].iov_len = len;
111 if (iov[0].iov_len > mss)
112 iov[0].iov_len -= iov[0].iov_len%mss
159 struct iovec iov[2]; local
219 struct iovec iov[2]; local
355 struct iovec iov[2]; local
    [all...]
  /external/qemu/slirp-android/
socket.c 96 size_t sopreprbuf(struct socket *so, struct iovec *iov, int *np)
111 iov[0].iov_base = sb->sb_wptr;
112 iov[1].iov_base = NULL;
113 iov[1].iov_len = 0;
115 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr;
117 if (iov[0].iov_len > len)
118 iov[0].iov_len = len;
119 if (iov[0].iov_len > mss)
120 iov[0].iov_len -= iov[0].iov_len%mss
167 struct iovec iov[2]; local
227 struct iovec iov[2]; local
363 struct iovec iov[2]; local
    [all...]
  /external/qemu/
cutils.c 139 qiov->iov = qemu_malloc(alloc_hint * sizeof(struct iovec));
145 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov)
149 qiov->iov = iov;
154 qiov->size += iov[i].iov_len;
163 qiov->iov = qemu_realloc(qiov->iov, qiov->nalloc * sizeof(struct iovec));
165 qiov->iov[qiov->niov].iov_base = base;
166 qiov->iov[qiov->niov].iov_len = len;
190 if (skip >= src->iov[i].iov_len)
    [all...]
dma-helpers.c 48 QEMUIOVector iov; member in struct:__anon25218
75 for (i = 0; i < dbs->iov.niov; ++i) {
76 cpu_physical_memory_unmap(dbs->iov.iov[i].iov_base,
77 dbs->iov.iov[i].iov_len, !dbs->is_write,
78 dbs->iov.iov[i].iov_len);
89 dbs->sector_num += dbs->iov.size / 512;
91 qemu_iovec_reset(&dbs->iov);
    [all...]
  /device/samsung/manta/libsensors/
InputEventReader.cpp 59 struct iovec iov[2]; local
65 iov[0].iov_base = mHead;
66 iov[0].iov_len = numFirst * sizeof(iio_event_data);
70 iov[1].iov_base = mBuffer;
71 iov[1].iov_len = numSecond * sizeof(iio_event_data);
74 const ssize_t nread = readv(fd, iov, iovcnt);
  /external/dnsmasq/contrib/wrt/
dhcp_release.c 76 static struct iovec iov; variable in typeref:struct:iovec
78 static int expand_buf(struct iovec *iov, size_t size)
82 if (size <= iov->iov_len)
91 if (iov->iov_base)
93 memcpy(new, iov->iov_base, iov->iov_len);
94 free(iov->iov_base);
97 iov->iov_base = new;
98 iov->iov_len = size;
112 msg.msg_iov = &iov;
258 struct iovec iov; local
    [all...]
  /bionic/libc/netbsd/resolv/
herror.c 99 struct iovec iov[4], *v = iov; local
119 writev(STDERR_FILENO, iov, (v - iov) + 1);
  /bionic/libc/upstream-netbsd/libc/gen/
psignal.c 61 struct iovec iov[4]; local
64 v = iov;
78 (void)writev(STDERR_FILENO, iov, (int)((v - iov) + 1));
  /external/qemu/hw/
scsi-disk.c 56 struct iovec iov; member in struct:SCSIRequest
92 r->iov.iov_base = qemu_memalign(512, SCSI_DMA_BUF_SIZE);
97 r->iov.iov_len = 0;
176 DPRINTF("Data ready tag=0x%x len=%d\n", r->tag, r->iov.iov_len);
178 s->completion(s->opaque, SCSI_REASON_DATA, r->tag, r->iov.iov_len);
196 DPRINTF("Read buf_len=%d\n", r->iov.iov_len);
198 s->completion(s->opaque, SCSI_REASON_DATA, r->tag, r->iov.iov_len);
211 r->iov.iov_len = n * 512;
212 qemu_iovec_init_external(&r->qiov, &r->iov, 1);
254 n = r->iov.iov_len / 512
    [all...]
  /device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
mm_camera_sock.c 122 struct iovec iov[1]; local
134 iov[0].iov_base = msg;
135 iov[0].iov_len = buf_size;
136 msgh.msg_iov = iov;
138 CDBG("%s: iov_len=%d", __func__, iov[0].iov_len);
183 struct iovec iov[1]; local
200 iov[0].iov_base = msg;
201 iov[0].iov_len = buf_size;
202 msgh.msg_iov = iov;
  /device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/
mm_camera_sock.c 117 struct iovec iov[1]; local
129 iov[0].iov_base = msg;
130 iov[0].iov_len = buf_size;
131 msgh.msg_iov = iov;
133 CDBG("%s: iov_len=%d", __func__, iov[0].iov_len);
177 struct iovec iov[1]; local
194 iov[0].iov_base = msg;
195 iov[0].iov_len = buf_size;
196 msgh.msg_iov = iov;
  /device/lge/mako/camera/mm-camera-interface/
mm_camera_sock.c 117 struct iovec iov[1]; local
129 iov[0].iov_base = msg;
130 iov[0].iov_len = buf_size;
131 msgh.msg_iov = iov;
133 CDBG("%s: iov_len=%d", __func__, iov[0].iov_len);
177 struct iovec iov[1]; local
194 iov[0].iov_base = msg;
195 iov[0].iov_len = buf_size;
196 msgh.msg_iov = iov;

Completed in 994 milliseconds

1 2 3 4 5 6 7 8