Home
last modified time | relevance | path

Searched refs:iovec (Results 1 – 25 of 70) sorted by relevance

123

/system/media/audio_utils/
Dfifo.cpp182 audio_utils_iovec iovec[2]; in write() local
183 ssize_t availToWrite = obtain(iovec, count, timeout); in write()
185 memcpy((char *) mFifo.mBuffer + iovec[0].mOffset * mFifo.mFrameSize, buffer, in write()
186 iovec[0].mLength * mFifo.mFrameSize); in write()
187 if (iovec[1].mLength > 0) { in write()
188 memcpy((char *) mFifo.mBuffer + iovec[1].mOffset * mFifo.mFrameSize, in write()
189 (char *) buffer + (iovec[0].mLength * mFifo.mFrameSize), in write()
190 iovec[1].mLength * mFifo.mFrameSize); in write()
198 ssize_t audio_utils_fifo_writer::obtain(audio_utils_iovec iovec[2], size_t count, in obtain()
293 if (iovec != NULL) { in obtain()
[all …]
/system/core/trusty/storage/lib/
Dstorage.c105 const struct iovec *tx_iovs, uint tx_iovcnt, in send_reqv()
106 const struct iovec *rx_iovs, uint rx_iovcnt) in send_reqv()
148 struct iovec tx[3] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}, {(void *)name, strlen(name)}}; in storage_open_file()
150 struct iovec rx[2] = {{&msg, sizeof(msg)}, {&rsp, sizeof(rsp)}}; in storage_open_file()
170 struct iovec tx[2] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}}; in storage_close_file()
171 struct iovec rx[1] = {{&msg, sizeof(msg)}}; in storage_close_file()
184 struct iovec tx[3] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}, {(void *)name, strlen(name)}}; in storage_delete_file()
185 struct iovec rx[1] = {{&msg, sizeof(msg)}}; in storage_delete_file()
195 struct iovec tx[2] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}}; in _read_chunk()
196 struct iovec rx[2] = {{&msg, sizeof(msg)}, {buf, size}}; in _read_chunk()
[all …]
/system/core/logd/
DLogBufferElement.cpp257 struct iovec iovec[2]; in flushTo() local
258 iovec[0].iov_base = &entry; in flushTo()
259 iovec[0].iov_len = entry.hdr_size; in flushTo()
266 iovec[1].iov_base = buffer; in flushTo()
269 iovec[1].iov_base = mMsg; in flushTo()
271 iovec[1].iov_len = entry.len; in flushTo()
273 log_time retval = reader->sendDatav(iovec, 1 + (entry.len != 0)) in flushTo()
/system/core/liblog/
Dfake_log_device.h24 struct iovec;
30 ssize_t fakeLogWritev(int fd, const struct iovec* vector, int count);
Dlogger_write.cpp40 static int __write_to_log_init(log_id_t, struct iovec* vec, size_t nr);
41 static int (*write_to_log)(log_id_t, struct iovec* vec, size_t nr) = __write_to_log_init;
239 static int __write_to_log_daemon(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_daemon()
379 static int __write_to_log_init(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_init()
410 struct iovec vec[3]; in __android_log_buf_write()
537 struct iovec vec[2]; in __android_log_bwrite()
548 struct iovec vec[2]; in __android_log_stats_bwrite()
559 struct iovec vec[2]; in __android_log_security_bwrite()
575 struct iovec vec[3]; in __android_log_btwrite()
592 struct iovec vec[4]; in __android_log_bswrite()
[all …]
Dfake_log_device.cpp329 static ssize_t fake_writev(int fd, const struct iovec* iov, int iovcnt) { in fake_writev()
331 const struct iovec* end = iov + iovcnt; in fake_writev()
457 const size_t MAX_LINES = ((size_t)~0) / (3 * sizeof(struct iovec*)); in showLog()
458 struct iovec stackVec[INLINE_VECS]; in showLog()
459 struct iovec* vec = stackVec; in showLog()
466 vec = (struct iovec*)malloc(sizeof(struct iovec) * numVecs); in showLog()
479 struct iovec* v = vec; in showLog()
551 ssize_t fakeLogWritev(int fd, const struct iovec* vector, int count) { in fakeLogWritev()
Dfake_writer.cpp30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec, size_t nr);
74 static int fakeWrite(log_id_t log_id, struct timespec*, struct iovec* vec, size_t nr) { in fakeWrite()
Duio.h21 struct iovec { struct
Dpmsg_writer.cpp41 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
98 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in pmsgWrite()
100 struct iovec newVec[nr + headerLength]; in pmsgWrite()
210 struct iovec vec[3]; in __android_log_pmsg_file_write()
Dlogd_writer.cpp49 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
126 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in logdWrite()
130 struct iovec newVec[nr + headerLength]; in logdWrite()
/system/core/libstats/
Dstats_event_list.c43 static int __write_to_statsd_init(struct iovec* vec, size_t nr);
44 int (*write_to_statsd)(struct iovec* vec, size_t nr) = __write_to_statsd_init;
95 struct iovec vec[2]; in stats_write_list()
147 static int __write_to_stats_daemon(struct iovec* vec, size_t nr) { in __write_to_stats_daemon()
174 static int __write_to_statsd_init(struct iovec* vec, size_t nr) { in __write_to_statsd_init()
Dstatsd_writer.h40 int (*write)(struct timespec* ts, struct iovec* vec, size_t nr);
Dstatsd_writer.c82 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr);
175 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr) { in statsdWrite()
179 struct iovec newVec[nr + headerLength]; in statsdWrite()
/system/core/libcutils/
Dklog.cpp47 void klog_writev(int level, const struct iovec* iov, int iov_count) { in klog_writev()
66 struct iovec iov[1]; in klog_write()
/system/libhwbinder/
DStatic.cpp40 virtual status_t writeLines(const struct iovec& vec, size_t N) in writeLines()
56 virtual status_t writeLines(const struct iovec& vec, size_t N) in writeLines()
/system/core/libsysutils/include/sysutils/
DSocketClient.h62 int sendDatav(struct iovec *iov, int iovcnt);
82 int sendDataLockedv(struct iovec *iov, int iovcnt);
/system/core/libmemunreachable/
DThreadCapture.cpp216 struct iovec iovec; in PtraceThreadInfo() local
217 iovec.iov_base = &regs; in PtraceThreadInfo()
218 iovec.iov_len = sizeof(regs); in PtraceThreadInfo()
220 if (ptrace(PTRACE_GETREGSET, tid, reinterpret_cast<void*>(NT_PRSTATUS), &iovec)) { in PtraceThreadInfo()
225 unsigned int num_regs = iovec.iov_len / sizeof(uintptr_t); in PtraceThreadInfo()
DLeakPipe.cpp28 struct iovec iov {}; in SendFd()
62 struct iovec iov {}; in ReceiveFd()
/system/media/audio_utils/include/audio_utils/
Dfifo.h276 virtual ssize_t obtain(audio_utils_iovec iovec[2], size_t count = SIZE_MAX,
388 virtual ssize_t obtain(audio_utils_iovec iovec[2], size_t count = SIZE_MAX,
516 virtual ssize_t obtain(audio_utils_iovec iovec[2], size_t count = SIZE_MAX,
531 ssize_t obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout,
/system/core/trusty/storage/proxy/
Dipc.c70 struct iovec iovs[2] = {{msg, sizeof(*msg)}, {req_buf, req_buf_len}}; in ipc_get_msg()
99 struct iovec iovs[2] = {{msg, sizeof(*msg)}, {out, out_size}}; in ipc_respond()
/system/core/libsysutils/src/
DSocketClient.cpp113 struct iovec vec[2]; in sendBinaryMsg()
174 struct iovec vec[1]; in sendData()
185 int SocketClient::sendDatav(struct iovec *iov, int iovcnt) { in sendDatav()
193 int SocketClient::sendDataLockedv(struct iovec *iov, int iovcnt) { in sendDataLockedv()
/system/netd/server/
DSockDiag.h94 iovec *iov, int iovcnt);
96 int destroyLiveSockets(const DestroyFilter& destroy, const char *what, iovec *iov, int iovcnt);
DNetlinkCommands.cpp77 WARN_UNUSED_RESULT int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen, in sendNetlinkRequest()
114 int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) { in sendNetlinkRequest()
188 iovec iov[] = { in rtNetlinkFlush()
DSockDiag.cpp96 iovec *iov, int iovcnt) { in sendDumpRequest()
129 iovec iov[] = { in sendDumpRequest()
196 iovec iov[] = { in sendDumpRequest()
333 iovec *iov, int iovcnt) { in destroyLiveSockets()
357 iovec iov[] = { in getLiveTcpInfos()
418 iovec iov[] = { in destroySockets()
502 iovec iov[] = { in destroySocketsLackingPermission()
/system/core/adb/sysdeps/
Duio.h34 using adb_iovec = struct iovec;

123