Home
last modified time | relevance | path

Searched refs:irq (Results 26 – 50 of 1525) sorted by relevance

12345678910>>...61

/freebsd/sys/x86/x86/
H A Dnexus.c187 int irq; in nexus_init_resources() local
218 for (irq = 0; irq < num_io_irqs; irq++) in nexus_init_resources()
219 if (intr_lookup_source(irq) != NULL) in nexus_init_resources()
220 if (rman_manage_region(&irq_rman, irq, irq) != 0) in nexus_init_resources()
463 if (irq == NULL) in nexus_setup_intr()
473 error = rman_activate_resource(irq); in nexus_setup_intr()
566 nexus_add_irq(u_long irq) in nexus_add_irq() argument
569 if (rman_manage_region(&irq_rman, irq, irq) != 0) in nexus_add_irq()
578 return (msix_alloc(dev, irq)); in nexus_alloc_msix()
585 return (msix_release(irq)); in nexus_release_msix()
[all …]
/freebsd/sys/riscv/riscv/
H A Dplic.c84 u_int irq; member
154 src = &sc->isrcs[irq]; in plic_irq_dispatch()
190 WR4(sc, PLIC_PRIORITY(src->irq), 0); in plic_disable_intr()
202 WR4(sc, PLIC_PRIORITY(src->irq), 1); in plic_enable_intr()
249 uint32_t irq; in plic_attach() local
292 for (irq = 1; irq <= sc->ndev; irq++) { in plic_attach()
293 isrcs[irq].irq = irq; in plic_attach()
295 0, "%s,%u", name, irq); in plic_attach()
299 WR4(sc, PLIC_PRIORITY(irq), 0); in plic_attach()
449 reg &= ~(1 << (src->irq % 32)); in plic_bind_intr()
[all …]
H A Daplic.c63 u_int irq; member
215 src = &sc->isrcs[irq]; in aplic_irq_dispatch()
227 u_int claimi, prio, irq; in aplic_intr() local
236 irq = APLIC_IDC_CLAIMI_IRQ(claimi); in aplic_intr()
238 KASSERT((irq != 0), ("Invalid IRQ 0")); in aplic_intr()
241 aplic_irq_dispatch(sc, irq, prio, tf); in aplic_intr()
322 u_int irq; in aplic_setup_direct_mode() local
358 for (irq = 1; irq <= sc->ndev; irq++) { in aplic_setup_direct_mode()
359 isrcs[irq].irq = irq; in aplic_setup_direct_mode()
362 0, "%s,%u", name, irq); in aplic_setup_direct_mode()
[all …]
/freebsd/sys/dev/vnic/
H A Dnicvf_main.c1247 int irq; in nicvf_release_all_interrupts() local
1251 for (irq = 0; irq < nic->num_vec; irq++) { in nicvf_release_all_interrupts()
1281 int irq, rid; in nicvf_allocate_misc_interrupt() local
1293 rid = irq + 1; in nicvf_allocate_misc_interrupt()
1337 int irq; in nicvf_release_net_interrupts() local
1340 for_each_cq_irq(irq) { in nicvf_release_net_interrupts()
1394 irq)); in nicvf_release_net_interrupts()
1410 int irq, rid; in nicvf_allocate_net_interrupts() local
1427 rid = irq + 1; in nicvf_allocate_net_interrupts()
1467 rid = irq + 1; in nicvf_allocate_net_interrupts()
[all …]
/freebsd/sys/contrib/ncsw/user/env/
H A Dxx.c319 r = (struct resource *)irq; in XX_PreallocAndBindIntr()
342 r = (struct resource *)irq; in XX_DeallocIntr()
349 return (XX_FreeIntr(irq)); in XX_DeallocIntr()
362 irq = rman_get_start(r); in XX_SetIntr()
378 if (XX_IsPortalIntr(irq)) in XX_SetIntr()
388 XX_FreeIntr(uintptr_t irq) in XX_FreeIntr() argument
395 irq = rman_get_start(r); in XX_FreeIntr()
417 irq = rman_get_start(r); in XX_EnableIntr()
419 powerpc_intr_unmask(irq); in XX_EnableIntr()
430 irq = rman_get_start(r); in XX_DisableIntr()
[all …]
/freebsd/sys/contrib/device-tree/src/arm/intel/ixp/
H A Dintel-ixp43x-gateworks-gw2358.dts140 <0x0800 0 0 3 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 9 */
141 <0x0800 0 0 4 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 8 */
144 <0x1000 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 9 */
145 <0x1000 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 8 */
148 <0x1800 0 0 1 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 3 is irq 9 */
149 <0x1800 0 0 2 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 8 */
153 <0x2000 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 3 is irq 8 */
156 <0x2000 0 0 4 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 3 is irq 9 */
159 <0x3000 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 9 */
160 <0x3000 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 3 is irq 8 */
[all …]
H A Dintel-ixp4xx-reference-design.dtsi113 <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
114 <0x0800 0 0 2 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 10 */
115 <0x0800 0 0 3 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 9 */
116 <0x0800 0 0 4 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 8 */
118 <0x1000 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 10 */
119 <0x1000 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 9 */
120 <0x1000 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 8 */
123 <0x1800 0 0 1 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 3 is irq 9 */
124 <0x1800 0 0 2 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 8 */
128 <0x2000 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 4 is irq 8 */
[all …]
H A Dintel-ixp42x-gateworks-gw2348.dts122 <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
123 <0x0800 0 0 2 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 10 */
124 <0x0800 0 0 3 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 9 */
125 <0x0800 0 0 4 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 8 */
127 <0x1000 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 10 */
128 <0x1000 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 9 */
129 <0x1000 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 8 */
132 <0x1800 0 0 1 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 3 is irq 9 */
133 <0x1800 0 0 2 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 8 */
137 <0x2000 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 4 is irq 8 */
[all …]
H A Dintel-ixp42x-ixdpg425.dts75 <0x6000 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 7 */
76 <0x6000 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 7 */
77 <0x6000 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 7 */
78 <0x6000 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 7 */
80 <0x6800 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 7 */
81 <0x6800 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 7 */
82 <0x6800 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 13 is irq 7 */
83 <0x6800 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 13 is irq 7 */
85 <0x7000 0 0 1 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 6 */
86 <0x7000 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 6 */
[all …]
H A Dintel-ixp42x-goramo-multilink.dts96 <0x5800 0 0 1 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 11 is irq 4 */
97 <0x5800 0 0 2 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 11 is irq 4 */
98 <0x5800 0 0 3 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 11 is irq 4 */
99 <0x5800 0 0 4 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 11 is irq 4 */
101 <0x6000 0 0 1 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 5 */
102 <0x6000 0 0 2 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 5 */
103 <0x6000 0 0 3 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 5 */
104 <0x6000 0 0 4 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 5 */
111 <0x7000 0 0 1 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 3 */
112 <0x7000 0 0 2 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 3 */
[all …]
/freebsd/sys/i386/conf/
H A DGENERIC.hints3 hint.fdc.0.irq="6"
11 hint.ata.0.irq="14"
14 hint.ata.1.irq="15"
18 hint.atkbd.0.irq="1"
20 hint.psm.0.irq="12"
28 hint.uart.0.irq="4"
31 hint.uart.1.irq="3"
33 hint.ppc.0.irq="7"
36 hint.atrtc.0.irq="8"
39 hint.attimer.0.irq="0"
/freebsd/sys/dev/xilinx/
H A Dxlnx_pcib.c103 u_int irq; member
205 int irq; in xlnx_pcib_handle_msi_intr() local
221 irq = i; in xlnx_pcib_handle_msi_intr()
223 irq += 32; in xlnx_pcib_handle_msi_intr()
261 int irq; in xlnx_pcib_register_msi() local
268 for (irq = 0; irq < XLNX_PCIB_MAX_MSI; irq++) { in xlnx_pcib_register_msi()
269 sc->isrcs[irq].irq = irq; in xlnx_pcib_register_msi()
595 for (irq = 0; (irq + count - 1) < XLNX_PCIB_MAX_MSI; irq++) { in xlnx_pcib_msi_alloc_msi()
600 for (end_irq = irq; end_irq < irq + count; end_irq++) { in xlnx_pcib_msi_alloc_msi()
687 irq = xi->irq; in xlnx_pcib_msi_mask()
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A Dpci_irq_machdep.h41 void pci_irq_reserve(int irq);
42 void pci_irq_use(int irq);
48 pci_irq_init_irq(struct pci_irq *irq) in pci_irq_init_irq() argument
50 irq->pirq_pin = 0; in pci_irq_init_irq()
51 irq->ioapic_irq = 0; in pci_irq_init_irq()
55 pci_irq_intline(struct pci_irq *irq) in pci_irq_intline() argument
57 return (pirq_irq(irq->pirq_pin)); in pci_irq_intline()
/freebsd/sys/contrib/device-tree/Bindings/pci/
H A Dv3-v360epc-pci.txt56 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */
57 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */
58 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */
59 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */
61 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */
62 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */
63 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */
64 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */
66 0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */
67 0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */
[all …]
H A Dintel,ixp4xx-pci.yaml88 <0x0800 0 0 1 &gpio0 11 3>, /* INT A on slot 1 is irq 11 */
89 <0x0800 0 0 2 &gpio0 10 3>, /* INT B on slot 1 is irq 10 */
90 <0x0800 0 0 3 &gpio0 9 3>, /* INT C on slot 1 is irq 9 */
91 <0x0800 0 0 4 &gpio0 8 3>, /* INT D on slot 1 is irq 8 */
92 <0x1000 0 0 1 &gpio0 10 3>, /* INT A on slot 2 is irq 10 */
93 <0x1000 0 0 2 &gpio0 9 3>, /* INT B on slot 2 is irq 9 */
94 <0x1000 0 0 3 &gpio0 8 3>, /* INT C on slot 2 is irq 8 */
95 <0x1000 0 0 4 &gpio0 11 3>, /* INT D on slot 2 is irq 11 */
96 <0x1800 0 0 1 &gpio0 9 3>, /* INT A on slot 3 is irq 9 */
97 <0x1800 0 0 2 &gpio0 8 3>, /* INT B on slot 3 is irq 8 */
[all …]
/freebsd/sys/powerpc/powerpc/
H A Dintr_machdep.c95 u_int irq; member
222 intr_lookup(u_int irq) in intr_lookup() argument
231 if (i != NULL && i->irq == irq) { in intr_lookup()
248 i->irq = irq; in intr_lookup()
263 if (iscan != NULL && iscan->irq == irq) in intr_lookup()
298 if (i->irq >= p->base && i->irq < p->base + cnt) in powerpc_map_irq()
364 u_int irq; in powerpc_register_pic() local
520 i = intr_lookup(irq); in powerpc_setup_intr()
583 i = intr_lookup(irq); in powerpc_bind_intr()
596 i = intr_lookup(irq); in powerpc_fw_config_intr()
[all …]
/freebsd/sys/arm/mv/
H A Dmpic.c84 #define MPIC_INT_CTL(irq) (0x100 + (irq)*4) argument
189 uint32_t irq; in mv_mpic_register_isrcs() local
197 for (irq = 0; irq < sc->nirqs; irq++) { in mv_mpic_register_isrcs()
198 sc->mpic_isrcs[irq].mmi_irq = irq; in mv_mpic_register_isrcs()
201 if (irq < MPIC_PPI) { in mv_mpic_register_isrcs()
294 unsigned int irq; in mpic_intr() local
299 irq = 0; in mpic_intr()
322 u_int irq; in mpic_disable_intr() local
325 mpic_mask_irq(irq); in mpic_disable_intr()
331 u_int irq; in mpic_enable_intr() local
[all …]
/freebsd/sys/arm/arm/
H A Dpmu_fdt.c87 pmu_parse_affinity(device_t dev, struct pmu_softc *sc, struct pmu_intr *irq, in pmu_parse_affinity() argument
106 irq->cpuid = i; in pmu_parse_affinity()
127 sc->irq[i].cpuid = -1; in pmu_parse_intr()
142 sc->irq[0].res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in pmu_parse_intr()
145 if (sc->irq[0].res == NULL) { in pmu_parse_intr()
152 if (intr_is_per_cpu(sc->irq[0].res)) { in pmu_parse_intr()
166 err = pmu_parse_affinity(dev, sc, sc->irq + 0, in pmu_parse_intr()
175 sc->irq[i].res = bus_alloc_resource_any(dev, SYS_RES_IRQ, in pmu_parse_intr()
177 if (sc->irq[i].res == NULL) in pmu_parse_intr()
180 if (intr_is_per_cpu(sc->irq[i].res)) in pmu_parse_intr()
[all …]
/freebsd/sys/amd64/conf/
H A DGENERIC.hints3 hint.fdc.0.irq="6"
12 hint.atkbd.0.irq="1"
14 hint.psm.0.irq="12"
20 hint.uart.0.irq="4"
23 hint.uart.1.irq="3"
25 hint.ppc.0.irq="7"
28 hint.atrtc.0.irq="8"
31 hint.attimer.0.irq="0"
/freebsd/sys/dev/gpio/
H A Dpl061.c82 #define PIC_INTR_ISRC(sc, irq) (&(sc->sc_isrcs[irq].isrc)) argument
275 uint32_t irq; in pl061_pic_map_intr() local
282 irq = gdata->gpio_pin_num; in pl061_pic_map_intr()
283 if (irq >= PL061_NUM_GPIO) { in pl061_pic_map_intr()
289 *isrcp = PIC_INTR_ISRC(sc, irq); in pl061_pic_map_intr()
315 irqsrc->irq, mode); in pl061_pic_setup_intr()
316 if (irqsrc->irq != gdata->gpio_pin_num) { in pl061_pic_setup_intr()
362 mask = 1 << irqsrc->irq; in pl061_pic_teardown_intr()
440 int irq; in pl061_attach() local
472 for (irq = 0; irq < PL061_NUM_GPIO; irq++) { in pl061_attach()
[all …]
/freebsd/sys/powerpc/powernv/
H A Dxive.c443 *priv = xive_configure_irq(irq); in xive_bind()
474 xive_eoi(dev, irq, irqd); in xive_bind()
550 if (irq == MAX_XIVE_IRQS) { in xive_enable()
556 *priv = xive_configure_irq(irq); in xive_enable()
576 xive_unmask(dev, irq, *priv); in xive_enable()
586 if (irq == MAX_XIVE_IRQS) { in xive_eoi()
621 if (irq == MAX_XIVE_IRQS) in xive_mask()
697 opal_call(OPAL_XIVE_GET_IRQ_INFO, irq, in xive_init_irq()
708 irqd->girq = irq; in xive_init_irq()
730 xive_configure_irq(u_int irq) in xive_configure_irq() argument
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_isr.c179 msixe[i].irq = in adf_request_irqs()
193 msixe[i].irq, in adf_request_irqs()
208 msixe[i].irq = NULL; in adf_request_irqs()
214 msixe[i].irq, in adf_request_irqs()
219 msixe[i].irq, in adf_request_irqs()
237 msixe[i].irq, in adf_request_irqs()
249 msixe[i].irq); in adf_request_irqs()
250 msixe[i].irq = NULL; in adf_request_irqs()
255 msixe[i].irq, in adf_request_irqs()
272 msixe[i].irq, in adf_free_irqs()
[all …]
/freebsd/sys/dev/acpica/
H A Dacpi_hpet.c78 int irq; member
100 int irq; member
224 if (t->irq < 0) in hpet_start()
377 if (error != 0 || (start <= irq && irq <= end)) in hpet_find_irq_rid()
555 t->irq = -1; in hpet_attach()
684 t->intr_rid = hpet_find_irq_rid(dev, t->irq, t->irq); in hpet_attach()
686 &t->intr_rid, t->irq, t->irq, 1, RF_ACTIVE); in hpet_attach()
733 sc->irq = -1; in hpet_attach()
782 else if (sc->irq >= 0 && (t->vectors & (1 << sc->irq))) in hpet_attach()
787 (sc->irq < 0 || (t->vectors & (1 << sc->irq)) == 0)) in hpet_attach()
[all …]
H A Dacpi_container.c47 int *irq);
49 int irq);
51 int irq, uint64_t *addr, uint32_t *data);
137 acpi_syscont_alloc_msix(device_t bus, device_t dev, int *irq) in acpi_syscont_alloc_msix() argument
141 return (PCIB_ALLOC_MSIX(device_get_parent(parent), dev, irq)); in acpi_syscont_alloc_msix()
145 acpi_syscont_release_msix(device_t bus, device_t dev, int irq) in acpi_syscont_release_msix() argument
149 return (PCIB_RELEASE_MSIX(device_get_parent(parent), dev, irq)); in acpi_syscont_release_msix()
153 acpi_syscont_map_msi(device_t bus, device_t dev, int irq, uint64_t *addr, in acpi_syscont_map_msi() argument
158 return (PCIB_MAP_MSI(device_get_parent(parent), dev, irq, addr, data)); in acpi_syscont_map_msi()
/freebsd/sys/contrib/device-tree/Bindings/dma/
H A Dmmp-dma.txt10 or one irq for pdma device
26 * Each channel has specific irq
27 * ICU parse out irq channel from ICU register,
28 * while DMA controller may not able to distinguish the irq channel
30 * For example, pxa688 icu register 0x128, bit 0~15 is PDMA channel irq,
31 * 18~21 is ADMA irq
42 * One irq for all channels
43 * Dmaengine driver (DMA controller) distinguish irq channel via
61 or one irq for dma device
68 /* each channel has specific irq */
[all …]

12345678910>>...61