Lines Matching refs:size
117 int size; in msi_bitmap_alloc() local
122 size = BITS_TO_LONGS(irq_count) * sizeof(long); in msi_bitmap_alloc()
123 pr_debug("msi_bitmap: allocator bitmap size is 0x%x bytes\n", size); in msi_bitmap_alloc()
125 bmp->bitmap = zalloc_maybe_bootmem(size, GFP_KERNEL); in msi_bitmap_alloc()
151 int rc, i, size = 512; in test_basics() local
157 WARN_ON(msi_bitmap_alloc(&bmp, size, NULL)); in test_basics()
160 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
161 bitmap_release_region(bmp.bitmap, 0, get_count_order(size)); in test_basics()
167 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
168 bitmap_release_region(bmp.bitmap, 0, get_count_order(size)); in test_basics()
171 for (i = 0; i < size; i++) in test_basics()
177 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, 0) >= 0); in test_basics()
180 msi_bitmap_free_hwirqs(&bmp, size / 2, 1); in test_basics()
181 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) != size / 2); in test_basics()
184 msi_bitmap_free_hwirqs(&bmp, 3, size - 3); in test_basics()
219 int size = 256; in test_of_node() local
220 DECLARE_BITMAP(expected, size); in test_of_node()
227 WARN_ON(msi_bitmap_alloc(&bmp, size, &of_node)); in test_of_node()
233 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_of_node()
234 bitmap_release_region(bmp.bitmap, 0, get_count_order(size)); in test_of_node()
250 WARN_ON(bitmap_parselist(expected_str, expected, size)); in test_of_node()
251 WARN_ON(!bitmap_equal(expected, bmp.bitmap, size)); in test_of_node()