Lines Matching full:hint

32 	unsigned hint;  in update_alloc_hint_before_get()  local
34 hint = this_cpu_read(*sb->alloc_hint); in update_alloc_hint_before_get()
35 if (unlikely(hint >= depth)) { in update_alloc_hint_before_get()
36 hint = depth ? get_random_u32_below(depth) : 0; in update_alloc_hint_before_get()
37 this_cpu_write(*sb->alloc_hint, hint); in update_alloc_hint_before_get()
40 return hint; in update_alloc_hint_before_get()
45 unsigned int hint, in update_alloc_hint_after_get() argument
49 /* If the map is full, a hint won't do us much good. */ in update_alloc_hint_after_get()
51 } else if (nr == hint || unlikely(sb->round_robin)) { in update_alloc_hint_after_get()
52 /* Only update the hint if we used it. */ in update_alloc_hint_after_get()
53 hint = nr + 1; in update_alloc_hint_after_get()
54 if (hint >= depth - 1) in update_alloc_hint_after_get()
55 hint = 0; in update_alloc_hint_after_get()
56 this_cpu_write(*sb->alloc_hint, hint); in update_alloc_hint_after_get()
159 unsigned int hint, bool wrap) in __sbitmap_get_word() argument
164 wrap = wrap && hint; in __sbitmap_get_word()
167 nr = find_next_zero_bit(word, depth, hint); in __sbitmap_get_word()
174 if (hint && wrap) { in __sbitmap_get_word()
175 hint = 0; in __sbitmap_get_word()
184 hint = nr + 1; in __sbitmap_get_word()
185 if (hint >= depth - 1) in __sbitmap_get_word()
186 hint = 0; in __sbitmap_get_word()
264 unsigned int hint, depth; in sbitmap_get() local
270 hint = update_alloc_hint_before_get(sb, depth); in sbitmap_get()
271 nr = __sbitmap_get(sb, hint); in sbitmap_get()
272 update_alloc_hint_after_get(sb, depth, hint, nr); in sbitmap_get()
293 unsigned int hint, depth; in sbitmap_get_shallow() local
299 hint = update_alloc_hint_before_get(sb, depth); in sbitmap_get_shallow()
300 nr = __sbitmap_get_shallow(sb, hint, shallow_depth); in sbitmap_get_shallow()
301 update_alloc_hint_after_get(sb, depth, hint, nr); in sbitmap_get_shallow()
503 unsigned int hint, depth; in __sbitmap_queue_get_batch() local
511 hint = update_alloc_hint_before_get(sb, depth); in __sbitmap_queue_get_batch()
513 index = SB_NR_TO_INDEX(sb, hint); in __sbitmap_queue_get_batch()
537 update_alloc_hint_after_get(sb, depth, hint, in __sbitmap_queue_get_batch()