Lines Matching refs:AIO_BUFS_MAX
42 constexpr unsigned AIO_BUFS_MAX = 128; variable
47 constexpr unsigned MAX_FILE_CHUNK_SIZE = AIO_BUFS_MAX * AIO_BUF_LEN;
131 struct io_event ioevs[AIO_BUFS_MAX]; in doAsync()
135 size_t this_len = std::min(len - total, static_cast<size_t>(AIO_BUF_LEN * AIO_BUFS_MAX)); in doAsync()
156 for (unsigned i = 0; i < AIO_BUFS_MAX; i++) { in doAsync()
272 mIobuf[i].iocb.resize(AIO_BUFS_MAX); in start()
273 mIobuf[i].iocbs.resize(AIO_BUFS_MAX); in start()
274 mIobuf[i].buf.resize(AIO_BUFS_MAX); in start()
275 for (unsigned j = 0; j < AIO_BUFS_MAX; j++) { in start()
282 if (io_setup(AIO_BUFS_MAX, &mCtx) < 0) { in start()
333 … int this_events = TEMP_FAILURE_RETRY(io_getevents(mCtx, 0, AIO_BUFS_MAX, events, &ZERO_TIMEOUT)); in waitEvents()
392 int evs = TEMP_FAILURE_RETRY(io_getevents(mCtx, num_events, AIO_BUFS_MAX, events, nullptr)); in cancelEvents()
411 buf->actual = AIO_BUFS_MAX; in iobufSubmit()
412 for (unsigned j = 0; j < AIO_BUFS_MAX; j++) { in iobufSubmit()
450 struct io_event ioevs[AIO_BUFS_MAX]; in receiveFile()
575 struct io_event ioevs[AIO_BUFS_MAX]; in sendFile()