Lines Matching refs:file_length
446 uint32_t file_length = mfr.length; in receiveFile() local
466 while (file_length > 0 || has_write) { in receiveFile()
468 if (file_length > 0) { in receiveFile()
469 length = std::min(static_cast<uint32_t>(MAX_FILE_CHUNK_SIZE), file_length); in receiveFile()
491 if (file_length > 0) { in receiveFile()
526 if (file_length == MAX_MTP_FILE_SIZE) { in receiveFile()
529 file_length = 0; in receiveFile()
537 file_length -= ret; in receiveFile()
565 uint64_t file_length = mfr.length; in sendFile() local
567 file_length + sizeof(mtp_data_header)); in sendFile()
574 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length); in sendFile()
603 file_length -= init_read_len; in sendFile()
608 while(file_length > 0 || has_write) { in sendFile()
609 if (file_length > 0) { in sendFile()
611 length = std::min(static_cast<uint64_t>(MAX_FILE_CHUNK_SIZE), file_length); in sendFile()
628 if (file_length > 0) { in sendFile()
639 file_length -= num_read; in sendFile()