Lines Matching refs:file_length
441 uint32_t file_length = mfr.length; in receiveFile() local
461 while (file_length > 0 || has_write) { in receiveFile()
463 if (file_length > 0) { in receiveFile()
464 length = std::min(static_cast<uint32_t>(MAX_FILE_CHUNK_SIZE), file_length); in receiveFile()
486 if (file_length > 0) { in receiveFile()
519 if (file_length == MAX_MTP_FILE_SIZE) { in receiveFile()
522 file_length = 0; in receiveFile()
530 file_length -= ret; in receiveFile()
558 uint64_t file_length = mfr.length; in sendFile() local
560 file_length + sizeof(mtp_data_header)); in sendFile()
567 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length); in sendFile()
596 file_length -= init_read_len; in sendFile()
601 while(file_length > 0 || has_write) { in sendFile()
602 if (file_length > 0) { in sendFile()
604 length = std::min(static_cast<uint64_t>(MAX_FILE_CHUNK_SIZE), file_length); in sendFile()
621 if (file_length > 0) { in sendFile()
632 file_length -= num_read; in sendFile()