Lines Matching refs:mbi_ranges
31 static struct mbi_range *mbi_ranges; variable
95 offset = bitmap_find_free_region(mbi_ranges[i].bm, in mbi_irq_domain_alloc()
96 mbi_ranges[i].nr_spis, in mbi_irq_domain_alloc()
99 mbi = &mbi_ranges[i]; in mbi_irq_domain_alloc()
241 mbi_ranges = kcalloc(mbi_range_nr, sizeof(*mbi_ranges), GFP_KERNEL); in mbi_init()
242 if (!mbi_ranges) in mbi_init()
247 &mbi_ranges[n].spi_start); in mbi_init()
251 &mbi_ranges[n].nr_spis); in mbi_init()
255 mbi_ranges[n].bm = bitmap_zalloc(mbi_ranges[n].nr_spis, GFP_KERNEL); in mbi_init()
256 if (!mbi_ranges[n].bm) { in mbi_init()
260 pr_info("MBI range [%d:%d]\n", mbi_ranges[n].spi_start, in mbi_init()
261 mbi_ranges[n].spi_start + mbi_ranges[n].nr_spis - 1); in mbi_init()
291 if (mbi_ranges) { in mbi_init()
293 bitmap_free(mbi_ranges[n].bm); in mbi_init()
294 kfree(mbi_ranges); in mbi_init()