Lines Matching refs:prev_tail

63 		       size_t to_alloc, size_t *prev_tail, size_t *b_pos,  in wnd_scan()  argument
72 if (*b_len < *prev_tail) { in wnd_scan()
73 *b_pos = wbit - *prev_tail; in wnd_scan()
74 *b_len = *prev_tail; in wnd_scan()
77 *prev_tail = 0; in wnd_scan()
83 if (*b_len < *prev_tail) { in wnd_scan()
84 *b_pos = wbit - *prev_tail; in wnd_scan()
85 *b_len = *prev_tail; in wnd_scan()
88 *prev_tail = 0; in wnd_scan()
94 end = wpos + to_alloc - *prev_tail; in wnd_scan()
97 free_len = *prev_tail + free_bits - wpos; in wnd_scan()
100 *b_pos = wbit + wpos - *prev_tail; in wnd_scan()
105 return wbit + wpos - *prev_tail; in wnd_scan()
108 *prev_tail += free_bits - wpos; in wnd_scan()
114 *prev_tail = 0; in wnd_scan()
500 size_t prev_tail = 0; in wnd_rescan() local
526 if (prev_tail) { in wnd_rescan()
528 vbo * 8 - prev_tail, in wnd_rescan()
529 prev_tail, true); in wnd_rescan()
530 prev_tail = 0; in wnd_rescan()
536 prev_tail += wbits; in wnd_rescan()
577 if (used > wpos && prev_tail) { in wnd_rescan()
578 wnd_add_free_ext(wnd, wbit + wpos - prev_tail, in wnd_rescan()
579 prev_tail, true); in wnd_rescan()
580 prev_tail = 0; in wnd_rescan()
587 prev_tail = 0; in wnd_rescan()
594 prev_tail += frb - wpos; in wnd_rescan()
598 wnd_add_free_ext(wnd, wbit + wpos - prev_tail, in wnd_rescan()
599 frb + prev_tail - wpos, true); in wnd_rescan()
604 prev_tail = 0; in wnd_rescan()
621 if (prev_tail) in wnd_rescan()
622 wnd_add_free_ext(wnd, wnd->nbits - prev_tail, prev_tail, true); in wnd_rescan()
993 size_t iw, prev_tail, nwnd, wbit, ebit, zbit, zend; in wnd_find() local
1151 prev_tail = 0; in wnd_find()
1167 if (prev_tail > b_len) { in wnd_find()
1168 b_pos = wbit - prev_tail; in wnd_find()
1169 b_len = prev_tail; in wnd_find()
1173 prev_tail = 0; in wnd_find()
1205 prev_tail = 0; in wnd_find()
1215 prev_tail = 0; in wnd_find()
1225 &prev_tail, &b_pos, in wnd_find()
1233 prev_tail = 0; in wnd_find()
1239 to_alloc, &prev_tail, in wnd_find()
1256 if (prev_tail + wbits >= to_alloc) { in wnd_find()
1257 fnd = wbit + wpos - prev_tail; in wnd_find()
1262 prev_tail += wbits; in wnd_find()
1271 prev_tail = 0; in wnd_find()
1278 &prev_tail, &b_pos, &b_len); in wnd_find()
1284 if (b_len < prev_tail) { in wnd_find()
1286 b_len = prev_tail; in wnd_find()
1287 b_pos = max_alloc - prev_tail; in wnd_find()