Home
last modified time | relevance | path

Searched refs:nr_spis (Results 1 – 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/drivers/irqchip/
Dirq-gic-v2m.c68 u32 nr_spis; /* The number of SPIs for MSIs */ member
186 offset = bitmap_find_free_region(tmp->bm, tmp->nr_spis, in gicv2m_irq_domain_alloc()
319 u32 spi_start, u32 nr_spis, in gicv2m_init_one() argument
344 if (spi_start && nr_spis) { in gicv2m_init_one()
346 v2m->nr_spis = nr_spis; in gicv2m_init_one()
358 v2m->nr_spis = V2M_MSI_TYPER_NUM_SPI(typer); in gicv2m_init_one()
361 if (!is_msi_spi_valid(v2m->spi_start, v2m->nr_spis)) { in gicv2m_init_one()
391 v2m->bm = kcalloc(BITS_TO_LONGS(v2m->nr_spis), sizeof(long), in gicv2m_init_one()
401 v2m->spi_start, (v2m->spi_start + v2m->nr_spis - 1)); in gicv2m_init_one()
425 u32 spi_start = 0, nr_spis = 0; in gicv2m_of_init() local
[all …]
Dirq-gic-v3-mbi.c23 u32 nr_spis; member
94 mbi_ranges[i].nr_spis, in mbi_irq_domain_alloc()
289 &mbi_ranges[n].nr_spis); in mbi_init()
293 mbi_ranges[n].bm = kcalloc(BITS_TO_LONGS(mbi_ranges[n].nr_spis), in mbi_init()
300 mbi_ranges[n].spi_start + mbi_ranges[n].nr_spis - 1); in mbi_init()
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/
Dvgic-init.c131 static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis) in kvm_vgic_dist_init() argument
137 dist->spis = kcalloc(nr_spis, sizeof(struct vgic_irq), GFP_KERNEL); in kvm_vgic_dist_init()
149 for (i = 0; i < nr_spis; i++) { in kvm_vgic_dist_init()
268 if (!dist->nr_spis) in vgic_init()
269 dist->nr_spis = VGIC_NR_IRQS_LEGACY - VGIC_NR_PRIVATE_IRQS; in vgic_init()
271 ret = kvm_vgic_dist_init(kvm, dist->nr_spis); in vgic_init()
337 dist->nr_spis = 0; in kvm_vgic_dist_destroy()
Dvgic-debug.c27 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()
Dvgic-kvm-device.c193 if (vgic_ready(dev->kvm) || dev->kvm->arch.vgic.nr_spis) in vgic_set_common_attr()
196 dev->kvm->arch.vgic.nr_spis = in vgic_set_common_attr()
243 r = put_user(dev->kvm->arch.vgic.nr_spis + in vgic_get_common_attr()
Dvgic-irqfd.c139 u32 nr = dist->nr_spis; in kvm_vgic_setup_default_irq_routing()
Dvgic-mmio.c748 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_read_irq_line_level_info()
770 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_write_irq_line_level_info()
900 int flags, nr_irqs = kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in check_region()
Dvgic.c100 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()
Dvgic-mmio-v2.c36 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v2_misc()
Dvgic-mmio-v3.c79 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v3_misc()
/kernel/linux/linux-5.10/include/kvm/
Darm_vgic.h220 int nr_spis; member
368 ((i) < (k)->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS))