Home
last modified time | relevance | path

Searched refs:CHPP_PREAMBLE_LEN_BYTES (Results 1 – 4 of 4) sorted by relevance

/system/chre/chpp/test/
Dtransport_test.cpp247 *checksum = chppCrc32(0, &buf[CHPP_PREAMBLE_LEN_BYTES], in addTransportFooterToBuf()
248 *location - CHPP_PREAMBLE_LEN_BYTES); in addTransportFooterToBuf()
299 EXPECT_EQ(sizeof(ChppTestResponse), CHPP_PREAMBLE_LEN_BYTES + in openService()
373 size_t preambleLoc = MAX(0, len - CHPP_PREAMBLE_LEN_BYTES); in TEST_P()
377 if (len >= CHPP_PREAMBLE_LEN_BYTES) { in TEST_P()
412 CHPP_PREAMBLE_LEN_BYTES + sizeof(ChppTransportHeader)), in TEST_P()
433 &mBuf[CHPP_PREAMBLE_LEN_BYTES + sizeof(ChppTransportHeader)], in TEST_P()
449 &mBuf[CHPP_PREAMBLE_LEN_BYTES + sizeof(ChppTransportHeader) + len], in TEST_P()
469 .buf[CHPP_PREAMBLE_LEN_BYTES]; in TEST_P()
477 CHPP_PREAMBLE_LEN_BYTES + sizeof(struct ChppTransportHeader) + in TEST_P()
[all …]
Dpacket_util.h91 static_assert(CHPP_PREAMBLE_LEN_BYTES == sizeof(uint16_t)); in getHeader()
/system/chre/chpp/include/chpp/
Dtransport.h113 #define CHPP_PREAMBLE_LEN_BYTES 2 macro
122 ((CHPP_PREAMBLE_DATA >> (8 * (CHPP_PREAMBLE_LEN_BYTES - (loc)-1))) & 0xff)
139 ((uint16_t)(CHPP_PREAMBLE_LEN_BYTES + sizeof(struct ChppTransportHeader) + \
/system/chre/chpp/
Dtransport.c158 context->rxStatus.locInState < CHPP_PREAMBLE_LEN_BYTES) { in chppConsumePreamble()
178 if (context->rxStatus.locInState == CHPP_PREAMBLE_LEN_BYTES) { in chppConsumePreamble()
498 context->transportLoopbackData.length - CHPP_PREAMBLE_LEN_BYTES - in chppProcessTransportLoopbackResponse()
837 return CHPP_PREAMBLE_LEN_BYTES; in chppAddPreamble()
872 (struct ChppTransportHeader *)&linkTxBuffer[CHPP_PREAMBLE_LEN_BYTES]; in chppAddPayload()
914 footer.checksum = chppCrc32(0, &linkTxBuffer[CHPP_PREAMBLE_LEN_BYTES], in chppAddFooter()
915 bufferSize - CHPP_PREAMBLE_LEN_BYTES); in chppAddFooter()