/u-boot/arch/x86/lib/ |
A D | interrupts.c | 53 if (irq < 0 || irq >= SYS_NUM_IRQS) { in irq_install_handler() 70 unmask_irq(irq); in irq_install_handler() 82 if (irq < 0 || irq >= SYS_NUM_IRQS) { in irq_free_handler() 90 mask_irq(irq); in irq_free_handler() 105 if (irq < 0 || irq >= SYS_NUM_IRQS) { in do_irq() 112 mask_irq(irq); in do_irq() 114 irq_handlers[irq].handler(irq_handlers[irq].arg); in do_irq() 118 unmask_irq(irq); in do_irq() 135 int irq; in do_irqinfo() local 145 for (irq = 0; irq < SYS_NUM_IRQS; irq++) { in do_irqinfo() [all …]
|
A D | pirq_routing.c | 21 u8 irq = 0; in pirq_get_next_free_irq() local 30 irq = i; in pirq_get_next_free_irq() 53 return irq; in pirq_get_next_free_irq() 69 irq->bus, irq->devfn >> 3, irq->devfn & 7); in pirq_route_irqs() 72 int link = irq->irq[intx].link; in pirq_route_irqs() 73 int bitmap = irq->irq[intx].bitmap; in pirq_route_irqs() 74 int irq = 0; in pirq_route_irqs() local 92 pirq[link] = irq; in pirq_route_irqs() 94 irq = pirq[link]; in pirq_route_irqs() 105 pci_assign_irqs(irq->bus, irq->devfn >> 3, irq_slot); in pirq_route_irqs() [all …]
|
A D | i8259.c | 67 void mask_irq(int irq) in mask_irq() argument 71 if (irq >= SYS_NUM_IRQS) in mask_irq() 74 if (irq > 7) in mask_irq() 82 void unmask_irq(int irq) in unmask_irq() argument 86 if (irq >= SYS_NUM_IRQS) in unmask_irq() 89 if (irq > 7) in unmask_irq() 97 void specific_eoi(int irq) in specific_eoi() argument 99 if (irq >= SYS_NUM_IRQS) in specific_eoi() 102 if (irq > 7) { in specific_eoi() 109 irq = SEOI_IR2; in specific_eoi() [all …]
|
/u-boot/include/ |
A D | irq.h | 32 struct irq { struct 88 int (*read_and_clear)(struct irq *irq); 103 int (*of_xlate)(struct irq *irq, struct ofnode_phandle_args *args); 117 int (*request)(struct irq *irq); 126 int (*free)(struct irq *irq); 139 int (*get_acpi)(const struct irq *irq, struct acpi_irq *acpi_irq); 152 static inline bool irq_is_valid(const struct irq *irq) in irq_is_valid() argument 201 int irq_read_and_clear(struct irq *irq); 234 int irq_request(struct udevice *dev, struct irq *irq); 243 int irq_free(struct irq *irq); [all …]
|
A D | ali512x.h | 21 void ali512x_set_fdc(int enabled, u16 io, u8 irq, u8 dma_channel); 22 void ali512x_set_pp(int enabled, u16 io, u8 irq, u8 dma_channel); 23 void ali512x_set_uart(int enabled, int index, u16 io, u8 irq); 24 void ali512x_set_rtc(int enabled, u16 io, u8 irq);
|
/u-boot/drivers/misc/ |
A D | irq-uclass.c | 56 int irq_read_and_clear(struct irq *irq) in irq_read_and_clear() argument 68 struct phandle_1_arg *cells, struct irq *irq) in irq_get_by_driver_info() argument 80 static int irq_of_xlate_default(struct irq *irq, in irq_of_xlate_default() argument 93 irq->id = 0; in irq_of_xlate_default() 101 struct irq *irq) in irq_get_by_index_tail() argument 106 assert(irq); in irq_get_by_index_tail() 107 irq->dev = NULL; in irq_get_by_index_tail() 137 int irq_get_by_index(struct udevice *dev, int index, struct irq *irq) in irq_get_by_index() argument 150 int irq_request(struct udevice *dev, struct irq *irq) in irq_request() argument 157 irq->dev = dev; in irq_request() [all …]
|
A D | irq_sandbox.c | 25 static int sandbox_set_polarity(struct udevice *dev, uint irq, bool active_low) in sandbox_set_polarity() argument 27 if (irq > 10) in sandbox_set_polarity() 51 static int sandbox_irq_read_and_clear(struct irq *irq) in sandbox_irq_read_and_clear() argument 53 struct sandbox_irq_priv *priv = dev_get_priv(irq->dev); in sandbox_irq_read_and_clear() 55 if (irq->id != SANDBOX_IRQN_PEND) in sandbox_irq_read_and_clear() 69 static int sandbox_irq_of_xlate(struct irq *irq, in sandbox_irq_of_xlate() argument 72 irq->id = args->args[0]; in sandbox_irq_of_xlate() 77 static __maybe_unused int sandbox_get_acpi(const struct irq *irq, in sandbox_get_acpi() argument 80 acpi_irq->pin = irq->id; in sandbox_get_acpi()
|
A D | ali512x.c | 82 void ali512x_set_fdc(int enabled, u16 io, u8 irq, u8 dma_channel) in ali512x_set_fdc() argument 91 ali_write(0x70, irq); in ali512x_set_fdc() 104 void ali512x_set_pp(int enabled, u16 io, u8 irq, u8 dma_channel) in ali512x_set_pp() argument 113 ali_write(0x70, irq); in ali512x_set_pp() 125 void ali512x_set_uart(int enabled, int index, u16 io, u8 irq) in ali512x_set_uart() argument 134 ali_write(0x70, irq); in ali512x_set_uart() 161 void ali512x_set_rtc(int enabled, u16 io, u8 irq) in ali512x_set_rtc() argument 170 ali_write(0x70, irq); in ali512x_set_rtc()
|
A D | winbond_w83627.c | 31 void winbond_enable_serial(uint dev, uint iobase, uint irq) in winbond_enable_serial() argument 37 pnp_set_irq(dev, PNP_IDX_IRQ0, irq); in winbond_enable_serial()
|
/u-boot/test/dm/ |
A D | irq.c | 51 struct irq irq; in dm_test_read_and_clear() local 54 irq.id = SANDBOX_IRQN_PEND; in dm_test_read_and_clear() 55 ut_asserteq(0, irq_read_and_clear(&irq)); in dm_test_read_and_clear() 56 ut_asserteq(0, irq_read_and_clear(&irq)); in dm_test_read_and_clear() 57 ut_asserteq(0, irq_read_and_clear(&irq)); in dm_test_read_and_clear() 58 ut_asserteq(1, irq_read_and_clear(&irq)); in dm_test_read_and_clear() 59 ut_asserteq(0, irq_read_and_clear(&irq)); in dm_test_read_and_clear() 69 struct irq irq; in dm_test_request() local 74 ut_asserteq(3, irq.id); in dm_test_request() 85 struct irq irq; in dm_test_irq_get_acpi() local [all …]
|
/u-boot/arch/x86/cpu/ |
A D | acpi_gpe.c | 29 static int acpi_gpe_read_and_clear(struct irq *irq) in acpi_gpe_read_and_clear() argument 31 struct acpi_gpe_priv *priv = dev_get_priv(irq->dev); in acpi_gpe_read_and_clear() 37 bank = irq->id / 32; in acpi_gpe_read_and_clear() 38 mask = 1 << (irq->id % 32); in acpi_gpe_read_and_clear() 67 static int acpi_gpe_of_xlate(struct irq *irq, struct ofnode_phandle_args *args) in acpi_gpe_of_xlate() argument 69 irq->id = args->args[0]; in acpi_gpe_of_xlate() 70 irq->flags = args->args[1]; in acpi_gpe_of_xlate() 76 static int acpi_gpe_get_acpi(const struct irq *irq, struct acpi_irq *acpi_irq) in acpi_gpe_get_acpi() argument 79 acpi_irq->pin = irq->id; in acpi_gpe_get_acpi() 80 acpi_irq->mode = irq->flags & IRQ_TYPE_EDGE_BOTH ? in acpi_gpe_get_acpi() [all …]
|
A D | irq.c | 80 bool pirq_check_irq_routed(struct udevice *dev, int link, u8 irq) in pirq_check_irq_routed() argument 98 return pirq == irq ? true : false; in pirq_check_irq_routed() 108 void pirq_assign_irq(struct udevice *dev, int link, u8 irq) in pirq_assign_irq() argument 113 if (irq < 3 || irq == 8 || irq == 13) in pirq_assign_irq() 118 pirq_linkno_to_reg(priv, link), irq); in pirq_assign_irq() 120 writeb(irq, (uintptr_t)priv->ibase + in pirq_assign_irq() 144 slot->irq[pin - 1].link = pirq_linkno_to_reg(priv, pirq); in fill_irq_info() 145 slot->irq[pin - 1].bitmap = priv->irq_mask; in fill_irq_info() 288 if (slot->irq[pr.pin - 1].link) { in create_pirq_routing_table() 298 if (slot->irq[pr.pin - 1].link != in create_pirq_routing_table()
|
/u-boot/arch/microblaze/cpu/ |
A D | interrupts.c | 49 static void enable_one_interrupt(int irq) in enable_one_interrupt() argument 54 offset <<= irq; in enable_one_interrupt() 64 static void disable_one_interrupt(int irq) in disable_one_interrupt() argument 69 offset <<= irq; in disable_one_interrupt() 73 debug("Disable one interrupt irq %x - mask %x,ier %x\n", irq, mask, in disable_one_interrupt() 79 int install_interrupt_handler(int irq, interrupt_handler_t *hdlr, void *arg) in install_interrupt_handler() argument 84 if ((irq < 0) || (irq > irq_no)) { in install_interrupt_handler() 88 act = &vecs[irq]; in install_interrupt_handler() 93 enable_one_interrupt(irq); in install_interrupt_handler() 99 act->arg = (void *)irq; in install_interrupt_handler() [all …]
|
A D | timer.c | 50 int irq = -1; in timer_init() local 78 irq = cell[0]; in timer_init() 79 debug("TIMER: IRQ %x\n", irq); in timer_init() 87 if (tmr && preload && irq >= 0) { in timer_init() 93 ret = install_interrupt_handler (irq, timer_isr, (void *)tmr); in timer_init()
|
/u-boot/arch/nios2/cpu/ |
A D | interrupts.c | 77 void irq_install_handler(int irq, interrupt_handler_t *hdlr, void *arg) in irq_install_handler() argument 84 if ((irq < 0) || (irq > 31)) in irq_install_handler() 86 act = &vecs[irq]; in irq_install_handler() 92 ena |= (1 << irq); /* enable */ in irq_install_handler() 95 act->arg = (void *)irq; in irq_install_handler() 96 ena &= ~(1 << irq); /* disable */ in irq_install_handler()
|
/u-boot/arch/powerpc/cpu/mpc8xx/ |
A D | interrupts.c | 56 int irq; in external_interrupt() local 65 irq = vec >> 26; in external_interrupt() 66 v_bit = 0x80000000UL >> irq; in external_interrupt() 72 clrbits_be32(&immr->im_siu_conf.sc_simask, 0xFFFF0000 >> irq); in external_interrupt() 74 if (!(irq & 0x1)) { /* External Interrupt ? */ in external_interrupt() 90 if (irq_vecs[irq].handler != NULL) { in external_interrupt() 91 irq_vecs[irq].handler(irq_vecs[irq].arg); in external_interrupt() 94 irq, vec); in external_interrupt()
|
/u-boot/arch/x86/include/asm/ |
A D | pirq_routing.h | 33 } irq[MAX_INTX_ENTRIES]; member 80 bool pirq_check_irq_routed(struct udevice *dev, int link, u8 irq); 111 void pirq_assign_irq(struct udevice *dev, int link, u8 irq); 126 void pirq_route_irqs(struct udevice *dev, struct irq_info *irq, int num);
|
A D | interrupt.h | 55 void mask_irq(int irq); 56 void unmask_irq(int irq); 57 void specific_eoi(int irq);
|
/u-boot/lib/acpi/ |
A D | acpi_device.c | 146 const struct acpi_irq *irq) in acpi_device_write_interrupt() argument 151 if (!irq->pin) in acpi_device_write_interrupt() 178 if (irq->shared == ACPI_IRQ_SHARED) in acpi_device_write_interrupt() 180 if (irq->wake == ACPI_IRQ_WAKE) in acpi_device_write_interrupt() 188 acpigen_emit_dword(ctx, irq->pin); in acpi_device_write_interrupt() 197 const struct irq *req_irq) in acpi_device_write_interrupt_irq() 199 struct acpi_irq irq; in acpi_device_write_interrupt_irq() local 202 ret = irq_get_acpi(req_irq, &irq); in acpi_device_write_interrupt_irq() 209 return irq.pin; in acpi_device_write_interrupt_irq() 261 switch (gpio->irq.polarity) { in acpi_device_write_gpio() [all …]
|
/u-boot/arch/arm/mach-rmobile/include/mach/ |
A D | irqs.h | 11 #define irq2evt(irq) (((irq) + 16) << 5) argument
|
/u-boot/arch/xtensa/dts/ |
A D | xtfpga.dtsi | 30 /* one cell: internal irq number, 31 * two cells: second cell == 0: internal irq number 32 * second cell == 1: external irq number 65 interrupts = <0 1>; /* external irq 0 */ 73 interrupts = <1 1>; /* external irq 1 */ 82 interrupts = <2 1>; /* external irq 2 */
|
/u-boot/include/acpi/ |
A D | acpi_device.h | 20 struct irq; 208 struct acpi_irq irq; member 298 struct irq irq; member 365 const struct irq *req_irq);
|
/u-boot/arch/x86/cpu/qemu/ |
A D | qemu.c | 171 u8 irq; in mp_determine_pci_dstirq() local 180 PCI_INTERRUPT_LINE, &irq); in mp_determine_pci_dstirq() 186 irq = pirq < 8 ? pirq + 16 : pirq + 12; in mp_determine_pci_dstirq() 189 return irq; in mp_determine_pci_dstirq()
|
/u-boot/arch/powerpc/cpu/mpc83xx/ |
A D | interrupts.c | 51 irq_install_handler(int irq, interrupt_handler_t * handler, void *arg) in irq_install_handler() argument 56 void irq_free_handler(int irq) in irq_free_handler() argument
|
/u-boot/drivers/usb/mtu3/ |
A D | mtu3_dr.h | 33 irqreturn_t mtu3_irq(int irq, void *data); 43 static inline irqreturn_t mtu3_irq(int irq, void *data) in mtu3_irq() argument
|