Lines Matching refs:childRet
301 int childRet = 0;
306 childRet = write(bulkIn, const_cast<uint8_t *>(data) + offset, length - offset);
307 if (childRet <= 0) {
319 offset += childRet;
538 int childRet = RET_SUCCESS;
563 if ((childRet = SendToHdcStream(hChildSession, stream, readBuf, readBytes)) < 0) {
564 WRITE_LOG(LOG_WARN, "DispatchToWorkThread SendToHdcStream err ret:%d", childRet);
567 return childRet;
593 int childRet = 0;
625 if ((childRet = thisClass->AvailablePacket((uint8_t *)bufPtr, bytesIOBytes, &sessionId)) != RET_SUCCESS) {
626 if (childRet != ERR_IO_SOFT_RESET) {
631 childRet = 0; // need max size
634 if ((childRet = thisClass->DispatchToWorkThread(sessionId, bufPtr, bytesIOBytes)) < 0) {
640 int nextReadSize = childRet == 0 ? hUSB->wMaxPacketSizeSend : std::min(childRet, Base::GetUsbffsBulkSize());