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