Lines Matching refs:pDevHandle
58 void phTmlNfc_i2c_close(void *pDevHandle) in phTmlNfc_i2c_close() argument
60 if (NULL != pDevHandle) in phTmlNfc_i2c_close()
62 close((intptr_t)pDevHandle); in phTmlNfc_i2c_close()
121 int phTmlNfc_i2c_read(void *pDevHandle, uint8_t * pBuffer, int nNbBytesToRead) in phTmlNfc_i2c_read() argument
132 if (NULL == pDevHandle) in phTmlNfc_i2c_read()
150 FD_SET((intptr_t) pDevHandle, &rfds); in phTmlNfc_i2c_read()
154 ret_Select = select((int)((intptr_t)pDevHandle + (int)1), &rfds, NULL, NULL, &tv); in phTmlNfc_i2c_read()
167 ret_Read = read((intptr_t)pDevHandle, pBuffer, totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
194 ret_Read = read((intptr_t)pDevHandle, pBuffer, totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
215 ret_Read = read ((intptr_t)pDevHandle, (pBuffer + numRead), totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
258 int phTmlNfc_i2c_write(void *pDevHandle, uint8_t * pBuffer, int nNbBytesToWrite) in phTmlNfc_i2c_write() argument
264 if (NULL == pDevHandle) in phTmlNfc_i2c_write()
286 ret = write((intptr_t)pDevHandle, pBuffer + numWrote, numBytes - numWrote); in phTmlNfc_i2c_write()
328 int phTmlNfc_i2c_reset(void *pDevHandle, long level) in phTmlNfc_i2c_reset() argument
333 if (NULL == pDevHandle) in phTmlNfc_i2c_reset()
338 ret = ioctl((intptr_t)pDevHandle, PN544_SET_PWR, level); in phTmlNfc_i2c_reset()