Lines Matching refs:nHandle
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()
194 ret = select(gI2cPortContext.nHandle + 1, &rfds, NULL, NULL, &tv); in phDal4Nfc_i2c_read()
205 ret = read(gI2cPortContext.nHandle, pBuffer + numRead, nNbBytesToRead - numRead); in phDal4Nfc_i2c_read()
241 ret = write(gI2cPortContext.nHandle, pBuffer + numWrote, nNbBytesToWrite - numWrote); in phDal4Nfc_i2c_write()
272 return ioctl(gI2cPortContext.nHandle, PN544_SET_PWR, level); in phDal4Nfc_i2c_reset()