Home
last modified time | relevance | path

Searched refs:irqs (Results 1 – 25 of 505) sorted by relevance

12345678910>>...21

/openbmc/linux/drivers/vfio/platform/
H A Dvfio_platform_irq.c296 if (!vdev->irqs) in vfio_platform_irq_init()
318 vdev->irqs[i].count = 1; in vfio_platform_irq_init()
324 if (!vdev->irqs[i].name) { in vfio_platform_irq_init()
330 vdev->irqs[i].name, &vdev->irqs[i]); in vfio_platform_irq_init()
332 kfree(vdev->irqs[i].name); in vfio_platform_irq_init()
343 free_irq(vdev->irqs[i].hwirq, &vdev->irqs[i]); in vfio_platform_irq_init()
344 kfree(vdev->irqs[i].name); in vfio_platform_irq_init()
347 kfree(vdev->irqs); in vfio_platform_irq_init()
359 free_irq(vdev->irqs[i].hwirq, &vdev->irqs[i]); in vfio_platform_irq_cleanup()
360 if (vdev->irqs[i].trigger) in vfio_platform_irq_cleanup()
[all …]
/openbmc/linux/kernel/irq/
H A Dtimings.c387 irqs->count = irqs->last_ts = 0; in __irq_timings_next_event()
424 irqs->timings[i] = irqs->circ_timings[index]; in __irq_timings_next_event()
430 return irqs->last_ts + irqs->ema_time[min]; in __irq_timings_next_event()
432 return irqs->last_ts + irqs->ema_time[index]; in __irq_timings_next_event()
457 irqs->count = 0; in __irq_timings_store()
465 irqs->circ_timings[irqs->count & IRQ_TIMINGS_MASK] = index; in __irq_timings_store()
470 irqs->count++; in __irq_timings_store()
482 irqs->last_ts = ts; in irq_timings_store()
503 irqs->count = 0; in irq_timings_store()
539 struct irqt_stat *irqs; in irq_timings_next_event() local
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dpci-cxl.c71 if (!irqs->range[i]) in pnv_cxl_release_hwirq_ranges()
74 i, irqs->offset[i], in pnv_cxl_release_hwirq_ranges()
75 irqs->range[i]); in pnv_cxl_release_hwirq_ranges()
76 hwirq = irqs->offset[i] - phb->msi_base; in pnv_cxl_release_hwirq_ranges()
78 irqs->range[i]); in pnv_cxl_release_hwirq_ranges()
83 int pnv_cxl_alloc_hwirq_ranges(struct cxl_irq_ranges *irqs, in pnv_cxl_alloc_hwirq_ranges() argument
90 memset(irqs, 0, sizeof(struct cxl_irq_ranges)); in pnv_cxl_alloc_hwirq_ranges()
104 irqs->offset[i] = phb->msi_base + hwirq; in pnv_cxl_alloc_hwirq_ranges()
105 irqs->range[i] = try; in pnv_cxl_alloc_hwirq_ranges()
107 i, irqs->offset[i], irqs->range[i]); in pnv_cxl_alloc_hwirq_ranges()
[all …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_isr.c158 struct adf_irq *irqs = pci_dev_info->msix_entries.irqs; in adf_free_irqs() local
165 if (irqs[i].enabled) { in adf_free_irqs()
173 if (irqs[i].enabled) { in adf_free_irqs()
183 struct adf_irq *irqs = pci_dev_info->msix_entries.irqs; in adf_request_irqs() local
195 name = irqs[i].name; in adf_request_irqs()
223 name = irqs[i].name; in adf_request_irqs()
240 irqs[i].enabled = true; in adf_request_irqs()
251 struct adf_irq *irqs; in adf_isr_alloc_msix_vectors_data() local
257 irqs = kzalloc_node(msix_num_entries * sizeof(*irqs), in adf_isr_alloc_msix_vectors_data()
259 if (!irqs) in adf_isr_alloc_msix_vectors_data()
[all …]
/openbmc/u-boot/arch/nios2/cpu/
H A Dinterrupts.c41 unsigned irqs; in external_interrupt() local
45 irqs = rdctl (CTL_IENABLE) & rdctl (CTL_IPENDING); in external_interrupt()
52 while (irqs) { in external_interrupt()
53 if (irqs & 1) { in external_interrupt()
57 irqs >>=1; in external_interrupt()
64 unsigned irqs = rdctl (CTL_IENABLE); in def_hdlr() local
69 irqs &= ~(1 << (int)arg); in def_hdlr()
70 wrctl (CTL_IENABLE, irqs); in def_hdlr()
/openbmc/linux/Documentation/devicetree/bindings/arm/omap/
H A Dcrossbar.txt13 - ti,max-irqs: Total number of irqs available at the parent interrupt controller.
17 - ti,irqs-reserved: List of the reserved irq lines that are not muxed using
23 - ti,irqs-skip: This is similar to "ti,irqs-reserved", but these are for
24 SOC-specific hard-wiring of those irqs which unexpectedly bypasses the
25 crossbar. These irqs have a crossbar register, but still cannot be used.
27 - ti,irqs-safe-map: integer which maps to a safe configuration to use
34 ti,max-irqs = <160>;
37 ti,irqs-reserved = <0 1 2 3 5 6 131 132>;
38 ti,irqs-skip = <10 133 139 140>;
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Dgp_timer_defs.h28 …IVE_GP_TIMER_IRQ_TIMER_SELECT_REG_IDX(irq, timers, irqs) (HIVE_GP_TIMER_IRQ_TRIGGER_VALUE_REG_IDX( argument
29 …GP_TIMER_IRQ_ENABLE_REG_IDX(irq, timers, irqs) (HIVE_GP_TIMER_IRQ_TIMER_SELECT_REG_IDX(irqs,… argument
/openbmc/linux/drivers/bus/fsl-mc/
H A Dfsl-mc-allocator.c453 if (mc_dev->irqs) in fsl_mc_allocate_irqs()
475 irqs = devm_kcalloc(&mc_dev->dev, irq_count, sizeof(irqs[0]), in fsl_mc_allocate_irqs()
477 if (!irqs) in fsl_mc_allocate_irqs()
491 irqs[i]->mc_dev = mc_dev; in fsl_mc_allocate_irqs()
492 irqs[i]->dev_irq_index = i; in fsl_mc_allocate_irqs()
495 mc_dev->irqs = irqs; in fsl_mc_allocate_irqs()
500 irqs[i]->mc_dev = NULL; in fsl_mc_allocate_irqs()
516 struct fsl_mc_device_irq **irqs = mc_dev->irqs; in fsl_mc_free_irqs() local
518 if (!irqs) in fsl_mc_free_irqs()
532 irqs[i]->mc_dev = NULL; in fsl_mc_free_irqs()
[all …]
/openbmc/qemu/hw/intc/
H A Dxics.c77 if (!ics->irqs) { in ics_pic_print_info()
86 ICSIRQState *irq = ics->irqs + i; in ics_pic_print_info()
421 ICSIRQState *irq = ics->irqs + srcno; in ics_resend_msi()
434 ICSIRQState *irq = ics->irqs + srcno; in ics_resend_lsi()
446 ICSIRQState *irq = ics->irqs + srcno; in ics_set_irq_msi()
462 ICSIRQState *irq = ics->irqs + srcno; in ics_set_irq_lsi()
491 ICSIRQState *irq = ics->irqs + srcno; in ics_write_xive_msi()
588 flags[i] = ics->irqs[i].flags; in ics_reset_hold()
594 ics_reset_irq(ics->irqs + i); in ics_reset_hold()
595 ics->irqs[i].flags = flags[i]; in ics_reset_hold()
[all …]
H A Domap_intc.c32 uint32_t irqs; member
75 level = s->bank[j].irqs & ~s->bank[j].mask & in omap_inth_sir_update()
119 rise = ~bank->irqs & (1 << n); in omap_set_intr()
125 bank->irqs |= rise; in omap_set_intr()
131 bank->irqs &= ~rise; in omap_set_intr()
148 bank->irqs |= bank->inputs |= rise; in omap_set_intr_noedge()
168 return bank->irqs; in omap_inth_read()
181 bank->irqs &= ~(1 << i); in omap_inth_read()
343 s->bank[i].irqs = 0x00000000; in omap_inth_reset()
577 bank->irqs |= bank->swi |= value; in omap2_inth_write()
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-nvic.c76 unsigned int irqs, i, ret, numbanks; in nvic_of_init() local
88 irqs = numbanks * 32; in nvic_of_init()
89 if (irqs > NVIC_MAX_IRQ) in nvic_of_init()
90 irqs = NVIC_MAX_IRQ; in nvic_of_init()
93 irq_domain_add_linear(node, irqs, &nvic_irq_domain_ops, NULL); in nvic_of_init()
130 for (i = 0; i < irqs; i += 4) in nvic_of_init()
H A Dirq-ingenic-tcu.c96 int ret, irqs; in ingenic_tcu_irq_init() local
108 irqs = of_property_count_elems_of_size(np, "interrupts", sizeof(u32)); in ingenic_tcu_irq_init()
109 if (irqs < 0 || irqs > ARRAY_SIZE(tcu->parent_irqs)) { in ingenic_tcu_irq_init()
115 tcu->nb_parent_irqs = irqs; in ingenic_tcu_irq_init()
159 for (i = 0; i < irqs; i++) { in ingenic_tcu_irq_init()
/openbmc/linux/drivers/pcmcia/
H A Dsa1111_generic.c141 int i, ret = 0, irqs[NUM_IRQS]; in sa1111_pcmcia_add() local
148 irqs[i] = sa1111_get_irq(dev, i); in sa1111_pcmcia_add()
149 if (irqs[i] <= 0) in sa1111_pcmcia_add()
150 return irqs[i] ? : -ENXIO; in sa1111_pcmcia_add()
166 s->soc.socket.pci_irq = irqs[IDX_IRQ_S1_READY_NINT]; in sa1111_pcmcia_add()
167 s->soc.stat[SOC_STAT_CD].irq = irqs[IDX_IRQ_S1_CD_VALID]; in sa1111_pcmcia_add()
169 s->soc.stat[SOC_STAT_BVD1].irq = irqs[IDX_IRQ_S1_BVD1_STSCHG]; in sa1111_pcmcia_add()
172 s->soc.socket.pci_irq = irqs[IDX_IRQ_S0_READY_NINT]; in sa1111_pcmcia_add()
173 s->soc.stat[SOC_STAT_CD].irq = irqs[IDX_IRQ_S0_CD_VALID]; in sa1111_pcmcia_add()
175 s->soc.stat[SOC_STAT_BVD1].irq = irqs[IDX_IRQ_S0_BVD1_STSCHG]; in sa1111_pcmcia_add()
/openbmc/linux/drivers/pci/controller/
H A Dvmd.c132 struct vmd_irq_list *irqs; member
150 struct vmd_irq_list *irqs) in index_from_irqs() argument
152 return irqs - vmd->irqs; in index_from_irqs()
241 return &vmd->irqs[vmd->first_vec]; in vmd_next_irq()
257 if (vmd->irqs[i].count < vmd->irqs[best].count) in vmd_next_irq()
259 vmd->irqs[best].count++; in vmd_next_irq()
262 return &vmd->irqs[best]; in vmd_next_irq()
678 struct vmd_irq_list *irqs = data; in vmd_irq() local
704 vmd->irqs = devm_kcalloc(&dev->dev, vmd->msix_count, sizeof(*vmd->irqs), in vmd_alloc_irqs()
706 if (!vmd->irqs) in vmd_alloc_irqs()
[all …]
/openbmc/linux/arch/powerpc/platforms/ps3/
H A Dspu.c246 0, &spu->irqs[0]); in setup_interrupts()
252 1, &spu->irqs[1]); in setup_interrupts()
258 2, &spu->irqs[2]); in setup_interrupts()
266 ps3_spe_irq_destroy(spu->irqs[1]); in setup_interrupts()
268 ps3_spe_irq_destroy(spu->irqs[0]); in setup_interrupts()
270 spu->irqs[0] = spu->irqs[1] = spu->irqs[2] = 0; in setup_interrupts()
316 ps3_spe_irq_destroy(spu->irqs[2]); in ps3_destroy_spu()
317 ps3_spe_irq_destroy(spu->irqs[1]); in ps3_destroy_spu()
318 ps3_spe_irq_destroy(spu->irqs[0]); in ps3_destroy_spu()
320 spu->irqs[0] = spu->irqs[1] = spu->irqs[2] = 0; in ps3_destroy_spu()
/openbmc/linux/drivers/misc/cxl/
H A Dirq.c192 irq_off = hwirq - ctx->irqs.offset[r]; in cxl_irq_afu()
193 range = ctx->irqs.range[r]; in cxl_irq_afu()
317 ctx->irqs.offset[0] = ctx->afu->native->psl_hwirq; in afu_allocate_irqs()
318 ctx->irqs.range[0] = 1; in afu_allocate_irqs()
331 for (i = 0; i < ctx->irqs.range[r]; i++) { in afu_allocate_irqs()
351 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); in afu_allocate_irqs()
367 hwirq = ctx->irqs.offset[r]; in afu_register_hwirqs()
368 for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) { in afu_register_hwirqs()
409 hwirq = ctx->irqs.offset[r]; in afu_release_irqs()
410 for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) { in afu_release_irqs()
[all …]
/openbmc/linux/samples/pktgen/
H A Dfunctions.sh151 irqs=$(grep "$queues" /proc/interrupts | cut -f1 -d:)
152 [ -z "$irqs" ] && irqs=$(grep $IFACE /proc/interrupts | cut -f1 -d:)
153 [ -z "$irqs" ] && irqs=$(for i in `ls -Ux /sys/class/net/$IFACE/device/msi_irqs` ;\
156 [ -z "$irqs" ] && err 3 "Could not find interrupts for $IFACE"
158 echo $irqs
/openbmc/linux/arch/riscv/kvm/
H A Daia_aplic.c37 struct aplic_irq *irqs; member
48 irqd = &aplic->irqs[irq]; in aplic_read_sourcecfg()
64 irqd = &aplic->irqs[irq]; in aplic_write_sourcecfg()
84 irqd = &aplic->irqs[irq]; in aplic_read_target()
100 irqd = &aplic->irqs[irq]; in aplic_write_target()
119 irqd = &aplic->irqs[irq]; in aplic_read_pending()
135 irqd = &aplic->irqs[irq]; in aplic_write_pending()
172 irqd = &aplic->irqs[irq]; in aplic_read_enabled()
592 if (!aplic->irqs) { in kvm_riscv_aia_aplic_init()
622 kfree(aplic->irqs); in kvm_riscv_aia_aplic_init()
[all …]
/openbmc/linux/drivers/pci/pcie/
H A Dportdrv.c154 irqs[PCIE_PORT_SERVICE_PME_SHIFT] = pcie_irq; in pcie_port_enable_irq_vec()
155 irqs[PCIE_PORT_SERVICE_HP_SHIFT] = pcie_irq; in pcie_port_enable_irq_vec()
156 irqs[PCIE_PORT_SERVICE_BWNOTIF_SHIFT] = pcie_irq; in pcie_port_enable_irq_vec()
160 irqs[PCIE_PORT_SERVICE_AER_SHIFT] = pci_irq_vector(dev, aer); in pcie_port_enable_irq_vec()
163 irqs[PCIE_PORT_SERVICE_DPC_SHIFT] = pci_irq_vector(dev, dpc); in pcie_port_enable_irq_vec()
181 irqs[i] = -1; in pcie_init_service_irqs()
192 if (pcie_port_enable_irq_vec(dev, irqs, mask) == 0) in pcie_init_service_irqs()
202 irqs[i] = pci_irq_vector(dev, 0); in pcie_init_service_irqs()
329 int irqs[PCIE_PORT_DEVICE_MAXSERVICES]; in pcie_port_device_register() local
349 status = pcie_init_service_irqs(dev, irqs, capabilities); in pcie_port_device_register()
[all …]
/openbmc/linux/drivers/misc/
H A Dhi6421v600-irq.c24 unsigned int *irqs; member
120 generic_handle_irq_safe(priv->irqs[POWERKEY_DOWN]); in hi6421v600_irq_handler()
121 generic_handle_irq_safe(priv->irqs[POWERKEY_UP]); in hi6421v600_irq_handler()
129 generic_handle_irq_safe(priv->irqs[offset + i * BITS_PER_BYTE]); in hi6421v600_irq_handler()
254 priv->irqs = devm_kzalloc(dev, PMIC_IRQ_LIST_MAX * sizeof(int), GFP_KERNEL); in hi6421v600_irq_probe()
255 if (!priv->irqs) in hi6421v600_irq_probe()
271 priv->irqs[i] = virq; in hi6421v600_irq_probe()
/openbmc/linux/drivers/gpio/
H A Dgpio-reg.c28 const int *irqs; member
110 int irq = r->irqs[offset]; in gpio_reg_to_irq()
141 const char *const *names, struct irq_domain *irqdom, const int *irqs) in gpio_reg_init() argument
163 if (irqs) in gpio_reg_init()
171 r->irqs = irqs; in gpio_reg_init()
/openbmc/linux/arch/powerpc/platforms/cell/
H A Dspu_base.c387 if (spu->irqs[0]) { in spu_request_irqs()
395 if (spu->irqs[1]) { in spu_request_irqs()
403 if (spu->irqs[2]) { in spu_request_irqs()
414 if (spu->irqs[1]) in spu_request_irqs()
415 free_irq(spu->irqs[1], spu); in spu_request_irqs()
417 if (spu->irqs[0]) in spu_request_irqs()
418 free_irq(spu->irqs[0], spu); in spu_request_irqs()
425 if (spu->irqs[0]) in spu_free_irqs()
426 free_irq(spu->irqs[0], spu); in spu_free_irqs()
427 if (spu->irqs[1]) in spu_free_irqs()
[all …]
/openbmc/linux/drivers/pci/hotplug/
H A Dcpqphp_ctrl.c2419 irqs.barber_pole = resources->irqs->barber_pole; in configure_new_function()
2420 irqs.interrupt[0] = resources->irqs->interrupt[0]; in configure_new_function()
2421 irqs.interrupt[1] = resources->irqs->interrupt[1]; in configure_new_function()
2422 irqs.interrupt[2] = resources->irqs->interrupt[2]; in configure_new_function()
2423 irqs.interrupt[3] = resources->irqs->interrupt[3]; in configure_new_function()
2424 irqs.valid_INT = resources->irqs->valid_INT; in configure_new_function()
2433 temp_resources.irqs = &irqs; in configure_new_function()
2501 irqs.barber_pole = (irqs.barber_pole + 1) & 0x03; in configure_new_function()
2532 resources->irqs->interrupt[0] = irqs.interrupt[0]; in configure_new_function()
2533 resources->irqs->interrupt[1] = irqs.interrupt[1]; in configure_new_function()
[all …]
/openbmc/linux/drivers/input/serio/
H A Di8042-sparcio.h65 unsigned int irq = kbd->archdata.irqs[0]; in sparc_i8042_probe()
67 irq = op->archdata.irqs[0]; in sparc_i8042_probe()
75 unsigned int irq = ms->archdata.irqs[0]; in sparc_i8042_probe()
77 irq = op->archdata.irqs[0]; in sparc_i8042_probe()
/openbmc/linux/tools/testing/selftests/kvm/s390x/
H A Dresets.c71 int irqs; in assert_noirq() local
75 irqs = __vcpu_ioctl(vcpu, KVM_S390_GET_IRQ_STATE, &irq_state); in assert_noirq()
81 TEST_ASSERT(irqs >= 0, "Could not fetch IRQs: errno %d\n", errno); in assert_noirq()
82 TEST_ASSERT(!irqs, "IRQ pending"); in assert_noirq()
194 int irqs; in inject_irq() local
201 irqs = __vcpu_ioctl(vcpu, KVM_S390_SET_IRQ_STATE, &irq_state); in inject_irq()
202 TEST_ASSERT(irqs >= 0, "Error injecting EMERGENCY IRQ errno %d\n", errno); in inject_irq()

12345678910>>...21