Home
last modified time | relevance | path

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

/developtools/hdc/src/common/
Dchannel.cpp141 size = ntohl(*reinterpret_cast<uint32_t *>(hChannel->ioBuf + indexBuf)); // big endian in ReadStream()
150 childRet = thisClass->ReadChannel(hChannel, reinterpret_cast<uint8_t *>(hChannel->ioBuf) + in ReadStream()
165 …if (memmove_s(hChannel->ioBuf, hChannel->bufSize, hChannel->ioBuf + indexBuf, hChannel->availTailI… in ReadStream()
361 Base::ReallocBuf(&context->ioBuf, &context->bufSize, Base::GetMaxBufSize() * 4); in AllocCallback()
362 buf->base = (char *)context->ioBuf + context->availTailIndex; in AllocCallback()
438 if (hChannel->ioBuf) { in FreeChannelContinue()
439 delete[] hChannel->ioBuf; in FreeChannelContinue()
440 hChannel->ioBuf = nullptr; in FreeChannelContinue()
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()
Dusb.h39 bool IsUsbPacketHeader(uint8_t *ioBuf, int ioBytes);
Ddefine_plus.h400 uint8_t *ioBuf; member
455 ioBuf = nullptr; in HdcSession()
510 uint8_t *ioBuf; member
Dsession.cpp580 if (hSession->ioBuf) { in FreeSessionContinue()
581 delete[] hSession->ioBuf; in FreeSessionContinue()
582 hSession->ioBuf = nullptr; in FreeSessionContinue()
931 int HdcSessionBase::FetchIOBuf(HSession hSession, uint8_t *ioBuf, int read) in FetchIOBuf() argument
946 childRet = ptrConnect->OnRead(hSession, ioBuf + indexBuf, hSession->availTailIndex); in FetchIOBuf()
962 …if (memmove_s(hSession->ioBuf, hSession->bufSize, hSession->ioBuf + indexBuf, hSession->availTailI… in FetchIOBuf()
966 … uint8_t *bufToZero = reinterpret_cast<uint8_t *>(hSession->ioBuf + hSession->availTailIndex); in FetchIOBuf()
975 Base::ReallocBuf(&context->ioBuf, &context->bufSize, HDC_SOCKETPAIR_SIZE); in AllocCallback()
976 buf->base = (char *)context->ioBuf + context->availTailIndex; in AllocCallback()
Dtcp.cpp89 if (hSessionBase->FetchIOBuf(hSession, hSession->ioBuf, nread) < 0) { in ReadStream()
Dsession.h96 virtual int FetchIOBuf(HSession hSession, uint8_t *ioBuf, int read);
Duart.cpp965 if (hSessionBase->FetchIOBuf(hSession, hSession->ioBuf, nread) < 0) { in ReadDataFromUARTStream()
/developtools/hdc/src/daemon/
Ddaemon_usb.h45 int AvailablePacket(uint8_t *ioBuf, int ioBytes, uint32_t *sessionId);
Ddaemon_usb.cpp232 int HdcDaemonUSB::AvailablePacket(uint8_t *ioBuf, int ioBytes, uint32_t *sessionId) in AvailablePacket() argument
236 if (!IsUsbPacketHeader(ioBuf, ioBytes)) { in AvailablePacket()
240 USBHead *usbPayloadHeader = reinterpret_cast<struct USBHead *>(ioBuf); in AvailablePacket()
/developtools/hdc/src/host/
Dserver_for_client.cpp69 Base::ReallocBuf(&context->ioBuf, &context->bufSize, sizeWanted); // sizeWanted default 6k in AcceptClient()
70 buf->base = (char *)context->ioBuf + context->availTailIndex; in AcceptClient()
/developtools/hdc/test/unittest/common/
Duart_test.cpp462 hdcSession.ioBuf = dummPtr;