Home
last modified time | relevance | path

Searched refs:map (Results 1 – 5 of 5) sorted by relevance

/lib/
Dsbitmap.c21 spin_lock_irqsave(&sb->map[index].swap_lock, flags); in sbitmap_deferred_clear()
23 if (!sb->map[index].cleared) in sbitmap_deferred_clear()
29 mask = xchg(&sb->map[index].cleared, 0); in sbitmap_deferred_clear()
35 val = sb->map[index].word; in sbitmap_deferred_clear()
36 } while (cmpxchg(&sb->map[index].word, val, val & ~mask) != val); in sbitmap_deferred_clear()
40 spin_unlock_irqrestore(&sb->map[index].swap_lock, flags); in sbitmap_deferred_clear()
72 sb->map = NULL; in sbitmap_init_node()
76 sb->map = kcalloc_node(sb->map_nr, sizeof(*sb->map), flags, node); in sbitmap_init_node()
77 if (!sb->map) in sbitmap_init_node()
81 sb->map[i].depth = min(depth, bits_per_word); in sbitmap_init_node()
[all …]
Diommu-helper.c9 unsigned long iommu_area_alloc(unsigned long *map, unsigned long size, in iommu_area_alloc() argument
19 index = bitmap_find_next_zero_area(map, size, start, nr, align_mask); in iommu_area_alloc()
25 bitmap_set(map, index, nr); in iommu_area_alloc()
Dgenalloc.c84 static int bitmap_set_ll(unsigned long *map, int start, int nr) in bitmap_set_ll() argument
86 unsigned long *p = map + BIT_WORD(start); in bitmap_set_ll()
119 static int bitmap_clear_ll(unsigned long *map, int start, int nr) in bitmap_clear_ll() argument
121 unsigned long *p = map + BIT_WORD(start); in bitmap_clear_ll()
643 unsigned long gen_pool_first_fit(unsigned long *map, unsigned long size, in gen_pool_first_fit() argument
647 return bitmap_find_next_zero_area(map, size, start, nr, 0); in gen_pool_first_fit()
661 unsigned long gen_pool_first_fit_align(unsigned long *map, unsigned long size, in gen_pool_first_fit_align() argument
674 return bitmap_find_next_zero_area_off(map, size, start, nr, in gen_pool_first_fit_align()
688 unsigned long gen_pool_fixed_alloc(unsigned long *map, unsigned long size, in gen_pool_fixed_alloc() argument
703 start_bit = bitmap_find_next_zero_area(map, size, in gen_pool_fixed_alloc()
[all …]
Dbitmap.c270 void __bitmap_set(unsigned long *map, unsigned int start, int len) in __bitmap_set() argument
272 unsigned long *p = map + BIT_WORD(start); in __bitmap_set()
291 void __bitmap_clear(unsigned long *map, unsigned int start, int len) in __bitmap_clear() argument
293 unsigned long *p = map + BIT_WORD(start); in __bitmap_clear()
325 unsigned long bitmap_find_next_zero_area_off(unsigned long *map, in bitmap_find_next_zero_area_off() argument
334 index = find_next_zero_bit(map, size, start); in bitmap_find_next_zero_area_off()
342 i = find_next_bit(map, end, index); in bitmap_find_next_zero_area_off()
DKconfig.debug723 Say Y to verify that the per_cpu map being accessed has
1999 kernel's virtual address map.