Home
last modified time | relevance | path

Searched refs:msi_bitmap (Results 1 – 10 of 10) sorted by relevance

/arch/powerpc/include/asm/
Dmsi_bitmap.h17 struct msi_bitmap { struct
24 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num); argument
25 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset,
27 void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq);
29 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp);
31 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
33 void msi_bitmap_free(struct msi_bitmap *bmp);
Dmpic.h305 struct msi_bitmap msi_bitmap; member
/arch/powerpc/sysdev/
Dmpic_msi.c25 if (!mpic->msi_bitmap.bitmap) in mpic_msi_reserve_hwirq()
28 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, hwirq); in mpic_msi_reserve_hwirq()
44 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, i); in mpic_msi_reserve_u3_hwirqs()
47 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, i); in mpic_msi_reserve_u3_hwirqs()
50 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, i); in mpic_msi_reserve_u3_hwirqs()
60 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, hwirq); in mpic_msi_reserve_u3_hwirqs()
77 rc = msi_bitmap_alloc(&mpic->msi_bitmap, mpic->irq_count, in mpic_msi_init_allocator()
82 rc = msi_bitmap_reserve_dt_hwirqs(&mpic->msi_bitmap); in mpic_msi_init_allocator()
88 msi_bitmap_free(&mpic->msi_bitmap); in mpic_msi_init_allocator()
Dmsi_bitmap.c15 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num) in msi_bitmap_alloc_hwirqs()
34 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, in msi_bitmap_free_hwirqs()
48 void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq) in msi_bitmap_reserve_hwirq()
70 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp) in msi_bitmap_reserve_dt_hwirqs()
107 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count, in msi_bitmap_alloc()
132 void msi_bitmap_free(struct msi_bitmap *bmp) in msi_bitmap_free()
146 struct msi_bitmap bmp; in test_basics()
197 struct msi_bitmap bmp; in test_of_node()
Dmpic_pasemi_msi.c85 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, in pasemi_msi_teardown_msi_irqs()
112 hwirq = msi_bitmap_alloc_hwirqs(&msi_mpic->msi_bitmap, in pasemi_msi_setup_msi_irqs()
123 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, in pasemi_msi_setup_msi_irqs()
Dmpic_u3msi.c105 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, in u3msi_teardown_msi_irqs()
126 hwirq = msi_bitmap_alloc_hwirqs(&msi_mpic->msi_bitmap, 1); in u3msi_setup_msi_irqs()
135 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, 1); in u3msi_setup_msi_irqs()
Dfsl_msi.h36 struct msi_bitmap bitmap;
DMakefile8 obj-$(CONFIG_PPC_MSI_BITMAP) += msi_bitmap.o
/arch/sparc/kernel/
Dpci_msi.c101 if (!test_and_set_bit(i, pbm->msi_bitmap)) in alloc_msi()
111 clear_bit(msi_num, pbm->msi_bitmap); in free_msi()
226 pbm->msi_bitmap = kzalloc(size, GFP_KERNEL); in msi_bitmap_alloc()
227 if (!pbm->msi_bitmap) in msi_bitmap_alloc()
235 kfree(pbm->msi_bitmap); in msi_bitmap_free()
236 pbm->msi_bitmap = NULL; in msi_bitmap_free()
Dpci_impl.h132 unsigned long *msi_bitmap; member