• Home
  • Raw
  • Download

Lines Matching refs:psNdefMap

229     phFriNfc_NdefMap_t          *psNdefMap);
238 phFriNfc_NdefMap_t *psNdefMap);
248 phFriNfc_NdefMap_t *psNdefMap);
268 phFriNfc_NdefMap_t *psNdefMap);
277 phFriNfc_NdefMap_t *psNdefMap,
289 phFriNfc_NdefMap_t *psNdefMap);
299 phFriNfc_NdefMap_t *psNdefMap,
313 phFriNfc_NdefMap_t *psNdefMap,
327 phFriNfc_NdefMap_t *psNdefMap,
340 phFriNfc_NdefMap_t *psNdefMap,
350 phFriNfc_NdefMap_t *psNdefMap,
360 phFriNfc_NdefMap_t *psNdefMap);
369 phFriNfc_NdefMap_t *psNdefMap);
380 phFriNfc_NdefMap_t *psNdefMap);
389 phFriNfc_NdefMap_t *psNdefMap);
398 phFriNfc_NdefMap_t *psNdefMap);
407 phFriNfc_NdefMap_t *psNdefMap,
418 phFriNfc_NdefMap_t *psNdefMap,
430 phFriNfc_NdefMap_t *psNdefMap);
439 phFriNfc_NdefMap_t *psNdefMap);
448 phFriNfc_NdefMap_t *psNdefMap);
458 phFriNfc_NdefMap_t *psNdefMap);
468 phFriNfc_NdefMap_t *psNdefMap,
480 phFriNfc_NdefMap_t *psNdefMap,
492 phFriNfc_NdefMap_t *psNdefMap);
502 phFriNfc_NdefMap_t *psNdefMap);
511 phFriNfc_NdefMap_t *psNdefMap);
520 phFriNfc_NdefMap_t *psNdefMap);
530 phFriNfc_NdefMap_t *psNdefMap);
537 phFriNfc_NdefMap_t *psNdefMap);
542 phFriNfc_NdefMap_t *psNdefMap);
717 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_TopazDynamicMap_ConvertToReadOnly() argument
722 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_READ_ONLY; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
724 psNdefMap->TopazContainer.read_only_seq = 0; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
728 psNdefMap->TopazContainer.CurrentBlock = 0x01U; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
729 psNdefMap->TopazContainer.ByteNumber = 0x03U; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
732 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
734 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
737 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, &cc_read_only_byte, in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
742 psNdefMap->TopazContainer.read_only_seq = (uint8_t)WR_READONLY_CC; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
925 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_UpdateAndWriteLockBits() argument
936 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
937 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
939 (void)memcpy ((void *)lock_bytes_value, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
1033 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
1035 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
1038 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, lock_bytes_value, in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
1046 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ProcessReadOnly() argument
1054 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ProcessReadOnly()
1055 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_ProcessReadOnly()
1056 e_readonly_seq = (phFriNfc_Tpz_RO_Seq_t)psNdefMap->TopazContainer.read_only_seq; in phFriNfc_Tpz_H_ProcessReadOnly()
1062 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1064 psNdefMap->TopazContainer.CurrentBlock = (uint8_t) in phFriNfc_Tpz_H_ProcessReadOnly()
1065 psNdefMap->LockTlv.BlkNum; in phFriNfc_Tpz_H_ProcessReadOnly()
1070 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly()
1076 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read; in phFriNfc_Tpz_H_ProcessReadOnly()
1078 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead; in phFriNfc_Tpz_H_ProcessReadOnly()
1081 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_ProcessReadOnly()
1085 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ProcessReadOnly()
1097 if (TOPAZ_READ_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1099 result = phFriNfc_Tpz_H_UpdateAndWriteLockBits (psNdefMap); in phFriNfc_Tpz_H_ProcessReadOnly()
1116 if (TOPAZ_WRITE_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1125 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly()
1131 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read; in phFriNfc_Tpz_H_ProcessReadOnly()
1133 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead; in phFriNfc_Tpz_H_ProcessReadOnly()
1136 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_ProcessReadOnly()
1140 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ProcessReadOnly()
1151 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly()
1157 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read; in phFriNfc_Tpz_H_ProcessReadOnly()
1159 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead; in phFriNfc_Tpz_H_ProcessReadOnly()
1162 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_ProcessReadOnly()
1166 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ProcessReadOnly()
1181 if (TOPAZ_READ_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1186 (void *)(psNdefMap->SendRecvBuf + in phFriNfc_Tpz_H_ProcessReadOnly()
1195 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProcessReadOnly()
1197 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProcessReadOnly()
1200 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, &lock_byte_value, in phFriNfc_Tpz_H_ProcessReadOnly()
1218 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1229 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProcessReadOnly()
1231 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProcessReadOnly()
1234 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, &lock_byte_value, in phFriNfc_Tpz_H_ProcessReadOnly()
1252 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1272 psNdefMap->TopazContainer.read_only_seq = (uint8_t)e_readonly_seq; in phFriNfc_Tpz_H_ProcessReadOnly()
1281 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ProWrResp() argument
1291 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ProWrResp()
1293 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_ProWrResp()
1294 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_ProWrResp()
1301 if (TOPAZ_WRITE_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1303 psNdefMap->State = (uint8_t) in phFriNfc_Tpz_H_ProWrResp()
1313 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProWrResp()
1315 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProWrResp()
1317 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1331 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1338 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1351 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1369 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1375 (psNdefMap, write_len); in phFriNfc_Tpz_H_ProWrResp()
1389 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1395 result = phFriNfc_Tpz_H_CopySendWrData (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1406 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1421 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1429 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1437 (psNdefMap, write_len); in phFriNfc_Tpz_H_ProWrResp()
1450 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1456 result = phFriNfc_Tpz_H_CopySendWrData (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1465 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1470 else if (write_len == psNdefMap->ApduBuffIndex) in phFriNfc_Tpz_H_ProWrResp()
1473 *psNdefMap->WrNdefPacketLength = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_ProWrResp()
1478 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1488 result = phFriNfc_Tpz_H_CopySendWrData (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1498 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1513 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1521 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1529 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProWrResp()
1531 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProWrResp()
1534 psNdefMap->State = (uint8_t)PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_ProWrResp()
1547 result = phFriNfc_Tpz_H_NxpWrite(psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1556 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1567 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProWrResp()
1569 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProWrResp()
1571 psNdefMap->State = (uint8_t)PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_ProWrResp()
1581 result = phFriNfc_Tpz_H_NxpWrite(psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1594 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1602 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1604 *psNdefMap->WrNdefPacketLength = (uint32_t) in phFriNfc_Tpz_H_ProWrResp()
1605 psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_ProWrResp()
1607 psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_ProWrResp()
1629 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_UpdateNdefTypeField() argument
1635 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_UpdateNdefTypeField()
1638 psNdefMap->SendRecvBuf, TOPAZ_WRITE_8_DATA_LENGTH); in phFriNfc_Tpz_H_UpdateNdefTypeField()
1643 psNdefMap->State = (uint8_t)PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_UpdateNdefTypeField()
1646 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateNdefTypeField()
1648 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_UpdateNdefTypeField()
1650 result = phFriNfc_Tpz_H_NxpWrite(psNdefMap, write_buf, in phFriNfc_Tpz_H_UpdateNdefTypeField()
1659 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ProRdForWrResp() argument
1665 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ProRdForWrResp()
1667 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_ProRdForWrResp()
1669 if (TOPAZ_READ_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProRdForWrResp()
1676 result = phFriNfc_Tpz_H_UpdateNdefTypeField (psNdefMap); in phFriNfc_Tpz_H_ProRdForWrResp()
1686 result = phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead (psNdefMap); in phFriNfc_Tpz_H_ProRdForWrResp()
1694 result = phFriNfc_Tpz_H_CopyReadDataAndWrite (psNdefMap); in phFriNfc_Tpz_H_ProRdForWrResp()
1704 result = phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead (psNdefMap); in phFriNfc_Tpz_H_ProRdForWrResp()
1730 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ChkReadID() argument
1737 if (PH_FRINFC_TOPAZ_VAL6 == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ChkReadID()
1739 if (((psNdefMap->SendRecvBuf[recv_index] & in phFriNfc_Tpz_H_ChkReadID()
1744 psNdefMap->psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid, in phFriNfc_Tpz_H_ChkReadID()
1745 &psNdefMap->SendRecvBuf[PH_FRINFC_TOPAZ_VAL2], in phFriNfc_Tpz_H_ChkReadID()
1750 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_READ; in phFriNfc_Tpz_H_ChkReadID()
1755 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_Tpz_H_ChkReadID()
1760 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read; in phFriNfc_Tpz_H_ChkReadID()
1762 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead; in phFriNfc_Tpz_H_ChkReadID()
1764 psNdefMap->Cmd.JewelCmd = phHal_eJewel_ReadSeg; in phFriNfc_Tpz_H_ChkReadID()
1768 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ChkReadID()
1791 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_NxpRead() argument
1801 psNdefMap->psDepAdditionalInfo.DepFlags.MetaChaining = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpRead()
1802 psNdefMap->psDepAdditionalInfo.DepFlags.NADPresent = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpRead()
1803 psNdefMap->psDepAdditionalInfo.NAD = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpRead()
1805 psNdefMap->MapCompletionInfo.CompletionRoutine = phFriNfc_TopazDynamicMap_Process; in phFriNfc_Tpz_H_NxpRead()
1806 psNdefMap->MapCompletionInfo.Context = psNdefMap; in phFriNfc_Tpz_H_NxpRead()
1808 *psNdefMap->SendRecvLength = psNdefMap->TempReceiveLength; in phFriNfc_Tpz_H_NxpRead()
1813 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Raw; in phFriNfc_Tpz_H_NxpRead()
1818 switch (*psNdefMap->SendRecvBuf) in phFriNfc_Tpz_H_NxpRead()
1820 switch(psNdefMap->Cmd.JewelCmd) in phFriNfc_Tpz_H_NxpRead()
1827 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpRead()
1835 psNdefMap->SendRecvBuf[send_index] = in phFriNfc_Tpz_H_NxpRead()
1836 psNdefMap->TopazContainer.CurrentBlock; in phFriNfc_Tpz_H_NxpRead()
1843 psNdefMap->SendRecvBuf[send_index] = (uint8_t) in phFriNfc_Tpz_H_NxpRead()
1844 (psNdefMap->TopazContainer.CurrentSeg in phFriNfc_Tpz_H_NxpRead()
1861 psNdefMap->SendLength = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpRead()
1873 psNdefMap->SendLength = PH_FRINFC_TOPAZ_VAL3; in phFriNfc_Tpz_H_NxpRead()
1879 psNdefMap->SendRecvBuf[send_index] = (uint8_t) in phFriNfc_Tpz_H_NxpRead()
1880 (psNdefMap->TopazContainer.CurrentSeg in phFriNfc_Tpz_H_NxpRead()
1883 psNdefMap->SendLength = send_index; in phFriNfc_Tpz_H_NxpRead()
1889 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read4; in phFriNfc_Tpz_H_NxpRead()
1890 psNdefMap->SendRecvBuf[send_index] = psNdefMap->TopazContainer.CurrentBlock; in phFriNfc_Tpz_H_NxpRead()
1892 psNdefMap->SendLength = send_index; in phFriNfc_Tpz_H_NxpRead()
1909 if (PH_FRINFC_TOPAZ_CMD_READID != *psNdefMap->SendRecvBuf) in phFriNfc_Tpz_H_NxpRead()
1911 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpRead()
1915 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpRead()
1916 (void *)psNdefMap->psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid, in phFriNfc_Tpz_H_NxpRead()
1922 psNdefMap->SendLength = send_index; in phFriNfc_Tpz_H_NxpRead()
1926 result = phFriNfc_OvrHal_Transceive( psNdefMap->LowerDevice, in phFriNfc_Tpz_H_NxpRead()
1927 &psNdefMap->MapCompletionInfo, in phFriNfc_Tpz_H_NxpRead()
1928 psNdefMap->psRemoteDevInfo, in phFriNfc_Tpz_H_NxpRead()
1929 psNdefMap->Cmd, in phFriNfc_Tpz_H_NxpRead()
1930 &psNdefMap->psDepAdditionalInfo, in phFriNfc_Tpz_H_NxpRead()
1931 psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_NxpRead()
1932 psNdefMap->SendLength, in phFriNfc_Tpz_H_NxpRead()
1933 psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_NxpRead()
1934 psNdefMap->SendRecvLength); in phFriNfc_Tpz_H_NxpRead()
1943 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_NxpWrite() argument
1951 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_NxpWrite()
1954 psNdefMap->psDepAdditionalInfo.DepFlags.MetaChaining = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpWrite()
1955 psNdefMap->psDepAdditionalInfo.DepFlags.NADPresent = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpWrite()
1956 psNdefMap->psDepAdditionalInfo.NAD = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpWrite()
1958 psNdefMap->MapCompletionInfo.CompletionRoutine = phFriNfc_TopazDynamicMap_Process; in phFriNfc_Tpz_H_NxpWrite()
1959 psNdefMap->MapCompletionInfo.Context = psNdefMap; in phFriNfc_Tpz_H_NxpWrite()
1961 *psNdefMap->SendRecvLength = psNdefMap->TempReceiveLength; in phFriNfc_Tpz_H_NxpWrite()
1967 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Raw; in phFriNfc_Tpz_H_NxpWrite()
1969 switch (*psNdefMap->SendRecvBuf) in phFriNfc_Tpz_H_NxpWrite()
1973 switch (psNdefMap->Cmd.JewelCmd) in phFriNfc_Tpz_H_NxpWrite()
1981 psNdefMap->SendRecvBuf[send_index] = (uint8_t)((ps_tpz_info->CurrentBlock in phFriNfc_Tpz_H_NxpWrite()
1990 psNdefMap->SendRecvBuf[send_index] = ps_tpz_info->CurrentBlock; in phFriNfc_Tpz_H_NxpWrite()
1999 psNdefMap->SendRecvBuf[send_index] = (uint8_t)((ps_tpz_info->CurrentBlock in phFriNfc_Tpz_H_NxpWrite()
2010 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write4E; in phFriNfc_Tpz_H_NxpWrite()
2011 psNdefMap->SendRecvBuf[send_index] = ps_tpz_info->CurrentBlock; in phFriNfc_Tpz_H_NxpWrite()
2029 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpWrite()
2036 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpWrite()
2037 (void *)psNdefMap->psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid, in phFriNfc_Tpz_H_NxpWrite()
2043 psNdefMap->SendLength = send_index; in phFriNfc_Tpz_H_NxpWrite()
2046 result = phFriNfc_OvrHal_Transceive( psNdefMap->LowerDevice, in phFriNfc_Tpz_H_NxpWrite()
2047 &psNdefMap->MapCompletionInfo, in phFriNfc_Tpz_H_NxpWrite()
2048 psNdefMap->psRemoteDevInfo, in phFriNfc_Tpz_H_NxpWrite()
2049 psNdefMap->Cmd, in phFriNfc_Tpz_H_NxpWrite()
2050 &psNdefMap->psDepAdditionalInfo, in phFriNfc_Tpz_H_NxpWrite()
2051 psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_NxpWrite()
2052 psNdefMap->SendLength, in phFriNfc_Tpz_H_NxpWrite()
2053 psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_NxpWrite()
2054 psNdefMap->SendRecvLength); in phFriNfc_Tpz_H_NxpWrite()
2062 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ProReadResp() argument
2068 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ProReadResp()
2070 switch (psNdefMap->PrevOperation) in phFriNfc_Tpz_H_ProReadResp()
2075 *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProReadResp()
2079 result = phFriNfc_Tpz_H_CheckCCBytes (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2084 result = phFriNfc_Tpz_H_ParseTLVs (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2098 *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProReadResp()
2101 result = phFriNfc_Tpz_H_CopyReadData (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2114 if(TOPAZ_READ_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProReadResp()
2117 (void *)(psNdefMap->SendRecvBuf), in phFriNfc_Tpz_H_ProReadResp()
2120 result = phFriNfc_Tpz_H_CheckCCBytesForWrite (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2138 psNdefMap->State = (uint8_t) in phFriNfc_Tpz_H_ProReadResp()
2151 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProReadResp()
2153 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_ProReadResp()
2156 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2163 psNdefMap->State = (uint8_t) in phFriNfc_Tpz_H_ProReadResp()
2166 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProReadResp()
2168 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProReadResp()
2172 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buffer, in phFriNfc_Tpz_H_ProReadResp()
2213 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ChkLockBits() argument
2217 uint8_t *p_recv_buf = psNdefMap->SendRecvBuf; in phFriNfc_Tpz_H_ChkLockBits()
2219 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_INITIALIZED; in phFriNfc_Tpz_H_ChkLockBits()
2224 psNdefMap->CardState = (uint8_t) in phFriNfc_Tpz_H_ChkLockBits()
2247 if (PH_NDEFMAP_CARD_STATE_INITIALIZED == psNdefMap->CardState) in phFriNfc_Tpz_H_ChkLockBits()
2249 switch ((psNdefMap->TopazContainer.CCByteBuf[3] & 0xFF)) in phFriNfc_Tpz_H_ChkLockBits()
2253 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_INITIALIZED; in phFriNfc_Tpz_H_ChkLockBits()
2259 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_READ_ONLY; in phFriNfc_Tpz_H_ChkLockBits()
2265 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_INVALID; in phFriNfc_Tpz_H_ChkLockBits()
2279 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CheckCCBytes() argument
2282 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CheckCCBytes()
2283 uint8_t *p_recv_buf = psNdefMap->SendRecvBuf; in phFriNfc_Tpz_H_CheckCCBytes()
2306 result = phFriNfc_Tpz_H_ChkSpcVer (psNdefMap, p_recv_buf[parse_index]); in phFriNfc_Tpz_H_CheckCCBytes()
2323 psNdefMap->CardMemSize = (uint16_t)((p_recv_buf[parse_index] * in phFriNfc_Tpz_H_CheckCCBytes()
2326 ps_tpz_info->RemainingSize = (uint16_t)(psNdefMap->CardMemSize + in phFriNfc_Tpz_H_CheckCCBytes()
2329 result = phFriNfc_Tpz_H_ChkLockBits (psNdefMap); in phFriNfc_Tpz_H_CheckCCBytes()
2340 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_INVALID; in phFriNfc_Tpz_H_CheckCCBytes()
2349 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CheckCCBytesForWrite() argument
2358 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CheckCCBytesForWrite()
2392 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead() argument
2394 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead()
2408 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead()
2419 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead()
2429 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite() argument
2432 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite()
2446 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite()
2457 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite()
2468 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_RemainingReadDataCopy() argument
2471 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_RemainingReadDataCopy()
2480 if ((psNdefMap->ApduBufferSize - psNdefMap->ApduBuffIndex) >= in phFriNfc_Tpz_H_RemainingReadDataCopy()
2484 (void)memcpy ((void *)(psNdefMap->ApduBuffer + psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_RemainingReadDataCopy()
2489 read_copy_length = (uint16_t)(psNdefMap->ApduBufferSize - in phFriNfc_Tpz_H_RemainingReadDataCopy()
2490 psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_RemainingReadDataCopy()
2496 (void)memcpy ((void *)(psNdefMap->ApduBuffer + psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_RemainingReadDataCopy()
2510 psNdefMap->ApduBuffIndex = (uint16_t)(psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_RemainingReadDataCopy()
2522 *psNdefMap->NumOfBytesRead = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_RemainingReadDataCopy()
2526 else if (psNdefMap->ApduBuffIndex == psNdefMap->ApduBufferSize) in phFriNfc_Tpz_H_RemainingReadDataCopy()
2529 *psNdefMap->NumOfBytesRead = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_RemainingReadDataCopy()
2538 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_Tpz_H_RemainingReadDataCopy()
2542 psNdefMap->Cmd.JewelCmd = phHal_eJewel_ReadSeg; in phFriNfc_Tpz_H_RemainingReadDataCopy()
2545 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_RemainingReadDataCopy()
2554 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CopyReadData() argument
2557 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CopyReadData()
2570 recv_length = *(psNdefMap->SendRecvLength); in phFriNfc_Tpz_H_CopyReadData()
2573 if (PH_FRINFC_NDEFMAP_SEEK_CUR == psNdefMap->Offset) in phFriNfc_Tpz_H_CopyReadData()
2577 psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_CopyReadData()
2580 exact_copy_length = (uint16_t)((psNdefMap->ApduBufferSize > in phFriNfc_Tpz_H_CopyReadData()
2582 psNdefMap->ApduBufferSize); in phFriNfc_Tpz_H_CopyReadData()
2588 recv_length = (*(psNdefMap->SendRecvLength) - TOPAZ_STATIC_LOCK_RES_BYTES); in phFriNfc_Tpz_H_CopyReadData()
2592 phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead (psNdefMap)) == in phFriNfc_Tpz_H_CopyReadData()
2597 psNdefMap) % TOPAZ_SEGMENT_READ_LENGTH)); in phFriNfc_Tpz_H_CopyReadData()
2616 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_CopyReadData()
2631 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_CopyReadData()
2640 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_CopyReadData()
2661 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_CopyReadData()
2680 (exact_copy_length - psNdefMap->ApduBuffIndex)) && in phFriNfc_Tpz_H_CopyReadData()
2681 (exact_copy_length != psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_CopyReadData()
2684 psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_CopyReadData()
2687 if (exact_copy_length != psNdefMap->ApduBuffIndex) in phFriNfc_Tpz_H_CopyReadData()
2689 (void)memcpy ((void *)(psNdefMap->ApduBuffer + in phFriNfc_Tpz_H_CopyReadData()
2690 psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_CopyReadData()
2691 (void *)(psNdefMap->SendRecvBuf + copy_index), in phFriNfc_Tpz_H_CopyReadData()
2697 (exact_copy_length - psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_CopyReadData()
2702 (void *)(psNdefMap->SendRecvBuf + copy_index), in phFriNfc_Tpz_H_CopyReadData()
2722 psNdefMap->ApduBuffIndex = (uint16_t)(psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_CopyReadData()
2735 if (actual_ndef_length > (psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_CopyReadData()
2740 psNdefMap->ApduBuffIndex)) ? in phFriNfc_Tpz_H_CopyReadData()
2742 psNdefMap->ApduBuffIndex) : in phFriNfc_Tpz_H_CopyReadData()
2748 (void *)(psNdefMap->SendRecvBuf + copy_index), in phFriNfc_Tpz_H_CopyReadData()
2779 if (exact_copy_length != psNdefMap->ApduBuffIndex) in phFriNfc_Tpz_H_CopyReadData()
2785 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_Tpz_H_CopyReadData()
2789 psNdefMap->Cmd.JewelCmd = phHal_eJewel_ReadSeg; in phFriNfc_Tpz_H_CopyReadData()
2792 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_CopyReadData()
2796 *psNdefMap->NumOfBytesRead = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_CopyReadData()
2797 if (psNdefMap->ApduBuffIndex == actual_ndef_length) in phFriNfc_Tpz_H_CopyReadData()
2805 psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_CopyReadData()
2815 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ParseTLVs() argument
2818 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ParseTLVs()
2847 p_recv_buf = psNdefMap->SendRecvBuf; in phFriNfc_Tpz_H_ParseTLVs()
2848 recv_length = *psNdefMap->SendRecvLength; in phFriNfc_Tpz_H_ParseTLVs()
2862 recv_length = (uint16_t)(*(psNdefMap->SendRecvLength) - in phFriNfc_Tpz_H_ParseTLVs()
2875 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_ParseTLVs()
2901 result = phFriNfc_Tpz_H_ParseLockTLVType (psNdefMap, p_recv_buf, in phFriNfc_Tpz_H_ParseTLVs()
2936 (void)memcpy ((void *)psNdefMap->LockTlv.LockTlvBuff, in phFriNfc_Tpz_H_ParseTLVs()
2940 result = phFriNfc_Tpz_H_GetLockBytesInfo (psNdefMap, lock_mem_buf); in phFriNfc_Tpz_H_ParseTLVs()
2951 result = phFriNfc_Tpz_H_ParseMemTLVType (psNdefMap, p_recv_buf, in phFriNfc_Tpz_H_ParseTLVs()
2987 result = phFriNfc_Tpz_H_GetMemBytesInfo (psNdefMap, lock_mem_buf); in phFriNfc_Tpz_H_ParseTLVs()
2999 result = phFriNfc_Tpz_H_ParseNdefTLVType (psNdefMap, p_recv_buf, in phFriNfc_Tpz_H_ParseTLVs()
3096 result = phFriNfc_Tpz_H_ActualCardSize (psNdefMap); in phFriNfc_Tpz_H_ParseTLVs()
3098 if ((PH_NDEFMAP_CARD_STATE_READ_ONLY != psNdefMap->CardState) && in phFriNfc_Tpz_H_ParseTLVs()
3104 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_READ_WRITE; in phFriNfc_Tpz_H_ParseTLVs()
3121 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_Tpz_H_ParseTLVs()
3125 psNdefMap->Cmd.JewelCmd = phHal_eJewel_ReadSeg; in phFriNfc_Tpz_H_ParseTLVs()
3128 result = phFriNfc_Tpz_H_NxpRead(psNdefMap); in phFriNfc_Tpz_H_ParseTLVs()
3170 size_to_skip = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_ParseTLVs()
3181 ps_tpz_info->RemainingSize = (uint16_t)(psNdefMap->CardMemSize + in phFriNfc_Tpz_H_ParseTLVs()
3189 (void)phFriNfc_Tpz_H_ActualCardSize (psNdefMap); in phFriNfc_Tpz_H_ParseTLVs()
3207 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CopyReadDataAndWrite() argument
3217 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3219 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3220 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3222 (void)memcpy ((void *)write_buf, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3226 phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite (psNdefMap, write_len))) in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3247 (write_len != psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3252 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3257 psNdefMap->ApduBuffer[psNdefMap->ApduBuffIndex]; in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3260 psNdefMap->ApduBuffIndex = (uint16_t) in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3261 (psNdefMap->ApduBuffIndex + 1); in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3284 if (psNdefMap->ApduBuffIndex == write_len) in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3302 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3304 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3306 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3316 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead() argument
3334 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3335 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3336 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3338 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3340 (void)memcpy ((void *)write_buf, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3377 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3390 psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3406 (psNdefMap->ApduBuffIndex >> BYTE_SIZE); in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3414 (psNdefMap->ApduBuffIndex & in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3472 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3474 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3477 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3487 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead() argument
3505 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3506 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3507 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3509 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3511 (void)memcpy ((void *)write_buf, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3514 prev_apdu_index = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3542 (write_len != psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3547 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3592 psNdefMap->ApduBuffer[psNdefMap->ApduBuffIndex]; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3595 psNdefMap->ApduBuffIndex = (uint16_t) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3596 (psNdefMap->ApduBuffIndex + 1); in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3627 if (psNdefMap->ApduBuffIndex == write_len) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3634 psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3650 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3652 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3655 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3663 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_RdForWrite() argument
3672 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_RdForWrite()
3677 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_RdForWrite()
3681 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_RdForWrite()
3685 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_RD_FOR_WR_NDEF; in phFriNfc_Tpz_H_RdForWrite()
3703 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_RdForWrite()
3729 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_RdForWrite()
3762 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_RdForWrite()
3770 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_CompareLockBlocks() argument
3777 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_CompareLockBlocks()
3792 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_CompareMemBlocks() argument
3799 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_CompareMemBlocks()
3815 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CopySendWrData() argument
3824 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CopySendWrData()
3825 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_CopySendWrData()
3826 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_CopySendWrData()
3828 if (0 != phFriNfc_Tpz_H_CompareLockBlocks (psNdefMap, in phFriNfc_Tpz_H_CopySendWrData()
3833 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_CopySendWrData()
3835 else if (0 != phFriNfc_Tpz_H_CompareMemBlocks (psNdefMap, in phFriNfc_Tpz_H_CopySendWrData()
3840 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_CopySendWrData()
3845 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_CopySendWrData()
3847 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_CopySendWrData()
3849 psNdefMap->State = (uint8_t)PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_CopySendWrData()
3851 if ((write_len - psNdefMap->ApduBuffIndex) >= (uint16_t)TOPAZ_WRITE_8_DATA_LENGTH) in phFriNfc_Tpz_H_CopySendWrData()
3855 (void *)(psNdefMap->ApduBuffer + psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_CopySendWrData()
3858 psNdefMap->ApduBuffIndex = (uint16_t)(psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_CopySendWrData()
3863 copy_length = (uint8_t)(write_len - psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_CopySendWrData()
3866 (void *)(psNdefMap->ApduBuffer + psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_CopySendWrData()
3869 psNdefMap->ApduBuffIndex = (uint16_t)(psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_CopySendWrData()
3877 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_CopySendWrData()
3879 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_CopySendWrData()
3882 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_CopySendWrData()
3894 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ActualCardSize() argument
3903 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ActualCardSize()
3914 (psNdefMap); in phFriNfc_Tpz_H_ActualCardSize()
3916 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_ActualCardSize()
3923 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_ActualCardSize()
3951 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_ParseLockTLVType() argument
3961 PHNFC_UNUSED_VARIABLE(psNdefMap); in phFriNfc_Tpz_H_ParseLockTLVType()
3997 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_ParseMemTLVType() argument
4007 PHNFC_UNUSED_VARIABLE(psNdefMap); in phFriNfc_Tpz_H_ParseMemTLVType()
4049 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_ParseNdefTLVType() argument
4059 PHNFC_UNUSED_VARIABLE(psNdefMap); in phFriNfc_Tpz_H_ParseNdefTLVType()
4109 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_GetSkipSize() argument
4116 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_GetSkipSize()
4117 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_GetSkipSize()
4138 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_GetLockBytesInfo() argument
4147 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_GetLockBytesInfo()
4175 (uint16_t)(psNdefMap->TopazContainer.CCByteBuf[2] * in phFriNfc_Tpz_H_GetLockBytesInfo()
4205 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_GetMemBytesInfo() argument
4215 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_GetMemBytesInfo()
4216 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_GetMemBytesInfo()
4256 (uint16_t)(psNdefMap->TopazContainer.CCByteBuf[2] * in phFriNfc_Tpz_H_GetMemBytesInfo()