Lines Matching defs:nr_spis
138 * @nr_spis: number of spis, frozen by caller
140 static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis)
146 dist->spis = kcalloc(nr_spis, sizeof(struct vgic_irq), GFP_KERNEL_ACCOUNT);
158 for (i = 0; i < nr_spis; i++) {
258 * The function is generally called when nr_spis has been explicitly set
259 * by the guest through the KVM DEVICE API. If not nr_spis is set to 256.
279 if (!dist->nr_spis)
280 dist->nr_spis = VGIC_NR_IRQS_LEGACY - VGIC_NR_PRIVATE_IRQS;
282 ret = kvm_vgic_dist_init(kvm, dist->nr_spis);
353 dist->nr_spis = 0;