Home
last modified time | relevance | path

Searched refs:ioBuf (Results 1 - 12 of 12) sorted by relevance

/developtools/hdc/src/common/
H A Dchannel.cpp140 size = ntohl(*reinterpret_cast<uint32_t *>(hChannel->ioBuf + indexBuf)); // big endian in ReadStream()
149 childRet = thisClass->ReadChannel(hChannel, reinterpret_cast<uint8_t *>(hChannel->ioBuf) + in ReadStream()
164 if (memmove_s(hChannel->ioBuf, hChannel->bufSize, hChannel->ioBuf + indexBuf, hChannel->availTailIndex)) { in ReadStream()
359 Base::ReallocBuf(&context->ioBuf, &context->bufSize, Base::GetMaxBufSize() * BUF_EXTEND_SIZE); in AllocCallback()
360 buf->base = (char *)context->ioBuf + context->availTailIndex; in AllocCallback()
454 if (hChannel->ioBuf) { in FreeChannelContinue()
455 delete[] hChannel->ioBuf; in FreeChannelContinue()
456 hChannel->ioBuf = nullptr; in FreeChannelContinue()
H A Dusb.cpp34 if (hSessionBase->FetchIOBuf(hSession, hSession->ioBuf, nread) < 0) { in ReadUSB()
111 bool HdcUSBBase::IsUsbPacketHeader(uint8_t *ioBuf, int ioBytes) in IsUsbPacketHeader() argument
114 USBHead *usbPayloadHeader = reinterpret_cast<struct USBHead *>(ioBuf); in IsUsbPacketHeader()
H A Dusb.h39 bool IsUsbPacketHeader(uint8_t *ioBuf, int ioBytes);
H A Ddefine_plus.h220 uint8_t *ioBuf; member
277 ioBuf = nullptr; in HdcSession()
340 uint8_t *ioBuf; member
H A Dtcp.cpp89 if (hSessionBase->FetchIOBuf(hSession, hSession->ioBuf, nread) < 0) { in ReadStream()
H A Dsession.cpp592 if (hSession->ioBuf) { in FreeSessionContinue()
593 delete[] hSession->ioBuf; in FreeSessionContinue()
594 hSession->ioBuf = nullptr; in FreeSessionContinue()
947 int HdcSessionBase::FetchIOBuf(HSession hSession, uint8_t *ioBuf, int read) in FetchIOBuf() argument
963 childRet = ptrConnect->OnRead(hSession, ioBuf + indexBuf, hSession->availTailIndex); in FetchIOBuf()
979 if (memmove_s(hSession->ioBuf, hSession->bufSize, hSession->ioBuf + indexBuf, hSession->availTailIndex) in FetchIOBuf()
983 uint8_t *bufToZero = reinterpret_cast<uint8_t *>(hSession->ioBuf + hSession->availTailIndex); in FetchIOBuf()
992 Base::ReallocBuf(&context->ioBuf, &context->bufSize, HDC_SOCKETPAIR_SIZE); in AllocCallback()
993 buf->base = (char *)context->ioBuf in AllocCallback()
[all...]
H A Dsession.h99 virtual int FetchIOBuf(HSession hSession, uint8_t *ioBuf, int read);
H A Duart.cpp965 if (hSessionBase->FetchIOBuf(hSession, hSession->ioBuf, nread) < 0) { in ReadDataFromUARTStream()
/developtools/hdc/src/daemon/
H A Ddaemon_usb.h45 int AvailablePacket(uint8_t *ioBuf, int ioBytes, uint32_t *sessionId);
H A Ddaemon_usb.cpp236 int HdcDaemonUSB::AvailablePacket(uint8_t *ioBuf, int ioBytes, uint32_t *sessionId) in AvailablePacket() argument
240 if (!IsUsbPacketHeader(ioBuf, ioBytes)) { in AvailablePacket()
244 USBHead *usbPayloadHeader = reinterpret_cast<struct USBHead *>(ioBuf); in AvailablePacket()
/developtools/hdc/src/host/
H A Dserver_for_client.cpp69 Base::ReallocBuf(&context->ioBuf, &context->bufSize, Base::GetMaxBufSize() * BUF_EXTEND_SIZE); in AcceptClient()
70 buf->base = (char *)context->ioBuf + context->availTailIndex; in AcceptClient()
/developtools/hdc/test/unittest/common/
H A Duart_test.cpp462 hdcSession.ioBuf = dummPtr; in HWTEST_F()

Completed in 13 milliseconds