Lines Matching refs:to_alloc
63 size_t to_alloc, size_t *prev_tail, size_t *b_pos, in wnd_scan() argument
94 end = wpos + to_alloc - *prev_tail; in wnd_scan()
104 if (free_len >= to_alloc) in wnd_scan()
984 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
991 size_t to_alloc0 = to_alloc; in wnd_find()
1009 if (to_alloc > wnd->extent_max) in wnd_find()
1010 to_alloc = wnd->extent_max; in wnd_find()
1066 if (len >= to_alloc && hint + to_alloc <= max_alloc) { in wnd_find()
1072 if (len > to_alloc) in wnd_find()
1073 len = to_alloc; in wnd_find()
1077 to_alloc = len; in wnd_find()
1090 if (e->count.key >= to_alloc) { in wnd_find()
1097 to_alloc = e->count.key; in wnd_find()
1099 to_alloc = e->count.key; in wnd_find()
1109 max_check = e->start.key + to_alloc; in wnd_find()
1119 to_alloc = op - e->start.key; in wnd_find()
1124 if (e->start.key + to_alloc > max_alloc) in wnd_find()
1125 to_alloc = max_alloc - e->start.key; in wnd_find()
1221 wzbit, to_alloc, in wnd_find()
1236 to_alloc, &prev_tail, in wnd_find()
1253 if (prev_tail + wbits >= to_alloc) { in wnd_find()
1274 fnd = wnd_scan(bh->b_data, wbit, wpos, wbits, to_alloc, in wnd_find()
1292 size_t nextmax = hint + to_alloc; in wnd_find()
1309 to_alloc = b_len; in wnd_find()
1314 if (wnd_set_used(wnd, fnd, to_alloc)) in wnd_find()
1317 to_alloc > wnd->extent_max) { in wnd_find()
1318 wnd->extent_max = to_alloc; in wnd_find()
1322 return to_alloc; in wnd_find()