Lines Matching full:regs
24 struct wdt_regs *regs; member
38 struct wdt_regs *regs = cfg->regs; in wdt_xec_setup() local
40 if (regs->CTRL & MCHP_WDT_CTRL_EN) { in wdt_xec_setup()
55 regs->CTRL |= MCHP_WDT_CTRL_JTAG_STALL_EN; in wdt_xec_setup()
57 regs->CTRL &= ~MCHP_WDT_CTRL_JTAG_STALL_EN; in wdt_xec_setup()
60 regs->CTRL |= MCHP_WDT_CTRL_EN; in wdt_xec_setup()
71 struct wdt_regs *regs = cfg->regs; in wdt_xec_disable() local
73 if (!(regs->CTRL & MCHP_WDT_CTRL_EN)) { in wdt_xec_disable()
77 regs->CTRL &= ~MCHP_WDT_CTRL_EN; in wdt_xec_disable()
90 struct wdt_regs *regs = cfg->regs; in wdt_xec_install_timeout() local
92 if (regs->CTRL & MCHP_WDT_CTRL_EN) { in wdt_xec_install_timeout()
101 regs->LOAD = 0; in wdt_xec_install_timeout()
105 regs->CTRL |= MCHP_WDT_CTRL_MODE_IRQ; in wdt_xec_install_timeout()
106 regs->IEN |= MCHP_WDT_IEN_EVENT_IRQ_EN; in wdt_xec_install_timeout()
113 regs->CTRL &= ~MCHP_WDT_CTRL_MODE_IRQ; in wdt_xec_install_timeout()
114 regs->IEN &= ~MCHP_WDT_IEN_EVENT_IRQ_EN; in wdt_xec_install_timeout()
123 regs->LOAD = config->window.max; in wdt_xec_install_timeout()
133 struct wdt_regs *regs = cfg->regs; in wdt_xec_feed() local
138 if (!(regs->CTRL & MCHP_WDT_CTRL_EN)) { in wdt_xec_feed()
144 regs->KICK = 1; in wdt_xec_feed()
153 struct wdt_regs *regs = cfg->regs; in wdt_xec_isr() local
166 regs->IEN &= ~MCHP_WDT_IEN_EVENT_IRQ_EN; in wdt_xec_isr()
199 .regs = (struct wdt_regs *)(DT_INST_REG_ADDR(0)),