Lines Matching refs:mbi_ranges
29 static struct mbi_range *mbi_ranges; variable
93 offset = bitmap_find_free_region(mbi_ranges[i].bm, in mbi_irq_domain_alloc()
94 mbi_ranges[i].nr_spis, in mbi_irq_domain_alloc()
97 mbi = &mbi_ranges[i]; in mbi_irq_domain_alloc()
277 mbi_ranges = kcalloc(mbi_range_nr, sizeof(*mbi_ranges), GFP_KERNEL); in mbi_init()
278 if (!mbi_ranges) in mbi_init()
283 &mbi_ranges[n].spi_start); in mbi_init()
287 &mbi_ranges[n].nr_spis); in mbi_init()
291 mbi_ranges[n].bm = bitmap_zalloc(mbi_ranges[n].nr_spis, GFP_KERNEL); in mbi_init()
292 if (!mbi_ranges[n].bm) { in mbi_init()
296 pr_info("MBI range [%d:%d]\n", mbi_ranges[n].spi_start, in mbi_init()
297 mbi_ranges[n].spi_start + mbi_ranges[n].nr_spis - 1); in mbi_init()
327 if (mbi_ranges) { in mbi_init()
329 bitmap_free(mbi_ranges[n].bm); in mbi_init()
330 kfree(mbi_ranges); in mbi_init()