Searched refs:VGIC_NR_PRIVATE_IRQS (Results 1 – 12 of 12) sorted by relevance
36 #define VGIC_NR_PRIVATE_IRQS (VGIC_NR_SGIS + VGIC_NR_PPIS) macro37 #define VGIC_MAX_PRIVATE (VGIC_NR_PRIVATE_IRQS - 1)43 #define irq_is_ppi(irq) ((irq) >= VGIC_NR_SGIS && (irq) < VGIC_NR_PRIVATE_IRQS)44 #define irq_is_spi(irq) ((irq) >= VGIC_NR_PRIVATE_IRQS && \308 struct vgic_irq private_irqs[VGIC_NR_PRIVATE_IRQS];368 #define vgic_valid_spi(k, i) (((i) >= VGIC_NR_PRIVATE_IRQS) && \369 ((i) < (k)->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS))
55 if (iter->intid == VGIC_NR_PRIVATE_IRQS && in iter_next()59 if (iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS)) { in iter_next()90 iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS) && in end_of_vgic()194 else if (irq->intid < VGIC_NR_PRIVATE_IRQS) in print_irq_state()201 if (irq->intid ==0 || irq->intid == VGIC_NR_PRIVATE_IRQS) in print_irq_state()
172 irq->intid = i + VGIC_NR_PRIVATE_IRQS; in kvm_vgic_dist_init()215 for (i = 0; i < VGIC_NR_PRIVATE_IRQS; i++) { in kvm_vgic_vcpu_init()295 dist->nr_spis = VGIC_NR_IRQS_LEGACY - VGIC_NR_PRIVATE_IRQS; in vgic_init()
371 if (intid > VGIC_NR_PRIVATE_IRQS) in vgic_change_active_prepare()378 if (intid > VGIC_NR_PRIVATE_IRQS) in vgic_change_active_finish()537 if (intid + i < VGIC_NR_PRIVATE_IRQS) in vgic_mmio_write_config()557 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()
33 unsigned int spi_id = e->irqchip.pin + VGIC_NR_PRIVATE_IRQS; in vgic_irqfd_set_irq()
194 if (val < (VGIC_NR_PRIVATE_IRQS + 32) || in vgic_set_common_attr()205 val - VGIC_NR_PRIVATE_IRQS; in vgic_set_common_attr()249 VGIC_NR_PRIVATE_IRQS, uaddr); in vgic_get_common_attr()
82 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v3_misc()457 .len = (bpi * VGIC_NR_PRIVATE_IRQS) / 8, \462 .reg_offset = off + (bpi * VGIC_NR_PRIVATE_IRQS) / 8, \464 .len = (bpi * (1024 - VGIC_NR_PRIVATE_IRQS)) / 8, \
44 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v2_misc()187 if (intid < VGIC_NR_PRIVATE_IRQS) in vgic_mmio_write_target()
113 return &kvm->arch.vgic.spis[intid - VGIC_NR_PRIVATE_IRQS]; in vgic_get_irq()426 if (!vcpu && intid < VGIC_NR_PRIVATE_IRQS) in kvm_vgic_inject_irq()
83 intid - VGIC_NR_PRIVATE_IRQS); in vgic_v2_fold_lr_state()
73 intid - VGIC_NR_PRIVATE_IRQS); in vgic_v3_fold_lr_state()
923 if (irq_num < VGIC_NR_SGIS || irq_num >= VGIC_NR_PRIVATE_IRQS) in kvm_vm_ioctl_irq_line()931 if (irq_num < VGIC_NR_PRIVATE_IRQS) in kvm_vm_ioctl_irq_line()