Home
last modified time | relevance | path

Searched full:intid (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v6.1/tools/testing/selftests/kvm/lib/aarch64/
Dgic.c66 void gic_irq_enable(unsigned int intid) in gic_irq_enable() argument
69 gic_common_ops->gic_irq_enable(intid); in gic_irq_enable()
72 void gic_irq_disable(unsigned int intid) in gic_irq_disable() argument
75 gic_common_ops->gic_irq_disable(intid); in gic_irq_disable()
81 unsigned int intid; in gic_get_and_ack_irq() local
86 intid = irqstat & GENMASK(23, 0); in gic_get_and_ack_irq()
88 return intid; in gic_get_and_ack_irq()
91 void gic_set_eoi(unsigned int intid) in gic_set_eoi() argument
94 gic_common_ops->gic_write_eoir(intid); in gic_set_eoi()
97 void gic_set_dir(unsigned int intid) in gic_set_dir() argument
[all …]
Dgic_v3.c62 static enum gicv3_intid_range get_intid_range(unsigned int intid) in get_intid_range() argument
64 switch (intid) { in get_intid_range()
153 static void gicv3_access_reg(uint32_t intid, uint64_t offset, in gicv3_access_reg() argument
158 enum gicv3_intid_range intid_range = get_intid_range(intid); in gicv3_access_reg()
171 index = intid % fields_per_reg; in gicv3_access_reg()
175 /* Set offset to the actual register holding intid's config. */ in gicv3_access_reg()
176 offset += (intid / fields_per_reg) * (reg_bits / 8); in gicv3_access_reg()
185 static void gicv3_write_reg(uint32_t intid, uint64_t offset, in gicv3_write_reg() argument
188 gicv3_access_reg(intid, offset, reg_bits, in gicv3_write_reg()
192 static uint32_t gicv3_read_reg(uint32_t intid, uint64_t offset, in gicv3_read_reg() argument
[all …]
Dvgic.c83 int _kvm_irq_set_level_info(int gic_fd, uint32_t intid, int level) in _kvm_irq_set_level_info() argument
85 uint64_t attr = 32 * (intid / 32); in _kvm_irq_set_level_info()
86 uint64_t index = intid % 32; in _kvm_irq_set_level_info()
101 void kvm_irq_set_level_info(int gic_fd, uint32_t intid, int level) in kvm_irq_set_level_info() argument
103 int ret = _kvm_irq_set_level_info(gic_fd, intid, level); in kvm_irq_set_level_info()
108 int _kvm_arm_irq_line(struct kvm_vm *vm, uint32_t intid, int level) in _kvm_arm_irq_line() argument
110 uint32_t irq = intid & KVM_ARM_IRQ_NUM_MASK; in _kvm_arm_irq_line()
112 TEST_ASSERT(!INTID_IS_SGI(intid), "KVM_IRQ_LINE's interface itself " in _kvm_arm_irq_line()
115 if (INTID_IS_PPI(intid)) in _kvm_arm_irq_line()
123 void kvm_arm_irq_line(struct kvm_vm *vm, uint32_t intid, int level) in kvm_arm_irq_line() argument
[all …]
Dgic_private.h13 void (*gic_irq_enable)(unsigned int intid);
14 void (*gic_irq_disable)(unsigned int intid);
20 void (*gic_set_priority)(uint32_t intid, uint32_t prio);
21 void (*gic_irq_set_active)(uint32_t intid);
22 void (*gic_irq_clear_active)(uint32_t intid);
23 bool (*gic_irq_get_active)(uint32_t intid);
24 void (*gic_irq_set_pending)(uint32_t intid);
25 void (*gic_irq_clear_pending)(uint32_t intid);
26 bool (*gic_irq_get_pending)(uint32_t intid);
27 void (*gic_irq_set_config)(uint32_t intid, bool is_edge);
/Linux-v6.1/tools/testing/selftests/kvm/aarch64/
Dvgic_irq.c7 * host to inject a specific intid via a GUEST_SYNC call, and then checks that
87 #define _KVM_INJECT_MULTI(cmd, intid, num, expect_failure) \ argument
88 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure)
90 #define KVM_INJECT_MULTI(cmd, intid, num) \ argument
91 _KVM_INJECT_MULTI(cmd, intid, num, false)
93 #define _KVM_INJECT(cmd, intid, expect_failure) \ argument
94 _KVM_INJECT_MULTI(cmd, intid, 1, expect_failure)
96 #define KVM_INJECT(cmd, intid) \ argument
97 _KVM_INJECT_MULTI(cmd, intid, 1, false)
99 #define KVM_ACTIVATE(cmd, intid) \ argument
[all …]
Darch_timer.c117 static void guest_validate_irq(unsigned int intid, in guest_validate_irq() argument
146 GUEST_ASSERT_2(intid == timer_irq, intid, timer_irq); in guest_validate_irq()
155 unsigned int intid = gic_get_and_ack_irq(); in guest_irq_handler() local
159 guest_validate_irq(intid, shared_data); in guest_irq_handler()
163 gic_set_eoi(intid); in guest_irq_handler()
/Linux-v6.1/tools/testing/selftests/kvm/include/aarch64/
Dgic.h20 #define INTID_IS_SGI(intid) (0 <= (intid) && (intid) < MIN_PPI) argument
21 #define INTID_IS_PPI(intid) (MIN_PPI <= (intid) && (intid) < MIN_SPI) argument
22 #define INTID_IS_SPI(intid) (MIN_SPI <= (intid) && (intid) <= MAX_SPI) argument
26 void gic_irq_enable(unsigned int intid);
27 void gic_irq_disable(unsigned int intid);
29 void gic_set_eoi(unsigned int intid);
30 void gic_set_dir(unsigned int intid);
38 void gic_set_priority(uint32_t intid, uint32_t prio);
39 void gic_irq_set_active(unsigned int intid);
40 void gic_irq_clear_active(unsigned int intid);
[all …]
Dvgic.h24 void kvm_irq_set_level_info(int gic_fd, uint32_t intid, int level);
25 int _kvm_irq_set_level_info(int gic_fd, uint32_t intid, int level);
27 void kvm_arm_irq_line(struct kvm_vm *vm, uint32_t intid, int level);
28 int _kvm_arm_irq_line(struct kvm_vm *vm, uint32_t intid, int level);
31 void kvm_irq_write_ispendr(int gic_fd, uint32_t intid, struct kvm_vcpu *vcpu);
32 void kvm_irq_write_isactiver(int gic_fd, uint32_t intid, struct kvm_vcpu *vcpu);
/Linux-v6.1/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.c125 int intid = val & 0xf; in vgic_mmio_write_sgir() local
151 irq = vgic_get_irq(source_vcpu->kvm, vcpu, intid); in vgic_mmio_write_sgir()
165 u32 intid = VGIC_ADDR_TO_INTID(addr, 8); in vgic_mmio_read_target() local
170 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_mmio_read_target()
184 u32 intid = VGIC_ADDR_TO_INTID(addr, 8); in vgic_mmio_write_target() local
190 if (intid < VGIC_NR_PRIVATE_IRQS) in vgic_mmio_write_target()
194 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, NULL, intid + i); in vgic_mmio_write_target()
211 u32 intid = addr & 0x0f; in vgic_mmio_read_sgipend() local
216 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_mmio_read_sgipend()
229 u32 intid = addr & 0x0f; in vgic_mmio_write_sgipendc() local
[all …]
Dvgic-v3.c47 u32 intid, cpuid; in vgic_v3_fold_lr_state() local
56 intid = val & ICH_LR_VIRTUAL_ID_MASK; in vgic_v3_fold_lr_state()
58 intid = val & GICH_LR_VIRTUALID; in vgic_v3_fold_lr_state()
59 is_v2_sgi = vgic_irq_is_sgi(intid); in vgic_v3_fold_lr_state()
63 if (lr_signals_eoi_mi(val) && vgic_valid_spi(vcpu->kvm, intid)) in vgic_v3_fold_lr_state()
65 intid - VGIC_NR_PRIVATE_IRQS); in vgic_v3_fold_lr_state()
67 irq = vgic_get_irq(vcpu->kvm, vcpu, intid); in vgic_v3_fold_lr_state()
109 u64 val = irq->intid; in vgic_v3_populate_lr()
112 is_v2_sgi = (vgic_irq_is_sgi(irq->intid) && in vgic_v3_populate_lr()
154 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
71 if (lr_signals_eoi_mi(val) && vgic_valid_spi(vcpu->kvm, intid)) in vgic_v2_fold_lr_state()
73 intid - VGIC_NR_PRIVATE_IRQS); in vgic_v2_fold_lr_state()
75 irq = vgic_get_irq(vcpu->kvm, vcpu, intid); in vgic_v2_fold_lr_state()
83 if (irq->active && vgic_irq_is_sgi(intid)) in vgic_v2_fold_lr_state()
91 if (vgic_irq_is_sgi(intid)) in vgic_v2_fold_lr_state()
124 u32 val = irq->intid; in vgic_v2_populate_lr()
129 if (vgic_irq_is_sgi(irq->intid)) in vgic_v2_populate_lr()
169 if (vgic_irq_is_sgi(irq->intid)) { in vgic_v2_populate_lr()
172 if (WARN_RATELIMIT(!src, "No SGI source for INTID %d\n", in vgic_v2_populate_lr()
[all …]
Dvgic.h20 #define vgic_irq_is_sgi(intid) ((intid) < VGIC_NR_SGIS) argument
123 if (vgic_irq_is_sgi(irq->intid) && irq->source) in vgic_irq_get_lr_count()
168 u32 intid);
212 if (irq->intid < VGIC_MIN_LPI) in vgic_get_irq_kref()
252 u32 intid, u32 *val);
Dvgic-mmio-v3.c196 int intid = VGIC_ADDR_TO_INTID(addr, 64); in vgic_mmio_read_irouter() local
197 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, NULL, intid); in vgic_mmio_read_irouter()
215 int intid = VGIC_ADDR_TO_INTID(addr, 64); in vgic_mmio_write_irouter() local
223 irq = vgic_get_irq(vcpu->kvm, NULL, intid); in vgic_mmio_write_irouter()
360 u32 intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_v3_uaccess_write_pending() local
365 struct vgic_irq *irq = vgic_get_irq(vcpu->kvm, vcpu, intid + i); in vgic_v3_uaccess_write_pending()
1157 u32 intid, u32 *val) in vgic_v3_line_level_info_uaccess() argument
1159 if (intid % 32) in vgic_v3_line_level_info_uaccess()
1163 vgic_write_irq_line_level_info(vcpu, intid, *val); in vgic_v3_line_level_info_uaccess()
1165 *val = vgic_read_irq_line_level_info(vcpu, intid); in vgic_v3_line_level_info_uaccess()
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()
215 int mask = BIT(irq->intid % BITS_PER_BYTE); in vgic_v4_get_vlpi_state()
220 ptr = va + irq->intid / BITS_PER_BYTE; in vgic_v4_get_vlpi_state()
439 .vintid = irq->intid, in kvm_vgic_v4_set_forwarding()
Dvgic-mmio.h210 u32 vgic_read_irq_line_level_info(struct kvm_vcpu *vcpu, u32 intid);
212 void vgic_write_irq_line_level_info(struct kvm_vcpu *vcpu, u32 intid,
Dvgic-kvm-device.c593 unsigned int info, intid; in vgic_v3_attr_regs_access() local
598 intid = attr->attr & in vgic_v3_attr_regs_access()
601 intid, &val); in vgic_v3_attr_regs_access()
/Linux-v6.1/include/kvm/
Darm_vgic.h133 u32 intid; /* Guest visible INTID */ member
142 u32 hwintid; /* HW INTID number */
377 int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int intid,
420 int kvm_vgic_set_owner(struct kvm_vcpu *vcpu, unsigned int intid, void *owner);
/Linux-v6.1/drivers/net/can/cc770/
Dcc770.c98 static inline int intid2obj(unsigned int intid) in intid2obj() argument
100 if (intid == 2) in intid2obj()
103 return MSGOBJ_LAST + 2 - intid; in intid2obj()
712 u8 intid; in cc770_interrupt() local
724 intid = cc770_read_reg(priv, interrupt); in cc770_interrupt()
725 if (!intid) in cc770_interrupt()
729 if (intid == 1) { in cc770_interrupt()
734 o = intid2obj(intid); in cc770_interrupt()
738 intid); in cc770_interrupt()
/Linux-v6.1/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()
697 "%s() unhandled interrupt reg 0x%x bit 0x%x intid = 0x%x\n", in saa7164_irq()
[all …]
/Linux-v6.1/Documentation/virt/kvm/devices/
Dvcpu.rst159 in-kernel virtual GIC. These must be a PPI (16 <= intid < 32). Setting the
163 KVM_ARM_VCPU_TIMER_IRQ_VTIMER The EL1 virtual timer intid (default: 27)
164 KVM_ARM_VCPU_TIMER_IRQ_PTIMER The EL1 physical timer intid (default: 30)
/Linux-v6.1/Documentation/devicetree/bindings/interrupt-controller/
Darm,gic-v3.yaml116 A list of pairs <intid span>, where "intid" is the first SPI of a range
/Linux-v6.1/drivers/net/ethernet/fungible/funcore/
Dfun_hci.h232 __be16 intid; member
268 .intid = cpu_to_be16(_intid), \
313 __be16 intid; member
342 .intid = cpu_to_be16(_intid), \

12