/hardware/nxp/nfc/snxxx/halimpl/dnld/ |
D | phDnldNfc.cc | 73 (gpphDnldContext->tRspBuffInfo.pBuff) = NULL; in phDnldNfc_Reset() 75 (gpphDnldContext->tUserData.pBuff) = NULL; in phDnldNfc_Reset() 126 if ((NULL != pVersionInfo->pBuff) && (0 != pVersionInfo->wLen)) { in phDnldNfc_GetVersion() 127 (gpphDnldContext->tRspBuffInfo.pBuff) = pVersionInfo->pBuff; in phDnldNfc_GetVersion() 131 (gpphDnldContext->tUserData.pBuff) = NULL; in phDnldNfc_GetVersion() 186 if ((NULL != pSession->pBuff) && (0 != pSession->wLen)) { in phDnldNfc_GetSessionState() 187 (gpphDnldContext->tRspBuffInfo.pBuff) = pSession->pBuff; in phDnldNfc_GetSessionState() 191 (gpphDnldContext->tUserData.pBuff) = NULL; in phDnldNfc_GetSessionState() 270 if ((NULL != pCRCData->pBuff) && (0 != pCRCData->wLen)) { in phDnldNfc_CheckIntegrity() 271 (gpphDnldContext->tRspBuffInfo.pBuff) = pCRCData->pBuff; in phDnldNfc_CheckIntegrity() [all …]
|
D | phDnldNfc_Internal.cc | 548 (NULL == (pDlContext->tUserData.pBuff))) { in phDnldNfc_BuildFramePkt() 559 (NULL == (pDlContext->tRspBuffInfo.pBuff))) { in phDnldNfc_BuildFramePkt() 586 (NULL == (pDlContext->tUserData.pBuff))) { in phDnldNfc_BuildFramePkt() 728 wFrameLen = (pDlContext->tUserData.pBuff[wBuffIdx]); in phDnldNfc_CreateFramePld() 730 wFrameLen |= (pDlContext->tUserData.pBuff[wBuffIdx + 1]); in phDnldNfc_CreateFramePld() 759 &(pDlContext->tUserData.pBuff[wBuffIdx]), in phDnldNfc_CreateFramePld() 767 &(pDlContext->tUserData.pBuff[wBuffIdx]), in phDnldNfc_CreateFramePld() 800 (pDlContext->tUserData.pBuff), (pDlContext->tUserData.wLen)); in phDnldNfc_CreateFramePld() 810 (pDlContext->tUserData.pBuff), (pDlContext->tUserData.wLen)); in phDnldNfc_CreateFramePld() 813 (NULL == (pDlContext->tUserData.pBuff))) { in phDnldNfc_CreateFramePld() [all …]
|
D | phNxpNciHal_Dnld.cc | 365 (tData.pBuff) = bClkVal; in phNxpNciHal_fw_dnld_force() 437 if ((0 != pRespBuff->wLen) && (NULL != pRespBuff->pBuff)) { in phNxpNciHal_fw_dnld_get_version_cb() 438 bHwVer = (pRespBuff->pBuff[0]); in phNxpNciHal_fw_dnld_get_version_cb() 448 pRespBuff->pBuff[0]))))) || in phNxpNciHal_fw_dnld_get_version_cb() 450 IS_EQUAL(PHDNLDNFC_HWVER_VENUS_MRA1_0, pRespBuff->pBuff[0])) || in phNxpNciHal_fw_dnld_get_version_cb() 452 IS_EQUAL(PHDNLDNFC_HWVER_VULCAN_MRA1_0, pRespBuff->pBuff[0])) || in phNxpNciHal_fw_dnld_get_version_cb() 454 IS_EQUAL(PHDNLDNFC_HWVER_EOS_MRA2_0, pRespBuff->pBuff[0]))); in phNxpNciHal_fw_dnld_get_version_cb() 460 (PHDNLDNFC_HWVER_PN553_MRA1_0_UPDATED & pRespBuff->pBuff[0]))) { in phNxpNciHal_fw_dnld_get_version_cb() 461 (gphNxpNciHal_fw_IoctlCtx.bChipVer) = pRespBuff->pBuff[0]; in phNxpNciHal_fw_dnld_get_version_cb() 463 (PHDNLDNFC_HWVER_VENUS_MRA1_0 & pRespBuff->pBuff[0])) { in phNxpNciHal_fw_dnld_get_version_cb() [all …]
|
D | phDnldNfc_Utils.cc | 68 uint16_t phDnldNfc_CalcCrc16(uint8_t* pBuff, uint16_t wLen) { in phDnldNfc_CalcCrc16() argument 74 if ((NULL == pBuff) || (0 == wLen)) { in phDnldNfc_CalcCrc16() 80 wValue = 0x00ffU & (uint16_t)pBuff[i]; in phDnldNfc_CalcCrc16()
|
D | phDnldNfc_Utils.h | 25 extern uint16_t phDnldNfc_CalcCrc16(uint8_t* pBuff, uint16_t wLen);
|
D | phDnldNfc.h | 103 uint8_t* pBuff; /*pointer to the buffer where user payload shall be stored*/ member 108 uint8_t* pBuff; /* pointer to the buffer where chk integrity rsp is stored*/ member
|
/hardware/nxp/nfc/pn8x/halimpl/dnld/ |
D | phDnldNfc.cc | 66 (gpphDnldContext->tRspBuffInfo.pBuff) = NULL; in phDnldNfc_Reset() 68 (gpphDnldContext->tUserData.pBuff) = NULL; in phDnldNfc_Reset() 119 if ((NULL != pVersionInfo->pBuff) && (0 != pVersionInfo->wLen)) { in phDnldNfc_GetVersion() 120 (gpphDnldContext->tRspBuffInfo.pBuff) = pVersionInfo->pBuff; in phDnldNfc_GetVersion() 124 (gpphDnldContext->tUserData.pBuff) = NULL; in phDnldNfc_GetVersion() 179 if ((NULL != pSession->pBuff) && (0 != pSession->wLen)) { in phDnldNfc_GetSessionState() 180 (gpphDnldContext->tRspBuffInfo.pBuff) = pSession->pBuff; in phDnldNfc_GetSessionState() 184 (gpphDnldContext->tUserData.pBuff) = NULL; in phDnldNfc_GetSessionState() 257 if ((NULL != pCRCData->pBuff) && (0 != pCRCData->wLen)) { in phDnldNfc_CheckIntegrity() 258 (gpphDnldContext->tRspBuffInfo.pBuff) = pCRCData->pBuff; in phDnldNfc_CheckIntegrity() [all …]
|
D | phDnldNfc_Internal.cc | 554 (NULL == (pDlContext->tUserData.pBuff))) { in phDnldNfc_BuildFramePkt() 565 (NULL == (pDlContext->tRspBuffInfo.pBuff))) { in phDnldNfc_BuildFramePkt() 587 (NULL == (pDlContext->tUserData.pBuff))) { in phDnldNfc_BuildFramePkt() 719 wFrameLen = (pDlContext->tUserData.pBuff[wBuffIdx]); in phDnldNfc_CreateFramePld() 721 wFrameLen |= (pDlContext->tUserData.pBuff[wBuffIdx + 1]); in phDnldNfc_CreateFramePld() 746 &(pDlContext->tUserData.pBuff[wBuffIdx]), in phDnldNfc_CreateFramePld() 754 &(pDlContext->tUserData.pBuff[wBuffIdx]), in phDnldNfc_CreateFramePld() 787 (pDlContext->tUserData.pBuff), (pDlContext->tUserData.wLen)); in phDnldNfc_CreateFramePld() 797 (pDlContext->tUserData.pBuff), (pDlContext->tUserData.wLen)); in phDnldNfc_CreateFramePld() 800 (NULL == (pDlContext->tUserData.pBuff))) { in phDnldNfc_CreateFramePld() [all …]
|
D | phDnldNfc_Utils.cc | 68 uint16_t phDnldNfc_CalcCrc16(uint8_t* pBuff, uint16_t wLen) { in phDnldNfc_CalcCrc16() argument 74 if ((NULL == pBuff) || (0 == wLen)) { in phDnldNfc_CalcCrc16() 80 wValue = 0x00ffU & (uint16_t)pBuff[i]; in phDnldNfc_CalcCrc16()
|
D | phNxpNciHal_Dnld.cc | 386 (tData.pBuff) = bClkVal; in phNxpNciHal_fw_dnld_normal() 458 (tData.pBuff) = bClkVal; in phNxpNciHal_fw_dnld_force() 528 if ((0 != pRespBuff->wLen) && (NULL != pRespBuff->pBuff)) { in phNxpNciHal_fw_dnld_get_version_cb() 529 bHwVer = (pRespBuff->pBuff[0]); in phNxpNciHal_fw_dnld_get_version_cb() 538 PHDNLDNFC_HWVER_PN553_MRA1_0_UPDATED & pRespBuff->pBuff[0]))) { in phNxpNciHal_fw_dnld_get_version_cb() 542 (PHDNLDNFC_HWVER_PN553_MRA1_0_UPDATED & pRespBuff->pBuff[0])) { in phNxpNciHal_fw_dnld_get_version_cb() 543 (gphNxpNciHal_fw_IoctlCtx.bChipVer) = pRespBuff->pBuff[0]; in phNxpNciHal_fw_dnld_get_version_cb() 562 (NULL != pRespBuff->pBuff)) { in phNxpNciHal_fw_dnld_get_version_cb() 569 memcpy(bCurrVer, &(pRespBuff->pBuff[bExpectedLen - 2]), sizeof(bCurrVer)); in phNxpNciHal_fw_dnld_get_version_cb() 578 if ((pRespBuff->pBuff[1] == 0x07) && (bNewVer[1] != 0x01)) { in phNxpNciHal_fw_dnld_get_version_cb() [all …]
|
D | phDnldNfc_Utils.h | 25 extern uint16_t phDnldNfc_CalcCrc16(uint8_t* pBuff, uint16_t wLen);
|
D | phDnldNfc.h | 91 uint8_t* pBuff; /*pointer to the buffer where user payload shall be stored*/ member
|
/hardware/nxp/nfc/pn8x/halimpl/mifare/ |
D | NxpMfcReader.cc | 302 NFCSTATUS NxpMfcReader::AnalyzeMfcResp(uint8_t* pBuff, uint16_t* pBufflen) { in AnalyzeMfcResp() argument 310 RecvdExtnRspId = (MfcRespId_t)pBuff[0]; in AnalyzeMfcResp() 317 if ((pBuff[0] == 0x10) && (pBuff[1] != 0x0A)) { in AnalyzeMfcResp() 320 pBuff[0] = NFCSTATUS_FAILED; in AnalyzeMfcResp() 323 pBuff[0] = NFCSTATUS_SUCCESS; in AnalyzeMfcResp() 327 writeRespStatus = pBuff[*pBufflen - 1]; in AnalyzeMfcResp() 339 memmove(&(pBuff[0]), &(pBuff[1]), wPldDataSize); in AnalyzeMfcResp() 357 if (NFCSTATUS_SUCCESS == pBuff[1]) { in AnalyzeMfcResp() 364 pBuff[0] = pBuff[1]; in AnalyzeMfcResp() 369 pBuff[0] = pBuff[1]; in AnalyzeMfcResp()
|
D | NxpMfcReader.h | 116 NFCSTATUS AnalyzeMfcResp(uint8_t* pBuff, uint16_t* pBufflen);
|
/hardware/nxp/nfc/snxxx/halimpl/mifare/ |
D | NxpMfcReader.cc | 355 NFCSTATUS NxpMfcReader::AnalyzeMfcResp(uint8_t* pBuff, uint16_t* pBufflen) { in AnalyzeMfcResp() argument 363 RecvdExtnRspId = (MfcRespId_t)pBuff[0]; in AnalyzeMfcResp() 370 if ((pBuff[0] == 0x10) && (pBuff[1] != 0x0A)) { in AnalyzeMfcResp() 373 pBuff[0] = NFCSTATUS_FAILED; in AnalyzeMfcResp() 376 pBuff[0] = NFCSTATUS_SUCCESS; in AnalyzeMfcResp() 380 writeRespStatus = pBuff[*pBufflen - 1]; in AnalyzeMfcResp() 392 memcpy(&(pBuff[0]), &(pBuff[1]), wPldDataSize); in AnalyzeMfcResp() 410 if (NFCSTATUS_SUCCESS == pBuff[1]) { in AnalyzeMfcResp() 417 pBuff[0] = pBuff[1]; in AnalyzeMfcResp() 422 pBuff[0] = pBuff[1]; in AnalyzeMfcResp()
|
D | NxpMfcReader.h | 122 NFCSTATUS AnalyzeMfcResp(uint8_t* pBuff, uint16_t* pBufflen);
|
/hardware/nxp/nfc/snxxx/halimpl/self-test/ |
D | phNxpNciHal_SelfTest.cc | 533 (memcmp(exp->p_data, act->pBuff, exp->len) == 0)) { in st_validator_testSWP1_vltg() 534 if (act->pBuff[4] == 0x01 || act->pBuff[4] == 0x02) { in st_validator_testSWP1_vltg() 562 NXPLOG_NCIHAL_D("st_validator_testAntenna_Txldo = 0x%x", act->pBuff[3]); in st_validator_testAntenna_Txldo() 563 if (0x05 == act->pBuff[2]) { in st_validator_testAntenna_Txldo() 564 if (NFCSTATUS_SUCCESS == act->pBuff[3]) { in st_validator_testAntenna_Txldo() 567 act->pBuff[4]); in st_validator_testAntenna_Txldo() 568 if (0x00 == act->pBuff[5]) { in st_validator_testAntenna_Txldo() 570 measured_val = ((0.40 * act->pBuff[4]) + 50); in st_validator_testAntenna_Txldo() 575 measured_val = ((0.40 * act->pBuff[4]) + 20); in st_validator_testAntenna_Txldo() 635 if (0x05 == act->pBuff[2]) { in st_validator_testAntenna_AgcVal() [all …]
|
/hardware/nxp/nfc/pn8x/halimpl/self-test/ |
D | phNxpNciHal_SelfTest.cc | 533 (memcmp(exp->p_data, act->pBuff, exp->len) == 0)) { in st_validator_testSWP1_vltg() 534 if (act->pBuff[4] == 0x01 || act->pBuff[4] == 0x02) { in st_validator_testSWP1_vltg() 562 NXPLOG_NCIHAL_D("st_validator_testAntenna_Txldo = 0x%x", act->pBuff[3]); in st_validator_testAntenna_Txldo() 563 if (0x05 == act->pBuff[2]) { in st_validator_testAntenna_Txldo() 564 if (NFCSTATUS_SUCCESS == act->pBuff[3]) { in st_validator_testAntenna_Txldo() 567 act->pBuff[4]); in st_validator_testAntenna_Txldo() 568 if (0x00 == act->pBuff[5]) { in st_validator_testAntenna_Txldo() 570 measured_val = ((0.40 * act->pBuff[4]) + 50); in st_validator_testAntenna_Txldo() 575 measured_val = ((0.40 * act->pBuff[4]) + 20); in st_validator_testAntenna_Txldo() 635 if (0x05 == act->pBuff[2]) { in st_validator_testAntenna_AgcVal() [all …]
|
/hardware/nxp/uwb/halimpl/tml/ |
D | phTmlUwb.h | 67 uint8_t* pBuff; /* Response Data of the Transaction*/ member
|
D | phTmlUwb.cc | 218 tTransactionInfo.pBuff = gpphTmlUwb_Context->tReadInfo.pBuffer; in phTmlUwb_TmlReaderThread() 318 tTransactionInfo.pBuff = gpphTmlUwb_Context->tWriteInfo.pBuffer; in phTmlUwb_TmlWriterThread()
|
/hardware/nxp/uwb/halimpl/hal/ |
D | phNxpUciHal.cc | 498 …uint8_t extBitSet = (pInfo->pBuff[index + EXTND_LEN_INDICATOR_OFFSET] & EXTND_LEN_INDICATOR_OFFSET… in phNxpUciHal_read_complete() 499 int32_t length = pInfo->pBuff[index + NORMAL_MODE_LENGTH_OFFSET]; in phNxpUciHal_read_complete() 500 if (extBitSet || ((pInfo->pBuff[index] & UCI_MT_MASK) == 0x00)) { in phNxpUciHal_read_complete() 501 length = (length << EXTENDED_MODE_LEN_SHIFT) | pInfo->pBuff[index + EXTENDED_MODE_LEN_OFFSET] ; in phNxpUciHal_read_complete() 506 nxpucihal_ctrl.p_rx_data = &pInfo->pBuff[index]; in phNxpUciHal_read_complete() 517 phNxpUciHal_rx_handler_check(pInfo->wLength, pInfo->pBuff); in phNxpUciHal_read_complete()
|
/hardware/nxp/nfc/pn8x/halimpl/tml/ |
D | phTmlNfc.h | 75 uint8_t* pBuff; /* Response Data of the Transaction*/ member
|
D | phTmlNfc.cc | 385 tTransactionInfo.pBuff = gpphTmlNfc_Context->tReadInfo.pBuffer; in phTmlNfc_TmlThread() 486 tTransactionInfo.pBuff = gpphTmlNfc_Context->tWriteInfo.pBuffer; in phTmlNfc_TmlWriterThread()
|
/hardware/nxp/nfc/snxxx/halimpl/tml/ |
D | phTmlNfc.h | 90 uint8_t* pBuff; /* Response Data of the Transaction*/ member
|
/hardware/nxp/nfc/pn8x/halimpl/hal/ |
D | phNxpNciHal.cc | 1152 if (pInfo->wLength > 0 && ((pInfo->pBuff[0] & NCI_MT_MASK) == NCI_MT_RSP) && in phNxpNciHal_read_complete() 1158 if (pInfo->wLength > 2 && pInfo->pBuff[0] == 0x4F && in phNxpNciHal_read_complete() 1159 pInfo->pBuff[1] == 0x01 && pInfo->pBuff[2] == 0x01) { in phNxpNciHal_read_complete() 1160 nxpncihal_ctrl.p_rx_ese_data = pInfo->pBuff; in phNxpNciHal_read_complete() 1164 nxpncihal_ctrl.p_rx_data = pInfo->pBuff; in phNxpNciHal_read_complete() 1170 phNxpNciHal_print_res_status(pInfo->pBuff, &pInfo->wLength); in phNxpNciHal_read_complete()
|