Lines Matching refs:psNdefMap
232 phFriNfc_NdefMap_t *psNdefMap);
241 phFriNfc_NdefMap_t *psNdefMap);
251 phFriNfc_NdefMap_t *psNdefMap);
271 phFriNfc_NdefMap_t *psNdefMap);
280 phFriNfc_NdefMap_t *psNdefMap,
292 phFriNfc_NdefMap_t *psNdefMap);
302 phFriNfc_NdefMap_t *psNdefMap,
316 phFriNfc_NdefMap_t *psNdefMap,
330 phFriNfc_NdefMap_t *psNdefMap,
343 phFriNfc_NdefMap_t *psNdefMap,
353 phFriNfc_NdefMap_t *psNdefMap,
363 phFriNfc_NdefMap_t *psNdefMap);
372 phFriNfc_NdefMap_t *psNdefMap);
383 phFriNfc_NdefMap_t *psNdefMap);
392 phFriNfc_NdefMap_t *psNdefMap);
401 phFriNfc_NdefMap_t *psNdefMap);
410 phFriNfc_NdefMap_t *psNdefMap,
421 phFriNfc_NdefMap_t *psNdefMap,
433 phFriNfc_NdefMap_t *psNdefMap);
442 phFriNfc_NdefMap_t *psNdefMap);
451 phFriNfc_NdefMap_t *psNdefMap);
461 phFriNfc_NdefMap_t *psNdefMap);
471 phFriNfc_NdefMap_t *psNdefMap,
483 phFriNfc_NdefMap_t *psNdefMap,
495 phFriNfc_NdefMap_t *psNdefMap);
505 phFriNfc_NdefMap_t *psNdefMap);
514 phFriNfc_NdefMap_t *psNdefMap);
523 phFriNfc_NdefMap_t *psNdefMap);
533 phFriNfc_NdefMap_t *psNdefMap);
540 phFriNfc_NdefMap_t *psNdefMap);
545 phFriNfc_NdefMap_t *psNdefMap);
720 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_TopazDynamicMap_ConvertToReadOnly() argument
725 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_READ_ONLY; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
727 psNdefMap->TopazContainer.read_only_seq = 0; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
731 psNdefMap->TopazContainer.CurrentBlock = 0x01U; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
732 psNdefMap->TopazContainer.ByteNumber = 0x03U; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
735 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
737 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
740 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, &cc_read_only_byte, in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
745 psNdefMap->TopazContainer.read_only_seq = (uint8_t)WR_READONLY_CC; in phFriNfc_TopazDynamicMap_ConvertToReadOnly()
928 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_UpdateAndWriteLockBits() argument
939 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
940 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
942 (void)memcpy ((void *)lock_bytes_value, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
1036 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
1038 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
1041 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, lock_bytes_value, in phFriNfc_Tpz_H_UpdateAndWriteLockBits()
1049 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ProcessReadOnly() argument
1057 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ProcessReadOnly()
1058 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_ProcessReadOnly()
1059 e_readonly_seq = (phFriNfc_Tpz_RO_Seq_t)psNdefMap->TopazContainer.read_only_seq; in phFriNfc_Tpz_H_ProcessReadOnly()
1065 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1067 psNdefMap->TopazContainer.CurrentBlock = (uint8_t) in phFriNfc_Tpz_H_ProcessReadOnly()
1068 psNdefMap->LockTlv.BlkNum; in phFriNfc_Tpz_H_ProcessReadOnly()
1073 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly()
1079 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read; in phFriNfc_Tpz_H_ProcessReadOnly()
1081 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead; in phFriNfc_Tpz_H_ProcessReadOnly()
1084 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_ProcessReadOnly()
1088 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ProcessReadOnly()
1100 if (TOPAZ_READ_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1102 result = phFriNfc_Tpz_H_UpdateAndWriteLockBits (psNdefMap); in phFriNfc_Tpz_H_ProcessReadOnly()
1119 if (TOPAZ_WRITE_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1128 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly()
1134 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read; in phFriNfc_Tpz_H_ProcessReadOnly()
1136 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead; in phFriNfc_Tpz_H_ProcessReadOnly()
1139 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_ProcessReadOnly()
1143 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ProcessReadOnly()
1154 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly()
1160 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read; in phFriNfc_Tpz_H_ProcessReadOnly()
1162 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead; in phFriNfc_Tpz_H_ProcessReadOnly()
1165 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_ProcessReadOnly()
1169 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ProcessReadOnly()
1184 if (TOPAZ_READ_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1189 (void *)(psNdefMap->SendRecvBuf + in phFriNfc_Tpz_H_ProcessReadOnly()
1198 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProcessReadOnly()
1200 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProcessReadOnly()
1203 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, &lock_byte_value, in phFriNfc_Tpz_H_ProcessReadOnly()
1221 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1232 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProcessReadOnly()
1234 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProcessReadOnly()
1237 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, &lock_byte_value, in phFriNfc_Tpz_H_ProcessReadOnly()
1255 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProcessReadOnly()
1275 psNdefMap->TopazContainer.read_only_seq = (uint8_t)e_readonly_seq; in phFriNfc_Tpz_H_ProcessReadOnly()
1284 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ProWrResp() argument
1294 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ProWrResp()
1296 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_ProWrResp()
1297 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_ProWrResp()
1304 if (TOPAZ_WRITE_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1306 psNdefMap->State = (uint8_t) in phFriNfc_Tpz_H_ProWrResp()
1316 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProWrResp()
1318 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProWrResp()
1320 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1334 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1341 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1354 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1372 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1378 (psNdefMap, write_len); in phFriNfc_Tpz_H_ProWrResp()
1392 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1398 result = phFriNfc_Tpz_H_CopySendWrData (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1409 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1424 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1432 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1440 (psNdefMap, write_len); in phFriNfc_Tpz_H_ProWrResp()
1453 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1459 result = phFriNfc_Tpz_H_CopySendWrData (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1468 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1473 else if (write_len == psNdefMap->ApduBuffIndex) in phFriNfc_Tpz_H_ProWrResp()
1476 *psNdefMap->WrNdefPacketLength = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_ProWrResp()
1481 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1491 result = phFriNfc_Tpz_H_CopySendWrData (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1501 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1516 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1524 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1532 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProWrResp()
1534 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProWrResp()
1537 psNdefMap->State = (uint8_t)PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_ProWrResp()
1550 result = phFriNfc_Tpz_H_NxpWrite(psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1559 if (TOPAZ_WRITE_8_RESPONSE != *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1570 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProWrResp()
1572 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProWrResp()
1574 psNdefMap->State = (uint8_t)PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_ProWrResp()
1584 result = phFriNfc_Tpz_H_NxpWrite(psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1597 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_ProWrResp()
1605 if (TOPAZ_WRITE_1_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProWrResp()
1607 *psNdefMap->WrNdefPacketLength = (uint32_t) in phFriNfc_Tpz_H_ProWrResp()
1608 psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_ProWrResp()
1610 psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_ProWrResp()
1632 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_UpdateNdefTypeField() argument
1638 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_UpdateNdefTypeField()
1641 psNdefMap->SendRecvBuf, TOPAZ_WRITE_8_DATA_LENGTH); in phFriNfc_Tpz_H_UpdateNdefTypeField()
1646 psNdefMap->State = (uint8_t)PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_UpdateNdefTypeField()
1649 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateNdefTypeField()
1651 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_UpdateNdefTypeField()
1653 result = phFriNfc_Tpz_H_NxpWrite(psNdefMap, write_buf, in phFriNfc_Tpz_H_UpdateNdefTypeField()
1662 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ProRdForWrResp() argument
1668 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ProRdForWrResp()
1670 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_ProRdForWrResp()
1672 if (TOPAZ_READ_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProRdForWrResp()
1679 result = phFriNfc_Tpz_H_UpdateNdefTypeField (psNdefMap); in phFriNfc_Tpz_H_ProRdForWrResp()
1689 result = phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead (psNdefMap); in phFriNfc_Tpz_H_ProRdForWrResp()
1697 result = phFriNfc_Tpz_H_CopyReadDataAndWrite (psNdefMap); in phFriNfc_Tpz_H_ProRdForWrResp()
1707 result = phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead (psNdefMap); in phFriNfc_Tpz_H_ProRdForWrResp()
1733 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ChkReadID() argument
1740 if (PH_FRINFC_TOPAZ_VAL6 == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ChkReadID()
1742 if (((psNdefMap->SendRecvBuf[recv_index] & in phFriNfc_Tpz_H_ChkReadID()
1747 psNdefMap->psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid, in phFriNfc_Tpz_H_ChkReadID()
1748 &psNdefMap->SendRecvBuf[PH_FRINFC_TOPAZ_VAL2], in phFriNfc_Tpz_H_ChkReadID()
1753 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_READ; in phFriNfc_Tpz_H_ChkReadID()
1758 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_Tpz_H_ChkReadID()
1763 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read; in phFriNfc_Tpz_H_ChkReadID()
1765 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead; in phFriNfc_Tpz_H_ChkReadID()
1767 psNdefMap->Cmd.JewelCmd = phHal_eJewel_ReadSeg; in phFriNfc_Tpz_H_ChkReadID()
1771 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ChkReadID()
1794 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_NxpRead() argument
1804 psNdefMap->psDepAdditionalInfo.DepFlags.MetaChaining = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpRead()
1805 psNdefMap->psDepAdditionalInfo.DepFlags.NADPresent = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpRead()
1806 psNdefMap->psDepAdditionalInfo.NAD = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpRead()
1808 psNdefMap->MapCompletionInfo.CompletionRoutine = phFriNfc_TopazDynamicMap_Process; in phFriNfc_Tpz_H_NxpRead()
1809 psNdefMap->MapCompletionInfo.Context = psNdefMap; in phFriNfc_Tpz_H_NxpRead()
1811 *psNdefMap->SendRecvLength = psNdefMap->TempReceiveLength; in phFriNfc_Tpz_H_NxpRead()
1816 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Raw; in phFriNfc_Tpz_H_NxpRead()
1821 switch (*psNdefMap->SendRecvBuf) in phFriNfc_Tpz_H_NxpRead()
1823 switch(psNdefMap->Cmd.JewelCmd) in phFriNfc_Tpz_H_NxpRead()
1830 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpRead()
1838 psNdefMap->SendRecvBuf[send_index] = in phFriNfc_Tpz_H_NxpRead()
1839 psNdefMap->TopazContainer.CurrentBlock; in phFriNfc_Tpz_H_NxpRead()
1846 psNdefMap->SendRecvBuf[send_index] = (uint8_t) in phFriNfc_Tpz_H_NxpRead()
1847 (psNdefMap->TopazContainer.CurrentSeg in phFriNfc_Tpz_H_NxpRead()
1864 psNdefMap->SendLength = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpRead()
1876 psNdefMap->SendLength = PH_FRINFC_TOPAZ_VAL3; in phFriNfc_Tpz_H_NxpRead()
1882 psNdefMap->SendRecvBuf[send_index] = (uint8_t) in phFriNfc_Tpz_H_NxpRead()
1883 (psNdefMap->TopazContainer.CurrentSeg in phFriNfc_Tpz_H_NxpRead()
1886 psNdefMap->SendLength = send_index; in phFriNfc_Tpz_H_NxpRead()
1892 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read4; in phFriNfc_Tpz_H_NxpRead()
1893 psNdefMap->SendRecvBuf[send_index] = psNdefMap->TopazContainer.CurrentBlock; in phFriNfc_Tpz_H_NxpRead()
1895 psNdefMap->SendLength = send_index; in phFriNfc_Tpz_H_NxpRead()
1912 if (PH_FRINFC_TOPAZ_CMD_READID != *psNdefMap->SendRecvBuf) in phFriNfc_Tpz_H_NxpRead()
1914 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpRead()
1918 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpRead()
1919 (void *)psNdefMap->psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid, in phFriNfc_Tpz_H_NxpRead()
1925 psNdefMap->SendLength = send_index; in phFriNfc_Tpz_H_NxpRead()
1929 result = phFriNfc_OvrHal_Transceive( psNdefMap->LowerDevice, in phFriNfc_Tpz_H_NxpRead()
1930 &psNdefMap->MapCompletionInfo, in phFriNfc_Tpz_H_NxpRead()
1931 psNdefMap->psRemoteDevInfo, in phFriNfc_Tpz_H_NxpRead()
1932 psNdefMap->Cmd, in phFriNfc_Tpz_H_NxpRead()
1933 &psNdefMap->psDepAdditionalInfo, in phFriNfc_Tpz_H_NxpRead()
1934 psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_NxpRead()
1935 psNdefMap->SendLength, in phFriNfc_Tpz_H_NxpRead()
1936 psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_NxpRead()
1937 psNdefMap->SendRecvLength); in phFriNfc_Tpz_H_NxpRead()
1946 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_NxpWrite() argument
1954 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_NxpWrite()
1957 psNdefMap->psDepAdditionalInfo.DepFlags.MetaChaining = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpWrite()
1958 psNdefMap->psDepAdditionalInfo.DepFlags.NADPresent = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpWrite()
1959 psNdefMap->psDepAdditionalInfo.NAD = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_Tpz_H_NxpWrite()
1961 psNdefMap->MapCompletionInfo.CompletionRoutine = phFriNfc_TopazDynamicMap_Process; in phFriNfc_Tpz_H_NxpWrite()
1962 psNdefMap->MapCompletionInfo.Context = psNdefMap; in phFriNfc_Tpz_H_NxpWrite()
1964 *psNdefMap->SendRecvLength = psNdefMap->TempReceiveLength; in phFriNfc_Tpz_H_NxpWrite()
1970 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Raw; in phFriNfc_Tpz_H_NxpWrite()
1972 switch (*psNdefMap->SendRecvBuf) in phFriNfc_Tpz_H_NxpWrite()
1976 switch (psNdefMap->Cmd.JewelCmd) in phFriNfc_Tpz_H_NxpWrite()
1984 psNdefMap->SendRecvBuf[send_index] = (uint8_t)((ps_tpz_info->CurrentBlock in phFriNfc_Tpz_H_NxpWrite()
1993 psNdefMap->SendRecvBuf[send_index] = ps_tpz_info->CurrentBlock; in phFriNfc_Tpz_H_NxpWrite()
2002 psNdefMap->SendRecvBuf[send_index] = (uint8_t)((ps_tpz_info->CurrentBlock in phFriNfc_Tpz_H_NxpWrite()
2013 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write4E; in phFriNfc_Tpz_H_NxpWrite()
2014 psNdefMap->SendRecvBuf[send_index] = ps_tpz_info->CurrentBlock; in phFriNfc_Tpz_H_NxpWrite()
2032 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpWrite()
2039 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_Tpz_H_NxpWrite()
2040 (void *)psNdefMap->psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid, in phFriNfc_Tpz_H_NxpWrite()
2046 psNdefMap->SendLength = send_index; in phFriNfc_Tpz_H_NxpWrite()
2049 result = phFriNfc_OvrHal_Transceive( psNdefMap->LowerDevice, in phFriNfc_Tpz_H_NxpWrite()
2050 &psNdefMap->MapCompletionInfo, in phFriNfc_Tpz_H_NxpWrite()
2051 psNdefMap->psRemoteDevInfo, in phFriNfc_Tpz_H_NxpWrite()
2052 psNdefMap->Cmd, in phFriNfc_Tpz_H_NxpWrite()
2053 &psNdefMap->psDepAdditionalInfo, in phFriNfc_Tpz_H_NxpWrite()
2054 psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_NxpWrite()
2055 psNdefMap->SendLength, in phFriNfc_Tpz_H_NxpWrite()
2056 psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_NxpWrite()
2057 psNdefMap->SendRecvLength); in phFriNfc_Tpz_H_NxpWrite()
2065 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ProReadResp() argument
2071 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ProReadResp()
2073 switch (psNdefMap->PrevOperation) in phFriNfc_Tpz_H_ProReadResp()
2078 *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProReadResp()
2082 result = phFriNfc_Tpz_H_CheckCCBytes (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2087 result = phFriNfc_Tpz_H_ParseTLVs (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2101 *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProReadResp()
2104 result = phFriNfc_Tpz_H_CopyReadData (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2117 if(TOPAZ_READ_8_RESPONSE == *psNdefMap->SendRecvLength) in phFriNfc_Tpz_H_ProReadResp()
2120 (void *)(psNdefMap->SendRecvBuf), in phFriNfc_Tpz_H_ProReadResp()
2123 result = phFriNfc_Tpz_H_CheckCCBytesForWrite (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2141 psNdefMap->State = (uint8_t) in phFriNfc_Tpz_H_ProReadResp()
2154 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProReadResp()
2156 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_ProReadResp()
2159 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_ProReadResp()
2166 psNdefMap->State = (uint8_t) in phFriNfc_Tpz_H_ProReadResp()
2169 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_Tpz_H_ProReadResp()
2171 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write1E; in phFriNfc_Tpz_H_ProReadResp()
2175 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buffer, in phFriNfc_Tpz_H_ProReadResp()
2216 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ChkLockBits() argument
2220 uint8_t *p_recv_buf = psNdefMap->SendRecvBuf; in phFriNfc_Tpz_H_ChkLockBits()
2222 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_INITIALIZED; in phFriNfc_Tpz_H_ChkLockBits()
2227 psNdefMap->CardState = (uint8_t) in phFriNfc_Tpz_H_ChkLockBits()
2250 if (PH_NDEFMAP_CARD_STATE_INITIALIZED == psNdefMap->CardState) in phFriNfc_Tpz_H_ChkLockBits()
2252 switch ((psNdefMap->TopazContainer.CCByteBuf[3] & 0xFF)) in phFriNfc_Tpz_H_ChkLockBits()
2256 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_INITIALIZED; in phFriNfc_Tpz_H_ChkLockBits()
2262 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_READ_ONLY; in phFriNfc_Tpz_H_ChkLockBits()
2268 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_INVALID; in phFriNfc_Tpz_H_ChkLockBits()
2282 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CheckCCBytes() argument
2285 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CheckCCBytes()
2286 uint8_t *p_recv_buf = psNdefMap->SendRecvBuf; in phFriNfc_Tpz_H_CheckCCBytes()
2309 result = phFriNfc_Tpz_H_ChkSpcVer (psNdefMap, p_recv_buf[parse_index]); in phFriNfc_Tpz_H_CheckCCBytes()
2326 psNdefMap->CardMemSize = (uint16_t)((p_recv_buf[parse_index] * in phFriNfc_Tpz_H_CheckCCBytes()
2329 ps_tpz_info->RemainingSize = (uint16_t)(psNdefMap->CardMemSize + in phFriNfc_Tpz_H_CheckCCBytes()
2332 result = phFriNfc_Tpz_H_ChkLockBits (psNdefMap); in phFriNfc_Tpz_H_CheckCCBytes()
2343 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_INVALID; in phFriNfc_Tpz_H_CheckCCBytes()
2352 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CheckCCBytesForWrite() argument
2361 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CheckCCBytesForWrite()
2395 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead() argument
2397 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead()
2411 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead()
2422 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead()
2432 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite() argument
2435 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite()
2449 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite()
2460 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite()
2471 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_RemainingReadDataCopy() argument
2474 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_RemainingReadDataCopy()
2483 if ((psNdefMap->ApduBufferSize - psNdefMap->ApduBuffIndex) >= in phFriNfc_Tpz_H_RemainingReadDataCopy()
2487 (void)memcpy ((void *)(psNdefMap->ApduBuffer + psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_RemainingReadDataCopy()
2492 read_copy_length = (uint16_t)(psNdefMap->ApduBufferSize - in phFriNfc_Tpz_H_RemainingReadDataCopy()
2493 psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_RemainingReadDataCopy()
2499 (void)memcpy ((void *)(psNdefMap->ApduBuffer + psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_RemainingReadDataCopy()
2513 psNdefMap->ApduBuffIndex = (uint16_t)(psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_RemainingReadDataCopy()
2525 *psNdefMap->NumOfBytesRead = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_RemainingReadDataCopy()
2529 else if (psNdefMap->ApduBuffIndex == psNdefMap->ApduBufferSize) in phFriNfc_Tpz_H_RemainingReadDataCopy()
2532 *psNdefMap->NumOfBytesRead = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_RemainingReadDataCopy()
2541 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_Tpz_H_RemainingReadDataCopy()
2545 psNdefMap->Cmd.JewelCmd = phHal_eJewel_ReadSeg; in phFriNfc_Tpz_H_RemainingReadDataCopy()
2548 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_RemainingReadDataCopy()
2557 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CopyReadData() argument
2560 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CopyReadData()
2573 recv_length = *(psNdefMap->SendRecvLength); in phFriNfc_Tpz_H_CopyReadData()
2576 if (PH_FRINFC_NDEFMAP_SEEK_CUR == psNdefMap->Offset) in phFriNfc_Tpz_H_CopyReadData()
2580 psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_CopyReadData()
2583 exact_copy_length = (uint16_t)((psNdefMap->ApduBufferSize > in phFriNfc_Tpz_H_CopyReadData()
2585 psNdefMap->ApduBufferSize); in phFriNfc_Tpz_H_CopyReadData()
2591 recv_length = (*(psNdefMap->SendRecvLength) - TOPAZ_STATIC_LOCK_RES_BYTES); in phFriNfc_Tpz_H_CopyReadData()
2595 phFriNfc_Tpz_H_GetNDEFValueFieldAddrForRead (psNdefMap)) == in phFriNfc_Tpz_H_CopyReadData()
2600 psNdefMap) % TOPAZ_SEGMENT_READ_LENGTH)); in phFriNfc_Tpz_H_CopyReadData()
2619 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_CopyReadData()
2634 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_CopyReadData()
2643 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_CopyReadData()
2664 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_CopyReadData()
2683 (exact_copy_length - psNdefMap->ApduBuffIndex)) && in phFriNfc_Tpz_H_CopyReadData()
2684 (exact_copy_length != psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_CopyReadData()
2687 psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_CopyReadData()
2690 if (exact_copy_length != psNdefMap->ApduBuffIndex) in phFriNfc_Tpz_H_CopyReadData()
2692 (void)memcpy ((void *)(psNdefMap->ApduBuffer + in phFriNfc_Tpz_H_CopyReadData()
2693 psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_CopyReadData()
2694 (void *)(psNdefMap->SendRecvBuf + copy_index), in phFriNfc_Tpz_H_CopyReadData()
2700 (exact_copy_length - psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_CopyReadData()
2705 (void *)(psNdefMap->SendRecvBuf + copy_index), in phFriNfc_Tpz_H_CopyReadData()
2725 psNdefMap->ApduBuffIndex = (uint16_t)(psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_CopyReadData()
2738 if (actual_ndef_length > (psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_CopyReadData()
2743 psNdefMap->ApduBuffIndex)) ? in phFriNfc_Tpz_H_CopyReadData()
2745 psNdefMap->ApduBuffIndex) : in phFriNfc_Tpz_H_CopyReadData()
2751 (void *)(psNdefMap->SendRecvBuf + copy_index), in phFriNfc_Tpz_H_CopyReadData()
2782 if (exact_copy_length != psNdefMap->ApduBuffIndex) in phFriNfc_Tpz_H_CopyReadData()
2788 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_Tpz_H_CopyReadData()
2792 psNdefMap->Cmd.JewelCmd = phHal_eJewel_ReadSeg; in phFriNfc_Tpz_H_CopyReadData()
2795 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_CopyReadData()
2799 *psNdefMap->NumOfBytesRead = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_CopyReadData()
2800 if (psNdefMap->ApduBuffIndex == actual_ndef_length) in phFriNfc_Tpz_H_CopyReadData()
2808 psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_CopyReadData()
2818 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ParseTLVs() argument
2821 phFriNfc_TopazCont_t *ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ParseTLVs()
2850 p_recv_buf = psNdefMap->SendRecvBuf; in phFriNfc_Tpz_H_ParseTLVs()
2851 recv_length = *psNdefMap->SendRecvLength; in phFriNfc_Tpz_H_ParseTLVs()
2865 recv_length = (uint16_t)(*(psNdefMap->SendRecvLength) - in phFriNfc_Tpz_H_ParseTLVs()
2878 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_ParseTLVs()
2904 result = phFriNfc_Tpz_H_ParseLockTLVType (psNdefMap, p_recv_buf, in phFriNfc_Tpz_H_ParseTLVs()
2939 (void)memcpy ((void *)psNdefMap->LockTlv.LockTlvBuff, in phFriNfc_Tpz_H_ParseTLVs()
2943 result = phFriNfc_Tpz_H_GetLockBytesInfo (psNdefMap, lock_mem_buf); in phFriNfc_Tpz_H_ParseTLVs()
2954 result = phFriNfc_Tpz_H_ParseMemTLVType (psNdefMap, p_recv_buf, in phFriNfc_Tpz_H_ParseTLVs()
2990 result = phFriNfc_Tpz_H_GetMemBytesInfo (psNdefMap, lock_mem_buf); in phFriNfc_Tpz_H_ParseTLVs()
3002 result = phFriNfc_Tpz_H_ParseNdefTLVType (psNdefMap, p_recv_buf, in phFriNfc_Tpz_H_ParseTLVs()
3099 result = phFriNfc_Tpz_H_ActualCardSize (psNdefMap); in phFriNfc_Tpz_H_ParseTLVs()
3101 if ((PH_NDEFMAP_CARD_STATE_READ_ONLY != psNdefMap->CardState) && in phFriNfc_Tpz_H_ParseTLVs()
3107 psNdefMap->CardState = PH_NDEFMAP_CARD_STATE_READ_WRITE; in phFriNfc_Tpz_H_ParseTLVs()
3124 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_Tpz_H_ParseTLVs()
3128 psNdefMap->Cmd.JewelCmd = phHal_eJewel_ReadSeg; in phFriNfc_Tpz_H_ParseTLVs()
3131 result = phFriNfc_Tpz_H_NxpRead(psNdefMap); in phFriNfc_Tpz_H_ParseTLVs()
3173 size_to_skip = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_ParseTLVs()
3184 ps_tpz_info->RemainingSize = (uint16_t)(psNdefMap->CardMemSize + in phFriNfc_Tpz_H_ParseTLVs()
3192 (void)phFriNfc_Tpz_H_ActualCardSize (psNdefMap); in phFriNfc_Tpz_H_ParseTLVs()
3210 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CopyReadDataAndWrite() argument
3220 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3222 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3223 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3225 (void)memcpy ((void *)write_buf, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3229 phFriNfc_Tpz_H_GetNDEFValueFieldAddrForWrite (psNdefMap, write_len))) in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3250 (write_len != psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3255 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3260 psNdefMap->ApduBuffer[psNdefMap->ApduBuffIndex]; in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3263 psNdefMap->ApduBuffIndex = (uint16_t) in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3264 (psNdefMap->ApduBuffIndex + 1); in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3287 if (psNdefMap->ApduBuffIndex == write_len) in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3305 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3307 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3309 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_CopyReadDataAndWrite()
3319 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead() argument
3337 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3338 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3339 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3341 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3343 (void)memcpy ((void *)write_buf, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3380 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3393 psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3409 (psNdefMap->ApduBuffIndex >> BYTE_SIZE); in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3417 (psNdefMap->ApduBuffIndex & in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3475 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3477 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3480 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_UpdateLenFieldValuesAfterRead()
3490 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead() argument
3508 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3509 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3510 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3512 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3514 (void)memcpy ((void *)write_buf, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3517 prev_apdu_index = psNdefMap->ApduBuffIndex; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3545 (write_len != psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3550 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, byte_addr); in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3595 psNdefMap->ApduBuffer[psNdefMap->ApduBuffIndex]; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3598 psNdefMap->ApduBuffIndex = (uint16_t) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3599 (psNdefMap->ApduBuffIndex + 1); in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3630 if (psNdefMap->ApduBuffIndex == write_len) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3637 psNdefMap->ApduBuffIndex)) in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3653 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3655 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3658 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_UpdateLenFieldZeroAfterRead()
3666 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_RdForWrite() argument
3675 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_RdForWrite()
3680 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_RdForWrite()
3684 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read8; in phFriNfc_Tpz_H_RdForWrite()
3688 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_RD_FOR_WR_NDEF; in phFriNfc_Tpz_H_RdForWrite()
3706 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_RdForWrite()
3732 skip_size = phFriNfc_Tpz_H_GetSkipSize (psNdefMap, in phFriNfc_Tpz_H_RdForWrite()
3765 result = phFriNfc_Tpz_H_NxpRead (psNdefMap); in phFriNfc_Tpz_H_RdForWrite()
3773 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_CompareLockBlocks() argument
3780 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_CompareLockBlocks()
3795 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_CompareMemBlocks() argument
3802 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_CompareMemBlocks()
3818 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_CopySendWrData() argument
3827 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_CopySendWrData()
3828 write_len = (uint16_t)((psNdefMap->ApduBufferSize < ps_tpz_info->NDEFRWSize) ? in phFriNfc_Tpz_H_CopySendWrData()
3829 psNdefMap->ApduBufferSize : ps_tpz_info->NDEFRWSize); in phFriNfc_Tpz_H_CopySendWrData()
3831 if (0 != phFriNfc_Tpz_H_CompareLockBlocks (psNdefMap, in phFriNfc_Tpz_H_CopySendWrData()
3836 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_CopySendWrData()
3838 else if (0 != phFriNfc_Tpz_H_CompareMemBlocks (psNdefMap, in phFriNfc_Tpz_H_CopySendWrData()
3843 result = phFriNfc_Tpz_H_RdForWrite (psNdefMap); in phFriNfc_Tpz_H_CopySendWrData()
3848 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_CopySendWrData()
3850 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_CopySendWrData()
3852 psNdefMap->State = (uint8_t)PH_FRINFC_TOPAZ_STATE_WRITE; in phFriNfc_Tpz_H_CopySendWrData()
3854 if ((write_len - psNdefMap->ApduBuffIndex) >= (uint16_t)TOPAZ_WRITE_8_DATA_LENGTH) in phFriNfc_Tpz_H_CopySendWrData()
3858 (void *)(psNdefMap->ApduBuffer + psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_CopySendWrData()
3861 psNdefMap->ApduBuffIndex = (uint16_t)(psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_CopySendWrData()
3866 copy_length = (uint8_t)(write_len - psNdefMap->ApduBuffIndex); in phFriNfc_Tpz_H_CopySendWrData()
3869 (void *)(psNdefMap->ApduBuffer + psNdefMap->ApduBuffIndex), in phFriNfc_Tpz_H_CopySendWrData()
3872 psNdefMap->ApduBuffIndex = (uint16_t)(psNdefMap->ApduBuffIndex + in phFriNfc_Tpz_H_CopySendWrData()
3880 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_CopySendWrData()
3882 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Write8E; in phFriNfc_Tpz_H_CopySendWrData()
3885 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_CopySendWrData()
3897 phFriNfc_NdefMap_t *psNdefMap) in phFriNfc_Tpz_H_ActualCardSize() argument
3906 ps_tpz_info = &(psNdefMap->TopazContainer); in phFriNfc_Tpz_H_ActualCardSize()
3917 (psNdefMap); in phFriNfc_Tpz_H_ActualCardSize()
3919 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_ActualCardSize()
3926 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_ActualCardSize()
3954 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_ParseLockTLVType() argument
3964 PHNFC_UNUSED_VARIABLE(psNdefMap); in phFriNfc_Tpz_H_ParseLockTLVType()
4000 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_ParseMemTLVType() argument
4010 PHNFC_UNUSED_VARIABLE(psNdefMap); in phFriNfc_Tpz_H_ParseMemTLVType()
4052 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_ParseNdefTLVType() argument
4062 PHNFC_UNUSED_VARIABLE(psNdefMap); in phFriNfc_Tpz_H_ParseNdefTLVType()
4112 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_GetSkipSize() argument
4119 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_GetSkipSize()
4120 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_GetSkipSize()
4141 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_GetLockBytesInfo() argument
4150 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_GetLockBytesInfo()
4178 (uint16_t)(psNdefMap->TopazContainer.CCByteBuf[2] * in phFriNfc_Tpz_H_GetLockBytesInfo()
4208 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_GetMemBytesInfo() argument
4218 ps_memtlv_info = &(psNdefMap->MemTlv); in phFriNfc_Tpz_H_GetMemBytesInfo()
4219 ps_locktlv_info = &(psNdefMap->LockTlv); in phFriNfc_Tpz_H_GetMemBytesInfo()
4259 (uint16_t)(psNdefMap->TopazContainer.CCByteBuf[2] * in phFriNfc_Tpz_H_GetMemBytesInfo()