Lines Matching refs:nHandle
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()
191 ret = fcntl(gComPortContext.nHandle, F_SETFL, 0); /* Makes the read blocking (default). */ in phDal4Nfc_uart_open_and_configure()
215 ret = tcsetattr(gComPortContext.nHandle, TCSANOW, &gComPortContext.nIoConfig); in phDal4Nfc_uart_open_and_configure()
222 ret = ioctl(gComPortContext.nHandle, TIOCMGET, &nComStatus); in phDal4Nfc_uart_open_and_configure()
225 ret = ioctl(gComPortContext.nHandle, TIOCMSET, &nComStatus); in phDal4Nfc_uart_open_and_configure()
332 FD_SET(gComPortContext.nHandle, &rfds); in phDal4Nfc_uart_read()
339 ret = select(gComPortContext.nHandle + 1, &rfds, NULL, NULL, ptv); in phDal4Nfc_uart_read()
350 ret = read(gComPortContext.nHandle, pBuffer + numRead, nNbBytesToRead - numRead); in phDal4Nfc_uart_read()
389 ret = write(gComPortContext.nHandle, pBuffer + numWrote, nNbBytesToWrite - numWrote); in phDal4Nfc_uart_write()