Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 5 of 5) sorted by relevance

/device/generic/goldfish/dhcp/common/
Dsocket.cpp138 struct iovec iov; in sendOnInterface() local
141 iov.iov_base = const_cast<uint8_t*>(message.data()); in sendOnInterface()
142 iov.iov_len = message.size(); in sendOnInterface()
145 header.msg_iov = &iov; in sendOnInterface()
202 struct iovec iov[3]; in sendRawUdp() local
204 iov[0].iov_base = static_cast<void*>(&ip); in sendRawUdp()
205 iov[0].iov_len = sizeof(ip); in sendRawUdp()
206 iov[1].iov_base = static_cast<void*>(&udp); in sendRawUdp()
207 iov[1].iov_len = sizeof(udp); in sendRawUdp()
209 iov[2].iov_base = static_cast<void*>(const_cast<uint8_t*>(message.data())); in sendRawUdp()
[all …]
/device/generic/opengl-transport/host/libs/virglrenderer/
DResource.h39 : args(*args_), num_iovs(num_iovs_), tex_id(0U), iov(iov_) { in Resource()
56 linearSize += iov[i].iov_len; in reallocLinear()
59 linearSize = iov[0].iov_len; in reallocLinear()
60 linear = iov[0].iov_base; in reallocLinear()
74 iovec* iov; member
DAVDVirglRenderer.cpp154 res->iov ? res->iov[0].iov_base : nullptr, res->iov ? res->iov[0].iov_len : 0, in dump_global_state()
209 if (iovOffset + res->iov[i].iov_len > offset) { in sync_linear_to_iovec()
210 char* iov_base = static_cast<char*>(res->iov[i].iov_base); in sync_linear_to_iovec()
211 size_t copyLength = std::min(length, res->iov[i].iov_len); in sync_linear_to_iovec()
217 iovOffset += res->iov[i].iov_len; in sync_linear_to_iovec()
253 if (iovOffset + res->iov[i].iov_len > offset) { in sync_iovec_to_linear()
254 const char* iov_base = static_cast<const char*>(res->iov[i].iov_base); in sync_iovec_to_linear()
255 size_t copyLength = std::min(length, res->iov[i].iov_len); in sync_iovec_to_linear()
261 iovOffset += res->iov[i].iov_len; in sync_iovec_to_linear()
592 cmdRespBufSize += res->iov[i].iov_len; in virgl_renderer_submit_cmd()
[all …]
/device/generic/goldfish/network/wifi_forwarder/
Dremote_connection.cpp266 struct iovec iov[count]; in sendFrame() local
267 iov[0].iov_base = &header; in sendFrame()
268 iov[0].iov_len = sizeof(header); in sendFrame()
269 iov[1].iov_base = frame->data(); in sendFrame()
270 iov[1].iov_len = frame->size(); in sendFrame()
272 size_t totalSize = iov[0].iov_len + iov[1].iov_len; in sendFrame()
276 ssize_t written = ::writev(mPipeFd, iov + current, count - current); in sendFrame()
288 while (current < count && written >= iov[current].iov_len) { in sendFrame()
289 written -= iov[current++].iov_len; in sendFrame()
294 iov[current].iov_base = in sendFrame()
[all …]
/device/google/cuttlefish/common/libs/net/
Dnetlink_client.cpp55 struct iovec iov = { buf, sizeof(buf) }; in CheckResponse() local
57 struct msghdr msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; in CheckResponse()