Searched refs:numWrote (Results 1 - 3 of 3) sorted by relevance

/external/libnfc-nci/halimpl/pn54x/tml/
H A DphTmlNfc_i2c.c248 ** Returns numWrote - number of successfully written bytes
255 int numWrote = 0; local
267 while (numWrote < nNbBytesToWrite)
271 if(nNbBytesToWrite - numWrote > FRAGMENTSIZE_MAX)
273 numBytes = numWrote+ FRAGMENTSIZE_MAX;
280 ret = write((intptr_t)pDevHandle, pBuffer + numWrote, numBytes - numWrote);
283 numWrote += ret;
284 if(fragmentation_enabled == I2C_FRAGMENTATION_ENABLED && numWrote < nNbBytesToWrite)
305 return numWrote;
[all...]
/external/libnfc-nxp/Linux_x86/
H A DphDal4Nfc_i2c.c235 int numWrote = 0; local
240 while (numWrote < nNbBytesToWrite) {
241 ret = write(gI2cPortContext.nHandle, pBuffer + numWrote, nNbBytesToWrite - numWrote);
244 numWrote += ret;
257 return numWrote;
H A DphDal4Nfc_uart.c383 int numWrote = 0; local
388 while (numWrote < nNbBytesToWrite) {
389 ret = write(gComPortContext.nHandle, pBuffer + numWrote, nNbBytesToWrite - numWrote);
392 numWrote += ret;
405 return numWrote;

Completed in 184 milliseconds