Lines Matching full:cfg
19 const struct intc_mtk_cfg *cfg = dev->config; in intc_mtk_adsp_get_enable() local
21 return (*cfg->enable_reg | (BIT(irq) & cfg->irq_mask)) != 0; in intc_mtk_adsp_get_enable()
26 const struct intc_mtk_cfg *cfg = dev->config; in intc_mtk_adsp_set_enable() local
28 irq_enable(cfg->xtensa_irq); in intc_mtk_adsp_set_enable()
30 if ((BIT(irq) & cfg->irq_mask) != 0) { in intc_mtk_adsp_set_enable()
32 *cfg->enable_reg |= BIT(irq); in intc_mtk_adsp_set_enable()
34 *cfg->enable_reg &= ~BIT(irq); in intc_mtk_adsp_set_enable()
41 const struct intc_mtk_cfg *cfg = ((struct device *)arg)->config; in intc_isr() local
42 uint32_t irqs = *cfg->status_reg & cfg->irq_mask; in intc_isr()
46 uint32_t off = cfg->sw_isr_off + irq; in intc_isr()
55 const struct intc_mtk_cfg *cfg = dev->config; in dev_init() local
57 *cfg->enable_reg = 0; in dev_init()
58 irq_enable(cfg->xtensa_irq); in dev_init()