Searched refs:nr_spis (Results 1 – 11 of 11) sorted by relevance
/linux/drivers/irqchip/ |
H A D | irq-gic-v2m.c | 71 u32 nr_spis; /* The number of SPIs for MSIs */ member 163 offset = bitmap_find_free_region(tmp->bm, tmp->nr_spis, in gicv2m_irq_domain_alloc() 287 u32 spi_start, u32 nr_spis, in gicv2m_init_one() argument 310 if (spi_start && nr_spis) { in gicv2m_init_one() 312 v2m->nr_spis = nr_spis; in gicv2m_init_one() 324 v2m->nr_spis = V2M_MSI_TYPER_NUM_SPI(typer); in gicv2m_init_one() 327 if (!is_msi_spi_valid(v2m->spi_start, v2m->nr_spis)) { in gicv2m_init_one() 357 v2m->bm = bitmap_zalloc(v2m->nr_spis, GFP_KERNEL); in gicv2m_init_one() 366 v2m->spi_start, (v2m->spi_start + v2m->nr_spis - 1)); in gicv2m_init_one() 390 u32 spi_start = 0, nr_spis = 0; in gicv2m_of_init() local [all …]
|
H A D | irq-gic-v3-mbi.c | 25 u32 nr_spis; member 96 mbi_ranges[i].nr_spis, in mbi_irq_domain_alloc() 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() 261 mbi_ranges[n].spi_start + mbi_ranges[n].nr_spis - 1); in mbi_init()
|
/linux/arch/arm64/kvm/vgic/ |
H A D | vgic-debug.c | 27 int nr_spis; member 48 if (iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS - 1) && in iter_next() 102 iter->nr_spis = kvm->arch.vgic.nr_spis; in iter_init() 115 iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS) && in end_of_vgic() 187 seq_printf(s, "nr_spis:\t%d\n", dist->nr_spis); in print_dist_state()
|
H A D | vgic-init.c | 138 static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis) in kvm_vgic_dist_init() argument 144 dist->spis = kcalloc(nr_spis, sizeof(struct vgic_irq), GFP_KERNEL_ACCOUNT); in kvm_vgic_dist_init() 156 for (i = 0; i < nr_spis; i++) { in kvm_vgic_dist_init() 311 if (!dist->nr_spis) in vgic_init() 312 dist->nr_spis = VGIC_NR_IRQS_LEGACY - VGIC_NR_PRIVATE_IRQS; in vgic_init() 314 ret = kvm_vgic_dist_init(kvm, dist->nr_spis); in vgic_init() 389 dist->nr_spis = 0; in kvm_vgic_dist_destroy()
|
H A D | vgic-irqfd.c | 140 u32 nr = dist->nr_spis; in kvm_vgic_setup_default_irq_routing()
|
H A D | vgic-mmio.c | 770 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_read_irq_line_level_info() 792 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_write_irq_line_level_info() 922 int flags, nr_irqs = kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in check_region()
|
H A D | vgic.c | 91 intid < (kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS)) { in vgic_get_irq() 92 intid = array_index_nospec(intid, kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS); in vgic_get_irq()
|
H A D | vgic-mmio-v2.c | 36 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v2_misc()
|
H A D | vgic-mmio-v3.c | 79 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v3_misc()
|
/linux/tools/testing/selftests/kvm/lib/aarch64/ |
H A D | gic_v3.c | 28 unsigned int nr_spis; member 347 for (i = 32; i < gicv3_data.nr_spis; i += 32) { in gicv3_dist_init() 354 for (i = 32; i < gicv3_data.nr_spis; i += 4) in gicv3_dist_init() 372 gicv3_data.nr_spis = GICD_TYPER_SPIS( in gicv3_init() 374 if (gicv3_data.nr_spis > 1020) in gicv3_init() 375 gicv3_data.nr_spis = 1020; in gicv3_init()
|
/linux/include/kvm/ |
H A D | arm_vgic.h | 250 int nr_spis; member 396 ((i) < (k)->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS))
|