Home
last modified time | relevance | path

Searched full:irq (Results 1 – 25 of 1301) sorted by relevance

12345678910>>...53

/Zephyr-Core-3.5.0/soc/riscv/openisa_rv32m1/
Dvector.S22 * at byte offset 4 * (IRQ line number).
25 * are handled by the addresses right after the IRQ table.
36 j _isr_wrapper /* IRQ 0 */
37 j _isr_wrapper /* IRQ 1 */
38 j _isr_wrapper /* IRQ 2 */
39 j _isr_wrapper /* IRQ 3 */
40 j _isr_wrapper /* IRQ 4 */
41 j _isr_wrapper /* IRQ 5 */
42 j _isr_wrapper /* IRQ 6 */
43 j _isr_wrapper /* IRQ 7 */
[all …]
Dsoc.h26 * See gen_isr_tables.py for details on the Zephyr multi-level IRQ
31 * @brief Get an IRQ's level
32 * @param irq The IRQ number in the Zephyr irq.h numbering system
33 * @return IRQ level, either 1 or 2
35 static inline unsigned int rv32m1_irq_level(unsigned int irq) in rv32m1_irq_level() argument
37 return ((irq >> 8) & 0xff) == 0U ? 1 : 2; in rv32m1_irq_level()
41 * @brief Level 1 interrupt line associated with an IRQ
43 * Results are undefined if rv32m1_irq_level(irq) is not 1.
45 * @param The IRQ number in the Zephyr <irq.h> numbering system
46 * @return Level 1 (i.e. event unit) IRQ number associated with irq
[all …]
/Zephyr-Core-3.5.0/soc/riscv/riscv-privileged/common/
Dsoc_common_irq.c12 #include <zephyr/irq.h>
19 void arch_irq_enable(unsigned int irq) in arch_irq_enable() argument
21 riscv_clic_irq_enable(irq); in arch_irq_enable()
24 void arch_irq_disable(unsigned int irq) in arch_irq_disable() argument
26 riscv_clic_irq_disable(irq); in arch_irq_disable()
29 int arch_irq_is_enabled(unsigned int irq) in arch_irq_is_enabled() argument
31 return riscv_clic_irq_is_enabled(irq); in arch_irq_is_enabled()
34 void z_riscv_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_riscv_irq_priority_set() argument
36 riscv_clic_irq_priority_set(irq, prio, flags); in z_riscv_irq_priority_set()
41 void arch_irq_enable(unsigned int irq) in arch_irq_enable() argument
[all …]
/Zephyr-Core-3.5.0/drivers/interrupt_controller/
Dintc_vim.c11 #include <zephyr/arch/arm/irq.h>
26 /* Reading IRQVEC register, ACTIRQ gets loaded with valid IRQ values */ in z_vim_irq_get_active()
32 /* Check if the irq number is valid, else return invalid irq number. in z_vim_irq_get_active()
52 void z_vim_irq_eoi(unsigned int irq) in z_vim_irq_eoi() argument
64 void z_vim_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_vim_irq_priority_set() argument
68 if (irq > CONFIG_NUM_IRQS || prio > VIM_PRI_INT_MAX || in z_vim_irq_priority_set()
70 LOG_ERR("%s: Invalid argument irq = %u prio = %u flags = %u\n", in z_vim_irq_priority_set()
71 __func__, irq, prio, flags); in z_vim_irq_priority_set()
75 sys_write8(prio, VIM_PRI_INT(irq)); in z_vim_irq_priority_set()
77 irq_group_num = VIM_GET_IRQ_GROUP_NUM(irq); in z_vim_irq_priority_set()
[all …]
Dintc_system_apic.c19 #include <zephyr/irq.h>
22 #define IS_IOAPIC_IRQ(irq) (irq < z_loapic_irq_base()) argument
29 * based on the given IRQ parameter.
42 * @param irq the virtualized IRQ
46 void z_irq_controller_irq_config(unsigned int vector, unsigned int irq, in z_irq_controller_irq_config() argument
49 __ASSERT(irq <= HARDWARE_IRQ_LIMIT, "invalid irq line"); in z_irq_controller_irq_config()
51 if (IS_IOAPIC_IRQ(irq)) { in z_irq_controller_irq_config()
52 z_ioapic_irq_set(irq, vector, flags); in z_irq_controller_irq_config()
54 z_loapic_int_vec_set(irq - z_loapic_irq_base(), vector); in z_irq_controller_irq_config()
59 * @brief Enable an individual interrupt (IRQ)
[all …]
Dintc_swerv_pic.c17 #include <zephyr/irq.h>
56 void swerv_pic_irq_enable(uint32_t irq) in swerv_pic_irq_enable() argument
60 if ((irq >= SWERV_PIC_MAX_ID) || (irq < RISCV_MAX_GENERIC_IRQ)) { in swerv_pic_irq_enable()
65 swerv_pic_write(SWERV_PIC_meie(irq - RISCV_MAX_GENERIC_IRQ), 1); in swerv_pic_irq_enable()
69 void swerv_pic_irq_disable(uint32_t irq) in swerv_pic_irq_disable() argument
73 if ((irq >= SWERV_PIC_MAX_ID) || (irq < RISCV_MAX_GENERIC_IRQ)) { in swerv_pic_irq_disable()
78 swerv_pic_write(SWERV_PIC_meie(irq - RISCV_MAX_GENERIC_IRQ), 0); in swerv_pic_irq_disable()
82 int swerv_pic_irq_is_enabled(uint32_t irq) in swerv_pic_irq_is_enabled() argument
84 if ((irq >= SWERV_PIC_MAX_ID) || (irq < RISCV_MAX_GENERIC_IRQ)) { in swerv_pic_irq_is_enabled()
88 return swerv_pic_read(SWERV_PIC_meie(irq - RISCV_MAX_GENERIC_IRQ)) in swerv_pic_irq_is_enabled()
[all …]
Dintc_plic.c22 #include <zephyr/irq.h>
58 * @brief return edge irq value or zero
60 * In the event edge irq is enable this will return the trigger
61 * value of the irq. In the event edge irq is not supported this
64 * @param irq IRQ number to add to the trigger
66 * @return irq value when enabled 0 otherwise
68 static int riscv_plic_is_edge_irq(uint32_t irq) in riscv_plic_is_edge_irq() argument
72 trig += (irq >> PLIC_EDGE_TRIG_SHIFT); in riscv_plic_is_edge_irq()
73 return *trig & BIT(irq); in riscv_plic_is_edge_irq()
84 * @param irq IRQ number to enable
[all …]
Dintc_ioapic.c45 * The lower 32 bit value of the redirection table entries for IRQ 0
46 * to 15 are edge triggered positive high, and for IRQ 16 to 23 are level
100 #define BIT_POS_FOR_IRQ_OPTION(irq, option) ((irq) * BITS_PER_IRQ + (option)) argument
102 /* Allocating up to 256 irq bits bufffer for RTEs, RTEs are dynamically found
113 static void ioApicRedSetHi(unsigned int irq, uint32_t upper32);
114 static void ioApicRedSetLo(unsigned int irq, uint32_t lower32);
115 static uint32_t ioApicRedGetLo(unsigned int irq);
116 static void IoApicRedUpdateLo(unsigned int irq, uint32_t value,
152 * interrupt controller driver due to the IRQ virtualization imposed by
200 * @param irq IRQ number to enable
[all …]
/Zephyr-Core-3.5.0/dts/arm/nuvoton/npcx/
Dnpcx-miwus-int-map.dtsi15 irq = <31>;
16 irq-prio = <2>;
20 irq = <15>;
21 irq-prio = <2>;
31 irq = <47>;
32 irq-prio = <2>;
36 irq = <48>;
37 irq-prio = <2>;
41 irq = <49>;
42 irq-prio = <2>;
[all …]
/Zephyr-Core-3.5.0/include/zephyr/
Dirq.h34 * This routine initializes an interrupt handler for an IRQ. The IRQ must be
42 * @param irq_p IRQ line number.
46 * @param flags_p Architecture-specific IRQ configuration flags..
56 * @param irq IRQ line number
60 * @param flags Arch-specific IRQ configuration flags
65 irq_connect_dynamic(unsigned int irq, unsigned int priority, in irq_connect_dynamic() argument
69 return arch_irq_connect_dynamic(irq, priority, routine, parameter, in irq_connect_dynamic()
81 * @param irq IRQ line number
85 * @param flags Arch-specific IRQ configuration flags
90 irq_disconnect_dynamic(unsigned int irq, unsigned int priority, in irq_disconnect_dynamic() argument
[all …]
Dirq_nextlevel.h25 unsigned int irq);
28 unsigned int irq, unsigned int prio,
31 unsigned int irq);
45 * @brief Enable an IRQ in the next level.
50 * @param irq IRQ to be enabled.
53 uint32_t irq) in irq_enable_next_level() argument
58 api->intr_enable(dev, irq); in irq_enable_next_level()
62 * @brief Disable an IRQ in the next level.
67 * @param irq IRQ to be disabled.
70 uint32_t irq) in irq_disable_next_level() argument
[all …]
/Zephyr-Core-3.5.0/dts/arm/nuvoton/npcx/npcx4/
Dnpcx4-miwus-int-map.dtsi19 irq = <7>;
20 irq-prio = <2>;
24 irq = <5>;
25 irq-prio = <2>;
29 irq = <11>;
30 irq-prio = <2>;
34 irq = <35>;
35 irq-prio = <2>;
39 irq = <42>;
40 irq-prio = <2>;
[all …]
/Zephyr-Core-3.5.0/include/zephyr/arch/xtensa/
Dirq.h78 void z_soc_irq_enable(unsigned int irq);
79 void z_soc_irq_disable(unsigned int irq);
80 int z_soc_irq_is_enabled(unsigned int irq);
82 #define arch_irq_enable(irq) z_soc_irq_enable(irq) argument
83 #define arch_irq_disable(irq) z_soc_irq_disable(irq) argument
85 #define arch_irq_is_enabled(irq) z_soc_irq_is_enabled(irq) argument
88 extern int z_soc_irq_connect_dynamic(unsigned int irq, unsigned int priority,
97 #define arch_irq_enable(irq) z_xtensa_irq_enable(irq) argument
98 #define arch_irq_disable(irq) z_xtensa_irq_disable(irq) argument
100 #define arch_irq_is_enabled(irq) z_xtensa_irq_is_enabled(irq) argument
[all …]
/Zephyr-Core-3.5.0/boards/posix/native_posix/
Dirq_ctrl.c6 * HW IRQ controller model
27 * irq handler
41 static bool lock_ignore; /* For the hard fake IRQ, temporarily ignore lock */
75 void hw_irq_ctrl_prio_set(unsigned int irq, unsigned int prio) in hw_irq_ctrl_prio_set() argument
77 irq_prio[irq] = prio; in hw_irq_ctrl_prio_set()
80 uint8_t hw_irq_ctrl_get_prio(unsigned int irq) in hw_irq_ctrl_get_prio() argument
82 return irq_prio[irq]; in hw_irq_ctrl_get_prio()
151 void hw_irq_ctrl_disable_irq(unsigned int irq) in hw_irq_ctrl_disable_irq() argument
153 irq_mask &= ~((uint64_t)1<<irq); in hw_irq_ctrl_disable_irq()
156 int hw_irq_ctrl_is_irq_enabled(unsigned int irq) in hw_irq_ctrl_is_irq_enabled() argument
[all …]
/Zephyr-Core-3.5.0/arch/x86/core/intel64/
Dlocore.S668 * When we arrive at 'irq' from one of the IRQ(X) stubs,
669 * we're on the "freshest" IRQ stack (or the trampoline stack if we came from
683 irq: label
723 * Bump the IRQ nesting count and move to the next IRQ stack.
748 irq_enter_nested: /* Nested IRQ: dump register state to stack. */
846 #define IRQ(nr) vector_ ## nr: pushq $(nr - IV_IRQS); jmp irq macro
848 IRQ( 33); IRQ( 34); IRQ( 35); IRQ( 36); IRQ( 37); IRQ( 38); IRQ( 39)
849 IRQ( 40); IRQ( 41); IRQ( 42); IRQ( 43); IRQ( 44); IRQ( 45); IRQ( 46); IRQ( 47)
850 IRQ( 48); IRQ( 49); IRQ( 50); IRQ( 51); IRQ( 52); IRQ( 53); IRQ( 54); IRQ( 55)
851 IRQ( 56); IRQ( 57); IRQ( 58); IRQ( 59); IRQ( 60); IRQ( 61); IRQ( 62); IRQ( 63)
[all …]
/Zephyr-Core-3.5.0/include/zephyr/arch/arm64/
Dirq.h18 #include <zephyr/irq.h>
38 extern void arch_irq_enable(unsigned int irq);
39 extern void arch_irq_disable(unsigned int irq);
40 extern int arch_irq_is_enabled(unsigned int irq);
43 extern void z_arm64_irq_priority_set(unsigned int irq, unsigned int prio,
54 void z_soc_irq_enable(unsigned int irq);
55 void z_soc_irq_disable(unsigned int irq);
56 int z_soc_irq_is_enabled(unsigned int irq);
59 unsigned int irq, unsigned int prio, unsigned int flags);
62 void z_soc_irq_eoi(unsigned int irq);
[all …]
/Zephyr-Core-3.5.0/arch/posix/core/
Dirq.c19 void arch_irq_enable(unsigned int irq) in arch_irq_enable() argument
21 posix_irq_enable(irq); in arch_irq_enable()
24 void arch_irq_disable(unsigned int irq) in arch_irq_disable() argument
26 posix_irq_disable(irq); in arch_irq_disable()
29 int arch_irq_is_enabled(unsigned int irq) in arch_irq_is_enabled() argument
31 return posix_irq_is_enabled(irq); in arch_irq_is_enabled()
40 * @param irq IRQ line number
44 * @param flags Arch-specific IRQ configuration flags
48 int arch_irq_connect_dynamic(unsigned int irq, unsigned int priority, in arch_irq_connect_dynamic() argument
52 posix_isr_declare(irq, (int)flags, routine, parameter); in arch_irq_connect_dynamic()
[all …]
/Zephyr-Core-3.5.0/scripts/native_simulator/native/src/
Dirq_ctrl.c7 * HW IRQ controller model
26 * irq handler
40 static bool lock_ignore; /* For the hard fake IRQ, temporarily ignore lock */
71 void hw_irq_ctrl_prio_set(unsigned int irq, unsigned int prio) in hw_irq_ctrl_prio_set() argument
73 irq_prio[irq] = prio; in hw_irq_ctrl_prio_set()
76 uint8_t hw_irq_ctrl_get_prio(unsigned int irq) in hw_irq_ctrl_get_prio() argument
78 return irq_prio[irq]; in hw_irq_ctrl_get_prio()
152 void hw_irq_ctrl_disable_irq(unsigned int irq) in hw_irq_ctrl_disable_irq() argument
154 irq_mask &= ~((uint64_t)1<<irq); in hw_irq_ctrl_disable_irq()
157 int hw_irq_ctrl_is_irq_enabled(unsigned int irq) in hw_irq_ctrl_is_irq_enabled() argument
[all …]
/Zephyr-Core-3.5.0/subsys/testsuite/include/zephyr/
Dinterrupt_util.h25 * returning false, here, implies that the IRQ line is in get_available_nvic_line()
55 zassert_true(i >= 0, "No available IRQ line\n"); in get_available_nvic_line()
60 static inline void trigger_irq(int irq) in trigger_irq() argument
62 printk("Triggering irq : %d\n", irq); in trigger_irq()
67 NVIC_SetPendingIRQ(irq); in trigger_irq()
69 NVIC->STIR = irq; in trigger_irq()
77 static inline void trigger_irq(int irq) in trigger_irq() argument
79 printk("Triggering irq : %d\n", irq); in trigger_irq()
81 /* Ensure that the specified IRQ number is a valid SGI interrupt ID */ in trigger_irq()
82 zassert_true(irq <= 15, "%u is not a valid SGI interrupt ID", irq); in trigger_irq()
[all …]
/Zephyr-Core-3.5.0/dts/arm/nuvoton/npcx/npcx9/
Dnpcx9-miwus-int-map.dtsi19 irq = <7>;
20 irq-prio = <2>;
24 irq = <5>;
25 irq-prio = <2>;
29 irq = <11>;
30 irq-prio = <2>;
34 irq = <35>;
35 irq-prio = <2>;
39 irq = <42>;
40 irq-prio = <2>;
[all …]
/Zephyr-Core-3.5.0/soc/xtensa/dc233c/include/
D_soc_inthandlers.h86 int irq; in _xtensa_handle_one_int1() local
92 irq = 0; in _xtensa_handle_one_int1()
97 irq = 1; in _xtensa_handle_one_int1()
102 irq = 2; in _xtensa_handle_one_int1()
109 irq = 3; in _xtensa_handle_one_int1()
114 irq = 4; in _xtensa_handle_one_int1()
120 irq = 5; in _xtensa_handle_one_int1()
125 irq = 6; in _xtensa_handle_one_int1()
134 irq = 7; in _xtensa_handle_one_int1()
139 irq = 15; in _xtensa_handle_one_int1()
[all …]
/Zephyr-Core-3.5.0/soc/xtensa/espressif_esp32/common/include/
D_soc_inthandlers.h122 int irq; in _xtensa_handle_one_int1() local
128 irq = 0; in _xtensa_handle_one_int1()
133 irq = 1; in _xtensa_handle_one_int1()
138 irq = 2; in _xtensa_handle_one_int1()
145 irq = 3; in _xtensa_handle_one_int1()
150 irq = 4; in _xtensa_handle_one_int1()
156 irq = 5; in _xtensa_handle_one_int1()
161 irq = 6; in _xtensa_handle_one_int1()
171 irq = 7; in _xtensa_handle_one_int1()
176 irq = 8; in _xtensa_handle_one_int1()
[all …]
/Zephyr-Core-3.5.0/soc/xtensa/espressif_esp32/esp32_net/include/
D_soc_inthandlers.h110 int irq; in _xtensa_handle_one_int1() local
116 irq = 0; in _xtensa_handle_one_int1()
121 irq = 1; in _xtensa_handle_one_int1()
126 irq = 2; in _xtensa_handle_one_int1()
133 irq = 3; in _xtensa_handle_one_int1()
138 irq = 4; in _xtensa_handle_one_int1()
144 irq = 5; in _xtensa_handle_one_int1()
149 irq = 6; in _xtensa_handle_one_int1()
159 irq = 7; in _xtensa_handle_one_int1()
164 irq = 8; in _xtensa_handle_one_int1()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/arch/arc/v2/
Darcv2_irq_unit.h31 * APIs themselves are writing the IRQ_SELECT, selecting which IRQ's registers
48 int irq, in z_arc_v2_irq_unit_irq_enable_set() argument
54 z_arc_v2_aux_reg_write(_ARC_V2_IRQ_SELECT, irq); in z_arc_v2_irq_unit_irq_enable_set()
67 void z_arc_v2_irq_unit_int_enable(int irq) in z_arc_v2_irq_unit_int_enable() argument
69 z_arc_v2_irq_unit_irq_enable_set(irq, _ARC_V2_INT_ENABLE); in z_arc_v2_irq_unit_int_enable()
79 void z_arc_v2_irq_unit_int_disable(int irq) in z_arc_v2_irq_unit_int_disable() argument
81 z_arc_v2_irq_unit_irq_enable_set(irq, _ARC_V2_INT_DISABLE); in z_arc_v2_irq_unit_int_disable()
93 bool z_arc_v2_irq_unit_int_enabled(int irq) in z_arc_v2_irq_unit_int_enabled() argument
98 z_arc_v2_aux_reg_write(_ARC_V2_IRQ_SELECT, irq); in z_arc_v2_irq_unit_int_enabled()
114 void z_arc_v2_irq_unit_prio_set(int irq, unsigned char prio) in z_arc_v2_irq_unit_prio_set() argument
[all …]
/Zephyr-Core-3.5.0/soc/xtensa/intel_adsp/common/include/
D_soc_inthandlers.h87 int irq; in _xtensa_handle_one_int1() local
92 irq = 0; in _xtensa_handle_one_int1()
97 irq = 1; in _xtensa_handle_one_int1()
103 irq = 2; in _xtensa_handle_one_int1()
108 irq = 3; in _xtensa_handle_one_int1()
114 _sw_isr_table[irq].isr(_sw_isr_table[irq].arg); in _xtensa_handle_one_int1()
120 int irq; in _xtensa_handle_one_int2() local
125 irq = 4; in _xtensa_handle_one_int2()
130 irq = 5; in _xtensa_handle_one_int2()
136 irq = 6; in _xtensa_handle_one_int2()
[all …]

12345678910>>...53