Lines Matching refs:msi_num
99 for (i = 0; i < pbm->msi_num; i++) { in alloc_msi()
107 static void free_msi(struct pci_pbm_info *pbm, int msi_num) in free_msi() argument
109 msi_num -= pbm->msi_first; in free_msi()
110 clear_bit(msi_num, pbm->msi_bitmap); in free_msi()
186 unsigned int msi_num; in sparc64_teardown_msi_irq() local
189 for (i = 0; i < pbm->msi_num; i++) { in sparc64_teardown_msi_irq()
193 if (i >= pbm->msi_num) { in sparc64_teardown_msi_irq()
199 msi_num = pbm->msi_first + i; in sparc64_teardown_msi_irq()
202 err = ops->msi_teardown(pbm, msi_num); in sparc64_teardown_msi_irq()
205 "irq %u, gives error %d\n", pbm->name, msi_num, irq, in sparc64_teardown_msi_irq()
210 free_msi(pbm, msi_num); in sparc64_teardown_msi_irq()
221 size = (pbm->msi_num + (bits_per_ulong - 1)) & ~(bits_per_ulong - 1); in msi_bitmap_alloc()
255 size = pbm->msi_num * sizeof(unsigned int); in msi_table_alloc()
369 pbm->msi_num = *val; in sparc64_pbm_msi_init()
427 pbm->msi_first, pbm->msi_num, pbm->msi_data_mask, in sparc64_pbm_msi_init()