Lines Matching refs:pCompInfo
62 phNfc_sTransactionInfo_t *pCompInfo
70 phNfc_sTransactionInfo_t *pCompInfo
283 phNfc_sTransactionInfo_t *pCompInfo in phLlcNfc_WrResp_Cb() argument
301 if ((NULL != ps_llc_ctxt) && (NULL != pCompInfo) && (NULL != pHwInfo)) in phLlcNfc_WrResp_Cb()
307 if(NFCSTATUS_SUCCESS == pCompInfo->status) in phLlcNfc_WrResp_Cb()
416 ps_llc_ctxt->send_cb_len = (pCompInfo->length - in phLlcNfc_WrResp_Cb()
426 pCompInfo->length = (pCompInfo->length - in phLlcNfc_WrResp_Cb()
430 pHwInfo, pCompInfo); in phLlcNfc_WrResp_Cb()
517 pCompInfo->length = (pCompInfo->length - in phLlcNfc_WrResp_Cb()
521 pHwInfo, pCompInfo); in phLlcNfc_WrResp_Cb()
634 PH_LLCNFC_DEBUG("Error status received : 0x%x\n", pCompInfo->status); in phLlcNfc_WrResp_Cb()
637 pHwInfo, pCompInfo); in phLlcNfc_WrResp_Cb()
649 phNfc_sTransactionInfo_t *pCompInfo in phLlcNfc_RdResp_Cb() argument
672 if ((NULL != ps_llc_ctxt) && (NULL != pCompInfo) && (NULL != pHwInfo) in phLlcNfc_RdResp_Cb()
673 && (NULL != pCompInfo->buffer)) in phLlcNfc_RdResp_Cb()
681 if (NFCSTATUS_SUCCESS == pCompInfo->status) in phLlcNfc_RdResp_Cb()
683 if ((PH_LLCNFC_MIN_BUFLEN_RECVD == pCompInfo->length) && in phLlcNfc_RdResp_Cb()
684 (((PH_LLCNFC_MIN_BUFLEN_RECVD + 1) < *(pCompInfo->buffer)) && in phLlcNfc_RdResp_Cb()
685 (PH_LLCNFC_MAX_BUFLEN_RECV_SEND > *(pCompInfo->buffer)))) in phLlcNfc_RdResp_Cb()
688 PH_LLCNFC_PRINT_BUFFER(pCompInfo->buffer, pCompInfo->length); in phLlcNfc_RdResp_Cb()
694 ps_recv_pkt->s_llcbuf.llc_length_byte = pCompInfo->buffer[0]; in phLlcNfc_RdResp_Cb()
728 else if (((PH_LLCNFC_MIN_BUFLEN_RECVD + 1) < pCompInfo->length) && in phLlcNfc_RdResp_Cb()
729 (PH_LLCNFC_MAX_BUFLEN_RECV_SEND > pCompInfo->length) && in phLlcNfc_RdResp_Cb()
730 (pCompInfo->length == ps_recv_pkt->s_llcbuf.llc_length_byte)) in phLlcNfc_RdResp_Cb()
733 PH_LLCNFC_PRINT_BUFFER(pCompInfo->buffer, pCompInfo->length); in phLlcNfc_RdResp_Cb()
746 (void)memcpy(ps_llc_payload, pCompInfo->buffer, in phLlcNfc_RdResp_Cb()
747 pCompInfo->length); in phLlcNfc_RdResp_Cb()
854 else if (((PH_LLCNFC_MIN_BUFLEN_RECVD + 1) < pCompInfo->length) && in phLlcNfc_RdResp_Cb()
855 (PH_LLCNFC_MAX_BUFLEN_RECV_SEND > pCompInfo->length) && in phLlcNfc_RdResp_Cb()
856 (pCompInfo->length != ps_recv_pkt->s_llcbuf.llc_length_byte)) in phLlcNfc_RdResp_Cb()
858 ALOGE("bad LLC length1 %d", pCompInfo->length); in phLlcNfc_RdResp_Cb()
875 else if ((PH_LLCNFC_MIN_BUFLEN_RECVD == pCompInfo->length) && in phLlcNfc_RdResp_Cb()
876 ((*(pCompInfo->buffer) > (PH_LLCNFC_MAX_BUFLEN_RECV_SEND - 1)) in phLlcNfc_RdResp_Cb()
877 ||(*(pCompInfo->buffer) <= (PH_LLCNFC_MIN_BUFLEN_RECVD + 1)))) in phLlcNfc_RdResp_Cb()
886 ALOGW("bad LLC length byte %x\n", *(pCompInfo->buffer)); in phLlcNfc_RdResp_Cb()
905 pCompInfo->status = PHNFCSTVAL(CID_NFC_LLC, in phLlcNfc_RdResp_Cb()
907 pCompInfo->buffer = NULL; in phLlcNfc_RdResp_Cb()
908 pCompInfo->length = 0; in phLlcNfc_RdResp_Cb()
917 pHwInfo, pCompInfo); in phLlcNfc_RdResp_Cb()
920 } else if (NFCSTATUS_READ_FAILED == pCompInfo->status) { in phLlcNfc_RdResp_Cb()
941 PH_LLCNFC_DEBUG("Status Error : 0x%x\n", pCompInfo->status); in phLlcNfc_RdResp_Cb()
946 pHwInfo, pCompInfo); in phLlcNfc_RdResp_Cb()
952 if ((NULL != ps_llc_ctxt) && (NULL != pCompInfo) in phLlcNfc_RdResp_Cb()
957 pHwInfo, pCompInfo); in phLlcNfc_RdResp_Cb()