Lines Matching refs:locInState
112 context->rxStatus.state, newState, context->rxStatus.locInState); in chppSetRxState()
113 context->rxStatus.locInState = 0; in chppSetRxState()
138 context->rxStatus.locInState < CHPP_PREAMBLE_LEN_BYTES) { in chppConsumePreamble()
139 size_t offset = context->rxStatus.locInState; in chppConsumePreamble()
143 context->rxStatus.locInState++; in chppConsumePreamble()
147 context->rxStatus.locInState = 1; in chppConsumePreamble()
151 context->rxStatus.locInState = 0; in chppConsumePreamble()
158 if (context->rxStatus.locInState == CHPP_PREAMBLE_LEN_BYTES) { in chppConsumePreamble()
180 CHPP_ASSERT(context->rxStatus.locInState < in chppConsumeHeader()
183 len, (sizeof(struct ChppTransportHeader) - context->rxStatus.locInState)); in chppConsumeHeader()
184 memcpy(((uint8_t *)&context->rxHeader) + context->rxStatus.locInState, buf, in chppConsumeHeader()
186 context->rxStatus.locInState += bytesToCopy; in chppConsumeHeader()
188 if (context->rxStatus.locInState == sizeof(struct ChppTransportHeader)) { in chppConsumeHeader()
246 CHPP_ASSERT(context->rxStatus.locInState < context->rxHeader.length); in chppConsumePayload()
248 MIN(len, (context->rxHeader.length - context->rxStatus.locInState)); in chppConsumePayload()
252 context->rxStatus.locInState += bytesToCopy; in chppConsumePayload()
254 if (context->rxStatus.locInState == context->rxHeader.length) { in chppConsumePayload()
275 CHPP_ASSERT(context->rxStatus.locInState < in chppConsumeFooter()
278 len, (sizeof(struct ChppTransportFooter) - context->rxStatus.locInState)); in chppConsumeFooter()
279 memcpy(((uint8_t *)&context->rxFooter) + context->rxStatus.locInState, buf, in chppConsumeFooter()
282 context->rxStatus.locInState += bytesToCopy; in chppConsumeFooter()
283 if (context->rxStatus.locInState == sizeof(struct ChppTransportFooter)) { in chppConsumeFooter()
378 undoLoc = context->rxStatus.locInState; in chppAbortRxPacket()
1444 context->rxStatus.locInState == 0); in chppRxDataCb()