Home
last modified time | relevance | path

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

/frameworks/av/media/mtp/
DMtpFfsHandle.cpp43 constexpr unsigned AIO_BUF_LEN = 16384; variable
47 constexpr unsigned MAX_FILE_CHUNK_SIZE = AIO_BUFS_MAX * AIO_BUF_LEN;
138 size_t this_len = std::min(len - total, static_cast<size_t>(AIO_BUF_LEN * AIO_BUFS_MAX)); in doAsync()
139 int num_bufs = this_len / AIO_BUF_LEN + (this_len % AIO_BUF_LEN == 0 ? 0 : 1); in doAsync()
141 mIobuf[0].buf[i] = reinterpret_cast<unsigned char*>(data) + total + i * AIO_BUF_LEN; in doAsync()
160 mIobuf[0].buf[i] = mIobuf[0].bufs.data() + i * AIO_BUF_LEN; in doAsync()
278 mIobuf[i].buf[j] = mIobuf[i].bufs.data() + j * AIO_BUF_LEN; in start()
415 unsigned rq_length = std::min(AIO_BUF_LEN, length - AIO_BUF_LEN * j); in iobufSubmit()
421 if (rq_length < AIO_BUF_LEN || length == AIO_BUF_LEN * (j + 1)) { in iobufSubmit()