Lines Matching refs: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 ? prandom_u32() % 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
51 } else if (nr == hint || unlikely(sb->round_robin)) { 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()
147 unsigned int hint, bool wrap) in __sbitmap_get_word() argument
152 wrap = wrap && hint; in __sbitmap_get_word()
155 nr = find_next_zero_bit(word, depth, hint); in __sbitmap_get_word()
162 if (hint && wrap) { in __sbitmap_get_word()
163 hint = 0; in __sbitmap_get_word()
172 hint = nr + 1; in __sbitmap_get_word()
173 if (hint >= depth - 1) in __sbitmap_get_word()
174 hint = 0; in __sbitmap_get_word()
234 unsigned int hint, depth; in sbitmap_get() local
240 hint = update_alloc_hint_before_get(sb, depth); in sbitmap_get()
241 nr = __sbitmap_get(sb, hint); in sbitmap_get()
242 update_alloc_hint_after_get(sb, depth, hint, nr); in sbitmap_get()
286 unsigned int hint, depth; in sbitmap_get_shallow() local
292 hint = update_alloc_hint_before_get(sb, depth); in sbitmap_get_shallow()
293 nr = __sbitmap_get_shallow(sb, hint, shallow_depth); in sbitmap_get_shallow()
294 update_alloc_hint_after_get(sb, depth, hint, nr); in sbitmap_get_shallow()
496 unsigned int hint, depth; in __sbitmap_queue_get_batch() local
504 hint = update_alloc_hint_before_get(sb, depth); in __sbitmap_queue_get_batch()
506 index = SB_NR_TO_INDEX(sb, hint); in __sbitmap_queue_get_batch()
530 update_alloc_hint_after_get(sb, depth, hint, in __sbitmap_queue_get_batch()