Lines Matching refs:numWrote
248 ** Returns numWrote - number of successfully written bytes
255 int numWrote = 0;
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;