Home | History | Annotate | Download | only in libsensors_iio

Lines Matching full:readcounter

3998     ssize_t readCounter = 0;
4090 readCounter = rsize + mLeftOverBufferSize;
4091 LOGV_IF(0, "HAL:input readCounter set=%d", (int)readCounter);
4093 if(readCounter < MAX_READ_SIZE) {
4095 if (readCounter >= BYTES_PER_SENSOR) {
4099 readCounter -= BYTES_PER_SENSOR;
4108 readCounter -= BYTES_PER_SENSOR;
4119 mLeftOverBufferSize = readCounter;
4138 "HAL:input b=%d rdata= %d nbyte= %d rsize= %d readCounter= %d",
4139 checkBatchEnabled(), *((short *) rdata), nbyte, (int)rsize, (int)readCounter);
4147 while (readCounter > 0) {
4166 // readCounter is decrement by 24 because DATA_FORMAT_STEP only applies in batch mode
4167 readCounter -= BYTES_PER_SENSOR_PACKET;
4178 readCounter -= BYTES_PER_SENSOR;
4186 readCounter -= BYTES_PER_SENSOR;
4195 if (readCounter >= BYTES_QUAT_DATA) {
4202 readCounter -= BYTES_QUAT_DATA;
4210 if (readCounter >= BYTES_QUAT_DATA) {
4217 readCounter -= BYTES_QUAT_DATA;
4225 if (readCounter >= BYTES_PER_SENSOR_PACKET) {
4232 readCounter -= BYTES_PER_SENSOR_PACKET;
4240 if (readCounter >= BYTES_PER_SENSOR_PACKET) {
4244 readCounter -= BYTES_PER_SENSOR_PACKET;
4253 if (readCounter >= BYTES_PER_SENSOR_PACKET) {
4260 readCounter -= BYTES_PER_SENSOR_PACKET;
4267 if (readCounter >= BYTES_PER_SENSOR_PACKET) {
4274 readCounter -= BYTES_PER_SENSOR_PACKET;
4282 if (readCounter >= BYTES_PER_SENSOR_PACKET) {
4290 readCounter -= BYTES_PER_SENSOR_PACKET;
4302 if (readCounter >= BYTES_PER_SENSOR_PACKET) {
4309 readCounter -= BYTES_PER_SENSOR_PACKET;
4313 readCounter -= BYTES_PER_SENSOR;
4319 if (readCounter >= BYTES_QUAT_DATA) {
4329 readCounter -= BYTES_PER_SENSOR_PACKET;
4339 LOGV_IF(ENG_VERBOSE && INPUT_DATA, "HAL: input data doneFlag is zero, readCounter=%d", (int)readCounter);
4342 LOGV_IF(ENG_VERBOSE && INPUT_DATA, "HAL: input data doneFlag is set, readCounter=%d", (int)readCounter);
4346 if (readCounter != 0) {
4348 LOGV_IF(0, "Not enough data readCounter=%d, expected nbyte=%d, rsize=%d", (int)readCounter, nbyte, (int)rsize);
4355 readCounter -= BYTES_PER_SENSOR;
4360 if (readCounter == 0) {
4367 memcpy(mLeftOverBuffer, rdata, readCounter);
4376 mLeftOverBufferSize = readCounter;
4377 readCounter = 0;
4381 readCounter = 0;