Home
last modified time | relevance | path

Searched refs:childRet (Results 1 – 10 of 10) sorted by relevance

/developtools/hdc/src/host/
Dhost_usb.cpp146 int childRet = OpenDeviceMyNeed(hUSB); in DetectMyNeed() local
147 if (childRet < 0) { in DetectMyNeed()
291 int childRet = 0; in CheckDescriptor() local
303childRet = libusb_get_string_descriptor_ascii(hUSB->devHandle, desc.iSerialNumber, (uint8_t *)seri… in CheckDescriptor()
305 if (childRet < 0) { in CheckDescriptor()
457 int childRet = 0; in UsbToHdcProtocol() local
460 if ((childRet = select(fd + 1, nullptr, &fdSet, nullptr, &timeout)) <= 0) { in UsbToHdcProtocol()
468 WRITE_LOG(LOG_FATAL, "select error:%d [%s][%d]", errno, buf, childRet); in UsbToHdcProtocol()
471childRet = send(fd, reinterpret_cast<const char *>(appendData) + index, dataSize - index, 0); in UsbToHdcProtocol()
472 if (childRet < 0) { in UsbToHdcProtocol()
[all …]
Dserver_for_client.cpp306 int childRet = ((HdcServer *)ptrServer)->CreateConnect(connectKey, isCheck); in NewConnectTry() local
309 if (childRet == -1) { in NewConnectTry()
311 } else if (childRet == connectError) { in NewConnectTry()
323childRet = snprintf_s(hChannel->bufStd + 2, sizeof(hChannel->bufStd) - 2, sizeof(hChannel->bufStd)… in NewConnectTry()
325 if (childRet > 0) { in NewConnectTry()
/developtools/hdc/src/common/
Dusb.cpp78 int childRet = 0; in SendUSBBlock() local
88 if ((childRet = SendUSBRaw(hSession, data, length)) <= 0) { in SendUSBBlock()
92 if (childRet > 0 && (childRet % hSession->hUSB->wMaxPacketSizeSend == 0)) { in SendUSBBlock()
178 int childRet = 0; in SendToHdcStream() local
183 if (hUSB->payloadSize <= static_cast<uint32_t>(childRet)) { in SendToHdcStream()
186 dataSize, hUSB->payloadSize, childRet); in SendToHdcStream()
190 if ((childRet = UsbToHdcProtocol(stream, appendData, dataSize)) < 0) { in SendToHdcStream()
194 hUSB->payloadSize -= childRet; in SendToHdcStream()
Duart.cpp402 int childRet = 0; in UartToHdcProtocol() local
405 childRet = select(fd + 1, NULL, &fdSet, NULL, &timeout); in UartToHdcProtocol()
406 if (childRet <= 0) { in UartToHdcProtocol()
415 buf, childRet); in UartToHdcProtocol()
418 childRet = send(fd, (const char *)data + index, dataSize - index, 0); in UartToHdcProtocol()
419 if (childRet < 0) { in UartToHdcProtocol()
430 index += childRet; in UartToHdcProtocol()
Dfile.cpp250 bool childRet = false; in SlaveCheck() local
274 childRet = SmartSlavePath(stat.clientCwd, ctxNow.localPath, stat.optionalName.c_str()); in SlaveCheck()
275 if (childRet && ctxNow.transferConfig.updateIfNew) { // file exist and option need update in SlaveCheck()
Dauth.cpp412 int childRet = 0; in AuthVerify() local
418 childRet = RSA_verify(NID_sha256, reinterpret_cast<const unsigned char *>(token), in AuthVerify()
422 if (childRet) { in AuthVerify()
Dsession.cpp918 int childRet = 0; in FetchIOBuf() local
929 childRet = ptrConnect->OnRead(hSession, ioBuf + indexBuf, hSession->availTailIndex); in FetchIOBuf()
930 if (childRet > 0) { in FetchIOBuf()
931 hSession->availTailIndex -= childRet; in FetchIOBuf()
932 indexBuf += childRet; in FetchIOBuf()
933 } else if (childRet == 0) { in FetchIOBuf()
1028 int childRet = 0; in WorkThreadStartSession() local
1036 if ((childRet = uv_tcp_open(&hSession->hChildWorkTCP, hSession->fdChildWorkTCP)) < 0) { in WorkThreadStartSession()
1039 uv_strerror_r(childRet, buf, bufSize); in WorkThreadStartSession()
Dchannel.cpp115 int childRet = 0; in ReadStream() local
147 childRet = thisClass->ReadChannel(hChannel, reinterpret_cast<uint8_t *>(hChannel->ioBuf) + in ReadStream()
149 if (childRet < 0) { in ReadStream()
Dbase.cpp1221 int childRet = Base64EncodeBuf(input, length, pBuf); in Base64Encode() local
1222 if (childRet <= 0) { in Base64Encode()
1225 retVec.insert(retVec.begin(), pBuf, pBuf + childRet); in Base64Encode()
1278 int childRet = Base64DecodeBuf(input, length, pBuf); in Base64Decode() local
1279 if (childRet <= 0) { in Base64Decode()
/developtools/hdc/src/daemon/
Ddaemon_usb.cpp293 int childRet = 0; in SendUSBIOSync() local
298 childRet = write(bulkIn, const_cast<uint8_t *>(data) + offset, length - offset); in SendUSBIOSync()
299 if (childRet <= 0) { in SendUSBIOSync()
311 offset += childRet; in SendUSBIOSync()
464 int childRet = RET_SUCCESS; in DispatchToWorkThread() local
489 if ((childRet = SendToHdcStream(hChildSession, stream, readBuf, readBytes)) < 0) { in DispatchToWorkThread()
490 WRITE_LOG(LOG_WARN, "DispatchToWorkThread SendToHdcStream err ret:%d", childRet); in DispatchToWorkThread()
493 return childRet; in DispatchToWorkThread()
519 int childRet = 0; in OnUSBRead() local
551 …if ((childRet = thisClass->AvailablePacket((uint8_t *)bufPtr, bytesIOBytes, &sessionId)) != RET_SU… in OnUSBRead()
[all …]