Lines Matching refs:readCounter
3704 size_t readCounter = 0; in buildMpuEvent() local
3787 readCounter = 24; in buildMpuEvent()
3790 readCounter = rsize + mLeftOverBufferSize; in buildMpuEvent()
3806 checkBatchEnabled(), *((short *) rdata), nbyte, (int)rsize, readCounter); in buildMpuEvent()
3813 while (readCounter > 0) { in buildMpuEvent()
3833 readCounter -= BYTES_PER_SENSOR_PACKET; in buildMpuEvent()
3857 readCounter -= BYTES_QUAT_DATA; in buildMpuEvent()
3866 readCounter -= BYTES_QUAT_DATA; in buildMpuEvent()
3875 readCounter -= BYTES_PER_SENSOR_PACKET; in buildMpuEvent()
3882 readCounter -= BYTES_PER_SENSOR_PACKET; in buildMpuEvent()
3892 readCounter -= BYTES_PER_SENSOR_PACKET; in buildMpuEvent()
3901 readCounter -= BYTES_PER_SENSOR_PACKET; in buildMpuEvent()
3911 readCounter -= BYTES_PER_SENSOR_PACKET; in buildMpuEvent()
3924 readCounter -= BYTES_PER_SENSOR_PACKET; in buildMpuEvent()
3936 if ((readCounter != 0) && ((checkBatchEnabled() && (rsize == (ssize_t)nbyte)) || in buildMpuEvent()
3938 &&(readCounter <= storeBufferSize)) { in buildMpuEvent()
3939 …(0, "!!! not enough data readCounter=%d, expected nbyte=%d, rsize=%d", readCounter, nbyte, (int)rs… in buildMpuEvent()
3940 memcpy(mLeftOverBuffer, rdata, readCounter); in buildMpuEvent()
3949 mLeftOverBufferSize = readCounter; in buildMpuEvent()
3950 readCounter = 0; in buildMpuEvent()
3954 readCounter = 0; in buildMpuEvent()