Home
last modified time | relevance | path

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

/linux/arch/arm64/kvm/vgic/
H A Dvgic-debug.c48 if (iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS - 1) && in iter_next()
59 if (iter->intid == VGIC_NR_PRIVATE_IRQS && in iter_next()
115 iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS) && in end_of_vgic()
222 else if (irq->intid < VGIC_NR_PRIVATE_IRQS) in print_irq_state()
229 if (irq->intid ==0 || irq->intid == VGIC_NR_PRIVATE_IRQS) in print_irq_state()
290 if (iter->intid < VGIC_NR_PRIVATE_IRQS) in vgic_debug_show()
H A Dvgic.c90 if (intid >= VGIC_NR_PRIVATE_IRQS && in vgic_get_irq()
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()
93 return &kvm->arch.vgic.spis[intid - VGIC_NR_PRIVATE_IRQS]; in vgic_get_irq()
109 if (intid < VGIC_NR_PRIVATE_IRQS) { in vgic_get_vcpu_irq()
110 intid = array_index_nospec(intid, VGIC_NR_PRIVATE_IRQS); in vgic_get_vcpu_irq()
443 if (!vcpu && intid < VGIC_NR_PRIVATE_IRQS) in kvm_vgic_inject_irq()
448 if (intid < VGIC_NR_PRIVATE_IRQS) in kvm_vgic_inject_irq()
H A Dvgic-init.c159 irq->intid = i + VGIC_NR_PRIVATE_IRQS; in kvm_vgic_dist_init()
193 vgic_cpu->private_irqs = kcalloc(VGIC_NR_PRIVATE_IRQS, in vgic_allocate_private_irqs_locked()
204 for (i = 0; i < VGIC_NR_PRIVATE_IRQS; i++) { in vgic_allocate_private_irqs_locked()
312 dist->nr_spis = VGIC_NR_IRQS_LEGACY - VGIC_NR_PRIVATE_IRQS; in vgic_init()
324 for (i = 0; i < VGIC_NR_PRIVATE_IRQS; i++) { in vgic_init()
H A Dvgic-mmio.c475 intid >= VGIC_NR_PRIVATE_IRQS) in vgic_access_active_prepare()
484 intid >= VGIC_NR_PRIVATE_IRQS) in vgic_access_active_finish()
750 if (intid + i < VGIC_NR_PRIVATE_IRQS) in vgic_mmio_write_config()
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 Dvgic-mmio-v3.c79 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v3_misc()
584 .len = (bpi * VGIC_NR_PRIVATE_IRQS) / 8, \
589 .reg_offset = off + (bpi * VGIC_NR_PRIVATE_IRQS) / 8, \
591 .len = (bpi * (1024 - VGIC_NR_PRIVATE_IRQS)) / 8, \
H A Dvgic-irqfd.c22 unsigned int spi_id = e->irqchip.pin + VGIC_NR_PRIVATE_IRQS; in vgic_irqfd_set_irq()
H A Dvgic-mmio-v2.c36 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v2_misc()
190 if (intid < VGIC_NR_PRIVATE_IRQS) in vgic_mmio_write_target()
H A Dvgic-v2.c73 intid - VGIC_NR_PRIVATE_IRQS); in vgic_v2_fold_lr_state()
H A Dvgic-v3.c66 intid - VGIC_NR_PRIVATE_IRQS); in vgic_v3_fold_lr_state()
/linux/include/kvm/
H A Darm_vgic.h28 #define VGIC_NR_PRIVATE_IRQS (VGIC_NR_SGIS + VGIC_NR_PPIS) macro
34 #define irq_is_ppi(irq) ((irq) >= VGIC_NR_SGIS && (irq) < VGIC_NR_PRIVATE_IRQS)
35 #define irq_is_spi(irq) ((irq) >= VGIC_NR_PRIVATE_IRQS && \
395 #define vgic_valid_spi(k, i) (((i) >= VGIC_NR_PRIVATE_IRQS) && \
396 ((i) < (k)->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS))