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()
954 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
961 size_t to_alloc0 = to_alloc; in wnd_find()
980 if (to_alloc > wnd->extent_max) in wnd_find()
981 to_alloc = wnd->extent_max; in wnd_find()
1037 if (len >= to_alloc && hint + to_alloc <= max_alloc) { in wnd_find()
1043 if (len > to_alloc) in wnd_find()
1044 len = to_alloc; in wnd_find()
1048 to_alloc = len; in wnd_find()
1061 if (e->count.key >= to_alloc) { in wnd_find()
1068 to_alloc = e->count.key; in wnd_find()
1070 to_alloc = e->count.key; in wnd_find()
1080 max_check = e->start.key + to_alloc; in wnd_find()
1090 to_alloc = op - e->start.key; in wnd_find()
1095 if (e->start.key + to_alloc > max_alloc) in wnd_find()
1096 to_alloc = max_alloc - e->start.key; in wnd_find()
1194 to_alloc, &prev_tail, in wnd_find()
1208 to_alloc, &prev_tail, in wnd_find()
1225 if (prev_tail + wbits >= to_alloc) { in wnd_find()
1248 fnd = wnd_scan(buf, wbit, wpos, wbits, to_alloc, &prev_tail, in wnd_find()
1266 size_t nextmax = hint + to_alloc; in wnd_find()
1283 to_alloc = b_len; in wnd_find()
1288 if (wnd_set_used(wnd, fnd, to_alloc)) in wnd_find()
1291 to_alloc > wnd->extent_max) { in wnd_find()
1292 wnd->extent_max = to_alloc; in wnd_find()
1296 return to_alloc; in wnd_find()