Searched refs:nHandle (Results 1 – 3 of 3) sorted by relevance
/external/libnfc-nxp/Linux_x86/ |
D | phDal4Nfc_i2c.c | 46 int nHandle; member 85 gI2cPortContext.nHandle = (int)(intptr_t) pDalHwContext->p_board_driver; in phDal4Nfc_i2c_set_open_from_handle() 86 DAL_ASSERT_STR(gI2cPortContext.nHandle >= 0, "Bad passed com port handle"); in phDal4Nfc_i2c_set_open_from_handle() 129 close(gI2cPortContext.nHandle); in phDal4Nfc_i2c_close() 130 gI2cPortContext.nHandle = 0; in phDal4Nfc_i2c_close() 150 gI2cPortContext.nHandle = open(pConfig->deviceNode, O_RDWR | O_NOCTTY); in phDal4Nfc_i2c_open_and_configure() 151 if (gI2cPortContext.nHandle < 0) in phDal4Nfc_i2c_open_and_configure() 153 DAL_DEBUG("Open failed: open() returned %d\n", gI2cPortContext.nHandle); in phDal4Nfc_i2c_open_and_configure() 159 *pLinkHandle = (void*)(intptr_t)gI2cPortContext.nHandle; in phDal4Nfc_i2c_open_and_configure() 191 FD_SET(gI2cPortContext.nHandle, &rfds); in phDal4Nfc_i2c_read() [all …]
|
D | phDal4Nfc_uart.c | 53 int nHandle; member 100 gComPortContext.nHandle = (int)(intptr_t) pDalHwContext->p_board_driver; in phDal4Nfc_uart_set_open_from_handle() 101 DAL_ASSERT_STR(gComPortContext.nHandle >= 0, "Bad passed com port handle"); in phDal4Nfc_uart_set_open_from_handle() 130 ret = tcflush(gComPortContext.nHandle, TCIFLUSH); in phDal4Nfc_uart_flush() 146 close(gComPortContext.nHandle); in phDal4Nfc_uart_close() 147 gComPortContext.nHandle = 0; in phDal4Nfc_uart_close() 171 gComPortContext.nHandle = open(pConfig->deviceNode, O_RDWR | O_NOCTTY); in phDal4Nfc_uart_open_and_configure() 172 if (gComPortContext.nHandle < 0) in phDal4Nfc_uart_open_and_configure() 179 *pLinkHandle = (void*)(intptr_t)gComPortContext.nHandle; in phDal4Nfc_uart_open_and_configure() 184 …ret = tcgetattr(gComPortContext.nHandle, &gComPortContext.nIoConfigBackup); /* save the old io con… in phDal4Nfc_uart_open_and_configure() [all …]
|
/external/libnfc-nci/halimpl/pn54x/tml/ |
D | phTmlNfc_i2c.c | 83 int nHandle; in phTmlNfc_i2c_open_and_configure() local 88 nHandle = open((char const *)pConfig->pDevName, O_RDWR); in phTmlNfc_i2c_open_and_configure() 89 if (nHandle < 0) in phTmlNfc_i2c_open_and_configure() 91 NXPLOG_TML_E("_i2c_open() Failed: retval %x",nHandle); in phTmlNfc_i2c_open_and_configure() 96 *pLinkHandle = (void*) ((intptr_t)nHandle); in phTmlNfc_i2c_open_and_configure() 99 phTmlNfc_i2c_reset((void *)((intptr_t)nHandle), 1); in phTmlNfc_i2c_open_and_configure() 101 phTmlNfc_i2c_reset((void *)((intptr_t)nHandle), 0); in phTmlNfc_i2c_open_and_configure() 103 phTmlNfc_i2c_reset((void *)((intptr_t)nHandle), 1); in phTmlNfc_i2c_open_and_configure()
|