Lines Matching refs:segmentLength
131 uint32_t segmentLength; in LRF_applySettings() local
158 segmentLength = 0; /* Expect region header next */ in LRF_applySettings()
191 segmentLength = state->segmentLength; in LRF_applySettings()
196 totalLength -= segmentLength; in LRF_applySettings()
205 segmentLength = -bufferAvailWords; /* Number of words left of segment */ in LRF_applySettings()
207 totalLength += segmentLength; in LRF_applySettings()
209 state->segmentLength = segmentLength; in LRF_applySettings()
216 segmentLength = 0; in LRF_applySettings()
221 …uming, totalLength:%d, segmentLength:%d address:0x%04X", totalLength, segmentLength, address & 0xf… in LRF_applySettings()
229 while (totalLength + segmentLength > 0) in LRF_applySettings()
233 if (segmentLength == 0) in LRF_applySettings()
256 segmentLength = -bufferAvailWords; /* Signal number of words to skip */ in LRF_applySettings()
257 regionLength = segmentLength; in LRF_applySettings()
264 segmentLength = 0; in LRF_applySettings()
267 segmentLength = 0; in LRF_applySettings()
273 segmentLength = curWord.segment.length; in LRF_applySettings()
275 Log_printf(RclCoreShort, Log_INFO, "New segment, segmentLength:%d", segmentLength); in LRF_applySettings()
279 if (segmentLength == 0 || segmentLength >= totalLength) in LRF_applySettings()
284 totalLength -= segmentLength + 1; in LRF_applySettings()
286 if (segmentLength == 0 || segmentLength >= MAX_REG_CONFIG_LEN) in LRF_applySettings()
294 while (segmentLength > 0) in LRF_applySettings()
300 totalLength += segmentLength; in LRF_applySettings()
302 state->segmentLength = segmentLength; in LRF_applySettings()
321 segmentLength--; in LRF_applySettings()
431 if (numWords > segmentLength) in LRF_applySettings()
654 segmentLength -= numWords; in LRF_applySettings()
663 if (segmentLength < 1) in LRF_applySettings()
699 segmentLength--; in LRF_applySettings()
707 state->segmentLength = 0; in LRF_applySettings()