Searched refs:nr_spis (Results 1 – 12 of 12) sorted by relevance
/linux-6.1.9/drivers/irqchip/ |
D | irq-gic-v2m.c | 68 u32 nr_spis; /* The number of SPIs for MSIs */ member 185 offset = bitmap_find_free_region(tmp->bm, tmp->nr_spis, in gicv2m_irq_domain_alloc() 318 u32 spi_start, u32 nr_spis, in gicv2m_init_one() argument 341 if (spi_start && nr_spis) { in gicv2m_init_one() 343 v2m->nr_spis = nr_spis; in gicv2m_init_one() 355 v2m->nr_spis = V2M_MSI_TYPER_NUM_SPI(typer); in gicv2m_init_one() 358 if (!is_msi_spi_valid(v2m->spi_start, v2m->nr_spis)) { in gicv2m_init_one() 388 v2m->bm = bitmap_zalloc(v2m->nr_spis, GFP_KERNEL); in gicv2m_init_one() 397 v2m->spi_start, (v2m->spi_start + v2m->nr_spis - 1)); in gicv2m_init_one() 421 u32 spi_start = 0, nr_spis = 0; in gicv2m_of_init() local [all …]
|
D | irq-gic-v3-mbi.c | 23 u32 nr_spis; member 94 mbi_ranges[i].nr_spis, in mbi_irq_domain_alloc() 288 &mbi_ranges[n].nr_spis); in mbi_init() 292 mbi_ranges[n].bm = bitmap_zalloc(mbi_ranges[n].nr_spis, GFP_KERNEL); in mbi_init() 298 mbi_ranges[n].spi_start + mbi_ranges[n].nr_spis - 1); in mbi_init()
|
/linux-6.1.9/arch/arm64/kvm/vgic/ |
D | vgic-debug.c | 27 int nr_spis; member 48 if (iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS)) { in iter_next() 63 iter->nr_spis = kvm->arch.vgic.nr_spis; in iter_init() 79 iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS) && in end_of_vgic() 150 seq_printf(s, "nr_spis:\t%d\n", dist->nr_spis); in print_dist_state()
|
D | vgic-init.c | 132 static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis) in kvm_vgic_dist_init() argument 138 dist->spis = kcalloc(nr_spis, sizeof(struct vgic_irq), GFP_KERNEL_ACCOUNT); in kvm_vgic_dist_init() 150 for (i = 0; i < nr_spis; i++) { in kvm_vgic_dist_init() 270 if (!dist->nr_spis) in vgic_init() 271 dist->nr_spis = VGIC_NR_IRQS_LEGACY - VGIC_NR_PRIVATE_IRQS; in vgic_init() 273 ret = kvm_vgic_dist_init(kvm, dist->nr_spis); in vgic_init() 344 dist->nr_spis = 0; in kvm_vgic_dist_destroy()
|
D | vgic-kvm-device.c | 232 if (vgic_ready(dev->kvm) || dev->kvm->arch.vgic.nr_spis) in vgic_set_common_attr() 235 dev->kvm->arch.vgic.nr_spis = in vgic_set_common_attr() 287 r = put_user(dev->kvm->arch.vgic.nr_spis + in vgic_get_common_attr()
|
D | vgic-irqfd.c | 139 u32 nr = dist->nr_spis; in kvm_vgic_setup_default_irq_routing()
|
D | vgic-mmio.c | 782 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_read_irq_line_level_info() 804 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_write_irq_line_level_info() 934 int flags, nr_irqs = kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in check_region()
|
D | vgic.c | 100 if (intid < (kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS)) { in vgic_get_irq() 101 intid = array_index_nospec(intid, kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS); in vgic_get_irq()
|
D | vgic-mmio-v2.c | 36 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v2_misc()
|
D | vgic-mmio-v3.c | 79 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v3_misc()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/aarch64/ |
D | gic_v3.c | 19 unsigned int nr_spis; member 341 for (i = 32; i < gicv3_data.nr_spis; i += 32) { in gicv3_dist_init() 348 for (i = 32; i < gicv3_data.nr_spis; i += 4) in gicv3_dist_init() 367 gicv3_data.nr_spis = GICD_TYPER_SPIS( in gicv3_init() 369 if (gicv3_data.nr_spis > 1020) in gicv3_init() 370 gicv3_data.nr_spis = 1020; in gicv3_init()
|
/linux-6.1.9/include/kvm/ |
D | arm_vgic.h | 244 int nr_spis; member 394 ((i) < (k)->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS))
|