Lines Matching refs:rspApdu
156 phNxpEse_data rspApdu; in LSC_OpenChannel() local
158 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_OpenChannel()
164 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_OpenChannel()
166 if (eseStat != ESESTATUS_SUCCESS && (rspApdu.len < 0x03)) { in LSC_OpenChannel()
167 if (rspApdu.len == 0x02) in LSC_OpenChannel()
168 memcpy(&gsLsExecuteResp[2], &rspApdu.p_data[rspApdu.len - 2], 2); in LSC_OpenChannel()
171 } else if (((rspApdu.p_data[rspApdu.len - 2] != 0x90) && in LSC_OpenChannel()
172 (rspApdu.p_data[rspApdu.len - 1] != 0x00))) { in LSC_OpenChannel()
173 memcpy(&gsLsExecuteResp[2], &rspApdu.p_data[rspApdu.len - 2], 2); in LSC_OpenChannel()
178 Os_info->Channel_Info[cnt].channel_id = rspApdu.p_data[rspApdu.len - 3]; in LSC_OpenChannel()
185 phNxpEse_free(rspApdu.p_data); in LSC_OpenChannel()
211 phNxpEse_data rspApdu; in LSC_ResetChannel() local
213 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_ResetChannel()
220 eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_ResetChannel()
221 if (eseStat != ESESTATUS_SUCCESS && (rspApdu.len < 0x03)) { in LSC_ResetChannel()
224 } else if (((rspApdu.p_data[rspApdu.len - 2] != 0x90) && in LSC_ResetChannel()
225 (rspApdu.p_data[rspApdu.len - 1] != 0x00))) { in LSC_ResetChannel()
231 cmdApdu.p_data[xx++] = rspApdu.p_data[rspApdu.len - 3]; /*channel id*/ in LSC_ResetChannel()
234 cmdApdu.p_data[xx++] = rspApdu.p_data[rspApdu.len - 3]; in LSC_ResetChannel()
238 phNxpEse_free(rspApdu.p_data); in LSC_ResetChannel()
248 phNxpEse_free(rspApdu.p_data); in LSC_ResetChannel()
275 phNxpEse_data rspApdu; in LSC_SelectLsc() local
278 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_SelectLsc()
290 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_SelectLsc()
292 if (eseStat != ESESTATUS_SUCCESS && (rspApdu.len == 0x00)) { in LSC_SelectLsc()
295 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in LSC_SelectLsc()
296 (rspApdu.p_data[rspApdu.len - 1] == 0x00))) { in LSC_SelectLsc()
297 status = Process_SelectRsp(rspApdu.p_data, (rspApdu.len - 2)); in LSC_SelectLsc()
302 } else if (((rspApdu.p_data[rspApdu.len - 2] != 0x90))) { in LSC_SelectLsc()
304 memcpy(&gsLsExecuteResp[2], &(rspApdu.p_data[rspApdu.len - 2]), 2); in LSC_SelectLsc()
309 phNxpEse_free(rspApdu.p_data); in LSC_SelectLsc()
335 phNxpEse_data rspApdu; in LSC_StoreData() local
337 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_StoreData()
352 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_StoreData()
354 if ((eseStat != ESESTATUS_SUCCESS) && (rspApdu.len == 0x00)) { in LSC_StoreData()
357 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in LSC_StoreData()
358 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in LSC_StoreData()
363 memcpy(&gsLsExecuteResp[2], &(rspApdu.p_data[rspApdu.len - 2]), 2); in LSC_StoreData()
367 phNxpEse_free(rspApdu.p_data); in LSC_StoreData()
804 phNxpEse_data rspApdu; in LSC_SendtoEse() local
806 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_SendtoEse()
812 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_SendtoEse()
818 if (chanl_open_cmd && (rspApdu.len == 0x03) && in LSC_SendtoEse()
819 ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in LSC_SendtoEse()
820 (rspApdu.p_data[rspApdu.len - 1] == 0x00))) { in LSC_SendtoEse()
823 Os_info->Channel_Info[cnt].channel_id = rspApdu.p_data[rspApdu.len - 3]; in LSC_SendtoEse()
827 memcpy(pTranscv_Info->sRecvData, rspApdu.p_data, rspApdu.len); in LSC_SendtoEse()
828 status = Process_EseResponse(pTranscv_Info, rspApdu.len, Os_info); in LSC_SendtoEse()
830 phNxpEse_free(rspApdu.p_data); in LSC_SendtoEse()
873 phNxpEse_data rspApdu; in LSC_SendtoLsc() local
875 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_SendtoLsc()
880 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_SendtoLsc()
886 memcpy(pTranscv_Info->sRecvData, rspApdu.p_data, rspApdu.len); in LSC_SendtoLsc()
887 status = LSC_ProcessResp(Os_info, rspApdu.len, pTranscv_Info, tType); in LSC_SendtoLsc()
890 phNxpEse_free(rspApdu.p_data); in LSC_SendtoLsc()
917 phNxpEse_data rspApdu; in LSC_CloseChannel() local
920 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_CloseChannel()
932 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_CloseChannel()
934 if (eseStat != ESESTATUS_SUCCESS || rspApdu.len < 2) { in LSC_CloseChannel()
937 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in LSC_CloseChannel()
938 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in LSC_CloseChannel()
950 phNxpEse_free(rspApdu.p_data); in LSC_CloseChannel()
1227 phNxpEse_data rspApdu; in Send_Backall_Loadcmds() local
1229 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in Send_Backall_Loadcmds()
1238 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in Send_Backall_Loadcmds()
1239 memcpy(pTranscv_Info->sRecvData, rspApdu.p_data, rspApdu.len); in Send_Backall_Loadcmds()
1240 int32_t recvBufferActualSize = rspApdu.len; in Send_Backall_Loadcmds()
1242 phNxpEse_free(rspApdu.p_data); in Send_Backall_Loadcmds()
1939 phNxpEse_data rspApdu; in LSC_CloseAllLogicalChannels() local
1945 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_CloseAllLogicalChannels()
1957 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_CloseAllLogicalChannels()
1961 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in LSC_CloseAllLogicalChannels()
1962 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in LSC_CloseAllLogicalChannels()
1969 phNxpEse_free(rspApdu.p_data); in LSC_CloseAllLogicalChannels()
1985 phNxpEse_data rspApdu; in LSC_SelectLsHash() local
1989 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_SelectLsHash()
1995 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_SelectLsHash()
1998 ((rspApdu.p_data[rspApdu.len - 2] != 0x90) && in LSC_SelectLsHash()
1999 (rspApdu.p_data[rspApdu.len - 1] != 0x00))) { in LSC_SelectLsHash()
2006 phNxpEse_free(rspApdu.p_data); in LSC_SelectLsHash()
2020 phNxpEse_data rspApdu; in LSC_ReadLsHash() local
2029 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_ReadLsHash()
2040 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_ReadLsHash()
2043 ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in LSC_ReadLsHash()
2044 (rspApdu.p_data[rspApdu.len - 1] == 0x00))) { in LSC_ReadLsHash()
2046 rspApdu.len); in LSC_ReadLsHash()
2047 *readHashLen = rspApdu.len - 2; in LSC_ReadLsHash()
2049 memcpy(hash, rspApdu.p_data, *readHashLen); in LSC_ReadLsHash()
2056 if ((rspApdu.p_data[rspApdu.len - 2] == 0x6A) && in LSC_ReadLsHash()
2057 (rspApdu.p_data[rspApdu.len - 1] == 0x86)) { in LSC_ReadLsHash()
2060 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x6A) && in LSC_ReadLsHash()
2061 (rspApdu.p_data[rspApdu.len - 1] == 0x83)) { in LSC_ReadLsHash()
2069 phNxpEse_free(rspApdu.p_data); in LSC_ReadLsHash()
2085 phNxpEse_data rspApdu; in LSC_UpdateLsHash() local
2095 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_UpdateLsHash()
2109 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_UpdateLsHash()
2112 ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in LSC_UpdateLsHash()
2113 (rspApdu.p_data[rspApdu.len - 1] == 0x00))) { in LSC_UpdateLsHash()
2116 if ((rspApdu.p_data[rspApdu.len - 2] == 0x6A) && in LSC_UpdateLsHash()
2117 (rspApdu.p_data[rspApdu.len - 1] == 0x86)) { in LSC_UpdateLsHash()
2126 phNxpEse_free(rspApdu.p_data); in LSC_UpdateLsHash()
2142 phNxpEse_data rspApdu; in LSC_ReadLscInfo() local
2147 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_ReadLscInfo()
2158 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_ReadLscInfo()
2160 if (eseStat != ESESTATUS_SUCCESS && (rspApdu.len == 0x00)) { in LSC_ReadLscInfo()
2163 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in LSC_ReadLscInfo()
2164 (rspApdu.p_data[rspApdu.len - 1] == 0x00))) { in LSC_ReadLscInfo()
2165 status = Process_SelectRsp(rspApdu.p_data, (rspApdu.len - 2)); in LSC_ReadLscInfo()
2170 *state = rspApdu.p_data[18]; in LSC_ReadLscInfo()
2171 *version = (rspApdu.p_data[22] << 8) | rspApdu.p_data[23]; in LSC_ReadLscInfo()
2173 } else if (rspApdu.p_data[rspApdu.len - 2] != 0x90) { in LSC_ReadLscInfo()
2180 phNxpEse_free(rspApdu.p_data); in LSC_ReadLscInfo()