Lines Matching refs:mfr
160 int MtpFfsCompatHandle::receiveFile(mtp_file_range mfr, bool zero_packet) { in receiveFile() argument
163 uint32_t file_length = mfr.length; in receiveFile()
164 uint64_t offset = mfr.offset; in receiveFile()
171 aio.aio_fildes = mfr.fd; in receiveFile()
179 posix_fadvise(mfr.fd, 0, 0, POSIX_FADV_SEQUENTIAL | POSIX_FADV_NOREUSE); in receiveFile()
246 int MtpFfsCompatHandle::sendFile(mtp_file_range mfr) { in sendFile() argument
247 uint64_t file_length = mfr.length; in sendFile()
250 uint64_t offset = mfr.offset; in sendFile()
261 posix_fadvise(mfr.fd, 0, 0, POSIX_FADV_SEQUENTIAL | POSIX_FADV_NOREUSE); in sendFile()
264 aio.aio_fildes = mfr.fd; in sendFile()
275 header->command = htole16(mfr.command); in sendFile()
276 header->transaction_id = htole32(mfr.transaction_id); in sendFile()
280 if (TEMP_FAILURE_RETRY(pread(mfr.fd, reinterpret_cast<char*>(data) + in sendFile()