Home
last modified time | relevance | path

Searched refs:irq_mask (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/arch/mips/core/
Dirq_manage.c33 uint32_t irq_mask; in arch_irq_enable() local
37 irq_mask = ST0_IP0 << irq; in arch_irq_enable()
38 mips_cp0_status_int_mask |= irq_mask; in arch_irq_enable()
39 write_c0_status(read_c0_status() | irq_mask); in arch_irq_enable()
47 uint32_t irq_mask; in arch_irq_disable() local
51 irq_mask = ST0_IP0 << irq; in arch_irq_disable()
52 mips_cp0_status_int_mask &= ~irq_mask; in arch_irq_disable()
53 write_c0_status(read_c0_status() & ~irq_mask); in arch_irq_disable()
/Zephyr-latest/boards/native/native_posix/
Dirq_ctrl.c33 static uint64_t irq_mask; variable
50 irq_mask = 0U; /* Let's assume all interrupts are disable at boot */ in hw_irq_ctrl_init()
142 irq_premask &= ~irq_mask; in hw_irq_ctrl_clear_all_enabled_irqs()
153 irq_mask &= ~((uint64_t)1<<irq); in hw_irq_ctrl_disable_irq()
158 return (irq_mask & ((uint64_t)1 << irq))?1:0; in hw_irq_ctrl_is_irq_enabled()
163 return irq_mask; in hw_irq_ctrl_get_irq_mask()
183 irq_mask |= ((uint64_t)1<<irq); in hw_irq_ctrl_enable_irq()
195 if (irq_mask & (1 << irq)) { in hw_irq_ctrl_irq_raise_prefix()
/Zephyr-latest/scripts/native_simulator/native/src/
Dirq_ctrl.c32 static uint64_t irq_mask; variable
49 irq_mask = 0U; /* Let's assume all interrupts are disable at boot */ in hw_irq_ctrl_init()
143 irq_premask &= ~irq_mask; in hw_irq_ctrl_clear_all_enabled_irqs()
154 irq_mask &= ~((uint64_t)1<<irq); in hw_irq_ctrl_disable_irq()
159 return (irq_mask & ((uint64_t)1 << irq))?1:0; in hw_irq_ctrl_is_irq_enabled()
167 return irq_mask; in hw_irq_ctrl_get_irq_mask()
193 irq_mask |= ((uint64_t)1<<irq); in hw_irq_ctrl_enable_irq()
204 if (irq_mask & ((uint64_t)1 << irq)) { in hw_irq_ctrl_irq_raise_prefix()
/Zephyr-latest/drivers/interrupt_controller/
Dintc_mtk_adsp.c11 uint32_t irq_mask; member
21 return (*cfg->enable_reg | (BIT(irq) & cfg->irq_mask)) != 0; in intc_mtk_adsp_get_enable()
30 if ((BIT(irq) & cfg->irq_mask) != 0) { in intc_mtk_adsp_set_enable()
42 uint32_t irqs = *cfg->status_reg & cfg->irq_mask; in intc_isr()
76 .irq_mask = DT_INST_PROP(N, mask), \
Dintc_wkpu_nxp_s32.c57 uint64_t irq_mask; in wkpu_nxp_s32_interrupt_handler() local
61 irq_mask = LSB_GET(pending); in wkpu_nxp_s32_interrupt_handler()
62 irq = u64_count_trailing_zeros(irq_mask); in wkpu_nxp_s32_interrupt_handler()
65 REG_WRITE(WKPU_WISR(irq / 32U), REG_READ(WKPU_WISR(irq / 32U)) | irq_mask); in wkpu_nxp_s32_interrupt_handler()
71 pending ^= irq_mask; in wkpu_nxp_s32_interrupt_handler()
Dintc_vexriscv_litex.c16 #define IRQ_MASK DT_INST_REG_ADDR_BY_NAME(0, irq_mask)
/Zephyr-latest/soc/intel/intel_adsp/cavs/
Dmultiprocessing.c203 unsigned int irq_mask; in soc_adsp_halt_cpu() local
209 irq_mask = CAVS_L2_IDC; in soc_adsp_halt_cpu()
217 irq_mask |= CAVS_L2_DWCT0; in soc_adsp_halt_cpu()
220 CAVS_INTCTRL[id].l2.set = irq_mask; in soc_adsp_halt_cpu()
/Zephyr-latest/drivers/gpio/
Dgpio_b91.c166 uint8_t irq_mask = 0; in gpio_b91_irq_set() local
174 irq_mask = FLD_GPIO_IRQ_MASK_GPIO; in gpio_b91_irq_set()
177 irq_mask = FLD_GPIO_IRQ_MASK_GPIO2RISC0; in gpio_b91_irq_set()
180 irq_mask = FLD_GPIO_IRQ_MASK_GPIO2RISC1; in gpio_b91_irq_set()
210 BM_SET(reg_gpio_irq_risc_mask, irq_mask); in gpio_b91_irq_set()
/Zephyr-latest/dts/riscv/
Driscv32-litex-vexriscv.dtsi52 reg-names = "irq_mask", "irq_pending";