Lines Matching refs:ret
72 int ret = 0;
88 ret += n;
90 return ret;
94 int ret = 0;
103 ret += n;
109 return ret;
174 int ret = -1;
187 ret = readHandle(mBulkOut, data, length);
189 if (file_length != MAX_MTP_FILE_SIZE && ret < static_cast<int>(length)) {
190 ret = -1;
213 if (ret == -1) {
220 if (static_cast<size_t>(ret) < length) {
224 file_length -= ret;
230 offset += ret;
238 if (ret % packet_size == 0 || zero_packet) {
266 int ret, length;
286 ret = init_read_len + sizeof(mtp_data_header);
293 ret = aio_return(&aio);
294 if (ret == -1) {
298 if (static_cast<size_t>(ret) < aio.aio_nbytes) {
303 file_length -= ret;
304 offset += ret;
323 if (writeHandle(mBulkIn, data2, ret) == -1) {
330 if (ret % packet_size == 0) {