Lines Matching refs:ApduBufferSize
148 NdefMap->ApduBufferSize = *PacketDataLength; in phFriNfc_Felica_RdNdef()
216 …if( ( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) > 0) && (NdefMap->Felica.CurBlockNo < Nbc… in phFriNfc_Felica_HReadData()
265 if( ( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)% 16) == 0) in phFriNfc_Felica_HSetTrxLen()
267 BlocksToRead = (uint16_t)( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)/16 ); in phFriNfc_Felica_HSetTrxLen()
271 BlocksToRead = (uint16_t)(((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)/16) +1); in phFriNfc_Felica_HSetTrxLen()
334 if ( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) < NdefMap->Felica.Rd_NoBytesToCopy ) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
336 … NdefMap->Felica.Rd_NoBytesToCopy -= (uint8_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
343 (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
348 … NdefMap->Felica.IntermediateCpyLen += (uint8_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
367 (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
369 … NdefMap->ApduBuffIndex += (uint8_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
372 … else if ( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) == NdefMap->Felica.Rd_NoBytesToCopy ) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
423 …if ( ((NdefMap->Felica.LastBlkReachedFlag == 1) && (( NdefMap->ApduBufferSize - NdefMap->ApduBuffI… in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
426 if (( NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= DataLen) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
444 … if( ( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) <= NdefMap->Felica.TrxLen )|| in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
445 ((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) <= DataLen )) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
454 … if ( NdefMap->Felica.Rd_NoBytesToCopy > (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
457 … NdefMap->Felica.Rd_NoBytesToCopy -= (uint8_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
471 (uint16_t)(NdefMap->ApduBufferSize - in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
482 … (uint16_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
489 (uint16_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex))? in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
491 (uint16_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)): in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
499 …ica.Rd_NoBytesToCopy = (uint8_t)( NdefMap->Felica.TrxLen - (NdefMap->ApduBufferSize - NdefMap->Apd… in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
504 …defMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_RESP_HEADER_LEN+(NdefMap->ApduBufferSize - NdefMap->Apd… in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
512 (uint16_t)(NdefMap->ApduBufferSize - in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
515 (uint16_t)(NdefMap->ApduBufferSize - in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
534 if ((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) < NdefMap->Felica.TrxLen ) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
541 … if ( NdefMap->Felica.Rd_NoBytesToCopy > (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
544 … NdefMap->Felica.Rd_NoBytesToCopy -= (uint8_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
550 …lica.Rd_NoBytesToCopy = (uint8_t)(NdefMap->Felica.TrxLen - (NdefMap->ApduBufferSize - NdefMap->Apd… in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
558 NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
562 … (&(NdefMap->SendRecvBuf[13+(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
566 … NdefMap->ApduBuffIndex += (uint16_t)NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex; in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
579 if ( DataLen <= (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) ) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
588 else if ((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) == NdefMap->Felica.TrxLen ) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
600 if ((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) > NdefMap->Felica.TrxLen ) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
639 if ( (( NdefMap->ApduBufferSize-NdefMap->ApduBuffIndex )== 0) && in phFriNfc_Felica_HChkApduBuff_Size()
651 if (( ( NdefMap->ApduBufferSize-NdefMap->ApduBuffIndex )== 0) && in phFriNfc_Felica_HChkApduBuff_Size()
678 if ((NdefMap->ApduBufferSize-NdefMap->ApduBuffIndex )> 0 ) in phFriNfc_Felica_HChkApduBuff_Size()
885 NdefMap->ApduBufferSize = *PacketDataLength; in phFriNfc_Felica_WrNdef()
1343 if (NdefMap->ApduBufferSize > (uint32_t)(NdefMap->FelicaAttrInfo.Nmaxb *16)) in phFriNfc_Felica_HChkAttrBlkForWrOp()
1371 if (( NdefMap->ApduBufferSize + (DataLen )) > in phFriNfc_Felica_HChkAttrBlkForWrOp()
1458 if( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) > 0 ) in phFriNfc_Felica_HUpdateData()
1533 if ( NdefMap->ApduBufferSize >(uint32_t) (16 - NdefMap->Felica.Wr_BytesRemained)) in phFriNfc_Felica_HUpdateData()
1543 … BytesRemained = (uint8_t)NdefMap->ApduBufferSize - (16 - NdefMap->Felica.Wr_BytesRemained); in phFriNfc_Felica_HUpdateData()
1697 …if((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= (uint32_t)(16 - NdefMap->Felica.Wr_BytesR… in phFriNfc_Felica_HUpdateData()
1730 … (NdefMap->ApduBufferSize - (16 - NdefMap->Felica.Wr_BytesRemained))); in phFriNfc_Felica_HUpdateData()
1734 …NdefMap->NumOfBytesWritten += (uint16_t)(NdefMap->ApduBufferSize - (16 - NdefMap->Felica.Wr_BytesR… in phFriNfc_Felica_HUpdateData()
1736 … BufIndex += (uint8_t)(NdefMap->ApduBufferSize - (16 - NdefMap->Felica.Wr_BytesRemained)); in phFriNfc_Felica_HUpdateData()
1750 … (&( NdefMap->ApduBuffer[(NdefMap->ApduBufferSize - NdefMap->Felica.Wr_BytesRemained)])), in phFriNfc_Felica_HUpdateData()
1804 … (&(NdefMap->ApduBuffer[(NdefMap->ApduBufferSize - NdefMap->Felica.Wr_BytesRemained)])), in phFriNfc_Felica_HUpdateData()
1851 NdefMap->ApduBufferSize); in phFriNfc_Felica_HUpdateData()
1854 BufIndex+= (uint8_t)NdefMap->ApduBufferSize; in phFriNfc_Felica_HUpdateData()
1857 BytesRemained = NdefMap->Felica.Wr_BytesRemained + NdefMap->ApduBufferSize; in phFriNfc_Felica_HUpdateData()
1869 NdefMap->NumOfBytesWritten = (uint16_t)NdefMap->ApduBufferSize; in phFriNfc_Felica_HUpdateData()
1889 …if ( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= (uint32_t)(16* NdefMap->FelicaAttrInfo.… in phFriNfc_Felica_HUpdateData()
1983 BlkNo =((uint8_t)( NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)/16); in phFriNfc_Felica_HUpdateData()
1984 if(((uint8_t)( NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)%16) != 0) in phFriNfc_Felica_HUpdateData()
1987 … PadBytes = (BlkNo * 16) - (uint8_t)( NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HUpdateData()
2029 (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HUpdateData()
2032 BufIndex += (uint8_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HUpdateData()
2033 … NdefMap->NumOfBytesWritten = (uint8_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HUpdateData()
2057 … (&(NdefMap->ApduBuffer[((NdefMap->ApduBufferSize - NdefMap->Felica.Wr_BytesRemained))])), in phFriNfc_Felica_HUpdateData()
2608 NdefMap->ApduBufferSize = 0; in phFriNfc_Felica_Process()