Lines Matching refs:to_alloc
63 size_t to_alloc, size_t *prev_tail, size_t *b_pos,
94 end = wpos + to_alloc - *prev_tail;
104 if (free_len >= to_alloc)
987 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint,
994 size_t to_alloc0 = to_alloc;
1012 if (to_alloc > wnd->extent_max)
1013 to_alloc = wnd->extent_max;
1069 if (len >= to_alloc && hint + to_alloc <= max_alloc) {
1075 if (len > to_alloc)
1076 len = to_alloc;
1080 to_alloc = len;
1093 if (e->count.key >= to_alloc) {
1100 to_alloc = e->count.key;
1102 to_alloc = e->count.key;
1112 max_check = e->start.key + to_alloc;
1122 to_alloc = op - e->start.key;
1127 if (e->start.key + to_alloc > max_alloc)
1128 to_alloc = max_alloc - e->start.key;
1224 wzbit, to_alloc,
1239 to_alloc, &prev_tail,
1256 if (prev_tail + wbits >= to_alloc) {
1277 fnd = wnd_scan(bh->b_data, wbit, wpos, wbits, to_alloc,
1293 * Prepare to scan range [0 hint + to_alloc).
1295 size_t nextmax = hint + to_alloc;
1312 to_alloc = b_len;
1317 if (wnd_set_used(wnd, fnd, to_alloc))
1320 to_alloc > wnd->extent_max) {
1321 wnd->extent_max = to_alloc;
1325 return to_alloc;