Lines Matching refs:pos
22 int pos;
163 while (desc->pos >= 0 || desc->filepos >= 0 || desc->snamepos >= 0) {
165 if (desc->pos >= 0) {
168 descpos = &desc->pos;
220 if (desc->pos != -1 && desc->pos == desc->len)
221 desc->pos = -1;
256 desc->pos = 0;
267 assert_se(desc->pos == -1 && desc->filepos == -1 && desc->snamepos == -1);
288 size_t offset = 0, len, pos;
311 offset = pos = 4;
313 while (pos < len && options[pos] != SD_DHCP_OPTION_END) {
315 options[pos],
316 options[pos + 1],
317 &options[pos + 2]) >= 0);
319 if (options[pos] == SD_DHCP_OPTION_PAD)
320 pos++;
322 pos += 2 + options[pos + 1];
324 if (pos < len)
325 assert_se(offset == pos);
347 for (i = 0; i < pos - 8; i++) {