Searched refs:init_read_len (Results 1 – 2 of 2) sorted by relevance
255 int init_read_len = std::min( in sendFile() local281 sizeof(mtp_data_header), init_read_len, offset)) in sendFile()282 != init_read_len) return -1; in sendFile()283 if (writeHandle(mBulkIn, data, sizeof(mtp_data_header) + init_read_len) == -1) return -1; in sendFile()284 file_length -= init_read_len; in sendFile()285 offset += init_read_len; in sendFile()286 ret = init_read_len + sizeof(mtp_data_header); in sendFile()
566 int init_read_len = std::min( in sendFile() local591 sizeof(mtp_data_header), init_read_len, offset)) in sendFile()592 != init_read_len) return -1; in sendFile()593 if (doAsync(mIobuf[0].bufs.data(), sizeof(mtp_data_header) + init_read_len, in sendFile()596 file_length -= init_read_len; in sendFile()597 offset += init_read_len; in sendFile()598 ret = init_read_len + sizeof(mtp_data_header); in sendFile()