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_max(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()
137 unsigned int hint, bool wrap) in __sbitmap_get_word() argument
142 wrap = wrap && hint; in __sbitmap_get_word()
145 nr = find_next_zero_bit(word, depth, hint); in __sbitmap_get_word()
152 if (hint && wrap) { in __sbitmap_get_word()
153 hint = 0; in __sbitmap_get_word()
162 hint = nr + 1; in __sbitmap_get_word()
163 if (hint >= depth - 1) in __sbitmap_get_word()
164 hint = 0; in __sbitmap_get_word()
224 unsigned int hint, depth; in sbitmap_get() local
230 hint = update_alloc_hint_before_get(sb, depth); in sbitmap_get()
231 nr = __sbitmap_get(sb, hint); in sbitmap_get()
232 update_alloc_hint_after_get(sb, depth, hint, nr); in sbitmap_get()
278 unsigned int hint, depth; in sbitmap_get_shallow() local
284 hint = update_alloc_hint_before_get(sb, depth); in sbitmap_get_shallow()
285 nr = __sbitmap_get_shallow(sb, hint, shallow_depth); in sbitmap_get_shallow()
286 update_alloc_hint_after_get(sb, depth, hint, nr); in sbitmap_get_shallow()
512 unsigned int hint, depth; in __sbitmap_queue_get_batch() local
520 hint = update_alloc_hint_before_get(sb, depth); in __sbitmap_queue_get_batch()
522 index = SB_NR_TO_INDEX(sb, hint); in __sbitmap_queue_get_batch()
548 update_alloc_hint_after_get(sb, depth, hint, in __sbitmap_queue_get_batch()