Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/irqchip/
Dirq-gic-v2m.c69 u32 nr_spis; /* The number of SPIs for MSIs */ member
175 offset = bitmap_find_free_region(tmp->bm, tmp->nr_spis, in gicv2m_irq_domain_alloc()
303 u32 spi_start, u32 nr_spis, in gicv2m_init_one() argument
327 if (spi_start && nr_spis) { in gicv2m_init_one()
329 v2m->nr_spis = nr_spis; in gicv2m_init_one()
334 v2m->nr_spis = V2M_MSI_TYPER_NUM_SPI(typer); in gicv2m_init_one()
337 if (!is_msi_spi_valid(v2m->spi_start, v2m->nr_spis)) { in gicv2m_init_one()
364 v2m->bm = kcalloc(BITS_TO_LONGS(v2m->nr_spis), sizeof(long), in gicv2m_init_one()
374 v2m->spi_start, (v2m->spi_start + v2m->nr_spis - 1)); in gicv2m_init_one()
398 u32 spi_start = 0, nr_spis = 0; in gicv2m_of_init() local
[all …]
Dirq-gic-v3-mbi.c23 u32 nr_spis; member
93 mbi_ranges[i].nr_spis, in mbi_irq_domain_alloc()
283 &mbi_ranges[n].nr_spis); in mbi_init()
287 mbi_ranges[n].bm = kcalloc(BITS_TO_LONGS(mbi_ranges[n].nr_spis), in mbi_init()
294 mbi_ranges[n].spi_start + mbi_ranges[n].nr_spis - 1); in mbi_init()
/Linux-v4.19/virt/kvm/arm/vgic/
Dvgic-init.c151 static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis) in kvm_vgic_dist_init() argument
157 dist->spis = kcalloc(nr_spis, sizeof(struct vgic_irq), GFP_KERNEL); in kvm_vgic_dist_init()
169 for (i = 0; i < nr_spis; i++) { in kvm_vgic_dist_init()
294 if (!dist->nr_spis) in vgic_init()
295 dist->nr_spis = VGIC_NR_IRQS_LEGACY - VGIC_NR_PRIVATE_IRQS; in vgic_init()
297 ret = kvm_vgic_dist_init(kvm, dist->nr_spis); in vgic_init()
333 dist->nr_spis = 0; in kvm_vgic_dist_destroy()
Dvgic-debug.c38 int nr_spis; member
59 if (iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS)) { in iter_next()
74 iter->nr_spis = kvm->arch.vgic.nr_spis; in iter_init()
90 iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS) && in end_of_vgic()
161 seq_printf(s, "nr_spis:\t%d\n", dist->nr_spis); in print_dist_state()
Dvgic-irqfd.c112 u32 nr = dist->nr_spis; in kvm_vgic_setup_default_irq_routing()
Dvgic-kvm-device.c201 if (vgic_ready(dev->kvm) || dev->kvm->arch.vgic.nr_spis) in vgic_set_common_attr()
204 dev->kvm->arch.vgic.nr_spis = in vgic_set_common_attr()
248 r = put_user(dev->kvm->arch.vgic.nr_spis + in vgic_get_common_attr()
Dvgic-mmio.c557 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_read_irq_line_level_info()
579 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_write_irq_line_level_info()
709 int flags, nr_irqs = kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in check_region()
Dvgic-mmio-v2.c44 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v2_misc()
Dvgic-mmio-v3.c82 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v3_misc()
/Linux-v4.19/include/kvm/
Darm_vgic.h230 int nr_spis; member
369 ((i) < (k)->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS))