Searched refs:dataToRead (Results 1 – 1 of 1) sorted by relevance
2833 register int dataToRead, wrapgap, bytesAvailable; in receive_data() local2911 dataToRead = (wrapgap < bytesAvailable) ? wrapgap : bytesAvailable; in receive_data()2917 if ((rc + dataToRead) > TTY_FLIPBUF_SIZE) in receive_data()2918 dataToRead = TTY_FLIPBUF_SIZE - rc; in receive_data()2920 if (dataToRead == 0) in receive_data()2928 if ((memcpy(rptr, ch->rxptr + tail, dataToRead)) != rptr) in receive_data()2931 rc += dataToRead; in receive_data()2932 rptr += dataToRead; in receive_data()2933 tail = (tail + dataToRead) & wrapmask; in receive_data()2934 bytesAvailable -= dataToRead; in receive_data()