Home
last modified time | relevance | path

Searched refs:totLength (Results 1 – 1 of 1) sorted by relevance

/device/google/contexthub/firmware/os/core/
DnanohubCommand.c733 static int fillBuffer(void *tx, uint32_t totLength, uint32_t *wakeup, uint32_t *nonwakeup) in fillBuffer() argument
775 … if ((!totLength || (isSensorEvent(firstPacket->evtType) && isSensorEvent(packet->evtType))) && in fillBuffer()
776 totLength + length <= sizeof(struct HostIntfDataBuffer)) { in fillBuffer()
777 memcpy(buf + totLength, &mTxNext, length); in fillBuffer()
778 totLength += length; in fillBuffer()
792 return totLength; in fillBuffer()
899 uint32_t totLength = 0; in readEvent() local
903 if ((totLength = atomicReadByte(&mTxCurrLength))) { in readEvent()
904 memcpy(tx, &mTxCurr, totLength); in readEvent()
907 return totLength; in readEvent()
[all …]