Lines Matching +full:30 +full:v
38 #define OTTO_WDT_INTR_PHASE_2 BIT(30)
42 #define OTTO_WDT_CTRL_PRESCALE GENMASK(30, 29)
77 u32 v; in otto_wdt_start() local
79 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_start()
80 v |= OTTO_WDT_CTRL_ENABLE; in otto_wdt_start()
81 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_start()
89 u32 v; in otto_wdt_stop() local
91 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_stop()
92 v &= ~OTTO_WDT_CTRL_ENABLE; in otto_wdt_stop()
93 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_stop()
135 u32 v; in otto_wdt_determine_timeouts() local
151 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_determine_timeouts()
153 v &= ~(OTTO_WDT_CTRL_PRESCALE | OTTO_WDT_CTRL_PHASE1 | OTTO_WDT_CTRL_PHASE2); in otto_wdt_determine_timeouts()
154 v |= FIELD_PREP(OTTO_WDT_CTRL_PHASE1, phase1_ticks - 1); in otto_wdt_determine_timeouts()
155 v |= FIELD_PREP(OTTO_WDT_CTRL_PHASE2, phase2_ticks - 1); in otto_wdt_determine_timeouts()
156 v |= FIELD_PREP(OTTO_WDT_CTRL_PRESCALE, prescale); in otto_wdt_determine_timeouts()
158 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_determine_timeouts()
184 u32 v; in otto_wdt_restart() local
201 v = FIELD_PREP(OTTO_WDT_CTRL_RST_MODE, reset_mode) | OTTO_WDT_CTRL_ENABLE; in otto_wdt_restart()
202 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_restart()
259 u32 v; in otto_wdt_probe_reset_mode() local
281 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_probe_reset_mode()
282 v &= ~OTTO_WDT_CTRL_RST_MODE; in otto_wdt_probe_reset_mode()
283 v |= FIELD_PREP(OTTO_WDT_CTRL_RST_MODE, mode); in otto_wdt_probe_reset_mode()
284 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_probe_reset_mode()
338 ctrl->wdev.timeout = min(30U, ctrl->wdev.max_hw_heartbeat_ms / 1000); in otto_wdt_probe()