Lines Matching refs:header
87 auto header = BuildPacketHeader(hSession->sessionId, USB_OPTION_HEADER, length); in SendUSBBlock() local
89 if ((SendUSBRaw(hSession, header.data(), header.size())) <= 0) { in SendUSBBlock()
144 auto header = BuildPacketHeader(sessionIdOld, USB_OPTION_RESET, 0); in PreSendUsbSoftReset() local
145 if (SendUSBRaw(hSession, header.data(), header.size()) <= 0) { in PreSendUsbSoftReset()
157 USBHead *header = reinterpret_cast<USBHead *>(appendData); in CheckPacketOption() local
158 header->sessionId = ntohl(header->sessionId); in CheckPacketOption()
159 header->dataSize = ntohl(header->dataSize); in CheckPacketOption()
160 if (header->sessionId != hSession->sessionId) { in CheckPacketOption()
167 header->sessionId, hSession->sessionId); in CheckPacketOption()
168 PreSendUsbSoftReset(hSession, header->sessionId); in CheckPacketOption()
171 if (header->option & USB_OPTION_HEADER) { in CheckPacketOption()
173 hUSB->payloadSize = header->dataSize; in CheckPacketOption()