Lines Matching full:hint
959 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
988 if (wnd->zone_bit <= hint && hint < wnd->zone_end) in wnd_find()
989 hint = wnd->zone_end; in wnd_find()
994 if (hint >= max_alloc) in wnd_find()
995 hint = 0; in wnd_find()
1006 if (!hint) in wnd_find()
1009 /* Use hint: Enumerate extents by start >= hint. */ in wnd_find()
1016 if (e->start.key == hint) in wnd_find()
1019 if (e->start.key < hint) { in wnd_find()
1037 if (e->start.key + e->count.key > hint) { in wnd_find()
1038 /* We have found extension with 'hint' inside. */ in wnd_find()
1039 size_t len = e->start.key + e->count.key - hint; in wnd_find()
1041 if (len >= to_alloc && hint + to_alloc <= max_alloc) { in wnd_find()
1042 fnd = hint; in wnd_find()
1050 if (hint + len <= max_alloc) { in wnd_find()
1051 fnd = hint; in wnd_find()
1116 /* At most two ranges [hint, max_alloc) + [0, hint). */ in wnd_find()
1120 iw = hint >> log2_bits; in wnd_find()
1122 wpos = hint & (wbits - 1); in wnd_find()
1262 if (hint) { in wnd_find()
1264 * We have scanned range [hint max_alloc). in wnd_find()
1265 * Prepare to scan range [0 hint + to_alloc). in wnd_find()
1267 size_t nextmax = hint + to_alloc; in wnd_find()
1269 if (likely(nextmax >= hint) && nextmax < max_alloc) in wnd_find()
1271 hint = 0; in wnd_find()