• Home
  • Raw
  • Download

Lines Matching refs:NdefSmtCrdFmt

60 void phFriNfc_SmtCrdFmt_HCrHandler(phFriNfc_sNdefSmtCrdFmt_t  *NdefSmtCrdFmt,  in phFriNfc_SmtCrdFmt_HCrHandler()  argument
64 NdefSmtCrdFmt->State = PH_FRINFC_SMTCRDFMT_STATE_RESET_INIT; in phFriNfc_SmtCrdFmt_HCrHandler()
67 NdefSmtCrdFmt->CompletionRoutine[PH_FRINFC_SMTCRDFMT_CR_FORMAT]. in phFriNfc_SmtCrdFmt_HCrHandler()
68 CompletionRoutine(NdefSmtCrdFmt->CompletionRoutine->Context, Status); in phFriNfc_SmtCrdFmt_HCrHandler()
76 NFCSTATUS phFriNfc_NdefSmtCrd_Reset(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, in phFriNfc_NdefSmtCrd_Reset() argument
86 if ( (SendRecvBuffLen == NULL) || (NdefSmtCrdFmt == NULL) || (psRemoteDevInfo == NULL) || in phFriNfc_NdefSmtCrd_Reset()
96 NdefSmtCrdFmt->State = PH_FRINFC_SMTCRDFMT_STATE_RESET_INIT; in phFriNfc_NdefSmtCrd_Reset()
101 NdefSmtCrdFmt->CompletionRoutine[index].CompletionRoutine = NULL; in phFriNfc_NdefSmtCrd_Reset()
103 NdefSmtCrdFmt->CompletionRoutine[index].Context = NULL; in phFriNfc_NdefSmtCrd_Reset()
108 NdefSmtCrdFmt->LowerDevice = LowerDevice; in phFriNfc_NdefSmtCrd_Reset()
111 NdefSmtCrdFmt->psRemoteDevInfo = psRemoteDevInfo; in phFriNfc_NdefSmtCrd_Reset()
114 NdefSmtCrdFmt->SendRecvBuf = SendRecvBuffer; in phFriNfc_NdefSmtCrd_Reset()
117 NdefSmtCrdFmt->SendRecvLength = SendRecvBuffLen; in phFriNfc_NdefSmtCrd_Reset()
120 NdefSmtCrdFmt->SendLength = 0; in phFriNfc_NdefSmtCrd_Reset()
123 NdefSmtCrdFmt->FmtProcStatus = 0; in phFriNfc_NdefSmtCrd_Reset()
126 NdefSmtCrdFmt->CardType = 0; in phFriNfc_NdefSmtCrd_Reset()
129 NdefSmtCrdFmt->SmtCrdFmtCompletionInfo.CompletionRoutine = NULL; in phFriNfc_NdefSmtCrd_Reset()
130 NdefSmtCrdFmt->SmtCrdFmtCompletionInfo.Context = NULL; in phFriNfc_NdefSmtCrd_Reset()
133 phFriNfc_Topaz_Reset(NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Reset()
139 phFriNfc_Desfire_Reset(NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Reset()
144 NdefSmtCrdFmt->AddInfo.MfStdInfo.DevInputParam = psDevInputParam; in phFriNfc_NdefSmtCrd_Reset()
145 phFriNfc_MfStd_Reset(NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Reset()
149 phFriNfc_MfUL_Reset(NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Reset()
153 phFriNfc_ISO15693_FmtReset (NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Reset()
170 NFCSTATUS phFriNfc_NdefSmtCrd_SetCR(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, in phFriNfc_NdefSmtCrd_SetCR() argument
177 if ((NdefSmtCrdFmt == NULL) || (FunctionID >= PH_FRINFC_SMTCRDFMT_CR) || in phFriNfc_NdefSmtCrd_SetCR()
185 NdefSmtCrdFmt->CompletionRoutine[FunctionID].CompletionRoutine = CompletionRoutine; in phFriNfc_NdefSmtCrd_SetCR()
188 NdefSmtCrdFmt->CompletionRoutine[FunctionID].Context = CompletionRoutineContext; in phFriNfc_NdefSmtCrd_SetCR()
198 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_NdefSmtCrd_ConvertToReadOnly() argument
204 if((NdefSmtCrdFmt != NULL) in phFriNfc_NdefSmtCrd_ConvertToReadOnly()
205 && (NdefSmtCrdFmt->CompletionRoutine->CompletionRoutine != NULL) in phFriNfc_NdefSmtCrd_ConvertToReadOnly()
206 && (NdefSmtCrdFmt->CompletionRoutine->Context != NULL)) in phFriNfc_NdefSmtCrd_ConvertToReadOnly()
208 sak = NdefSmtCrdFmt->psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.Sak; in phFriNfc_NdefSmtCrd_ConvertToReadOnly()
209 switch (NdefSmtCrdFmt->psRemoteDevInfo->RemDevType) in phFriNfc_NdefSmtCrd_ConvertToReadOnly()
215 result = phFriNfc_MfUL_ConvertToReadOnly (NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_ConvertToReadOnly()
228 result = phFriNfc_Desfire_ConvertToReadOnly (NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_ConvertToReadOnly()
252 NFCSTATUS phFriNfc_NdefSmtCrd_Format( phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, const uint8_t *Scrt… in phFriNfc_NdefSmtCrd_Format() argument
260 if((NdefSmtCrdFmt != NULL) && in phFriNfc_NdefSmtCrd_Format()
261 (NdefSmtCrdFmt->CompletionRoutine->CompletionRoutine != NULL) && in phFriNfc_NdefSmtCrd_Format()
262 (NdefSmtCrdFmt->CompletionRoutine->Context != NULL)) in phFriNfc_NdefSmtCrd_Format()
266 sak = NdefSmtCrdFmt->psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.Sak; in phFriNfc_NdefSmtCrd_Format()
269 switch ( NdefSmtCrdFmt->psRemoteDevInfo->RemDevType ) in phFriNfc_NdefSmtCrd_Format()
272 sak = NdefSmtCrdFmt->psRemoteDevInfo->RemoteDevInfo.CardInfo106. in phFriNfc_NdefSmtCrd_Format()
276 switch ( NdefSmtCrdFmt->psRemoteDevInfo->OpMode ) in phFriNfc_NdefSmtCrd_Format()
291 NdefSmtCrdFmt->CardType = PH_FRINFC_SMTCRDFMT_MIFARE_UL_CARD; in phFriNfc_NdefSmtCrd_Format()
292 if (NdefSmtCrdFmt->psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.UidLength == 7 && in phFriNfc_NdefSmtCrd_Format()
293 NdefSmtCrdFmt->psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.Uid[0] == 0x04) in phFriNfc_NdefSmtCrd_Format()
296 Result = phFriNfc_MfUL_Format( NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Format()
313 NdefSmtCrdFmt->CardType = (uint8_t) in phFriNfc_NdefSmtCrd_Format()
320 Result = phFriNfc_MfStd_Format( NdefSmtCrdFmt, ScrtKeyB); in phFriNfc_NdefSmtCrd_Format()
345 NdefSmtCrdFmt->CardType = PH_FRINFC_SMTCRDFMT_ISO14443_4A_CARD; in phFriNfc_NdefSmtCrd_Format()
349 Result = phFriNfc_Desfire_Format(NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Format()
374 NdefSmtCrdFmt->CardType = PH_FRINFC_SMTCRDFMT_TOPAZ_CARD; in phFriNfc_NdefSmtCrd_Format()
377 Result = phFriNfc_Topaz_Format(NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Format()
397 NdefSmtCrdFmt->OpModeType[0] = phHal_eOpModesMockup; in phFriNfc_NdefSmtCrd_Format()
398 NdefSmtCrdFmt->OpModeType[1] = phHal_eOpModesArrayTerminator; in phFriNfc_NdefSmtCrd_Format()
406 Result = phFriNfc_ISO15693_Format (NdefSmtCrdFmt); in phFriNfc_NdefSmtCrd_Format()
429 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt = (phFriNfc_sNdefSmtCrdFmt_t *)Context; in phFriNfc_NdefSmtCrd_Process() local
431 switch ( NdefSmtCrdFmt->psRemoteDevInfo->RemDevType ) in phFriNfc_NdefSmtCrd_Process()
433 switch ( NdefSmtCrdFmt->psRemoteDevInfo->OpMode ) in phFriNfc_NdefSmtCrd_Process()
441 if((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_1K_CRD) || in phFriNfc_NdefSmtCrd_Process()
442 (NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_4K_CRD)) in phFriNfc_NdefSmtCrd_Process()
446 phFriNfc_MfStd_Process(NdefSmtCrdFmt,Status); in phFriNfc_NdefSmtCrd_Process()
457 phFriNfc_MfUL_Process(NdefSmtCrdFmt,Status); in phFriNfc_NdefSmtCrd_Process()
472 phFriNfc_Desf_Process(NdefSmtCrdFmt, Status); in phFriNfc_NdefSmtCrd_Process()
485 phFriNfc_Topaz_Process(NdefSmtCrdFmt, Status); in phFriNfc_NdefSmtCrd_Process()
495 phFriNfc_ISO15693_FmtProcess (NdefSmtCrdFmt, Status); in phFriNfc_NdefSmtCrd_Process()
512 NdefSmtCrdFmt->State = PH_FRINFC_SMTCRDFMT_STATE_RESET_INIT; in phFriNfc_NdefSmtCrd_Process()
515 NdefSmtCrdFmt->CompletionRoutine[PH_FRINFC_SMTCRDFMT_CR_INVALID_OPE]. in phFriNfc_NdefSmtCrd_Process()
516 CompletionRoutine(NdefSmtCrdFmt->CompletionRoutine->Context, Status); in phFriNfc_NdefSmtCrd_Process()