Home
last modified time | relevance | path

Searched refs:iocb (Results 1 – 4 of 4) 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/fastboot/device/
Dusb.h30 std::vector<struct iocb> iocb; member
31 std::vector<struct iocb*> iocbs;
Dusb.cpp55 aiob->iocb.resize(num_bufs); in aio_block_init()
60 aiob->iocbs[i] = &aiob->iocb[i]; in aio_block_init()
144 io_prep(&aiob->iocb[i], aiob->fd, cur_data, buf_len, 0, read); in usb_ffs_do_aio()
156 io_prep(&aiob->iocb[num_bufs], aiob->fd, reinterpret_cast<const void*>(cur_data), in usb_ffs_do_aio()