Home
last modified time | relevance | path

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

/system/core/libasyncio/
DAsyncIO.cpp31 int io_submit(aio_context_t ctx, long nr, iocb** iocbpp) { in io_submit()
39 int io_cancel(aio_context_t ctx, iocb* iocbp, io_event* result) { in io_cancel()
43 void io_prep(iocb* iocb, int fd, const void* buf, uint64_t count, int64_t offset, bool read) { in io_prep() argument
44 memset(iocb, 0, sizeof(*iocb)); in io_prep()
45 iocb->aio_fildes = fd; in io_prep()
46 iocb->aio_lio_opcode = read ? IOCB_CMD_PREAD : IOCB_CMD_PWRITE; in io_prep()
47 iocb->aio_reqprio = 0; in io_prep()
48 iocb->aio_buf = reinterpret_cast<uint64_t>(buf); in io_prep()
49 iocb->aio_nbytes = count; in io_prep()
50 iocb->aio_offset = offset; in io_prep()
[all …]
/system/core/libasyncio/include/asyncio/
DAsyncIO.h38 int io_submit(aio_context_t ctx, long nr, struct iocb** iocbpp);
41 int io_cancel(aio_context_t ctx, struct iocb*, struct io_event* result);
43 void io_prep_pread(struct iocb* iocb, int fd, void* buf, size_t count, long long offset);
44 void io_prep_pwrite(struct iocb* iocb, int fd, void* buf, size_t count, long long offset);
45 void io_prep(struct iocb* iocb, int fd, const void* buf, uint64_t count, int64_t offset, bool read);
/system/core/adb/daemon/include/adbd/
Dusb.h28 std::vector<struct iocb> iocb; member
29 std::vector<struct iocb*> iocbs;
/system/core/adb/daemon/
Dusb_legacy.cpp62 aiob->iocb.resize(num_bufs); in aio_block_init()
67 aiob->iocbs[i] = &aiob->iocb[i]; in aio_block_init()
191 io_prep(&aiob->iocb[i], aiob->fd, cur_data, buf_len, 0, read); in usb_ffs_do_aio()
203 io_prep(&aiob->iocb[num_bufs], aiob->fd, reinterpret_cast<const void*>(cur_data), in usb_ffs_do_aio()
Dusb.cpp122 struct iocb control = {};
577 struct iocb* iocb = &block->control; in SubmitRead() local
578 if (io_submit(aio_context_.get(), 1, &iocb) != 1) { in SubmitRead()
643 struct iocb* iocbs[kUsbWriteQueueDepth]; in SubmitWrites()