Home
last modified time | relevance | path

Searched refs:intid (Results 1 – 21 of 21) sorted by relevance

/Linux-v5.10/arch/arm64/kvm/vgic/
Dvgic-mmio.c47 u32 intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_read_group() local
53 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_mmio_read_group()
72 u32 intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_write_group() local
77 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_mmio_write_group()
81 if (irq->hw && vgic_irq_is_sgi(irq->intid)) { in vgic_mmio_write_group()
99 u32 intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_read_enable() local
105 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_mmio_read_enable()
120 u32 intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_write_senable() local
125 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_mmio_write_senable()
128 if (irq->hw && vgic_irq_is_sgi(irq->intid)) { in vgic_mmio_write_senable()
[all …]
Dvgic-debug.c31 int intid; member
43 iter->intid++; in iter_next()
44 if (iter->intid == VGIC_NR_PRIVATE_IRQS && in iter_next()
46 iter->intid = 0; in iter_next()
48 if (iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS)) { in iter_next()
50 iter->intid = iter->lpi_array[iter->lpi_idx]; in iter_next()
79 iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS) && in end_of_vgic()
183 if (irq->intid < VGIC_NR_SGIS) in print_irq_state()
185 else if (irq->intid < VGIC_NR_PRIVATE_IRQS) in print_irq_state()
187 else if (irq->intid < VGIC_MAX_SPI) in print_irq_state()
[all …]
Dvgic.c58 static struct vgic_irq *vgic_get_lpi(struct kvm *kvm, u32 intid) in vgic_get_lpi() argument
67 if (irq->intid != intid) in vgic_get_lpi()
91 u32 intid) in vgic_get_irq() argument
94 if (intid <= VGIC_MAX_PRIVATE) { in vgic_get_irq()
95 intid = array_index_nospec(intid, VGIC_MAX_PRIVATE + 1); in vgic_get_irq()
96 return &vcpu->arch.vgic_cpu.private_irqs[intid]; in vgic_get_irq()
100 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()
102 return &kvm->arch.vgic.spis[intid - VGIC_NR_PRIVATE_IRQS]; in vgic_get_irq()
106 if (intid >= VGIC_MIN_LPI) in vgic_get_irq()
[all …]
Dvgic-mmio-v2.c113 int intid = val & 0xf; in vgic_mmio_write_sgir() local
140 irq = vgic_get_irq(source_vcpu->kvm, vcpu, intid); in vgic_mmio_write_sgir()
154 u32 intid = VGIC_ADDR_TO_INTID(addr, 8); in vgic_mmio_read_target() local
159 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_mmio_read_target()
173 u32 intid = VGIC_ADDR_TO_INTID(addr, 8); in vgic_mmio_write_target() local
179 if (intid < VGIC_NR_PRIVATE_IRQS) in vgic_mmio_write_target()
183 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, NULL, intid + i); in vgic_mmio_write_target()
200 u32 intid = addr & 0x0f; in vgic_mmio_read_sgipend() local
205 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_mmio_read_sgipend()
218 u32 intid = addr & 0x0f; in vgic_mmio_write_sgipendc() local
[all …]
Dvgic-v3.c44 u32 intid, cpuid; in vgic_v3_fold_lr_state() local
52 intid = val & ICH_LR_VIRTUAL_ID_MASK; in vgic_v3_fold_lr_state()
54 intid = val & GICH_LR_VIRTUALID; in vgic_v3_fold_lr_state()
55 is_v2_sgi = vgic_irq_is_sgi(intid); in vgic_v3_fold_lr_state()
59 if (lr_signals_eoi_mi(val) && vgic_valid_spi(vcpu->kvm, intid)) in vgic_v3_fold_lr_state()
61 intid - VGIC_NR_PRIVATE_IRQS); in vgic_v3_fold_lr_state()
63 irq = vgic_get_irq(vcpu->kvm, vcpu, intid); in vgic_v3_fold_lr_state()
121 u64 val = irq->intid; in vgic_v3_populate_lr()
124 is_v2_sgi = (vgic_irq_is_sgi(irq->intid) && in vgic_v3_populate_lr()
166 if (vgic_irq_is_sgi(irq->intid) && in vgic_v3_populate_lr()
[all …]
Dvgic-v2.c61 u32 cpuid, intid = val & GICH_LR_VIRTUALID; in vgic_v2_fold_lr_state() local
70 if (lr_signals_eoi_mi(val) && vgic_valid_spi(vcpu->kvm, intid)) in vgic_v2_fold_lr_state()
72 intid - VGIC_NR_PRIVATE_IRQS); in vgic_v2_fold_lr_state()
74 irq = vgic_get_irq(vcpu->kvm, vcpu, intid); in vgic_v2_fold_lr_state()
81 if (irq->active && vgic_irq_is_sgi(intid)) in vgic_v2_fold_lr_state()
89 if (vgic_irq_is_sgi(intid)) in vgic_v2_fold_lr_state()
139 u32 val = irq->intid; in vgic_v2_populate_lr()
144 if (vgic_irq_is_sgi(irq->intid)) in vgic_v2_populate_lr()
184 if (vgic_irq_is_sgi(irq->intid)) { in vgic_v2_populate_lr()
188 irq->intid)) in vgic_v2_populate_lr()
Dvgic.h20 #define vgic_irq_is_sgi(intid) ((intid) < VGIC_NR_SGIS) argument
118 if (vgic_irq_is_sgi(irq->intid) && irq->source) in vgic_irq_get_lr_count()
163 u32 intid);
204 if (irq->intid < VGIC_MIN_LPI) in vgic_get_irq_kref()
245 u32 intid, u64 *val);
Dvgic-mmio-v3.c182 int intid = VGIC_ADDR_TO_INTID(addr, 64); in vgic_mmio_read_irouter() local
183 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, NULL, intid); in vgic_mmio_read_irouter()
201 int intid = VGIC_ADDR_TO_INTID(addr, 64); in vgic_mmio_write_irouter() local
209 irq = vgic_get_irq(vcpu->kvm, NULL, intid); in vgic_mmio_write_irouter()
314 u32 intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_v3_uaccess_read_pending() local
326 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_v3_uaccess_read_pending()
329 if (irq->hw && vgic_irq_is_sgi(irq->intid)) { in vgic_v3_uaccess_read_pending()
351 u32 intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_v3_uaccess_write_pending() local
356 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_v3_uaccess_write_pending()
1070 u32 intid, u64 *val) in vgic_v3_line_level_info_uaccess() argument
[all …]
Dvgic-v4.c110 vpe->sgi_config[irq->intid].enabled = irq->enabled; in vgic_v4_sync_sgi_config()
111 vpe->sgi_config[irq->intid].group = irq->group; in vgic_v4_sync_sgi_config()
112 vpe->sgi_config[irq->intid].priority = irq->priority; in vgic_v4_sync_sgi_config()
406 .vintid = irq->intid, in kvm_vgic_v4_set_forwarding()
Dvgic-mmio.h207 u64 vgic_read_irq_line_level_info(struct kvm_vcpu *vcpu, u32 intid);
209 void vgic_write_irq_line_level_info(struct kvm_vcpu *vcpu, u32 intid,
Dvgic-init.c152 irq->intid = i + VGIC_NR_PRIVATE_IRQS; in kvm_vgic_dist_init()
207 irq->intid = i; in kvm_vgic_vcpu_init()
Dvgic-kvm-device.c563 unsigned int info, intid; in vgic_v3_attr_regs_access() local
568 intid = attr->attr & in vgic_v3_attr_regs_access()
571 intid, reg); in vgic_v3_attr_regs_access()
Dvgic-its.c39 static struct vgic_irq *vgic_add_lpi(struct kvm *kvm, u32 intid, in vgic_add_lpi() argument
43 struct vgic_irq *irq = vgic_get_irq(kvm, NULL, intid), *oldirq; in vgic_add_lpi()
61 irq->intid = intid; in vgic_add_lpi()
72 if (oldirq->intid != intid) in vgic_add_lpi()
288 ret = kvm_read_guest_lock(kvm, propbase + irq->intid - GIC_LPI_OFFSET, in update_lpi_config()
346 intids[i++] = irq->intid; in vgic_copy_lpi_list()
2131 ((u64)ite->irq->intid << KVM_ITS_ITE_PINTID_SHIFT) | in vgic_its_save_ite()
/Linux-v5.10/drivers/net/can/cc770/
Dcc770.c97 static inline int intid2obj(unsigned int intid) in intid2obj() argument
99 if (intid == 2) in intid2obj()
102 return MSGOBJ_LAST + 2 - intid; in intid2obj()
716 u8 intid; in cc770_interrupt() local
728 intid = cc770_read_reg(priv, interrupt); in cc770_interrupt()
729 if (!intid) in cc770_interrupt()
733 if (intid == 1) { in cc770_interrupt()
738 o = intid2obj(intid); in cc770_interrupt()
742 intid); in cc770_interrupt()
/Linux-v5.10/include/kvm/
Darm_vgic.h108 u32 intid; /* Guest visible INTID */ member
351 int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int intid,
394 int kvm_vgic_set_owner(struct kvm_vcpu *vcpu, unsigned int intid, void *owner);
/Linux-v5.10/drivers/media/pci/saa7164/
Dsaa7164-core.c612 u32 intid, intstat[INT_SIZE/4]; in saa7164_irq() local
660 intid = (i * 32) + bit; in saa7164_irq()
661 if (intid == dev->intfdesc.bInterruptId) { in saa7164_irq()
664 } else if (intid == porta->hwcfg.interruptid) { in saa7164_irq()
669 } else if (intid == portb->hwcfg.interruptid) { in saa7164_irq()
674 } else if (intid == portc->hwcfg.interruptid) { in saa7164_irq()
679 } else if (intid == portd->hwcfg.interruptid) { in saa7164_irq()
684 } else if (intid == porte->hwcfg.interruptid) { in saa7164_irq()
689 } else if (intid == portf->hwcfg.interruptid) { in saa7164_irq()
698 __func__, i, bit, intid); in saa7164_irq()
/Linux-v5.10/Documentation/virt/kvm/devices/
Dvcpu.rst127 in-kernel virtual GIC. These must be a PPI (16 <= intid < 32). Setting the
131 KVM_ARM_VCPU_TIMER_IRQ_VTIMER The EL1 virtual timer intid (default: 27)
132 KVM_ARM_VCPU_TIMER_IRQ_PTIMER The EL1 physical timer intid (default: 30)
/Linux-v5.10/drivers/mfd/
Dtwl6040.c259 u8 intid; in twl6040_power_up_automatic() local
262 intid = twl6040_reg_read(twl6040, TWL6040_REG_INTID); in twl6040_power_up_automatic()
263 if (!(intid & TWL6040_READYINT)) { in twl6040_power_up_automatic()
/Linux-v5.10/arch/sparc/include/asm/
Dleon_amba.h113 u32 intid[16]; /* 0xc0 */ member
/Linux-v5.10/arch/arm64/kvm/hyp/
Dvgic-v3-sr.c476 static int __vgic_v3_find_active_lr(struct kvm_vcpu *vcpu, int intid, in __vgic_v3_find_active_lr() argument
485 if ((val & ICH_LR_VIRTUAL_ID_MASK) == intid && in __vgic_v3_find_active_lr()
/Linux-v5.10/arch/sparc/kernel/
Dleon_kernel.c53 return LEON3_BYPASS_LOAD_PA(&leon3_irqctrl_regs->intid[cpu]) & 0x1f; in leon_eirq_get()