Lines Matching defs:wdog
49 bfin_wdog_enabled (struct bfin_wdog *wdog)
51 return ((wdog->ctl & WDEN) != WDDIS);
58 struct bfin_wdog *wdog = hw_data (me);
74 mmr_off = addr - wdog->base;
75 valuep = (void *)((uintptr_t)wdog + mmr_base() + mmr_off);
90 if (!bfin_wdog_enabled (wdog))
94 wdog->stat = wdog->cnt;
100 if (bfin_wdog_enabled (wdog))
101 wdog->stat = wdog->cnt;
113 struct bfin_wdog *wdog = hw_data (me);
123 mmr_off = addr - wdog->base;
124 valuep = (void *)((uintptr_t)wdog + mmr_base() + mmr_off);
159 struct bfin_wdog *wdog = hw_data (me);
162 wdog->ctl |= WDRO;
163 wdev = (wdog->ctl & WDEV);
169 attach_bfin_wdog_regs (struct hw *me, struct bfin_wdog *wdog)
193 wdog->base = attach_address;
199 struct bfin_wdog *wdog;
201 wdog = HW_ZALLOC (me, struct bfin_wdog);
203 set_hw_data (me, wdog);
209 attach_bfin_wdog_regs (me, wdog);
212 wdog->ctl = WDDIS;