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