Lines Matching refs:AddInfo
181 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = PH_FRINFC_MFSTD_FMT_VAL_1; in phFriNfc_MfStd_Reset()
184 (void)memset(NdefSmtCrdFmt->AddInfo.MfStdInfo.Default_KeyA_OR_B, in phFriNfc_MfStd_Reset()
189 (void)memcpy(NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSect_KeyA, in phFriNfc_MfStd_Reset()
194 (void)memcpy(NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSect_AccessBits, in phFriNfc_MfStd_Reset()
199 (void)memcpy(NdefSmtCrdFmt->AddInfo.MfStdInfo.NFCForumSect_KeyA, in phFriNfc_MfStd_Reset()
204 (void)memcpy(NdefSmtCrdFmt->AddInfo.MfStdInfo.NFCForumSect_AccessBits, in phFriNfc_MfStd_Reset()
209 (void)memset(NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl, in phFriNfc_MfStd_Reset()
213 NdefSmtCrdFmt->AddInfo.MfStdInfo.WrMADBlkFlag = (uint8_t)PH_FRINFC_MFSTD_FMT_VAL_0; in phFriNfc_MfStd_Reset()
214 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = (uint8_t)PH_FRINFC_MFSTD_FMT_NOT_A_MAD_BLK; in phFriNfc_MfStd_Reset()
226 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = in phFriNfc_MfStd_Format()
231 NdefSmtCrdFmt->AddInfo.MfStdInfo.ScrtKeyB[index] = ScrtKeyB[index]; in phFriNfc_MfStd_Format()
237 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = PH_FRINFC_MFSTD_FMT_VAL_3; in phFriNfc_MfStd_Format()
239 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = PH_FRINFC_MFSTD_FMT_AUTH_DEF_KEY; in phFriNfc_MfStd_Format()
354 switch(NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState) in phFriNfc_MfStd_H_FillSendBuf()
399 switch(NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock) in phFriNfc_MfStd_H_FillSendBuf()
427 NdefSmtCrdFmt->AddInfo.MfStdInfo.ScrtKeyB, in phFriNfc_MfStd_H_FillSendBuf()
428 sizeof(NdefSmtCrdFmt->AddInfo.MfStdInfo.ScrtKeyB)); in phFriNfc_MfStd_H_FillSendBuf()
480 switch(NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk) in phFriNfc_MfStd_H_FillSendBuf()
484 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk, in phFriNfc_MfStd_H_FillSendBuf()
490 &NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[16], in phFriNfc_MfStd_H_FillSendBuf()
496 &NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[32], in phFriNfc_MfStd_H_FillSendBuf()
502 &NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[48], in phFriNfc_MfStd_H_FillSendBuf()
509 &NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[64], in phFriNfc_MfStd_H_FillSendBuf()
581 NdefSmtCrdFmt->AddInfo.MfStdInfo.DevInputParam); in phFriNfc_MfStd_H_CallCon()
587 NdefSmtCrdFmt->AddInfo.MfStdInfo.DevInputParam); in phFriNfc_MfStd_H_CallCon()
605 NdefSmtCrdFmt->AddInfo.MfStdInfo.NoOfDevices = PH_FRINFC_MFSTD_FMT_VAL_1; in phFriNfc_MfStd_H_CallPoll()
612 &NdefSmtCrdFmt->AddInfo.MfStdInfo.NoOfDevices, in phFriNfc_MfStd_H_CallPoll()
613 NdefSmtCrdFmt->AddInfo.MfStdInfo.DevInputParam); in phFriNfc_MfStd_H_CallPoll()
646 switch(NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState) in phFriNfc_MfStd_H_ProAuth()
649 if((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock == in phFriNfc_MfStd_H_ProAuth()
651 (NdefSmtCrdFmt->AddInfo.MfStdInfo.WrMADBlkFlag == in phFriNfc_MfStd_H_ProAuth()
656 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProAuth()
661 else if((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock == 67) in phFriNfc_MfStd_H_ProAuth()
662 && (NdefSmtCrdFmt->AddInfo.MfStdInfo.WrMADBlkFlag == in phFriNfc_MfStd_H_ProAuth()
667 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = 64; in phFriNfc_MfStd_H_ProAuth()
674 NdefSmtCrdFmt->AddInfo.MfStdInfo.WrMADBlkFlag = in phFriNfc_MfStd_H_ProAuth()
682 if((NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
684 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
686 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
688 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
690 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
693 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProAuth()
694 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk; in phFriNfc_MfStd_H_ProAuth()
699 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = in phFriNfc_MfStd_H_ProAuth()
707 if((NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
709 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
711 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
713 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
715 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
718 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProAuth()
719 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk; in phFriNfc_MfStd_H_ProAuth()
724 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = in phFriNfc_MfStd_H_ProAuth()
733 if((NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
735 (NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk == in phFriNfc_MfStd_H_ProAuth()
739 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = in phFriNfc_MfStd_H_ProAuth()
761 if(NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState == in phFriNfc_MfStd_H_ErrWrSectTr()
767 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = PH_FRINFC_MFSTD_FMT_AUTH_KEYB; in phFriNfc_MfStd_H_ErrWrSectTr()
789 memcompare = phFriNfc_MfStd_H_ChkAcsBit(NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock, in phFriNfc_MfStd_H_ProRdSectTr()
791 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSect_AccessBits, in phFriNfc_MfStd_H_ProRdSectTr()
792 … NdefSmtCrdFmt->AddInfo.MfStdInfo.NFCForumSect_AccessBits); in phFriNfc_MfStd_H_ProRdSectTr()
795 NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl[SectIndex] = (uint8_t) in phFriNfc_MfStd_H_ProRdSectTr()
812 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = in phFriNfc_MfStd_H_ProRdSectTr()
832 NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl[SectIndex] = (uint8_t) in phFriNfc_MfStd_H_ProWrSectTr()
849 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = in phFriNfc_MfStd_H_ProWrSectTr()
882 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock); in phFriNfc_MfStd_H_WrRdAuth()
893 if( NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState == in phFriNfc_MfStd_H_ChangeAuthSt()
900 NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl[SectIndex] = in phFriNfc_MfStd_H_ChangeAuthSt()
983 switch(NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock) in phFriNfc_MfStd_H_ProWrMADBlk()
989 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProWrMADBlk()
995 NdefSmtCrdFmt->AddInfo.MfStdInfo.WrMADBlkFlag = in phFriNfc_MfStd_H_ProWrMADBlk()
1000 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProWrMADBlk()
1007 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = 65; in phFriNfc_MfStd_H_ProWrMADBlk()
1013 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = 66; in phFriNfc_MfStd_H_ProWrMADBlk()
1019 NdefSmtCrdFmt->AddInfo.MfStdInfo.WrMADBlkFlag = in phFriNfc_MfStd_H_ProWrMADBlk()
1023 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = 67; in phFriNfc_MfStd_H_ProWrMADBlk()
1040 if ((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock == 67) && in phFriNfc_MfStd_H_ProErrAuth()
1041 (NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState == in phFriNfc_MfStd_H_ProErrAuth()
1046 (void)memset(&NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl[16], in phFriNfc_MfStd_H_ProErrAuth()
1051 else if(((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock > in phFriNfc_MfStd_H_ProErrAuth()
1053 (NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState != in phFriNfc_MfStd_H_ProErrAuth()
1055 ((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock == in phFriNfc_MfStd_H_ProErrAuth()
1057 (NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState < in phFriNfc_MfStd_H_ProErrAuth()
1066 if (NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock == in phFriNfc_MfStd_H_ProErrAuth()
1069 (void)memset(NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl, in phFriNfc_MfStd_H_ProErrAuth()
1081 switch(NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk) in phFriNfc_MfStd_H_ProUpdMADBlk()
1085 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = (uint8_t) in phFriNfc_MfStd_H_ProUpdMADBlk()
1087 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProUpdMADBlk()
1094 (NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock == in phFriNfc_MfStd_H_ProUpdMADBlk()
1101 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = in phFriNfc_MfStd_H_ProUpdMADBlk()
1107 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = (uint8_t) in phFriNfc_MfStd_H_ProUpdMADBlk()
1109 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProUpdMADBlk()
1112 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = in phFriNfc_MfStd_H_ProUpdMADBlk()
1119 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = (uint8_t) in phFriNfc_MfStd_H_ProUpdMADBlk()
1121 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProUpdMADBlk()
1128 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = (uint8_t) in phFriNfc_MfStd_H_ProUpdMADBlk()
1130 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = in phFriNfc_MfStd_H_ProUpdMADBlk()
1143 (void)memset(NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk, in phFriNfc_MfStd_H_StrNdefData()
1148 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[PH_FRINFC_MFSTD_FMT_VAL_0] = 0x14; in phFriNfc_MfStd_H_StrNdefData()
1151 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[PH_FRINFC_MFSTD_FMT_VAL_1] = 0x01; in phFriNfc_MfStd_H_StrNdefData()
1156 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[32] = 0xE8; in phFriNfc_MfStd_H_StrNdefData()
1160 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[33] = 0x01; in phFriNfc_MfStd_H_StrNdefData()
1171 if(NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl[SectIndex] == in phFriNfc_MfStd_H_StrNdefData()
1177 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[index] = in phFriNfc_MfStd_H_StrNdefData()
1180 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[index] = in phFriNfc_MfStd_H_StrNdefData()
1189 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[index] = 0x00; in phFriNfc_MfStd_H_StrNdefData()
1191 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSectBlk[index] = 0x00; in phFriNfc_MfStd_H_StrNdefData()
1214 if (NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl[SectIndex] == in phFriNfc_MfStd_H_BlkNoToWrTLV()
1218 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = (uint16_t) in phFriNfc_MfStd_H_BlkNoToWrTLV()
1238 if(NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState == in phFriNfc_MfStd_H_ErrRdSectTr()
1244 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = PH_FRINFC_MFSTD_FMT_AUTH_KEYB; in phFriNfc_MfStd_H_ErrRdSectTr()
1254 NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl[SectIndex] = (uint8_t) in phFriNfc_MfStd_H_ErrRdSectTr()
1271 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = in phFriNfc_MfStd_H_ErrRdSectTr()