Searched refs:nr (Results 1 – 9 of 9) sorted by relevance
/lib/ |
D | iommu-helper.c | 9 int iommu_is_span_boundary(unsigned int index, unsigned int nr, in iommu_is_span_boundary() argument 16 return shift + nr > boundary_size; in iommu_is_span_boundary() 20 unsigned long start, unsigned int nr, in iommu_area_alloc() argument 29 index = bitmap_find_next_zero_area(map, size, start, nr, align_mask); in iommu_area_alloc() 31 if (iommu_is_span_boundary(index, nr, shift, boundary_size)) { in iommu_area_alloc() 36 bitmap_set(map, index, nr); in iommu_area_alloc()
|
D | genalloc.c | 86 static int bitmap_set_ll(unsigned long *map, unsigned long start, unsigned long nr) in bitmap_set_ll() argument 89 const unsigned long size = start + nr; in bitmap_set_ll() 93 while (nr >= bits_to_set) { in bitmap_set_ll() 95 return nr; in bitmap_set_ll() 96 nr -= bits_to_set; in bitmap_set_ll() 101 if (nr) { in bitmap_set_ll() 104 return nr; in bitmap_set_ll() 122 bitmap_clear_ll(unsigned long *map, unsigned long start, unsigned long nr) in bitmap_clear_ll() argument 125 const unsigned long size = start + nr; in bitmap_clear_ll() 129 while (nr >= bits_to_clear) { in bitmap_clear_ll() [all …]
|
D | locking-selftest.c | 1021 #define DO_TESTCASE_1(desc, name, nr) \ argument 1022 print_testname(desc"/"#nr); \ 1023 dotest(name##_##nr, SUCCESS, LOCKTYPE_RWLOCK); \ 1026 #define DO_TESTCASE_1B(desc, name, nr) \ argument 1027 print_testname(desc"/"#nr); \ 1028 dotest(name##_##nr, FAILURE, LOCKTYPE_RWLOCK); \ 1031 #define DO_TESTCASE_3(desc, name, nr) \ argument 1032 print_testname(desc"/"#nr); \ 1033 dotest(name##_spin_##nr, FAILURE, LOCKTYPE_SPIN); \ 1034 dotest(name##_wlock_##nr, FAILURE, LOCKTYPE_RWLOCK); \ [all …]
|
D | percpu_ida.c | 44 unsigned nr) in move_tags() argument 46 *src_nr -= nr; in move_tags() 47 memcpy(dst + *dst_nr, src + *src_nr, sizeof(unsigned) * nr); in move_tags() 48 *dst_nr += nr; in move_tags()
|
D | bitmap.c | 174 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_or() local 176 for (k = 0; k < nr; k++) in __bitmap_or() 185 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_xor() local 187 for (k = 0; k < nr; k++) in __bitmap_xor() 311 unsigned int nr, in bitmap_find_next_zero_area_off() argument 322 end = index + nr; in bitmap_find_next_zero_area_off()
|
D | radix-tree.c | 67 int nr; member 200 if (rtp->nr) { in radix_tree_node_alloc() 204 rtp->nr--; in radix_tree_node_alloc() 262 while (rtp->nr < RADIX_TREE_PRELOAD_SIZE) { in __radix_tree_preload() 269 if (rtp->nr < RADIX_TREE_PRELOAD_SIZE) { in __radix_tree_preload() 272 rtp->nr++; in __radix_tree_preload() 1484 while (rtp->nr) { in radix_tree_callback() 1488 rtp->nr--; in radix_tree_callback()
|
D | percpu_counter.c | 163 int nr = num_online_cpus(); in compute_batch_value() local 165 percpu_counter_batch = max(32, nr*2); in compute_batch_value()
|
D | devres.c | 192 unsigned int nr) in devm_ioport_map() argument 200 addr = ioport_map(port, nr); in devm_ioport_map()
|
D | iomap.c | 229 void __iomem *ioport_map(unsigned long port, unsigned int nr) in ioport_map() argument
|