Lines Matching refs:wm831x
29 struct wm831x *wm831x; member
52 struct wm831x *wm831x = driver_data->wm831x; in wm831x_wdt_start() local
57 ret = wm831x_reg_unlock(wm831x); in wm831x_wdt_start()
59 ret = wm831x_set_bits(wm831x, WM831X_WATCHDOG, in wm831x_wdt_start()
61 wm831x_reg_lock(wm831x); in wm831x_wdt_start()
63 dev_err(wm831x->dev, "Failed to unlock security key: %d\n", in wm831x_wdt_start()
75 struct wm831x *wm831x = driver_data->wm831x; in wm831x_wdt_stop() local
80 ret = wm831x_reg_unlock(wm831x); in wm831x_wdt_stop()
82 ret = wm831x_set_bits(wm831x, WM831X_WATCHDOG, in wm831x_wdt_stop()
84 wm831x_reg_lock(wm831x); in wm831x_wdt_stop()
86 dev_err(wm831x->dev, "Failed to unlock security key: %d\n", in wm831x_wdt_stop()
98 struct wm831x *wm831x = driver_data->wm831x; in wm831x_wdt_ping() local
104 reg = wm831x_reg_read(wm831x, WM831X_WATCHDOG); in wm831x_wdt_ping()
107 dev_err(wm831x->dev, "Hardware watchdog update unsupported\n"); in wm831x_wdt_ping()
114 ret = wm831x_reg_unlock(wm831x); in wm831x_wdt_ping()
116 ret = wm831x_reg_write(wm831x, WM831X_WATCHDOG, reg); in wm831x_wdt_ping()
117 wm831x_reg_lock(wm831x); in wm831x_wdt_ping()
119 dev_err(wm831x->dev, "Failed to unlock security key: %d\n", in wm831x_wdt_ping()
133 struct wm831x *wm831x = driver_data->wm831x; in wm831x_wdt_set_timeout() local
142 ret = wm831x_reg_unlock(wm831x); in wm831x_wdt_set_timeout()
144 ret = wm831x_set_bits(wm831x, WM831X_WATCHDOG, in wm831x_wdt_set_timeout()
147 wm831x_reg_lock(wm831x); in wm831x_wdt_set_timeout()
149 dev_err(wm831x->dev, "Failed to unlock security key: %d\n", in wm831x_wdt_set_timeout()
174 struct wm831x *wm831x = dev_get_drvdata(dev->parent); in wm831x_wdt_probe() local
181 ret = wm831x_reg_read(wm831x, WM831X_WATCHDOG); in wm831x_wdt_probe()
183 dev_err(wm831x->dev, "Failed to read watchdog status: %d\n", in wm831x_wdt_probe()
190 dev_warn(wm831x->dev, "Watchdog is paused\n"); in wm831x_wdt_probe()
197 driver_data->wm831x = wm831x; in wm831x_wdt_probe()
207 reg = wm831x_reg_read(wm831x, WM831X_WATCHDOG); in wm831x_wdt_probe()
213 dev_warn(wm831x->dev, in wm831x_wdt_probe()
232 ret = wm831x_reg_unlock(wm831x); in wm831x_wdt_probe()
234 ret = wm831x_reg_write(wm831x, WM831X_WATCHDOG, reg); in wm831x_wdt_probe()
235 wm831x_reg_lock(wm831x); in wm831x_wdt_probe()
237 dev_err(wm831x->dev, in wm831x_wdt_probe()