Lines Matching refs:file_length
163 uint32_t file_length = mfr.length; in receiveFile() local
182 while (file_length > 0 || write) { in receiveFile()
183 if (file_length > 0) { in receiveFile()
184 length = std::min(static_cast<uint32_t>(MAX_FILE_CHUNK_SIZE), file_length); in receiveFile()
189 if (file_length != MAX_MTP_FILE_SIZE && ret < static_cast<int>(length)) { in receiveFile()
218 if (file_length == MAX_MTP_FILE_SIZE) { in receiveFile()
221 file_length = 0; in receiveFile()
224 file_length -= ret; in receiveFile()
247 uint64_t file_length = mfr.length; in sendFile() local
249 file_length + sizeof(mtp_data_header)); in sendFile()
256 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length); in sendFile()
284 file_length -= init_read_len; in sendFile()
289 while (file_length > 0) { in sendFile()
303 file_length -= ret; in sendFile()
314 if (file_length > 0) { in sendFile()
315 length = std::min(static_cast<uint64_t>(MAX_FILE_CHUNK_SIZE), file_length); in sendFile()