Lines Matching refs:wFrameLen
543 uint16_t wFrameLen = 0; in phDnldNfc_BuildFramePkt() local
570 wFrameLen = (pDlContext->tRspBuffInfo.wLen) + PHDNLDNFC_MIN_PLD_LEN; in phDnldNfc_BuildFramePkt()
579 if (PHDNLDNFC_CMDRESP_MAX_PLD_SIZE < wFrameLen) { in phDnldNfc_BuildFramePkt()
598 wFrameLen = 0; in phDnldNfc_BuildFramePkt()
599 wFrameLen = (pDlContext->tCmdRspFrameInfo.dwSendlength); in phDnldNfc_BuildFramePkt()
600 if (wFrameLen > PHDNLDNFC_CMDRESP_MAX_BUFF_SIZE) { in phDnldNfc_BuildFramePkt()
607 pFrameByte = (uint8_t*)&wFrameLen; in phDnldNfc_BuildFramePkt()
618 wFrameLen += PHDNLDNFC_FRAME_HDR_LEN; in phDnldNfc_BuildFramePkt()
623 wFrameLen = PHDNLDNFC_SET_HDR_FRAGBIT(wFrameLen); in phDnldNfc_BuildFramePkt()
626 pFrameByte = (uint8_t*)&wFrameLen; in phDnldNfc_BuildFramePkt()
634 wFrameLen = PHDNLDNFC_CLR_HDR_FRAGBIT(wFrameLen); in phDnldNfc_BuildFramePkt()
636 wFrameLen += PHDNLDNFC_FRAME_HDR_LEN; in phDnldNfc_BuildFramePkt()
640 if (wFrameLen > (PHDNLDNFC_CMDRESP_MAX_BUFF_SIZE - 2)) { in phDnldNfc_BuildFramePkt()
646 wFrameLen); in phDnldNfc_BuildFramePkt()
651 pDlContext->tCmdRspFrameInfo.aFrameBuff[wFrameLen] = pFrameByte[1]; in phDnldNfc_BuildFramePkt()
652 pDlContext->tCmdRspFrameInfo.aFrameBuff[wFrameLen + 1] = pFrameByte[0]; in phDnldNfc_BuildFramePkt()
654 wFrameLen += PHDNLDNFC_FRAME_CRC_LEN; in phDnldNfc_BuildFramePkt()
657 (pDlContext->tCmdRspFrameInfo.dwSendlength) = wFrameLen; in phDnldNfc_BuildFramePkt()
683 uint16_t wFrameLen = 0; in phDnldNfc_CreateFramePld() local
718 wFrameLen = (pDlContext->tUserData.pBuff[wBuffIdx]); in phDnldNfc_CreateFramePld()
719 wFrameLen <<= 8; in phDnldNfc_CreateFramePld()
720 wFrameLen |= (pDlContext->tUserData.pBuff[wBuffIdx + 1]); in phDnldNfc_CreateFramePld()
722 (pDlContext->tRWInfo.wRWPldSize) = wFrameLen; in phDnldNfc_CreateFramePld()
727 (pDlContext->tRWInfo.wRemChunkBytes) = wFrameLen; in phDnldNfc_CreateFramePld()
750 (wFrameLen + PHDNLDNFC_FRAME_HDR_LEN); in phDnldNfc_CreateFramePld()