Home
last modified time | relevance | path

Searched refs:pDevHandle (Results 1 – 20 of 20) sorted by relevance

/hardware/nxp/nfc/halimpl/tml/
DphTmlNfc_i2c.h29 void phTmlNfc_i2c_close(void* pDevHandle);
32 int phTmlNfc_i2c_read(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToRead);
33 int phTmlNfc_i2c_write(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToWrite);
34 int phTmlNfc_i2c_reset(void* pDevHandle, long level);
46 NFCSTATUS phTmlNfc_i2c_get_p61_power_state(void* pDevHandle);
47 NFCSTATUS phTmlNfc_i2c_set_p61_power_state(void* pDevHandle, long arg);
48 NFCSTATUS phTmlNfc_set_pid(void* pDevHandle, long pid);
49 NFCSTATUS phTmlNfc_set_power_scheme(void* pDevHandle, long id);
50 NFCSTATUS phTmlNfc_get_ese_access(void* pDevHandle, long timeout);
51 NFCSTATUS phTmlNfc_i2c_set_Jcop_dwnld_state(void* pDevHandle, long level);
[all …]
DphTmlNfc_i2c.cc58 void phTmlNfc_i2c_close(void* pDevHandle) { in phTmlNfc_i2c_close() argument
59 if (NULL != pDevHandle) { in phTmlNfc_i2c_close()
60 close((intptr_t)pDevHandle); in phTmlNfc_i2c_close()
118 int phTmlNfc_i2c_read(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToRead) { in phTmlNfc_i2c_read() argument
127 if (NULL == pDevHandle) { in phTmlNfc_i2c_read()
141 FD_SET((intptr_t)pDevHandle, &rfds); in phTmlNfc_i2c_read()
146 select((int)((intptr_t)pDevHandle + (int)1), &rfds, NULL, NULL, &tv); in phTmlNfc_i2c_read()
154 ret_Read = read((intptr_t)pDevHandle, pBuffer, totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
173 read((intptr_t)pDevHandle, pBuffer, totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
189 ret_Read = read((intptr_t)pDevHandle, (pBuffer + numRead), in phTmlNfc_i2c_read()
[all …]
Dspi_spm.cc42 int phPalEse_spi_ioctl(phPalEse_ControlCode_t eControlCode,void *pDevHandle, long level) in phPalEse_spi_ioctl() argument
47 if (NULL == pDevHandle) { in phPalEse_spi_ioctl()
53 ret = ioctl((intptr_t)pDevHandle, P61_SET_SPI_PWR, level); in phPalEse_spi_ioctl()
59 ret = ioctl((intptr_t)pDevHandle, P61_GET_PWR_STATUS, level); in phPalEse_spi_ioctl()
74 ret = ioctl((intptr_t)pDevHandle, P61_SET_SPI_PWR, 1); in phPalEse_spi_ioctl()
DphTmlNfc.cc105 pConfig, &(gpphTmlNfc_Context->pDevHandle)); in phTmlNfc_Init()
109 gpphTmlNfc_Context->pDevHandle = NULL; in phTmlNfc_Init()
331 if (NULL != gpphTmlNfc_Context->pDevHandle) { in phTmlNfc_TmlThread()
334 phTmlNfc_i2c_read(gpphTmlNfc_Context->pDevHandle, temp, 260); in phTmlNfc_TmlThread()
446 if (NULL != gpphTmlNfc_Context->pDevHandle) { in phTmlNfc_TmlWriterThread()
454 phTmlNfc_i2c_write(gpphTmlNfc_Context->pDevHandle, in phTmlNfc_TmlWriterThread()
558 if (NULL != gpphTmlNfc_Context->pDevHandle) { in phTmlNfc_CleanUp()
559 (void)phTmlNfc_i2c_reset(gpphTmlNfc_Context->pDevHandle, 0); in phTmlNfc_CleanUp()
565 phTmlNfc_i2c_close(gpphTmlNfc_Context->pDevHandle); in phTmlNfc_CleanUp()
566 gpphTmlNfc_Context->pDevHandle = NULL; in phTmlNfc_CleanUp()
[all …]
Dspi_spm.h55 int phPalEse_spi_ioctl(phPalEse_ControlCode_t eControlCode,void *pDevHandle, long level);
DphTmlNfc.h157 void* pDevHandle; /* Pointer to Device Handle */ member
/hardware/nxp/secure_element/libese-spi/p73/pal/
DphNxpEsePal.cpp61 void phPalEse_close(void* pDevHandle) { in phPalEse_close() argument
62 if (NULL != pDevHandle) { in phPalEse_close()
64 phPalEse_spi_close(pDevHandle); in phPalEse_close()
111 int phPalEse_read(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToRead) { in phPalEse_read() argument
114 ret = phPalEse_spi_read(pDevHandle, pBuffer, nNbBytesToRead); in phPalEse_read()
136 int phPalEse_write(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToWrite) { in phPalEse_write() argument
139 if (NULL == pDevHandle) { in phPalEse_write()
143 numWrote = phPalEse_spi_write(pDevHandle, pBuffer, nNbBytesToWrite); in phPalEse_write()
163 ESESTATUS phPalEse_ioctl(phPalEse_ControlCode_t eControlCode, void* pDevHandle, in phPalEse_ioctl() argument
169 if (NULL == pDevHandle) { in phPalEse_ioctl()
[all …]
DphNxpEsePal.h82 void* pDevHandle; member
94 void phPalEse_close(void* pDevHandle);
119 int phPalEse_read(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToRead);
133 int phPalEse_write(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToWrite);
149 ESESTATUS phPalEse_ioctl(phPalEse_ControlCode_t eControlCode, void* pDevHandle,
/hardware/nxp/secure_element/libese-spi/p73/pal/spi/
DphNxpEsePal_spi.cpp67 void phPalEse_spi_close(void* pDevHandle) { in phPalEse_spi_close() argument
85 if (NULL != pDevHandle) { in phPalEse_spi_close()
86 close((intptr_t)pDevHandle); in phPalEse_spi_close()
179 pConfig->pDevHandle = NULL; in phPalEse_spi_open_and_configure()
183 pConfig->pDevHandle = (void*)((intptr_t)nHandle); in phPalEse_spi_open_and_configure()
202 int phPalEse_spi_read(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToRead) { in phPalEse_spi_read() argument
206 ret = read((intptr_t)pDevHandle, (void*)pBuffer, (nNbBytesToRead)); in phPalEse_spi_read()
226 int phPalEse_spi_write(void* pDevHandle, uint8_t* pBuffer, in phPalEse_spi_write() argument
231 if (NULL == pDevHandle) { in phPalEse_spi_write()
246 ret = write((intptr_t)pDevHandle, pBuffer + numWrote, in phPalEse_spi_write()
[all …]
DphNxpEsePal_spi.h66 void phPalEse_spi_close(void* pDevHandle);
91 int phPalEse_spi_read(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToRead);
105 int phPalEse_spi_write(void* pDevHandle, uint8_t* pBuffer, int nNbBytesToWrite);
122 void* pDevHandle, long level);
/hardware/st/secure_element/ese-spi-driver/
DStEseApi.cc90 if (intptr_t(tSpiDriver.pDevHandle) > 0) { in StEse_init()
91 ese_ctxt.pDevHandle = tSpiDriver.pDevHandle; in StEse_init()
96 ese_ctxt.pDevHandle = tSpiDriver.pDevHandle; in StEse_init()
108 if (NULL != ese_ctxt.pDevHandle) { in StEse_init()
109 SpiLayerInterface_close(ese_ctxt.pDevHandle); in StEse_init()
214 if (NULL != ese_ctxt.pDevHandle) { in StEse_close()
215 SpiLayerInterface_close(ese_ctxt.pDevHandle); in StEse_close()
DSpiLayerInterface.cc55 tSpiDriver->pDevHandle = (void*)((intptr_t)DevHandle); in SpiLayerInterface_init()
138 void SpiLayerInterface_close(void* pDevHandle) { in SpiLayerInterface_close() argument
139 if (NULL != pDevHandle) { in SpiLayerInterface_close()
DSpiLayerInterface.h39 void* pDevHandle; member
67 void SpiLayerInterface_close(void* pDevHandle);
DStEseApi.h51 void* pDevHandle; member
/hardware/nxp/secure_element/libese-spi/p73/lib/
DphNxpEse_Api.cpp34 static int phNxpEse_readPacket(void* pDevHandle, uint8_t* pBuffer,
223 nxpese_ctxt.pDevHandle = tPalConfig.pDevHandle; in phNxpEse_open()
227 wSpmStatus = phNxpEse_SPM_Init(nxpese_ctxt.pDevHandle); in phNxpEse_open()
312 if (NULL != nxpese_ctxt.pDevHandle) { in phNxpEse_open()
313 phPalEse_close(nxpese_ctxt.pDevHandle); in phNxpEse_open()
393 nxpese_ctxt.pDevHandle = tPalConfig.pDevHandle; in phNxpEse_openPrioSession()
397 wSpmStatus = phNxpEse_SPM_Init(nxpese_ctxt.pDevHandle); in phNxpEse_openPrioSession()
470 phPalEse_ioctl(phPalEse_e_ResetDevice, nxpese_ctxt.pDevHandle, 2); in phNxpEse_openPrioSession()
477 phPalEse_ioctl(phPalEse_e_EnableLog, nxpese_ctxt.pDevHandle, 0); in phNxpEse_openPrioSession()
483 phPalEse_ioctl(phPalEse_e_EnablePollMode, nxpese_ctxt.pDevHandle, 1); in phNxpEse_openPrioSession()
[all …]
DphNxpEse_Internal.h81 void* pDevHandle; member
/hardware/nxp/secure_element/libese-spi/p73/spm/
DphNxpEse_Spm.h52 ESESTATUS phNxpEse_SPM_Init(void* pDevHandle);
DphNxpEse_Spm.cpp58 ESESTATUS phNxpEse_SPM_Init(void* pDevHandle) { in phNxpEse_SPM_Init() argument
60 pEseDeviceHandle = pDevHandle; in phNxpEse_SPM_Init()
/hardware/nxp/nfc/halimpl/hal/
DphNxpNciHal.cc80 extern int phPalEse_spi_ioctl(phPalEse_ControlCode_t eControlCode,void *pDevHandle, long level);
2143 if (NULL != gpphTmlNfc_Context->pDevHandle) { in phNxpNciHal_close()
2549 ret = phPalEse_spi_ioctl(phPalEse_e_ChipRst, gpphTmlNfc_Context->pDevHandle, level); in phNxpNciHal_ioctl()
2556 ret = phPalEse_spi_ioctl(phPalEse_e_SetPowerScheme,gpphTmlNfc_Context->pDevHandle,level); in phNxpNciHal_ioctl()
2559 ret = phPalEse_spi_ioctl(phPalEse_e_GetSPMStatus, gpphTmlNfc_Context->pDevHandle,level); in phNxpNciHal_ioctl()
2562 ret = phPalEse_spi_ioctl(phPalEse_e_GetEseAccess, gpphTmlNfc_Context->pDevHandle, level); in phNxpNciHal_ioctl()
2565 … ret = phPalEse_spi_ioctl(phPalEse_e_SetJcopDwnldState, gpphTmlNfc_Context->pDevHandle, level); in phNxpNciHal_ioctl()
2568 … ret = phPalEse_spi_ioctl(phPalEse_e_DisablePwrCntrl, gpphTmlNfc_Context->pDevHandle, level); in phNxpNciHal_ioctl()
/hardware/nxp/nfc/halimpl/self-test/
DphNxpNciHal_SelfTest.cc1262 if (NULL != gpphTmlNfc_Context->pDevHandle) { in phNxpNciHal_TestMode_close()