Lines Matching refs:write
329 ret = TEMP_FAILURE_RETRY(::write(mControl, &v2_descriptor, sizeof(v2_descriptor)));
338 ret = TEMP_FAILURE_RETRY(::write(mControl, &v1_descriptor, sizeof(v1_descriptor)));
344 ret = TEMP_FAILURE_RETRY(::write(mControl, &strings, sizeof(strings)));
365 LOG(VERBOSE) << "MTP about to write fd = " << fd << ", len=" << len;
370 int n = TEMP_FAILURE_RETRY(::write(fd, buf, write_len));
373 PLOG(ERROR) << "write ERROR: fd = " << fd << ", n = " << n;
431 int MtpFfsHandle::write(const void* data, int len) {
518 /* Read from USB and write to a local file. */
544 bool write = false;
549 while (file_length > 0 || write) {
553 // Read data from USB, handle errors after waiting for write thread.
563 if (write) {
564 // get the return status of the last write request
576 write = false;
594 // Enqueue a new write request
604 write = true;
648 bool write = false;
686 write = true;
703 if (write) {
707 write = false;
713 if (TEMP_FAILURE_RETRY(::write(mBulkIn, data, 0)) != 0) {