Lines Matching refs:to_alloc
68 size_t to_alloc, size_t *prev_tail, size_t *b_pos, in wnd_scan() argument
99 end = wpos + to_alloc - *prev_tail; in wnd_scan()
109 if (free_len >= to_alloc) in wnd_scan()
959 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
966 size_t to_alloc0 = to_alloc; in wnd_find()
985 if (to_alloc > wnd->extent_max) in wnd_find()
986 to_alloc = wnd->extent_max; in wnd_find()
1042 if (len >= to_alloc && hint + to_alloc <= max_alloc) { in wnd_find()
1048 if (len > to_alloc) in wnd_find()
1049 len = to_alloc; in wnd_find()
1053 to_alloc = len; in wnd_find()
1066 if (e->count.key >= to_alloc) { in wnd_find()
1073 to_alloc = e->count.key; in wnd_find()
1075 to_alloc = e->count.key; in wnd_find()
1085 max_check = e->start.key + to_alloc; in wnd_find()
1095 to_alloc = op - e->start.key; in wnd_find()
1100 if (e->start.key + to_alloc > max_alloc) in wnd_find()
1101 to_alloc = max_alloc - e->start.key; in wnd_find()
1199 to_alloc, &prev_tail, in wnd_find()
1213 to_alloc, &prev_tail, in wnd_find()
1230 if (prev_tail + wbits >= to_alloc) { in wnd_find()
1253 fnd = wnd_scan(buf, wbit, wpos, wbits, to_alloc, &prev_tail, in wnd_find()
1271 size_t nextmax = hint + to_alloc; in wnd_find()
1288 to_alloc = b_len; in wnd_find()
1293 if (wnd_set_used(wnd, fnd, to_alloc)) in wnd_find()
1296 to_alloc > wnd->extent_max) { in wnd_find()
1297 wnd->extent_max = to_alloc; in wnd_find()
1301 return to_alloc; in wnd_find()