Lines Matching refs:offs
12 size_t offs = 0; in get_header() local
18 while (offs <= resv_sz - HDR_SZ && in get_header()
20 offs += head->size; in get_header()
26 *offset = offs; in get_header()
134 size_t offs = 0; in validate_reserved() local
150 while (head && !terminated && offs < resv_sz) { in validate_reserved()
166 offs = 0; in validate_reserved()
253 offs += head->size; in validate_reserved()
254 if (resv_sz < offs + sizeof(*head)) { in validate_reserved()
313 size_t offs = 0; in get_starting_head() local
316 head = get_terminator(shead, resv_sz, &offs); in get_starting_head()
320 if (resv_sz - offs < need_sz) { in get_starting_head()
322 resv_sz - offs); in get_starting_head()
323 head = get_header(shead, EXTRA_MAGIC, resv_sz, &offs); in get_starting_head()
324 if (!head || resv_sz - offs < need_sz) { in get_starting_head()
331 fprintf(stderr, "Available space:%zd\n", resv_sz - offs); in get_starting_head()
333 *offset = offs; in get_starting_head()