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;
134 struct io_event ioevs[AIO_BUFS_MAX]; in doAsync()
138 size_t this_len = std::min(len - total, static_cast<size_t>(AIO_BUF_LEN * AIO_BUFS_MAX)); in doAsync()
159 for (unsigned i = 0; i < AIO_BUFS_MAX; i++) { in doAsync()
274 mIobuf[i].iocb.resize(AIO_BUFS_MAX); in start()
275 mIobuf[i].iocbs.resize(AIO_BUFS_MAX); in start()
276 mIobuf[i].buf.resize(AIO_BUFS_MAX); in start()
277 for (unsigned j = 0; j < AIO_BUFS_MAX; j++) { in start()
284 if (io_setup(AIO_BUFS_MAX, &mCtx) < 0) { in start()
335 … int this_events = TEMP_FAILURE_RETRY(io_getevents(mCtx, 0, AIO_BUFS_MAX, events, &ZERO_TIMEOUT)); in waitEvents()
394 int evs = TEMP_FAILURE_RETRY(io_getevents(mCtx, num_events, AIO_BUFS_MAX, events, nullptr)); in cancelEvents()
413 buf->actual = AIO_BUFS_MAX; in iobufSubmit()
414 for (unsigned j = 0; j < AIO_BUFS_MAX; j++) { in iobufSubmit()
452 struct io_event ioevs[AIO_BUFS_MAX]; in receiveFile()
577 struct io_event ioevs[AIO_BUFS_MAX]; in sendFile()