Lines Matching refs:firstSample

499     memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample));  in resetBuffer()
518 …if (sensor->sensorHandle == 0 && !buffer->firstSample.biasPresent && !buffer->firstSample.numFlush… in hostIntfPacketDequeue()
523 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue()
554 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue()
583 if (sensor->curSamples - buffer->firstSample.numSamples >= sensor->minSamples || onDelete) { in queueDiscard()
588 sensor->curSamples -= buffer->firstSample.numSamples; in queueDiscard()
766 for (i = 0; i < triple->samples[0].firstSample.numSamples; i++) { in copyTripleSamplesRaw()
767 if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) { in copyTripleSamplesRaw()
772 if (sensor->buffer.firstSample.numSamples == 0) { in copyTripleSamplesRaw()
787 sensor->buffer.firstSample.numSamples = 1; in copyTripleSamplesRaw()
788 sensor->buffer.firstSample.interrupt = sensor->interrupt; in copyTripleSamplesRaw()
804 numSamples = sensor->buffer.firstSample.numSamples; in copyTripleSamplesRaw()
812 sensor->buffer.firstSample.numSamples++; in copyTripleSamplesRaw()
817 numSamples = sensor->buffer.firstSample.numSamples; in copyTripleSamplesRaw()
825 sensor->buffer.firstSample.numSamples++; in copyTripleSamplesRaw()
838 for (i = 0; i < single->samples[0].firstSample.numSamples; i++) { in copySingleSamples()
839 if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) { in copySingleSamples()
844 if (sensor->buffer.firstSample.numSamples == 0) { in copySingleSamples()
857 sensor->buffer.firstSample.numSamples = 1; in copySingleSamples()
858 sensor->buffer.firstSample.interrupt = sensor->interrupt; in copySingleSamples()
874 numSamples = sensor->buffer.firstSample.numSamples; in copySingleSamples()
880 sensor->buffer.firstSample.numSamples++; in copySingleSamples()
885 numSamples = sensor->buffer.firstSample.numSamples; in copySingleSamples()
891 sensor->buffer.firstSample.numSamples++; in copySingleSamples()
904 for (i = 0; i < triple->samples[0].firstSample.numSamples; i++) { in copyTripleSamples()
905 if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) { in copyTripleSamples()
910 if (sensor->buffer.firstSample.numSamples == 0) { in copyTripleSamples()
921 …if (triple->samples[0].firstSample.biasPresent && triple->samples[0].firstSample.biasSample == i) { in copyTripleSamples()
922 sensor->buffer.firstSample.biasCurrent = triple->samples[0].firstSample.biasCurrent; in copyTripleSamples()
923 sensor->buffer.firstSample.biasPresent = 1; in copyTripleSamples()
924 sensor->buffer.firstSample.biasSample = 0; in copyTripleSamples()
931 sensor->buffer.firstSample.numSamples = 1; in copyTripleSamples()
932 sensor->buffer.firstSample.interrupt = sensor->interrupt; in copyTripleSamples()
948 numSamples = sensor->buffer.firstSample.numSamples; in copyTripleSamples()
956 …if (triple->samples[0].firstSample.biasPresent && triple->samples[0].firstSample.biasSample == 0) { in copyTripleSamples()
957 … sensor->buffer.firstSample.biasCurrent = triple->samples[0].firstSample.biasCurrent; in copyTripleSamples()
958 sensor->buffer.firstSample.biasPresent = 1; in copyTripleSamples()
959 sensor->buffer.firstSample.biasSample = numSamples; in copyTripleSamples()
962 sensor->buffer.firstSample.numSamples++; in copyTripleSamples()
967 numSamples = sensor->buffer.firstSample.numSamples; in copyTripleSamples()
975 …if (triple->samples[0].firstSample.biasPresent && triple->samples[0].firstSample.biasSample == i) { in copyTripleSamples()
976 … sensor->buffer.firstSample.biasCurrent = triple->samples[0].firstSample.biasCurrent; in copyTripleSamples()
977 sensor->buffer.firstSample.biasPresent = 1; in copyTripleSamples()
978 sensor->buffer.firstSample.biasSample = numSamples; in copyTripleSamples()
981 sensor->buffer.firstSample.numSamples++; in copyTripleSamples()
1022 sensor->buffer.firstSample.numFlushes = 1; in queueFlush()
1024 sensor->buffer.firstSample.numFlushes++; in queueFlush()
1040 buffer->firstSample.numFlushes = 1; in fakeFlush()
1202 if (sensor->buffer.firstSample.numFlushes > 0) { in hostIntfHandleEvent()
1207 } else if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) { in hostIntfHandleEvent()
1227 sensor->buffer.firstSample.numSamples = 1; in hostIntfHandleEvent()
1228 sensor->buffer.firstSample.interrupt = sensor->interrupt; in hostIntfHandleEvent()
1232 …sensor->buffer.single[sensor->buffer.firstSample.numSamples].deltaTime = encodeDeltaTime(rtcTime -… in hostIntfHandleEvent()
1234 … sensor->buffer.single[sensor->buffer.firstSample.numSamples].idata = (uint32_t)evtData; in hostIntfHandleEvent()
1235 sensor->buffer.firstSample.numSamples++; in hostIntfHandleEvent()
1278 … if (((const struct TripleAxisDataEvent *)evtData)->samples[0].firstSample.biasPresent) { in hostIntfHandleEvent()