Lines Matching refs:size

118 	int size;  in msi_bitmap_alloc()  local
123 size = BITS_TO_LONGS(irq_count) * sizeof(long); in msi_bitmap_alloc()
124 pr_debug("msi_bitmap: allocator bitmap size is 0x%x bytes\n", size); in msi_bitmap_alloc()
128 bmp->bitmap = kzalloc(size, GFP_KERNEL); in msi_bitmap_alloc()
130 bmp->bitmap = memblock_virt_alloc(size, 0); in msi_bitmap_alloc()
161 int rc, i, size = 512; in test_basics() local
167 WARN_ON(msi_bitmap_alloc(&bmp, size, NULL)); in test_basics()
170 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
171 bitmap_release_region(bmp.bitmap, 0, get_count_order(size)); in test_basics()
177 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
178 bitmap_release_region(bmp.bitmap, 0, get_count_order(size)); in test_basics()
181 for (i = 0; i < size; i++) in test_basics()
187 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, 0) >= 0); in test_basics()
190 msi_bitmap_free_hwirqs(&bmp, size / 2, 1); in test_basics()
191 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) != size / 2); in test_basics()
194 msi_bitmap_free_hwirqs(&bmp, 3, size - 3); in test_basics()
227 int size = 256; in test_of_node() local
228 DECLARE_BITMAP(expected, size); in test_of_node()
235 WARN_ON(msi_bitmap_alloc(&bmp, size, &of_node)); in test_of_node()
241 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_of_node()
242 bitmap_release_region(bmp.bitmap, 0, get_count_order(size)); in test_of_node()
258 WARN_ON(bitmap_parselist(expected_str, expected, size)); in test_of_node()
259 WARN_ON(!bitmap_equal(expected, bmp.bitmap, size)); in test_of_node()