Lines Matching defs:hint
987 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint,
1016 if (wnd->zone_bit <= hint && hint < wnd->zone_end)
1017 hint = wnd->zone_end;
1022 if (hint >= max_alloc)
1023 hint = 0;
1034 if (!hint)
1037 /* Use hint: Enumerate extents by start >= hint. */
1044 if (e->start.key == hint)
1047 if (e->start.key < hint) {
1065 if (e->start.key + e->count.key > hint) {
1066 /* We have found extension with 'hint' inside. */
1067 size_t len = e->start.key + e->count.key - hint;
1069 if (len >= to_alloc && hint + to_alloc <= max_alloc) {
1070 fnd = hint;
1078 if (hint + len <= max_alloc) {
1079 fnd = hint;
1144 /* At most two ranges [hint, max_alloc) + [0, hint). */
1148 iw = hint >> log2_bits;
1150 wpos = hint & (wbits - 1);
1290 if (hint) {
1292 * We have scanned range [hint max_alloc).
1293 * Prepare to scan range [0 hint + to_alloc).
1295 size_t nextmax = hint + to_alloc;
1297 if (likely(nextmax >= hint) && nextmax < max_alloc)
1299 hint = 0;