Searched refs:ioBuf (Results 1 - 12 of 12) sorted by relevance
/developtools/hdc/src/common/ |
H A D | channel.cpp | 140 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 D | usb.cpp | 34 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 D | usb.h | 39 bool IsUsbPacketHeader(uint8_t *ioBuf, int ioBytes);
|
H A D | define_plus.h | 220 uint8_t *ioBuf; member 277 ioBuf = nullptr; in HdcSession() 340 uint8_t *ioBuf; member
|
H A D | tcp.cpp | 89 if (hSessionBase->FetchIOBuf(hSession, hSession->ioBuf, nread) < 0) { in ReadStream()
|
H A D | session.cpp | 592 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 D | session.h | 99 virtual int FetchIOBuf(HSession hSession, uint8_t *ioBuf, int read);
|
H A D | uart.cpp | 965 if (hSessionBase->FetchIOBuf(hSession, hSession->ioBuf, nread) < 0) {
in ReadDataFromUARTStream()
|
/developtools/hdc/src/daemon/ |
H A D | daemon_usb.h | 45 int AvailablePacket(uint8_t *ioBuf, int ioBytes, uint32_t *sessionId);
|
H A D | daemon_usb.cpp | 236 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 D | server_for_client.cpp | 69 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 D | uart_test.cpp | 462 hdcSession.ioBuf = dummPtr;
in HWTEST_F()
|
Completed in 13 milliseconds