Lines Matching refs:Status
90 NFCSTATUS Status);
145 NFCSTATUS status = NFCSTATUS_PENDING;
173 status = phFriNfc_Felica_HRdAttrInfo(NdefMap);
175 if ( (status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
178 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_CHK_NDEF,status);
189 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP, NFCSTATUS_EOF_NDEF_CONTAINER_REACHED);
195 status = phFriNfc_Felica_HReadData(NdefMap,NdefMap->Felica.Offset);
199 return (status);
207 * sets the status flags.
212 NFCSTATUS status = NFCSTATUS_PENDING;
224 status = phFriNfc_Felica_HChkApduBuff_Size(NdefMap);
225 if ( (status != NFCSTATUS_SUCCESS) && (NdefMap->Felica.IntermediateRdFlag == TRUE ))
229 status= phFriNfc_Felica_HSetTransceiveForRead(NdefMap,TranscLen,offset);
241 status= phFriNfc_Felica_HSetTransceiveForRead(NdefMap,TranscLen,offset);
247 status = phFriNfc_Felica_HChkApduBuff_Size(NdefMap);
248 if ( (status != NFCSTATUS_SUCCESS) && (NdefMap->Felica.IntermediateRdFlag == TRUE ))
251 status= phFriNfc_Felica_HSetTransceiveForRead(NdefMap,TranscLen,offset);
254 return (status);
625 Checks the relavent buffer sizes and set the status.Following function is used
631 NFCSTATUS status = NFCSTATUS_PENDING;
638 /* set status to Success : User Buffer is full and Curblk < nmaxb*/
642 status = PHNFCSTVAL(CID_NFC_NONE,
654 status = PHNFCSTVAL(CID_NFC_NONE,
672 status = PHNFCSTVAL(CID_NFC_NONE,
687 status = PHNFCSTVAL(CID_NFC_NONE,
697 status = PHNFCSTVAL(CID_NFC_NONE,
705 status = PHNFCSTVAL(CID_NFC_NONE,
715 status = PHNFCSTVAL(CID_NFC_NONE,
730 status = PHNFCSTVAL(CID_NFC_NONE,
757 return( status);
883 NFCSTATUS status = NFCSTATUS_PENDING;
898 status = phFriNfc_Felica_HRdAttrInfo(NdefMap);
900 if ( (status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
903 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_CHK_NDEF,status);
905 return (status);
920 NFCSTATUS status = NFCSTATUS_PENDING;
927 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
933 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
945 status = phFriNfc_Felica_HRdAttrInfo(NdefMap);
947 return (status);
961 NFCSTATUS status = NFCSTATUS_PENDING;
1078 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
1145 status = phFriNfc_OvrHal_Transceive( NdefMap->LowerDevice,
1158 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
1162 return (status);
1167 NFCSTATUS status = NFCSTATUS_PENDING;
1297 status = phFriNfc_OvrHal_Transceive( NdefMap->LowerDevice,
1307 return (status);
1319 * If the Offset is set to Current, Checks for the EOF card reached status and writes data to
1325 NFCSTATUS status = NFCSTATUS_PENDING;
1333 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
1358 status= phFriNfc_Felica_HUpdateAttrBlkForWrOp(NdefMap,FELICA_WRITE_STARTED);
1376 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
1385 status= phFriNfc_Felica_HUpdateAttrBlkForWrOp(NdefMap,FELICA_WRITE_STARTED);
1392 status= phFriNfc_Felica_HUpdateAttrBlkForWrOp(NdefMap,FELICA_WRITE_STARTED);
1397 return (status);
1404 * While Offset is set to Current, Checks for the EOF card reached status and reads data from
1411 NFCSTATUS status = NFCSTATUS_PENDING;
1417 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,NFCSTATUS_READ_FAILED);
1424 status = phFriNfc_MapTool_SetCardState( NdefMap,NdefLen);
1425 if ( status == NFCSTATUS_SUCCESS)
1428 status = phFriNfc_Felica_HReadData(NdefMap,NdefMap->Felica.Offset);
1432 return (status);
1443 NFCSTATUS status = NFCSTATUS_PENDING;
2072 status = phFriNfc_Felica_HWriteDataBlk(NdefMap);
2077 status = phFriNfc_Felica_HUpdateAttrBlkForWrOp(NdefMap,FELICA_WRITE_ENDED);
2079 return (status);
2090 NFCSTATUS status = NFCSTATUS_PENDING;
2110 status = phFriNfc_OvrHal_Transceive( NdefMap->LowerDevice,
2119 return (status);
2129 NFCSTATUS status = NFCSTATUS_PENDING;
2136 status = phFriNfc_Felica_HPollCard( NdefMap,sysCode,PH_NFCFRI_NDEFMAP_FELI_STATE_SELECT_NDEF_APP);
2138 return (status);
2150 NFCSTATUS status = NFCSTATUS_PENDING;
2176 status = phFriNfc_OvrHal_Transceive(NdefMap->LowerDevice,
2185 return (status);
2195 NFCSTATUS status = NFCSTATUS_PENDING;
2230 status = phFriNfc_OvrHal_Poll( NdefMap->LowerDevice,
2237 return (status);
2246 NFCSTATUS status = NFCSTATUS_PENDING;
2269 status = PHNFCSTVAL(CID_NFC_NONE, NFCSTATUS_SUCCESS);
2273 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
2279 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
2283 return (status);
2295 NFCSTATUS Status)
2307 if ( Status == NFCSTATUS_SUCCESS )
2314 Status = phFriNfc_Felica_HUpdateManufIdDetails(NdefMap);
2316 if (Status == NFCSTATUS_SUCCESS)
2321 Status = phFriNfc_Felica_HRdAttrInfo(NdefMap);
2323 if ( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2335 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_CHK_NDEF,Status);
2341 /* check for the status flag1 and status flag2for the successful read operation*/
2345 Status = phFriNfc_Felica_HCheckManufId(NdefMap);
2346 if ( Status == NFCSTATUS_SUCCESS)
2349 Status = phFriNfc_Felica_HUpdateAttrInfo(NdefMap);
2350 if ( Status == NFCSTATUS_SUCCESS )
2360 Status = phFriNfc_Felica_HChkAttrBlkForWrOp(NdefMap);
2362 if ( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2365 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2371 Status = phFriNfc_Felica_HChkAttrBlkForRdOp(NdefMap,NDEFLen);
2372 if ( (Status
2375 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_RD_NDEF,Status);
2381 Status = phFriNfc_MapTool_SetCardState( NdefMap,
2383 /* check status value*/
2390 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_CHK_NDEF,Status);
2395 Status = phFriNfc_Felica_HWrEmptyMsg(NdefMap);
2397 if ( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2400 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_ERASE_NDEF,Status);
2407 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
2426 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
2432 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_RD_NDEF,Status);
2437 /* chk the status flags 1 and 2*/
2441 Status =phFriNfc_Felica_HUpdateData(NdefMap);
2442 if ( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2445 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2451 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
2453 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2459 /* chk the status flags 1 and 2*/
2463 Status = PHNFCSTVAL(CID_NFC_NONE,\
2469 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
2472 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2477 /* chk the status flags 1 and 2*/
2481 Status = PHNFCSTVAL(CID_NFC_NONE,\
2487 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
2490 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2496 /* chk the status flags 1 and 2*/
2518 Status = phFriNfc_Felica_HUpdateData(NdefMap);
2536 Status = phFriNfc_Felica_HUpdateAttrBlkForWrOp(NdefMap,FELICA_WRITE_ENDED);
2537 if( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2540 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2554 Status = phFriNfc_Felica_HUpdateAttrBlkForWrOp(NdefMap,FELICA_WRITE_ENDED);
2555 if ( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2558 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2564 Status = phFriNfc_Felica_HUpdateData(NdefMap);
2565 if ( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2568 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2577 Status = phFriNfc_Felica_HUpdateData(NdefMap);
2578 if ( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2581 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2589 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
2598 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
2609 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_WR_NDEF,Status);
2617 Status = phFriNfc_Felica_HCheckManufId(NdefMap);
2618 if ( Status == NFCSTATUS_SUCCESS )
2628 /* chk the status flags 1 */
2635 Status = phFriNfc_Felica_HReadData(NdefMap,PH_FRINFC_NDEFMAP_SEEK_CUR);
2637 if ( (Status & PHNFCSTBLOWER) != (NFCSTATUS_PENDING & PHNFCSTBLOWER))
2645 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
2656 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,\
2666 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
2677 phFriNfc_Felica_HCrHandler(NdefMap,PH_FRINFC_NDEFMAP_CR_RD_NDEF,Status);
2682 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,
2684 phFriNfc_Felica_HCrHandler(NdefMap, PH_FRINFC_NDEFMAP_CR_INVALID_OPE, Status);
2700 Status);
2706 Status);
2710 Status);
2714 Status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP, NFCSTATUS_INVALID_DEVICE_REQUEST);
2715 phFriNfc_Felica_HCrHandler(NdefMap, PH_FRINFC_NDEFMAP_CR_INVALID_OPE, Status);
2728 NFCSTATUS status = NFCSTATUS_PENDING;
2797 status = phFriNfc_OvrHal_Transceive( NdefMap->LowerDevice,
2806 return (status);
2816 NFCSTATUS status = NFCSTATUS_PENDING;
2827 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP, NFCSTATUS_INVALID_REMOTE_DEVICE);
2832 status = PHNFCSTVAL(CID_NFC_NONE,NFCSTATUS_SUCCESS);
2835 return (status);
2875 NFCSTATUS status = NFCSTATUS_PENDING;
2887 status = phFriNfc_MapTool_ChkSpcVer(NdefMap,
2889 if ( status != NFCSTATUS_SUCCESS )
2960 status = phFriNfc_Felica_HCalCheckSum(NdefMap->SendRecvBuf,
2964 if ( status != NFCSTATUS_SUCCESS )
2988 status = PHNFCSTVAL(CID_NFC_NONE,NFCSTATUS_SUCCESS);
2999 if ( (status == NFCSTATUS_INVALID_FORMAT ) && (CRFlag == TRUE ))
3005 /*Return Status Error ? Invalid Format?*/
3006 status = PHNFCSTVAL(CID_FRI_NFC_NDEF_MAP,NFCSTATUS_INVALID_FORMAT);
3009 return (status);
3014 * success/error status along with the completion routines.
3018 NFCSTATUS Status)
3025 CompletionRoutine(NdefMap->CompletionRoutine->Context, Status);