• Home
  • Raw
  • Download

Lines Matching refs:alloc_hint

140 				     unsigned int alloc_hint, bool round_robin)  in sbitmap_find_bit_in_index()  argument
146 sb->map[index].depth, alloc_hint, in sbitmap_find_bit_in_index()
157 int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin) in sbitmap_get() argument
162 index = SB_NR_TO_INDEX(sb, alloc_hint); in sbitmap_get()
170 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint); in sbitmap_get()
172 alloc_hint = 0; in sbitmap_get()
175 nr = sbitmap_find_bit_in_index(sb, index, alloc_hint, in sbitmap_get()
183 alloc_hint = 0; in sbitmap_get()
192 int sbitmap_get_shallow(struct sbitmap *sb, unsigned int alloc_hint, in sbitmap_get_shallow() argument
198 index = SB_NR_TO_INDEX(sb, alloc_hint); in sbitmap_get_shallow()
204 SB_NR_TO_BIT(sb, alloc_hint), true); in sbitmap_get_shallow()
215 alloc_hint = index << sb->shift; in sbitmap_get_shallow()
219 alloc_hint = 0; in sbitmap_get_shallow()
379 sbq->alloc_hint = alloc_percpu_gfp(unsigned int, flags); in sbitmap_queue_init_node()
380 if (!sbq->alloc_hint) { in sbitmap_queue_init_node()
387 *per_cpu_ptr(sbq->alloc_hint, i) = prandom_u32() % depth; in sbitmap_queue_init_node()
397 free_percpu(sbq->alloc_hint); in sbitmap_queue_init_node()
443 hint = this_cpu_read(*sbq->alloc_hint); in __sbitmap_queue_get()
447 this_cpu_write(*sbq->alloc_hint, hint); in __sbitmap_queue_get()
453 this_cpu_write(*sbq->alloc_hint, 0); in __sbitmap_queue_get()
459 this_cpu_write(*sbq->alloc_hint, hint); in __sbitmap_queue_get()
474 hint = this_cpu_read(*sbq->alloc_hint); in __sbitmap_queue_get_shallow()
478 this_cpu_write(*sbq->alloc_hint, hint); in __sbitmap_queue_get_shallow()
484 this_cpu_write(*sbq->alloc_hint, 0); in __sbitmap_queue_get_shallow()
490 this_cpu_write(*sbq->alloc_hint, hint); in __sbitmap_queue_get_shallow()
602 *per_cpu_ptr(sbq->alloc_hint, cpu) = nr; in sbitmap_queue_clear()
640 seq_printf(m, "%u", *per_cpu_ptr(sbq->alloc_hint, i)); in sbitmap_queue_show()