Home
last modified time | relevance | path

Searched refs:iocb (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/mtp/
DMtpFfsHandle.h35 std::vector<struct iocb> iocbs; // Holds memory for all iocbs. Not used directly.
36 std::vector<struct iocb*> iocb; // Pointers to individual iocbs, for syscalls member
79 int cancelEvents(struct iocb **iocb, struct io_event *events, unsigned start, unsigned end);
DMtpFfsHandle.cpp274 mIobuf[i].iocb.resize(AIO_BUFS_MAX); in start()
279 mIobuf[i].iocb[j] = &mIobuf[i].iocbs[j]; in start()
372 int MtpFfsHandle::cancelEvents(struct iocb **iocb, struct io_event *events, unsigned start, in cancelEvents() argument
384 if (io_cancel(mCtx, iocb[j], nullptr) != -1 || errno != EINPROGRESS) { in cancelEvents()
416 io_prep(buf->iocb[j], fd, buf->buf[j], rq_length, 0, read); in iobufSubmit()
417 buf->iocb[j]->aio_flags |= IOCB_FLAG_RESFD; in iobufSubmit()
418 buf->iocb[j]->aio_resfd = mEventFd; in iobufSubmit()
427 ret = io_submit(mCtx, buf->actual, buf->iocb.data()); in iobufSubmit()
498 cancelEvents(mIobuf[i].iocb.data(), ioevs, num_events, mIobuf[i].actual); in receiveFile()
505 reinterpret_cast<struct iocb*>(ioevs[j].obj)->aio_nbytes) { in receiveFile()
[all …]