Lines Matching refs:hint
32 unsigned hint;
34 hint = this_cpu_read(*sb->alloc_hint);
35 if (unlikely(hint >= depth)) {
36 hint = depth ? get_random_u32_below(depth) : 0;
37 this_cpu_write(*sb->alloc_hint, hint);
40 return hint;
45 unsigned int hint,
49 /* If the map is full, a hint won't do us much good. */
51 } else if (nr == hint || unlikely(sb->round_robin)) {
52 /* Only update the hint if we used it. */
53 hint = nr + 1;
54 if (hint >= depth - 1)
55 hint = 0;
56 this_cpu_write(*sb->alloc_hint, hint);
137 unsigned int hint, bool wrap)
142 wrap = wrap && hint;
145 nr = find_next_zero_bit(word, depth, hint);
152 if (hint && wrap) {
153 hint = 0;
162 hint = nr + 1;
163 if (hint >= depth - 1)
164 hint = 0;
242 unsigned int hint, depth;
248 hint = update_alloc_hint_before_get(sb, depth);
249 nr = __sbitmap_get(sb, hint);
250 update_alloc_hint_after_get(sb, depth, hint, nr);
271 unsigned int hint, depth;
277 hint = update_alloc_hint_before_get(sb, depth);
278 nr = __sbitmap_get_shallow(sb, hint, shallow_depth);
279 update_alloc_hint_after_get(sb, depth, hint, nr);
486 unsigned int hint, depth;
494 hint = update_alloc_hint_before_get(sb, depth);
496 index = SB_NR_TO_INDEX(sb, hint);
520 update_alloc_hint_after_get(sb, depth, hint,