/hardware/st/nfc/st21nfc/ |
D | hal_wrapper.cc | 39 static void halWrapperDataCallback(uint16_t data_len, uint8_t* p_data); 217 void halWrapperDataCallback(uint16_t data_len, uint8_t* p_data) { in halWrapperDataCallback() argument 227 if (mObserverMode && (p_data[0] == 0x6f) && (p_data[1] == 0x02)) { in halWrapperDataCallback() 230 p_data, data_len, nciAndroidPassiveObserver)) > 0) { in halWrapperDataCallback() 235 if ((p_data[0] == 0x4f) && (p_data[1] == 0x0c)) { in halWrapperDataCallback() 236 DispHal("RX DATA", (p_data), data_len); in halWrapperDataCallback() 247 if ((p_data[0] == 0x60) && (p_data[1] == 0x00)) { in halWrapperDataCallback() 249 mFwUpdateTaskMask = ft_cmd_HwReset(p_data, &mClfMode); in halWrapperDataCallback() 277 if (((p_data[3] == 0x01) && (p_data[8] == HW_ST54L)) || in halWrapperDataCallback() 278 ((p_data[2] == 0x41) && (p_data[3] == 0xA2))) { // ST54L in halWrapperDataCallback() [all …]
|
/hardware/st/nfc/1.0/ |
D | hal_wrapper.c | 48 static void halWrapperDataCallback(uint16_t data_len, uint8_t* p_data); 94 void halWrapperDataCallback(uint16_t data_len, uint8_t* p_data) { in halWrapperDataCallback() argument 105 if ((p_data[0] == 0x60) && (p_data[1] == 0x00)) { in halWrapperDataCallback() 106 if (p_data[3] == 0x01) { in halWrapperDataCallback() 109 } else if (p_data[3] == 0xa1) // Loader mode in halWrapperDataCallback() 114 mHalWrapperDataCallback(data_len, p_data); in halWrapperDataCallback() 119 if ((p_data[0] == 0x40) && (p_data[1] == 0x01)) { in halWrapperDataCallback() 120 } else if ((p_data[0] == 0x60) && (p_data[1] == 0x06)) { in halWrapperDataCallback() 129 mHalWrapperDataCallback(data_len, p_data); in halWrapperDataCallback() 134 if ((p_data[0] == 0x4f) && (p_data[1] == 0x02)) { in halWrapperDataCallback() [all …]
|
/hardware/st/secure_element/1.0/ |
D | SecureElement.cpp | 126 cmdApdu.p_data = (uint8_t*)malloc(data.size() * sizeof(uint8_t)); in transmit() 127 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit() 129 if (aram_channel && (0x03 & cmdApdu.p_data[0]) == aram_channel && in transmit() 144 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 147 free(cmdApdu.p_data); in transmit() 148 free(rspApdu.p_data); in transmit() 191 cmdApdu.p_data = in openLogicalChannel() 193 if (cmdApdu.p_data != NULL) { in openLogicalChannel() 194 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel() 200 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() [all …]
|
/hardware/st/secure_element/1.1/ |
D | SecureElement.cpp | 132 cmdApdu.p_data = (uint8_t*)malloc(data.size() * sizeof(uint8_t)); in transmit() 133 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit() 143 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 146 free(cmdApdu.p_data); in transmit() 147 free(rspApdu.p_data); in transmit() 188 cmdApdu.p_data = in openLogicalChannel() 190 if (cmdApdu.p_data != NULL) { in openLogicalChannel() 191 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel() 197 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 198 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() [all …]
|
/hardware/st/nfc/st21nfc/hal/ |
D | hal_fd.cc | 441 uint8_t *p_data) { in ExitHibernateHandler() argument 447 switch (p_data[0]) { in ExitHibernateHandler() 453 if ((p_data[1] == 0x1) && (p_data[3] == 0x0) && in ExitHibernateHandler() 460 } else if ((p_data[1] == 0x1) && (p_data[3] == 0x0) && in ExitHibernateHandler() 472 } else if (p_data[3] != 0x00) { in ExitHibernateHandler() 480 if ((p_data[1] == 0x02) && (p_data[3] == 0x00) && in ExitHibernateHandler() 485 } else if (p_data[3] != 0x00) { in ExitHibernateHandler() 492 if (p_data[3] == 0x2) { in ExitHibernateHandler() 498 } else if (p_data[3] == 0xa0) { in ExitHibernateHandler() 579 void UpdateHandler(HALHANDLE mHalHandle, uint16_t data_len, uint8_t *p_data) { in UpdateHandler() argument [all …]
|
D | hal_fd.h | 87 uint8_t* p_data); 88 void FwUpdateHandler(HALHANDLE mHalHandle, uint16_t data_len, uint8_t* p_data); 90 uint8_t* p_data); 92 uint8_t* p_data);
|
/hardware/nxp/secure_element/pn8x/1.0/ |
D | SecureElement.cpp | 102 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(data.size() * sizeof(uint8_t)); in transmit() 103 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit() 112 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 115 phNxpEse_free(cmdApdu.p_data); in transmit() 116 phNxpEse_free(rspApdu.p_data); in transmit() 152 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(manageChannelCommand.size() * in openLogicalChannel() 154 if (cmdApdu.p_data != NULL) { in openLogicalChannel() 155 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel() 161 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 162 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() [all …]
|
/hardware/nxp/secure_element/pn8x/1.1/ |
D | SecureElement.cpp | 144 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(data.size() * sizeof(uint8_t)); in transmit() 145 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit() 154 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 157 phNxpEse_free(cmdApdu.p_data); in transmit() 158 phNxpEse_free(rspApdu.p_data); in transmit() 194 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(manageChannelCommand.size() * in openLogicalChannel() 196 if (cmdApdu.p_data != NULL) { in openLogicalChannel() 197 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel() 203 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 204 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() [all …]
|
/hardware/st/secure_element/1.2/ |
D | SecureElement.cpp | 141 cmdApdu.p_data = (uint8_t*)malloc(data.size() * sizeof(uint8_t)); in transmit() 142 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit() 152 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 155 free(cmdApdu.p_data); in transmit() 156 free(rspApdu.p_data); in transmit() 197 cmdApdu.p_data = in openLogicalChannel() 199 if (cmdApdu.p_data != NULL) { in openLogicalChannel() 200 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel() 206 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 207 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() [all …]
|
/hardware/nxp/nfc/snxxx/halimpl/observe_mode/ |
D | ObserveMode.cc | 63 int handleObserveMode(uint16_t data_len, const uint8_t* p_data) { in handleObserveMode() argument 70 setObserveModeFlag(p_data[NCI_MSG_INDEX_FEATURE_VALUE]); in handleObserveMode() 75 p_data[NCI_OID_INDEX], p_data[NCI_MSG_INDEX_FOR_FEATURE], {status}); in handleObserveMode() 77 return p_data[NCI_MSG_LEN_INDEX]; in handleObserveMode() 90 int handleGetObserveModeStatus(uint16_t data_len, const uint8_t* p_data) { in handleGetObserveModeStatus() argument 98 phNxpNciHal_vendorSpecificCallback(p_data[NCI_OID_INDEX], in handleGetObserveModeStatus() 99 p_data[NCI_MSG_INDEX_FOR_FEATURE], in handleGetObserveModeStatus() 102 return p_data[NCI_MSG_LEN_INDEX]; in handleGetObserveModeStatus()
|
/hardware/nxp/secure_element/pn8x/ls_client/src/ |
D | LsLib.cpp | 160 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(cmdApdu.len * sizeof(uint8_t)); in LSC_OpenChannel() 161 memcpy(cmdApdu.p_data, OpenChannel, cmdApdu.len); 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() 184 phNxpEse_free(cmdApdu.p_data); in LSC_OpenChannel() 185 phNxpEse_free(rspApdu.p_data); in LSC_OpenChannel() 215 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(cmdApdu.len * sizeof(uint8_t)); in LSC_ResetChannel() [all …]
|
/hardware/nxp/secure_element/snxxx/libese-spi/p73/lib/ |
D | phNxpEseProto7816_3.cpp | 46 uint8_t* p_data); 78 static ESESTATUS phNxpEseProto7816_CheckLRC(uint32_t data_len, uint8_t* p_data); 131 static ESESTATUS phNxpEseProto7816_SaveIframeData(uint8_t* p_data, 168 static ESESTATUS phNxpEseProto7816_DecodeFrame(uint8_t* p_data, 211 uint8_t* p_data); 219 static void phNxpEseProto7816_DecodeSFrameIFSData(uint8_t* p_data); 227 static void phNxpEseProto7816_DecodeSFrameATRData(uint8_t* p_data); 235 static void phNxpEseProto7816_DecodeSFrameSecureTimerData(uint8_t* p_data); 278 uint8_t* p_data) { in phNxpEseProto7816_SendRawFrame() argument 281 status = phNxpEse_WriteFrame(data_len, p_data); in phNxpEseProto7816_SendRawFrame() [all …]
|
D | phNxpEse_Apdu_Api.cpp | 68 pCmdTrans.p_data = pCmd_data; in phNxpEse_7816_Transceive() 72 if ((pRspTrans.len > 0) && (pRspTrans.p_data != NULL)) { in phNxpEse_7816_Transceive() 73 pRsp->sw2 = *(pRspTrans.p_data + (pRspTrans.len - 1)); in phNxpEse_7816_Transceive() 75 pRsp->sw1 = *(pRspTrans.p_data + (pRspTrans.len - 1)); in phNxpEse_7816_Transceive() 80 if ((pRspTrans.len > 0) && (pRspTrans.p_data != NULL)) { in phNxpEse_7816_Transceive() 81 pRsp->sw2 = *(pRspTrans.p_data + (pRspTrans.len - 1)); in phNxpEse_7816_Transceive() 83 pRsp->sw1 = *(pRspTrans.p_data + (pRspTrans.len - 1)); in phNxpEse_7816_Transceive() 88 phNxpEse_memcpy(pRsp->pdata, pRspTrans.p_data, pRspTrans.len); in phNxpEse_7816_Transceive() 98 phNxpEse_free(pRspTrans.p_data); in phNxpEse_7816_Transceive() 99 pRspTrans.p_data = NULL; in phNxpEse_7816_Transceive()
|
/hardware/nxp/secure_element/pn8x/libese-spi/p73/lib/ |
D | phNxpEseProto7816_3.cpp | 32 uint8_t* p_data); 37 static ESESTATUS phNxpEseProto7816_CheckLRC(uint32_t data_len, uint8_t* p_data); 43 static ESESTATUS phNxpEseProro7816_SaveIframeData(uint8_t* p_data, 47 static ESESTATUS phNxpEseProto7816_DecodeFrame(uint8_t* p_data, 63 uint8_t* p_data) { in phNxpEseProto7816_SendRawFrame() argument 66 status = phNxpEse_WriteFrame(data_len, p_data); in phNxpEseProto7816_SendRawFrame() 125 uint8_t* p_data) { in phNxpEseProto7816_CheckLRC() argument 130 recv_crc = p_data[data_len - 1]; in phNxpEseProto7816_CheckLRC() 133 calc_crc = phNxpEseProto7816_ComputeLRC(p_data, 1, (data_len - 1)); in phNxpEseProto7816_CheckLRC() 309 phNxpEse_memcpy(&(p_framebuff[3]), iFrameData.p_data + iFrameData.dataOffset, in phNxpEseProto7816_SendIframe() [all …]
|
/hardware/nxp/secure_element/snxxx/1.0/ |
D | VirtualISO.cpp | 123 gsTxRxBuffer.cmdData.p_data = in transmit() 125 if (NULL == gsTxRxBuffer.cmdData.p_data) { in transmit() 131 memcpy(gsTxRxBuffer.cmdData.p_data, data.data(), gsTxRxBuffer.cmdData.len); in transmit() 143 memcpy(&result[0], gsTxRxBuffer.rspData.p_data, gsTxRxBuffer.rspData.len); in transmit() 151 if (NULL != gsTxRxBuffer.cmdData.p_data) { in transmit() 152 phNxpEse_free(gsTxRxBuffer.cmdData.p_data); in transmit() 153 gsTxRxBuffer.cmdData.p_data = NULL; in transmit() 155 if (NULL != gsTxRxBuffer.rspData.p_data) { in transmit() 156 phNxpEse_free(gsTxRxBuffer.rspData.p_data); in transmit() 157 gsTxRxBuffer.rspData.p_data = NULL; in transmit() [all …]
|
D | SecureElement.cpp | 140 memcpy(&response[0], atrData.p_data, atrData.len); in getAtr() 156 if (atrData.p_data != NULL) { in getAtr() 157 phNxpEse_free(atrData.p_data); in getAtr() 177 gsTxRxBuffer.cmdData.p_data = in transmit() 179 if (NULL == gsTxRxBuffer.cmdData.p_data) { in transmit() 185 memcpy(gsTxRxBuffer.cmdData.p_data, data.data(), gsTxRxBuffer.cmdData.len); in transmit() 195 memcpy(&result[0], gsTxRxBuffer.rspData.p_data, gsTxRxBuffer.rspData.len); in transmit() 209 if (NULL != gsTxRxBuffer.cmdData.p_data) { in transmit() 210 phNxpEse_free(gsTxRxBuffer.cmdData.p_data); in transmit() 211 gsTxRxBuffer.cmdData.p_data = NULL; in transmit() [all …]
|
/hardware/nxp/nfc/snxxx/halimpl/src/include/ |
D | ese_hal_api.h | 56 typedef void(tHAL_ESE_DATA_CBACK)(uint16_t data_len, uint8_t* p_data); 65 typedef void(tHAL_SPIAPI_WRITE)(uint16_t data_len, uint8_t* p_data); 66 typedef void(tHAL_SPIAPI_READ)(uint16_t data_len, uint8_t* p_data); 67 typedef int(tHAL_SPIAPI_IOCTL)(long arg, void* p_data);
|
D | EseAdaptation.h | 34 static int HalIoctl(long arg, void* p_data); 56 static void HalDeviceContextDataCallback(uint16_t data_len, uint8_t* p_data); 61 static void HalWrite(uint16_t data_len, uint8_t* p_data); 62 static void HalRead(uint16_t data_len, uint8_t* p_data);
|
/hardware/nxp/nfc/pn8x/halimpl/src/include/ |
D | ese_hal_api.h | 56 typedef void(tHAL_ESE_DATA_CBACK)(uint16_t data_len, uint8_t* p_data); 65 typedef void(tHAL_SPIAPI_WRITE)(uint16_t data_len, uint8_t* p_data); 66 typedef void(tHAL_SPIAPI_READ)(uint16_t data_len, uint8_t* p_data); 67 typedef int(tHAL_SPIAPI_IOCTL)(long arg, void* p_data);
|
/hardware/nxp/secure_element/snxxx/1.1/ |
D | VirtualISO.cpp | 190 gsTxRxBuffer.cmdData.p_data = in transmit() 192 if (NULL == gsTxRxBuffer.cmdData.p_data) { in transmit() 198 memcpy(gsTxRxBuffer.cmdData.p_data, data.data(), gsTxRxBuffer.cmdData.len); in transmit() 210 memcpy(&result[0], gsTxRxBuffer.rspData.p_data, gsTxRxBuffer.rspData.len); in transmit() 218 if (NULL != gsTxRxBuffer.cmdData.p_data) { in transmit() 219 phNxpEse_free(gsTxRxBuffer.cmdData.p_data); in transmit() 220 gsTxRxBuffer.cmdData.p_data = NULL; in transmit() 222 if (NULL != gsTxRxBuffer.rspData.p_data) { in transmit() 223 phNxpEse_free(gsTxRxBuffer.rspData.p_data); in transmit() 224 gsTxRxBuffer.rspData.p_data = NULL; in transmit() [all …]
|
/hardware/nxp/secure_element/snxxx/aidl/ |
D | VirtualISO.cpp | 131 gsTxRxBuffer.cmdData.p_data = in transmit() 133 if (NULL == gsTxRxBuffer.cmdData.p_data) { in transmit() 139 memcpy(gsTxRxBuffer.cmdData.p_data, data.data(), gsTxRxBuffer.cmdData.len); in transmit() 151 memcpy(&result[0], gsTxRxBuffer.rspData.p_data, gsTxRxBuffer.rspData.len); in transmit() 160 if (NULL != gsTxRxBuffer.cmdData.p_data) { in transmit() 161 phNxpEse_free(gsTxRxBuffer.cmdData.p_data); in transmit() 162 gsTxRxBuffer.cmdData.p_data = NULL; in transmit() 164 if (NULL != gsTxRxBuffer.rspData.p_data) { in transmit() 165 phNxpEse_free(gsTxRxBuffer.rspData.p_data); in transmit() 166 gsTxRxBuffer.rspData.p_data = NULL; in transmit() [all …]
|
D | SecureElement.cpp | 209 memcpy(&response[0], atrData.p_data, atrData.len); in getAtr() 224 if (atrData.p_data != NULL) { in getAtr() 225 phNxpEse_free(atrData.p_data); in getAtr() 258 gsTxRxBuffer.cmdData.p_data = in transmit() 260 if (NULL == gsTxRxBuffer.cmdData.p_data) { in transmit() 282 memcpy(gsTxRxBuffer.cmdData.p_data, data.data(), gsTxRxBuffer.cmdData.len); in transmit() 293 memcpy(&result[0], gsTxRxBuffer.rspData.p_data, gsTxRxBuffer.rspData.len); in transmit() 307 if (NULL != gsTxRxBuffer.cmdData.p_data) { in transmit() 308 phNxpEse_free(gsTxRxBuffer.cmdData.p_data); in transmit() 309 gsTxRxBuffer.cmdData.p_data = NULL; in transmit() [all …]
|
/hardware/nxp/nfc/snxxx/halimpl/hal/ |
D | phNxpNciHal_ULPDet.cc | 167 int phNxpNciHal_handleULPDetCommand(uint16_t data_len, const uint8_t* p_data) { in phNxpNciHal_handleULPDetCommand() argument 173 phNxpNciHal_setULPDetFlag(p_data[NCI_MSG_INDEX_FEATURE_VALUE]); in phNxpNciHal_handleULPDetCommand() 178 p_data[NCI_OID_INDEX], p_data[NCI_MSG_INDEX_FOR_FEATURE], {status}); in phNxpNciHal_handleULPDetCommand() 180 return p_data[NCI_MSG_LEN_INDEX]; in phNxpNciHal_handleULPDetCommand()
|
/hardware/nxp/uwb/halimpl/hal/ |
D | phNxpUciHal_ext.cc | 452 void phNxpUciHal_handle_set_calibration(const uint8_t *p_data, uint16_t data_len) in phNxpUciHal_handle_set_calibration() argument 463 const uint8_t channel = p_data[UCI_MSG_HDR_SIZE + 0]; in phNxpUciHal_handle_set_calibration() 464 const uint8_t tag = p_data[UCI_MSG_HDR_SIZE + 1]; in phNxpUciHal_handle_set_calibration() 475 gtx_power = std::move(std::vector<uint8_t> {p_data, p_data + data_len}); in phNxpUciHal_handle_set_calibration() 821 bool phNxpUciHal_handle_set_app_config(uint16_t *data_len, uint8_t *p_data) in phNxpUciHal_handle_set_app_config() argument 833 uint16_t payload_len = (p_data[UCI_CMD_LENGTH_PARAM_BYTE1] & 0xFF) | in phNxpUciHal_handle_set_app_config() 834 ((p_data[UCI_CMD_LENGTH_PARAM_BYTE2] & 0xFF) << 8); in phNxpUciHal_handle_set_app_config() 839 if (!p_data[UCI_CMD_NUM_CONFIG_PARAM_BYTE]) { in phNxpUciHal_handle_set_app_config() 843 …uint32_t session_handle = le_bytes_to_cpu<uint32_t>(&p_data[UCI_MSG_SESSION_SET_APP_CONFIG_HANDLE_… in phNxpUciHal_handle_set_app_config() 856 memcpy(uciCmd, p_data, i); in phNxpUciHal_handle_set_app_config() [all …]
|
/hardware/nxp/nfc/snxxx/halimpl/inc/ |
D | phNxpNciHal_Adaptation.h | 32 int phNxpNciHal_write(uint16_t data_len, const uint8_t* p_data); 33 int phNxpNciHal_write_internal(uint16_t data_len, const uint8_t* p_data); 41 int phNxpNciHal_ioctl(long arg, void* p_data);
|