Home
last modified time | relevance | path

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

/Linux-v5.4/arch/powerpc/sysdev/
Dmpic_msi.c20 if (!mpic->msi_bitmap.bitmap) in mpic_msi_reserve_hwirq()
23 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()
53 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, i); in mpic_msi_reserve_u3_hwirqs()
64 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, hwirq); in mpic_msi_reserve_u3_hwirqs()
81 rc = msi_bitmap_alloc(&mpic->msi_bitmap, mpic->num_sources, in mpic_msi_init_allocator()
86 rc = msi_bitmap_reserve_dt_hwirqs(&mpic->msi_bitmap); in mpic_msi_init_allocator()
92 msi_bitmap_free(&mpic->msi_bitmap); in mpic_msi_init_allocator()
Dmsi_bitmap.c14 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num) in msi_bitmap_alloc_hwirqs()
38 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, in msi_bitmap_free_hwirqs()
52 void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq) in msi_bitmap_reserve_hwirq()
74 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp) in msi_bitmap_reserve_dt_hwirqs()
111 int __ref msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count, in msi_bitmap_alloc()
147 void msi_bitmap_free(struct msi_bitmap *bmp) in msi_bitmap_free()
159 struct msi_bitmap bmp; in test_basics()
225 struct msi_bitmap bmp; in test_of_node()
Dmpic_u3msi.c114 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, 1); in u3msi_teardown_msi_irqs()
140 hwirq = msi_bitmap_alloc_hwirqs(&msi_mpic->msi_bitmap, 1); in u3msi_setup_msi_irqs()
155 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, 1); in u3msi_setup_msi_irqs()
Dfsl_msi.h41 struct msi_bitmap bitmap;
DMakefile13 obj-$(CONFIG_PPC_MSI_BITMAP) += msi_bitmap.o
/Linux-v5.4/arch/powerpc/include/asm/
Dmsi_bitmap.h12 struct msi_bitmap { struct
20 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num); argument
21 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset,
23 void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq);
25 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp);
27 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
29 void msi_bitmap_free(struct msi_bitmap *bmp);
Dmpic.h324 struct msi_bitmap msi_bitmap; member
/Linux-v5.4/arch/powerpc/platforms/pasemi/
Dmsi.c72 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, ALLOC_CHUNK); in pasemi_msi_teardown_msi_irqs()
99 hwirq = msi_bitmap_alloc_hwirqs(&msi_mpic->msi_bitmap, in pasemi_msi_setup_msi_irqs()
110 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, in pasemi_msi_setup_msi_irqs()
/Linux-v5.4/arch/sparc/kernel/
Dpci_msi.c100 if (!test_and_set_bit(i, pbm->msi_bitmap)) in alloc_msi()
110 clear_bit(msi_num, pbm->msi_bitmap); in free_msi()
225 pbm->msi_bitmap = kzalloc(size, GFP_KERNEL); in msi_bitmap_alloc()
226 if (!pbm->msi_bitmap) in msi_bitmap_alloc()
234 kfree(pbm->msi_bitmap); in msi_bitmap_free()
235 pbm->msi_bitmap = NULL; in msi_bitmap_free()
Dpci_impl.h139 unsigned long *msi_bitmap; member
/Linux-v5.4/arch/powerpc/platforms/4xx/
Dhsta_msi.c27 struct msi_bitmap bmp;
Dmsi.c40 struct msi_bitmap bitmap;
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dpci.h107 struct msi_bitmap msi_bmp;