Home
last modified time | relevance | path

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

12345678910>>...16

/linux/kernel/irq/
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 …]
/linux/drivers/vfio/platform/
A Dvfio_platform_irq.c59 &vdev->irqs[index].mask, fd); in vfio_platform_set_irq_mask()
66 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask()
72 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask()
119 &vdev->irqs[index].unmask, in vfio_platform_set_irq_unmask()
290 if (!vdev->irqs) in vfio_platform_irq_init()
299 spin_lock_init(&vdev->irqs[i].lock); in vfio_platform_irq_init()
307 vdev->irqs[i].count = 1; in vfio_platform_irq_init()
308 vdev->irqs[i].hwirq = hwirq; in vfio_platform_irq_init()
309 vdev->irqs[i].masked = false; in vfio_platform_irq_init()
316 kfree(vdev->irqs); in vfio_platform_irq_init()
[all …]
/linux/drivers/crypto/qat/qat_common/
A Dadf_isr.c115 struct adf_irq *irqs = pci_dev_info->msix_entries.irqs; in adf_free_irqs() local
122 if (irqs[i].enabled) { in adf_free_irqs()
130 if (irqs[i].enabled) { in adf_free_irqs()
140 struct adf_irq *irqs = pci_dev_info->msix_entries.irqs; in adf_request_irqs() local
152 name = irqs[i].name; in adf_request_irqs()
180 name = irqs[i].name; in adf_request_irqs()
197 irqs[i].enabled = true; in adf_request_irqs()
208 struct adf_irq *irqs; in adf_isr_alloc_msix_vectors_data() local
214 irqs = kzalloc_node(msix_num_entries * sizeof(*irqs), in adf_isr_alloc_msix_vectors_data()
216 if (!irqs) in adf_isr_alloc_msix_vectors_data()
[all …]
/linux/arch/powerpc/platforms/powernv/
A Dpci-cxl.c70 if (!irqs->range[i]) in pnv_cxl_release_hwirq_ranges()
73 i, irqs->offset[i], in pnv_cxl_release_hwirq_ranges()
74 irqs->range[i]); in pnv_cxl_release_hwirq_ranges()
75 hwirq = irqs->offset[i] - phb->msi_base; in pnv_cxl_release_hwirq_ranges()
77 irqs->range[i]); in pnv_cxl_release_hwirq_ranges()
82 int pnv_cxl_alloc_hwirq_ranges(struct cxl_irq_ranges *irqs, in pnv_cxl_alloc_hwirq_ranges() argument
89 memset(irqs, 0, sizeof(struct cxl_irq_ranges)); in pnv_cxl_alloc_hwirq_ranges()
103 irqs->offset[i] = phb->msi_base + hwirq; in pnv_cxl_alloc_hwirq_ranges()
104 irqs->range[i] = try; in pnv_cxl_alloc_hwirq_ranges()
106 i, irqs->offset[i], irqs->range[i]); in pnv_cxl_alloc_hwirq_ranges()
[all …]
/linux/Documentation/devicetree/bindings/arm/omap/
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>;
/linux/drivers/bus/fsl-mc/
A Dfsl-mc-allocator.c452 if (mc_dev->irqs) in fsl_mc_allocate_irqs()
474 irqs = devm_kcalloc(&mc_dev->dev, irq_count, sizeof(irqs[0]), in fsl_mc_allocate_irqs()
476 if (!irqs) in fsl_mc_allocate_irqs()
490 irqs[i]->mc_dev = mc_dev; in fsl_mc_allocate_irqs()
491 irqs[i]->dev_irq_index = i; in fsl_mc_allocate_irqs()
494 mc_dev->irqs = irqs; in fsl_mc_allocate_irqs()
499 irqs[i]->mc_dev = NULL; in fsl_mc_allocate_irqs()
515 struct fsl_mc_device_irq **irqs = mc_dev->irqs; in fsl_mc_free_irqs() local
517 if (!irqs) in fsl_mc_free_irqs()
531 irqs[i]->mc_dev = NULL; in fsl_mc_free_irqs()
[all …]
/linux/drivers/staging/media/atomisp/pci/
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
/linux/drivers/pcmcia/
A Dsa1111_generic.c142 int i, ret = 0, irqs[NUM_IRQS]; in sa1111_pcmcia_add() local
149 irqs[i] = sa1111_get_irq(dev, i); in sa1111_pcmcia_add()
150 if (irqs[i] <= 0) in sa1111_pcmcia_add()
151 return irqs[i] ? : -ENXIO; in sa1111_pcmcia_add()
167 s->soc.socket.pci_irq = irqs[IDX_IRQ_S1_READY_NINT]; in sa1111_pcmcia_add()
168 s->soc.stat[SOC_STAT_CD].irq = irqs[IDX_IRQ_S1_CD_VALID]; in sa1111_pcmcia_add()
170 s->soc.stat[SOC_STAT_BVD1].irq = irqs[IDX_IRQ_S1_BVD1_STSCHG]; in sa1111_pcmcia_add()
173 s->soc.socket.pci_irq = irqs[IDX_IRQ_S0_READY_NINT]; in sa1111_pcmcia_add()
174 s->soc.stat[SOC_STAT_CD].irq = irqs[IDX_IRQ_S0_CD_VALID]; in sa1111_pcmcia_add()
176 s->soc.stat[SOC_STAT_BVD1].irq = irqs[IDX_IRQ_S0_BVD1_STSCHG]; in sa1111_pcmcia_add()
/linux/drivers/pci/controller/
A Dvmd.c116 struct vmd_irq_list *irqs; member
134 struct vmd_irq_list *irqs) in index_from_irqs() argument
136 return irqs - vmd->irqs; in index_from_irqs()
225 return &vmd->irqs[vmd->first_vec]; in vmd_next_irq()
235 return &vmd->irqs[vmd->first_vec]; in vmd_next_irq()
241 if (vmd->irqs[i].count < vmd->irqs[best].count) in vmd_next_irq()
243 vmd->irqs[best].count++; in vmd_next_irq()
246 return &vmd->irqs[best]; in vmd_next_irq()
617 struct vmd_irq_list *irqs = data; in vmd_irq() local
643 vmd->irqs = devm_kcalloc(&dev->dev, vmd->msix_count, sizeof(*vmd->irqs), in vmd_alloc_irqs()
[all …]
/linux/drivers/irqchip/
A Dirq-nvic.c89 unsigned int irqs, i, ret, numbanks; in nvic_of_init() local
101 irqs = numbanks * 32; in nvic_of_init()
102 if (irqs > NVIC_MAX_IRQ) in nvic_of_init()
103 irqs = NVIC_MAX_IRQ; in nvic_of_init()
106 irq_domain_add_linear(node, irqs, &nvic_irq_domain_ops, NULL); in nvic_of_init()
141 for (i = 0; i < irqs; i += 4) in nvic_of_init()
A Dirq-ingenic-tcu.c94 int ret, irqs; in ingenic_tcu_irq_init() local
106 irqs = of_property_count_elems_of_size(np, "interrupts", sizeof(u32)); in ingenic_tcu_irq_init()
107 if (irqs < 0 || irqs > ARRAY_SIZE(tcu->parent_irqs)) { in ingenic_tcu_irq_init()
113 tcu->nb_parent_irqs = irqs; in ingenic_tcu_irq_init()
157 for (i = 0; i < irqs; i++) { in ingenic_tcu_irq_init()
/linux/arch/powerpc/platforms/ps3/
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()
/linux/drivers/misc/cxl/
A Dirq.c191 irq_off = hwirq - ctx->irqs.offset[r]; in cxl_irq_afu()
192 range = ctx->irqs.range[r]; in cxl_irq_afu()
316 ctx->irqs.offset[0] = ctx->afu->native->psl_hwirq; in afu_allocate_irqs()
317 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()
366 hwirq = ctx->irqs.offset[r]; in afu_register_hwirqs()
367 for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) { in afu_register_hwirqs()
408 hwirq = ctx->irqs.offset[r]; in afu_release_irqs()
409 for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) { in afu_release_irqs()
[all …]
/linux/drivers/pci/pcie/
A Dportdrv_core.c143 irqs[PCIE_PORT_SERVICE_PME_SHIFT] = pcie_irq; in pcie_port_enable_irq_vec()
144 irqs[PCIE_PORT_SERVICE_HP_SHIFT] = pcie_irq; in pcie_port_enable_irq_vec()
145 irqs[PCIE_PORT_SERVICE_BWNOTIF_SHIFT] = pcie_irq; in pcie_port_enable_irq_vec()
149 irqs[PCIE_PORT_SERVICE_AER_SHIFT] = pci_irq_vector(dev, aer); in pcie_port_enable_irq_vec()
152 irqs[PCIE_PORT_SERVICE_DPC_SHIFT] = pci_irq_vector(dev, dpc); in pcie_port_enable_irq_vec()
165 static int pcie_init_service_irqs(struct pci_dev *dev, int *irqs, int mask) in pcie_init_service_irqs() argument
178 if (pcie_port_enable_irq_vec(dev, irqs, mask) == 0) in pcie_init_service_irqs()
188 irqs[i] = pci_irq_vector(dev, 0); in pcie_init_service_irqs()
318 int irqs[PCIE_PORT_DEVICE_MAXSERVICES] = { in pcie_port_device_register() local
353 status = pcie_init_service_irqs(dev, irqs, irq_services); in pcie_port_device_register()
[all …]
/linux/samples/pktgen/
A Dfunctions.sh150 irqs=$(grep "$queues" /proc/interrupts | cut -f1 -d:)
151 [ -z "$irqs" ] && irqs=$(grep $IFACE /proc/interrupts | cut -f1 -d:)
152 [ -z "$irqs" ] && irqs=$(for i in `ls -Ux /sys/class/net/$IFACE/device/msi_irqs` ;\
155 [ -z "$irqs" ] && err 3 "Could not find interrupts for $IFACE"
157 echo $irqs
/linux/drivers/gpu/drm/i915/gt/
A Dintel_gt_irq.c211 u32 irqs = GT_RENDER_USER_INTERRUPT; in gen11_gt_irq_postinstall() local
216 irqs |= GT_CS_MASTER_ERROR_INTERRUPT | in gen11_gt_irq_postinstall()
220 dmask = irqs << 16 | irqs; in gen11_gt_irq_postinstall()
221 smask = irqs << 16; in gen11_gt_irq_postinstall()
223 BUILD_BUG_ON(irqs & 0xffff0000); in gen11_gt_irq_postinstall()
366 const u32 irqs = in gen8_gt_irq_postinstall() local
372 irqs << GEN8_RCS_IRQ_SHIFT | irqs << GEN8_BCS_IRQ_SHIFT, in gen8_gt_irq_postinstall()
373 irqs << GEN8_VCS0_IRQ_SHIFT | irqs << GEN8_VCS1_IRQ_SHIFT, in gen8_gt_irq_postinstall()
375 irqs << GEN8_VECS_IRQ_SHIFT, in gen8_gt_irq_postinstall()
/linux/arch/powerpc/platforms/cell/
A Dspu_base.c394 if (spu->irqs[0]) { in spu_request_irqs()
402 if (spu->irqs[1]) { in spu_request_irqs()
410 if (spu->irqs[2]) { in spu_request_irqs()
421 if (spu->irqs[1]) in spu_request_irqs()
422 free_irq(spu->irqs[1], spu); in spu_request_irqs()
424 if (spu->irqs[0]) in spu_request_irqs()
425 free_irq(spu->irqs[0], spu); in spu_request_irqs()
432 if (spu->irqs[0]) in spu_free_irqs()
433 free_irq(spu->irqs[0], spu); in spu_free_irqs()
434 if (spu->irqs[1]) in spu_free_irqs()
[all …]
/linux/drivers/pci/hotplug/
A Dcpqphp_ctrl.c2431 irqs.barber_pole = resources->irqs->barber_pole; in configure_new_function()
2432 irqs.interrupt[0] = resources->irqs->interrupt[0]; in configure_new_function()
2433 irqs.interrupt[1] = resources->irqs->interrupt[1]; in configure_new_function()
2434 irqs.interrupt[2] = resources->irqs->interrupt[2]; in configure_new_function()
2435 irqs.interrupt[3] = resources->irqs->interrupt[3]; in configure_new_function()
2436 irqs.valid_INT = resources->irqs->valid_INT; in configure_new_function()
2445 temp_resources.irqs = &irqs; in configure_new_function()
2513 irqs.barber_pole = (irqs.barber_pole + 1) & 0x03; in configure_new_function()
2544 resources->irqs->interrupt[0] = irqs.interrupt[0]; in configure_new_function()
2545 resources->irqs->interrupt[1] = irqs.interrupt[1]; in configure_new_function()
[all …]
/linux/drivers/misc/
A Dhi6421v600-irq.c24 unsigned int *irqs; member
120 generic_handle_irq(priv->irqs[POWERKEY_DOWN]); in hi6421v600_irq_handler()
121 generic_handle_irq(priv->irqs[POWERKEY_UP]); in hi6421v600_irq_handler()
129 generic_handle_irq(priv->irqs[offset + i * BITS_PER_BYTE]); in hi6421v600_irq_handler()
256 priv->irqs = devm_kzalloc(dev, PMIC_IRQ_LIST_MAX * sizeof(int), GFP_KERNEL); in hi6421v600_irq_probe()
257 if (!priv->irqs) in hi6421v600_irq_probe()
273 priv->irqs[i] = virq; in hi6421v600_irq_probe()
/linux/tools/testing/selftests/kvm/s390x/
A Dresets.c75 int irqs; in assert_noirq() local
79 irqs = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_GET_IRQ_STATE, &irq_state); in assert_noirq()
85 TEST_ASSERT(irqs >= 0, "Could not fetch IRQs: errno %d\n", errno); in assert_noirq()
86 TEST_ASSERT(!irqs, "IRQ pending"); in assert_noirq()
192 int irqs; in inject_irq() local
199 irqs = _vcpu_ioctl(vm, cpu_id, KVM_S390_SET_IRQ_STATE, &irq_state); in inject_irq()
200 TEST_ASSERT(irqs >= 0, "Error injecting EMERGENCY IRQ errno %d\n", errno); in inject_irq()
/linux/drivers/net/wan/
A Dz85230.c676 irqs = dev->chanA.irqs; in z8530_interrupt()
680 irqs->rx(&dev->chanA); in z8530_interrupt()
682 irqs->tx(&dev->chanA); in z8530_interrupt()
687 irqs = dev->chanB.irqs; in z8530_interrupt()
691 irqs->rx(&dev->chanB); in z8530_interrupt()
693 irqs->tx(&dev->chanB); in z8530_interrupt()
734 c->irqs = &z8530_sync; in z8530_sync_open()
764 c->irqs = &z8530_nop; in z8530_sync_close()
881 c->irqs = &z8530_dma_sync; in z8530_sync_dma_open()
904 c->irqs = &z8530_nop; in z8530_sync_dma_close()
[all …]
/linux/drivers/gpio/
A Dgpio-reg.c20 const int *irqs; member
102 int irq = r->irqs[offset]; in gpio_reg_to_irq()
133 const char *const *names, struct irq_domain *irqdom, const int *irqs) in gpio_reg_init() argument
155 if (irqs) in gpio_reg_init()
163 r->irqs = irqs; in gpio_reg_init()
/linux/drivers/ssb/
A Ddriver_gpio.c128 unsigned long irqs = (val ^ pol) & mask; in ssb_gpio_irq_chipco_handler() local
131 if (!irqs) in ssb_gpio_irq_chipco_handler()
134 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_chipco_handler()
136 ssb_chipco_gpio_polarity(chipco, irqs, val & irqs); in ssb_gpio_irq_chipco_handler()
326 unsigned long irqs = (val ^ pol) & mask; in ssb_gpio_irq_extif_handler() local
329 if (!irqs) in ssb_gpio_irq_extif_handler()
332 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_extif_handler()
334 ssb_extif_gpio_polarity(extif, irqs, val & irqs); in ssb_gpio_irq_extif_handler()
/linux/drivers/power/supply/
A Daxp20x_ac_power.c49 unsigned int irqs[]; member
298 enable_irq_wake(power->irqs[i++]); in axp20x_ac_power_suspend()
300 disable_irq(power->irqs[i++]); in axp20x_ac_power_suspend()
311 disable_irq_wake(power->irqs[i++]); in axp20x_ac_power_resume()
313 enable_irq(power->irqs[i++]); in axp20x_ac_power_resume()
341 struct_size(power, irqs, axp_data->num_irq_names), in axp20x_ac_power_probe()
385 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_ac_power_probe()
386 ret = devm_request_any_context_irq(&pdev->dev, power->irqs[i], in axp20x_ac_power_probe()
/linux/drivers/net/wireless/ath/ath11k/
A Dahb.c260 irq_idx = irq_grp->irqs[j]; in ath11k_ahb_sync_ext_irqs()
482 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
487 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
492 irq_grp->irqs[num_irq++] = reo2host_exception; in ath11k_ahb_ext_irq_config()
495 irq_grp->irqs[num_irq++] = wbm2host_rx_release; in ath11k_ahb_ext_irq_config()
498 irq_grp->irqs[num_irq++] = reo2host_status; in ath11k_ahb_ext_irq_config()
502 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
508 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
514 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
517 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
[all …]

Completed in 40 milliseconds

12345678910>>...16