Home
last modified time | relevance | path

Searched refs:p_data (Results 1 – 25 of 69) sorted by relevance

123

/hardware/st/nfc/st21nfc/
Dhal_wrapper.cc42 static void halWrapperDataCallback(uint16_t data_len, uint8_t* p_data);
197 void halWrapperDataCallback(uint16_t data_len, uint8_t* p_data) { in halWrapperDataCallback() argument
212 if ((p_data[0] == 0x60) && (p_data[1] == 0x00)) { in halWrapperDataCallback()
213 mFwUpdateTaskMask = ft_cmd_HwReset(p_data, &mClfMode); in halWrapperDataCallback()
251 if (p_data[3] == 0x01) { in halWrapperDataCallback()
283 mHalWrapperDataCallback(data_len, p_data); in halWrapperDataCallback()
290 if ((p_data[0] == 0x40) && (p_data[1] == 0x01)) { in halWrapperDataCallback()
291 } else if ((p_data[0] == 0x60) && (p_data[1] == 0x06)) { in halWrapperDataCallback()
301 mHalWrapperDataCallback(data_len, p_data); in halWrapperDataCallback()
309 if ((p_data[0] == 0x4f) && (p_data[1] == 0x02)) { in halWrapperDataCallback()
[all …]
/hardware/st/nfc/1.0/
Dhal_wrapper.c48 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/nxp/secure_element/1.0/
DSecureElement.cpp103 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(data.size() * sizeof(uint8_t)); in transmit()
104 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit()
113 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
116 phNxpEse_free(cmdApdu.p_data); in transmit()
117 phNxpEse_free(rspApdu.p_data); in transmit()
148 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(manageChannelCommand.size() * in openLogicalChannel()
150 if (cmdApdu.p_data != NULL) { in openLogicalChannel()
151 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel()
157 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
158 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
[all …]
/hardware/st/secure_element/1.0/
DSecureElement.cpp122 cmdApdu.p_data = (uint8_t*)malloc(data.size() * sizeof(uint8_t)); in transmit()
123 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit()
125 if (aram_channel && (0x03 & cmdApdu.p_data[0]) == aram_channel && in transmit()
140 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
143 free(cmdApdu.p_data); in transmit()
144 free(rspApdu.p_data); in transmit()
180 cmdApdu.p_data = in openLogicalChannel()
182 if (cmdApdu.p_data != NULL) { in openLogicalChannel()
183 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel()
189 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
[all …]
/hardware/st/secure_element/1.2/
DSecureElement.cpp132 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()
181 cmdApdu.p_data = in openLogicalChannel()
183 if (cmdApdu.p_data != NULL) { in openLogicalChannel()
184 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel()
190 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
191 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
[all …]
/hardware/st/secure_element/1.1/
DSecureElement.cpp132 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()
181 cmdApdu.p_data = in openLogicalChannel()
183 if (cmdApdu.p_data != NULL) { in openLogicalChannel()
184 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel()
190 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
191 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
[all …]
/hardware/nxp/secure_element/1.1/
DSecureElement.cpp144 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()
189 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(manageChannelCommand.size() * in openLogicalChannel()
191 if (cmdApdu.p_data != NULL) { in openLogicalChannel()
192 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel()
198 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
199 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
[all …]
/hardware/st/nfc/st21nfc/hal/
Dhal_fd.cc280 uint8_t *p_data) { in ExitHibernateHandler() argument
286 switch (p_data[0]) { in ExitHibernateHandler()
292 if ((p_data[1] == 0x1) && (p_data[3] == 0x0) && in ExitHibernateHandler()
299 } else if ((p_data[1] == 0x1) && (p_data[3] == 0x0) && in ExitHibernateHandler()
311 } else if (p_data[3] != 0x00) { in ExitHibernateHandler()
319 if ((p_data[1] == 0x02) && (p_data[3] == 0x00) && in ExitHibernateHandler()
324 } else if (p_data[3] != 0x00) { in ExitHibernateHandler()
331 if (p_data[3] == 0x2) { in ExitHibernateHandler()
337 } else if (p_data[3] == 0xa0) { in ExitHibernateHandler()
355 void UpdateHandler(HALHANDLE mHalHandle, uint16_t data_len, uint8_t *p_data) { in UpdateHandler() argument
[all …]
Dhal_fd.h66 uint8_t* p_data);
67 void UpdateHandler(HALHANDLE mHalHandle, uint16_t data_len, uint8_t* p_data);
69 uint8_t* p_data);
/hardware/nxp/secure_element/ls_client/src/
DLsLib.cpp160 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/libese-spi/p73/lib/
DphNxpEseProto7816_3.cpp32 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/nfc/halimpl/src/include/
Dese_hal_api.h56 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);
DEseAdaptation.h75 static int HalIoctl(long arg, void* p_data);
102 static void HalDeviceContextDataCallback(uint16_t data_len, uint8_t* p_data);
107 static void HalWrite(uint16_t data_len, uint8_t* p_data);
108 static void HalRead(uint16_t data_len, uint8_t* p_data);
/hardware/nxp/nfc/halimpl/inc/
DphNxpNciHal_Adaptation.h36 int phNxpNciHal_write(uint16_t data_len, const uint8_t* p_data);
37 int phNxpNciHal_write_internal(uint16_t data_len, const uint8_t* p_data);
44 int phNxpNciHal_ioctl(long arg, void* p_data);
/hardware/qcom/bt/msm8992/libbt-vendor/src/
Dhci_uart.c392 int userial_vendor_ioctl(userial_vendor_ioctl_op_t op, int *p_data) in userial_vendor_ioctl() argument
410 err = ioctl(vnd_userial.fd, USERIAL_IOCTL_BT_WAKE_GET_ST, p_data); in userial_vendor_ioctl()
415 *p_data |=TIOCM_RTS; in userial_vendor_ioctl()
416 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
421 ioctl(vnd_userial.fd, TIOCMGET, p_data); in userial_vendor_ioctl()
422 *p_data &= ~TIOCM_RTS; in userial_vendor_ioctl()
423 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
/hardware/qcom/bt/msm8996/libbt-vendor/src/
Dhci_uart.c396 int userial_vendor_ioctl(userial_vendor_ioctl_op_t op, int *p_data) in userial_vendor_ioctl() argument
414 err = ioctl(vnd_userial.fd, USERIAL_IOCTL_BT_WAKE_GET_ST, p_data); in userial_vendor_ioctl()
419 *p_data |=TIOCM_RTS; in userial_vendor_ioctl()
420 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
425 ioctl(vnd_userial.fd, TIOCMGET, p_data); in userial_vendor_ioctl()
426 *p_data &= ~TIOCM_RTS; in userial_vendor_ioctl()
427 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
/hardware/qcom/bt/msm8909/libbt-vendor/src/
Dhci_uart.c392 int userial_vendor_ioctl(userial_vendor_ioctl_op_t op, int *p_data) in userial_vendor_ioctl() argument
410 err = ioctl(vnd_userial.fd, USERIAL_IOCTL_BT_WAKE_GET_ST, p_data); in userial_vendor_ioctl()
415 *p_data |=TIOCM_RTS; in userial_vendor_ioctl()
416 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
421 ioctl(vnd_userial.fd, TIOCMGET, p_data); in userial_vendor_ioctl()
422 *p_data &= ~TIOCM_RTS; in userial_vendor_ioctl()
423 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
/hardware/qcom/sdm845/bt/libbt-vendor/src/
Dhci_uart.c396 int userial_vendor_ioctl(userial_vendor_ioctl_op_t op, int *p_data) in userial_vendor_ioctl() argument
414 err = ioctl(vnd_userial.fd, USERIAL_IOCTL_BT_WAKE_GET_ST, p_data); in userial_vendor_ioctl()
419 *p_data |=TIOCM_RTS; in userial_vendor_ioctl()
420 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
425 ioctl(vnd_userial.fd, TIOCMGET, p_data); in userial_vendor_ioctl()
426 *p_data &= ~TIOCM_RTS; in userial_vendor_ioctl()
427 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
/hardware/qcom/bt/msm8998/libbt-vendor/src/
Dhci_uart.c399 int userial_vendor_ioctl(userial_vendor_ioctl_op_t op, int *p_data) in userial_vendor_ioctl() argument
417 err = ioctl(vnd_userial.fd, USERIAL_IOCTL_BT_WAKE_GET_ST, p_data); in userial_vendor_ioctl()
422 *p_data |=TIOCM_RTS; in userial_vendor_ioctl()
423 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
428 ioctl(vnd_userial.fd, TIOCMGET, p_data); in userial_vendor_ioctl()
429 *p_data &= ~TIOCM_RTS; in userial_vendor_ioctl()
430 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/
Dhci_uart.c395 int userial_vendor_ioctl(userial_vendor_ioctl_op_t op, int *p_data) in userial_vendor_ioctl() argument
413 err = ioctl(vnd_userial.fd, USERIAL_IOCTL_BT_WAKE_GET_ST, p_data); in userial_vendor_ioctl()
418 *p_data |=TIOCM_RTS; in userial_vendor_ioctl()
419 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
424 ioctl(vnd_userial.fd, TIOCMGET, p_data); in userial_vendor_ioctl()
425 *p_data &= ~TIOCM_RTS; in userial_vendor_ioctl()
426 err = ioctl(vnd_userial.fd, TIOCMSET, p_data); in userial_vendor_ioctl()
/hardware/nxp/secure_element/libese-spi/p73/inc/
DphNxpEse_Api.h36 uint8_t* p_data; /*!< pointer to a buffer */ member
103 ESESTATUS phNxpEse_spiIoctl(uint64_t ioctlType, void* p_data);
/hardware/nxp/nfc/halimpl/src/adaptation/
DEseAdaptation.cpp216 uint8_t* p_data) { in HalDeviceContextDataCallback() argument
219 if (mHalDataCallback) mHalDataCallback(data_len, p_data); in HalDeviceContextDataCallback()
260 int EseAdaptation::HalIoctl(long arg, void* p_data) { in HalIoctl() argument
264 ese_nxp_IoctlInOutData_t* pInpOutData = (ese_nxp_IoctlInOutData_t*)p_data; in HalIoctl()
/hardware/libhardware/include/hardware/
Dnfc.h86 typedef void (nfc_stack_data_callback_t) (uint16_t data_len, uint8_t* p_data);
124 int (*write)(const struct nfc_nci_device *p_dev, uint16_t data_len, const uint8_t *p_data);
/hardware/nxp/secure_element/libese-spi/p73/pal/
DphNxpEsePal.cpp189 void phPalEse_print_packet(const char* pString, const uint8_t* p_data, in phPalEse_print_packet() argument
196 snprintf(&print_buffer[i * 2], 3, "%02X", p_data[i]); in phPalEse_print_packet()
/hardware/interfaces/nfc/1.0/default/
DNfc.h42 static void dataCallback(uint16_t data_len, uint8_t* p_data) { in dataCallback()
44 data.setToExternal(p_data, data_len); in dataCallback()

123