Home
last modified time | relevance | path

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

/frameworks/native/libs/binder/
DRpcTransportUtils.h74 auto& iov = iovs[0]; in interruptableReadOrWrite() local
75 if (static_cast<size_t>(processSize) < iov.iov_len) { in interruptableReadOrWrite()
77 iov.iov_base = reinterpret_cast<char*>(iov.iov_base) + processSize; in interruptableReadOrWrite()
78 iov.iov_len -= processSize; in interruptableReadOrWrite()
83 processSize -= iov.iov_len; in interruptableReadOrWrite()
DRpcTransportTls.cpp343 const iovec& iov = iovs[i]; in interruptableWriteFully() local
344 if (iov.iov_len == 0) { in interruptableWriteFully()
347 size += iov.iov_len; in interruptableWriteFully()
349 auto buffer = reinterpret_cast<const uint8_t*>(iov.iov_base); in interruptableWriteFully()
350 const uint8_t* end = buffer + iov.iov_len; in interruptableWriteFully()
389 const iovec& iov = iovs[i]; in interruptableReadFully() local
390 if (iov.iov_len == 0) { in interruptableReadFully()
393 size += iov.iov_len; in interruptableReadFully()
395 auto buffer = reinterpret_cast<uint8_t*>(iov.iov_base); in interruptableReadFully()
396 const uint8_t* end = buffer + iov.iov_len; in interruptableReadFully()
DRpcTransportTipcAndroid.cpp114 auto& iov = iovs[i]; in interruptableReadFully() local
115 size_t numBytes = std::min(iov.iov_len, mReadBufferSize - mReadBufferPos); in interruptableReadFully()
116 memcpy(iov.iov_base, mReadBuffer.get() + mReadBufferPos, numBytes); in interruptableReadFully()
DRpcServer.cpp216 iovec iov{&zero, sizeof(zero)}; in recvmsgSocketConnection() local
219 ssize_t num_bytes = binder::os::receiveMessageFromSocket(server.mServer, &iov, 1, &fds); in recvmsgSocketConnection()
393 iovec iov{&header, sizeof(header)}; in establishConnection() local
394 status = client->interruptableReadFully(server->mShutdownTrigger.get(), &iov, 1, in establishConnection()
408 iovec iov{sessionId.data(), sessionId.size()}; in establishConnection() local
409 status = client->interruptableReadFully(server->mShutdownTrigger.get(), &iov, 1, in establishConnection()
439 iovec iov{&response, sizeof(response)}; in establishConnection() local
440 status = client->interruptableWriteFully(server->mShutdownTrigger.get(), &iov, 1, in establishConnection()
DRpcState.cpp433 iovec iov{&response, sizeof(response)}; in readNewSessionResponse() local
434 if (status_t status = rpcRec(connection, session, "new session response", &iov, 1, nullptr); in readNewSessionResponse()
447 iovec iov{&init, sizeof(init)}; in sendConnectionInit() local
448 return rpcSend(connection, session, "connection init", &iov, 1, std::nullopt); in sendConnectionInit()
454 iovec iov{&init, sizeof(init)}; in readConnectionInit() local
455 if (status_t status = rpcRec(connection, session, "connection init", &iov, 1, nullptr); in readConnectionInit()
655 iovec iov{&command, sizeof(command)}; in waitForReply() local
656 if (status_t status = rpcRec(connection, session, "command header (for reply)", &iov, 1, in waitForReply()
772 iovec iov{&command, sizeof(command)}; in getAndExecuteCommand() local
774 rpcRec(connection, session, "command header (for server)", &iov, 1, in getAndExecuteCommand()
[all …]
DRpcSession.cpp160 iovec iov{&zero, sizeof(zero)}; in setupUnixDomainSocketBootstrapClient() local
164 status_t status = mBootstrapTransport->interruptableWriteFully(mShutdownTrigger.get(), &iov, in setupUnixDomainSocketBootstrapClient()
/frameworks/native/libs/binder/trusty/
DRpcTransportTipcTrusty.cpp66 .iov = iovs, in interruptableWriteFully()
155 .iov = iovs, in interruptableReadFully()
198 auto& iov = iovs[0]; in interruptableReadFully() local
199 if (processSize < iov.iov_len) { in interruptableReadFully()
201 iov.iov_base = reinterpret_cast<char*>(iov.iov_base) + processSize; in interruptableReadFully()
202 iov.iov_len -= processSize; in interruptableReadFully()
207 processSize -= iov.iov_len; in interruptableReadFully()
/frameworks/libs/binary_translation/kernel_api/
Dsys_ptrace_emulation.cc78 auto iov = reinterpret_cast<iovec*>(data); in PtraceForGuest() local
79 iov->iov_len = 0; in PtraceForGuest()
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp365 struct iovec iov[1]; in AHardwareBuffer_sendHandleToUnixSocket() local
366 iov[0].iov_base = data.get(); in AHardwareBuffer_sendHandleToUnixSocket()
367 iov[0].iov_len = flattenedSize; in AHardwareBuffer_sendHandleToUnixSocket()
371 .msg_iov = &iov[0], in AHardwareBuffer_sendHandleToUnixSocket()
406 struct iovec iov[1]; in AHardwareBuffer_recvHandleFromUnixSocket() local
407 iov[0].iov_base = dataBuf.get(); in AHardwareBuffer_recvHandleFromUnixSocket()
408 iov[0].iov_len = kMessageBufferSize; in AHardwareBuffer_recvHandleFromUnixSocket()
411 .msg_iov = &iov[0], in AHardwareBuffer_recvHandleFromUnixSocket()
/frameworks/native/libs/binder/trusty/include_mock/
Dtrusty_ipc.h40 iovec* iov; member
/frameworks/native/libs/binder/tests/
DbinderRpcTest.cpp231 iovec iov{&zero, sizeof(zero)}; in connectToUnixBootstrap() local
235 if (binder::os::sendMessageOnSocket(transportFd, &iov, 1, &fds) < 0) { in connectToUnixBootstrap()
1599 iovec iov{&buf, sizeof(buf)}; in recvmsgServerConnection() local
1601 if (binder::os::receiveMessageFromSocket(mFd, &iov, 1, &fds) < 0) { in recvmsgServerConnection()