Lines Matching refs:ApduBuffIndex
154 NdefMap->ApduBuffIndex = 0; 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()
341 (void)memcpy( (&(NdefMap->ApduBuffer[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()
365 (void)memcpy( (&(NdefMap->ApduBuffer[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()
377 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
384 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
390 NdefMap->ApduBuffIndex += NdefMap->Felica.Rd_NoBytesToCopy; in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
391 NdefMap->Felica.Rd_NoBytesToCopy -= (uint8_t)(NdefMap->ApduBuffIndex); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
402 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
409 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
414 NdefMap->ApduBuffIndex += NdefMap->Felica.Rd_NoBytesToCopy; in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
423 …->Felica.LastBlkReachedFlag == 1) && (( NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= 16)) ) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
426 if (( NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= DataLen) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
429 NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
431 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
435 NdefMap->ApduBuffIndex += NdefMap->Felica.CurrBytesRead; in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
436 if ( 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()
468 NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
472 NdefMap->ApduBuffIndex)) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
474 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
480 (void)memcpy( (&( NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), 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 …esToCopy = (uint8_t)( NdefMap->Felica.TrxLen - (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
504 …cvBuf[PH_NFCFRI_NDEFMAP_FELI_RESP_HEADER_LEN+(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
511 NdefMap->ApduBuffIndex += ((NdefMap->Felica.CurrBytesRead < in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
513 NdefMap->ApduBuffIndex))? in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
516 NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
521 (void)memcpy( (&( NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
525 NdefMap->ApduBuffIndex += NdefMap->Felica.Rd_NoBytesToCopy; 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 …tesToCopy = (uint8_t)(NdefMap->Felica.TrxLen - (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)); in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
556 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), 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()
571 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
575 NdefMap->ApduBuffIndex += NdefMap->Felica.Rd_NoBytesToCopy; 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()
592 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
596 NdefMap->ApduBuffIndex += NdefMap->Felica.TrxLen; in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
600 if ((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) > NdefMap->Felica.TrxLen ) in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
603 (void)memcpy( (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
607 NdefMap->ApduBuffIndex += (uint16_t)NdefMap->Felica.TrxLen; in phFriNfc_Felica_HAfterRead_CopyDataToBuff()
639 if ( (( NdefMap->ApduBufferSize-NdefMap->ApduBuffIndex )== 0) && in phFriNfc_Felica_HChkApduBuff_Size()
645 *NdefMap->NumOfBytesRead = NdefMap->ApduBuffIndex; in phFriNfc_Felica_HChkApduBuff_Size()
646 NdefMap->ApduBuffIndex = 0; in phFriNfc_Felica_HChkApduBuff_Size()
651 if (( ( NdefMap->ApduBufferSize-NdefMap->ApduBuffIndex )== 0) && in phFriNfc_Felica_HChkApduBuff_Size()
662 *NdefMap->NumOfBytesRead = NdefMap->ApduBuffIndex; in phFriNfc_Felica_HChkApduBuff_Size()
664 NdefMap->ApduBuffIndex = 0; in phFriNfc_Felica_HChkApduBuff_Size()
670 if ( NdefMap->ApduBuffIndex == (Nbc*16)) in phFriNfc_Felica_HChkApduBuff_Size()
678 if ((NdefMap->ApduBufferSize-NdefMap->ApduBuffIndex )> 0 ) in phFriNfc_Felica_HChkApduBuff_Size()
689 *NdefMap->NumOfBytesRead = NdefMap->ApduBuffIndex; in phFriNfc_Felica_HChkApduBuff_Size()
690 NdefMap->ApduBuffIndex=0; in phFriNfc_Felica_HChkApduBuff_Size()
699 *NdefMap->NumOfBytesRead = NdefMap->ApduBuffIndex; in phFriNfc_Felica_HChkApduBuff_Size()
700 NdefMap->ApduBuffIndex=0; in phFriNfc_Felica_HChkApduBuff_Size()
741 if (NdefMap->ApduBuffIndex > DataLen) in phFriNfc_Felica_HChkApduBuff_Size()
747 *NdefMap->NumOfBytesRead = NdefMap->ApduBuffIndex; in phFriNfc_Felica_HChkApduBuff_Size()
750 NdefMap->ApduBuffIndex = 0; in phFriNfc_Felica_HChkApduBuff_Size()
1383 NdefMap->ApduBuffIndex =0; in phFriNfc_Felica_HChkAttrBlkForWrOp()
1390 NdefMap->ApduBuffIndex =0; in phFriNfc_Felica_HChkAttrBlkForWrOp()
1458 if( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) > 0 ) in phFriNfc_Felica_HUpdateData()
1697 …if((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= (uint32_t)(16 - NdefMap->Felica.Wr_BytesR… in phFriNfc_Felica_HUpdateData()
1711 (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HUpdateData()
1850 (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HUpdateData()
1889 …if ( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= (uint32_t)(16* NdefMap->FelicaAttrInfo.… in phFriNfc_Felica_HUpdateData()
1911 (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HUpdateData()
1948 (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), 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()
2017 (&(NdefMap->ApduBuffer[NdefMap->ApduBuffIndex])), in phFriNfc_Felica_HUpdateData()
2028 (&(NdefMap->ApduBuffer[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()
2386 NdefMap->ApduBuffIndex = 0; in phFriNfc_Felica_Process()
2512 NdefMap->ApduBuffIndex += in phFriNfc_Felica_Process()
2515 *NdefMap->WrNdefPacketLength = NdefMap->ApduBuffIndex; in phFriNfc_Felica_Process()
2523 NdefMap->ApduBuffIndex += NdefMap->NumOfBytesWritten; in phFriNfc_Felica_Process()
2524 *NdefMap->WrNdefPacketLength = NdefMap->ApduBuffIndex; in phFriNfc_Felica_Process()
2532 ( NdefMap->ApduBuffIndex == (NdefMap->FelicaAttrInfo.Nmaxb*16))) in phFriNfc_Felica_Process()
2550 … ((TotNoWrittenBytes + NdefMap->ApduBuffIndex) == (uint32_t)(NdefMap->FelicaAttrInfo.Nmaxb*16))) in phFriNfc_Felica_Process()
2606 NdefMap->ApduBuffIndex=0; in phFriNfc_Felica_Process()
2648 NdefMap->ApduBuffIndex = 0; in phFriNfc_Felica_Process()
2654 NdefMap->ApduBuffIndex=0; in phFriNfc_Felica_Process()
2664 NdefMap->ApduBuffIndex=0; in phFriNfc_Felica_Process()