Lines Matching refs:header
82 auto header = BuildPacketHeader(hSession->sessionId, USB_OPTION_HEADER, length); in SendUSBBlock() local
84 if ((SendUSBRaw(hSession, header.data(), header.size())) <= 0) { in SendUSBBlock()
139 auto header = BuildPacketHeader(sessionIdOld, USB_OPTION_RESET, 0); in PreSendUsbSoftReset() local
140 if (SendUSBRaw(hSession, header.data(), header.size()) <= 0) { in PreSendUsbSoftReset()
152 USBHead *header = reinterpret_cast<USBHead *>(appendData); in CheckPacketOption() local
153 header->sessionId = ntohl(header->sessionId); in CheckPacketOption()
154 header->dataSize = ntohl(header->dataSize); in CheckPacketOption()
155 if (header->sessionId != hSession->sessionId) { in CheckPacketOption()
162 header->sessionId, hSession->sessionId); in CheckPacketOption()
163 PreSendUsbSoftReset(hSession, header->sessionId); in CheckPacketOption()
166 if (header->option & USB_OPTION_HEADER) { in CheckPacketOption()
168 hUSB->payloadSize = header->dataSize; in CheckPacketOption()