Home
last modified time | relevance | path

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

12345678910>>...17

/linux-6.6.21/kernel/irq/
Dtimings.c382 static u64 __irq_timings_next_event(struct irqt_stat *irqs, int irq, u64 now) in __irq_timings_next_event() argument
386 if ((now - irqs->last_ts) >= NSEC_PER_SEC) { in __irq_timings_next_event()
387 irqs->count = irqs->last_ts = 0; in __irq_timings_next_event()
396 period_max = irqs->count > (3 * PREDICTION_PERIOD_MAX) ? in __irq_timings_next_event()
397 PREDICTION_PERIOD_MAX : irqs->count / 3; in __irq_timings_next_event()
409 count = irqs->count < IRQ_TIMINGS_SIZE ? in __irq_timings_next_event()
410 irqs->count : IRQ_TIMINGS_SIZE; in __irq_timings_next_event()
412 start = irqs->count < IRQ_TIMINGS_SIZE ? in __irq_timings_next_event()
413 0 : (irqs->count & IRQ_TIMINGS_MASK); in __irq_timings_next_event()
424 irqs->timings[i] = irqs->circ_timings[index]; in __irq_timings_next_event()
[all …]
/linux-6.6.21/drivers/vfio/platform/
Dvfio_platform_irq.c49 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_mask()
56 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_mask()
59 &vdev->irqs[index].mask, fd); in vfio_platform_set_irq_mask()
61 vfio_virqfd_disable(&vdev->irqs[index].mask); 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()
109 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_unmask()
116 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_unmask()
119 &vdev->irqs[index].unmask, in vfio_platform_set_irq_unmask()
122 vfio_virqfd_disable(&vdev->irqs[index].unmask); in vfio_platform_set_irq_unmask()
[all …]
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dpci-cxl.c63 void pnv_cxl_release_hwirq_ranges(struct cxl_irq_ranges *irqs, in pnv_cxl_release_hwirq_ranges() argument
71 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()
[all …]
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
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()
218 irqs[i].enabled = true; 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()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/arm/omap/
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-6.6.21/drivers/staging/media/atomisp/pci/
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-6.6.21/drivers/bus/fsl-mc/
Dfsl-mc-allocator.c449 struct fsl_mc_device_irq **irqs = NULL; in fsl_mc_allocate_irqs() local
453 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()
488 irqs[i] = to_fsl_mc_irq(resource); 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()
501 fsl_mc_resource_free(&irqs[i]->resource); in fsl_mc_allocate_irqs()
[all …]
/linux-6.6.21/drivers/irqchip/
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()
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()
/linux-6.6.21/drivers/pci/controller/
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()
251 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
682 idx = srcu_read_lock(&irqs->srcu); in vmd_irq()
[all …]
/linux-6.6.21/drivers/pcmcia/
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()
/linux-6.6.21/arch/riscv/kvm/
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()
162 irqd = &aplic->irqs[irq]; in aplic_read_enabled()
178 irqd = &aplic->irqs[irq]; in aplic_write_enabled()
196 irqd = &aplic->irqs[irq]; in aplic_read_input()
[all …]
/linux-6.6.21/arch/powerpc/platforms/ps3/
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-6.6.21/drivers/misc/cxl/
Dirq.c192 irq_off = hwirq - ctx->irqs.offset[r]; in cxl_irq_afu()
193 range = ctx->irqs.range[r]; in cxl_irq_afu()
311 if ((rc = cxl_ops->alloc_irq_ranges(&ctx->irqs, ctx->afu->adapter, in afu_allocate_irqs()
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()
[all …]
/linux-6.6.21/samples/pktgen/
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
/linux-6.6.21/drivers/pci/pcie/
Dportdrv.c112 static int pcie_port_enable_irq_vec(struct pci_dev *dev, int *irqs, int mask) in pcie_port_enable_irq_vec() argument
154 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()
176 static int pcie_init_service_irqs(struct pci_dev *dev, int *irqs, int mask) in pcie_init_service_irqs() argument
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()
[all …]
/linux-6.6.21/drivers/misc/
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()
/linux-6.6.21/arch/powerpc/platforms/cell/
Dspu_base.c387 if (spu->irqs[0]) { in spu_request_irqs()
390 ret = request_irq(spu->irqs[0], spu_irq_class_0, in spu_request_irqs()
395 if (spu->irqs[1]) { in spu_request_irqs()
398 ret = request_irq(spu->irqs[1], spu_irq_class_1, in spu_request_irqs()
403 if (spu->irqs[2]) { in spu_request_irqs()
406 ret = request_irq(spu->irqs[2], spu_irq_class_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()
[all …]
/linux-6.6.21/drivers/gpio/
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()
/linux-6.6.21/drivers/pci/hotplug/
Dcpqphp_ctrl.c1524 res_lists.irqs = NULL; in board_added()
2331 struct irq_mapping irqs; in configure_new_function() local
2411 if (!resources->irqs) { in configure_new_function()
2412 irqs.barber_pole = 0; in configure_new_function()
2413 irqs.interrupt[0] = 0; in configure_new_function()
2414 irqs.interrupt[1] = 0; in configure_new_function()
2415 irqs.interrupt[2] = 0; in configure_new_function()
2416 irqs.interrupt[3] = 0; in configure_new_function()
2417 irqs.valid_INT = 0; in configure_new_function()
2419 irqs.barber_pole = resources->irqs->barber_pole; in configure_new_function()
[all …]
/linux-6.6.21/tools/testing/selftests/kvm/s390x/
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()
/linux-6.6.21/drivers/power/supply/
Daxp20x_ac_power.c48 unsigned int irqs[]; member
297 enable_irq_wake(power->irqs[i++]); in axp20x_ac_power_suspend()
299 disable_irq(power->irqs[i++]); in axp20x_ac_power_suspend()
310 disable_irq_wake(power->irqs[i++]); in axp20x_ac_power_resume()
312 enable_irq(power->irqs[i++]); in axp20x_ac_power_resume()
340 struct_size(power, irqs, axp_data->num_irq_names), in axp20x_ac_power_probe()
382 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_ac_power_probe()
383 ret = devm_request_any_context_irq(&pdev->dev, power->irqs[i], in axp20x_ac_power_probe()
/linux-6.6.21/drivers/ssb/
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()
137 ssb_chipco_gpio_polarity(chipco, irqs, val & irqs); in ssb_gpio_irq_chipco_handler()
327 unsigned long irqs = (val ^ pol) & mask; in ssb_gpio_irq_extif_handler() local
330 if (!irqs) in ssb_gpio_irq_extif_handler()
333 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_extif_handler()
336 ssb_extif_gpio_polarity(extif, irqs, val & irqs); in ssb_gpio_irq_extif_handler()
/linux-6.6.21/drivers/gpu/drm/i915/gt/
Dintel_gt_irq.c264 u32 irqs = GT_RENDER_USER_INTERRUPT; in gen11_gt_irq_postinstall() local
272 irqs |= GT_CS_MASTER_ERROR_INTERRUPT | in gen11_gt_irq_postinstall()
276 dmask = irqs << 16 | irqs; in gen11_gt_irq_postinstall()
277 smask = irqs << 16; in gen11_gt_irq_postinstall()
284 gsc_mask = irqs; in gen11_gt_irq_postinstall()
290 BUILD_BUG_ON(irqs & 0xffff0000); in gen11_gt_irq_postinstall()
464 const u32 irqs = in gen8_gt_irq_postinstall() local
470 irqs << GEN8_RCS_IRQ_SHIFT | irqs << GEN8_BCS_IRQ_SHIFT, in gen8_gt_irq_postinstall()
471 irqs << GEN8_VCS0_IRQ_SHIFT | irqs << GEN8_VCS1_IRQ_SHIFT, in gen8_gt_irq_postinstall()
473 irqs << GEN8_VECS_IRQ_SHIFT, in gen8_gt_irq_postinstall()
/linux-6.6.21/drivers/input/serio/
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()

12345678910>>...17