• Home
  • Raw
  • Download

Lines Matching refs:da9063

56 static unsigned int da9063_wdt_read_timeout(struct da9063 *da9063)  in da9063_wdt_read_timeout()  argument
60 regmap_read(da9063->regmap, DA9063_REG_CONTROL_D, &val); in da9063_wdt_read_timeout()
65 static int da9063_wdt_disable_timer(struct da9063 *da9063) in da9063_wdt_disable_timer() argument
67 return regmap_update_bits(da9063->regmap, DA9063_REG_CONTROL_D, in da9063_wdt_disable_timer()
73 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument
86 ret = da9063_wdt_disable_timer(da9063); in da9063_wdt_update_timeout()
93 return regmap_update_bits(da9063->regmap, DA9063_REG_CONTROL_D, in da9063_wdt_update_timeout()
99 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_start() local
102 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
104 dev_err(da9063->dev, "Watchdog failed to start (err = %d)\n", in da9063_wdt_start()
112 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_stop() local
115 ret = da9063_wdt_disable_timer(da9063); in da9063_wdt_stop()
117 dev_alert(da9063->dev, "Watchdog failed to stop (err = %d)\n", in da9063_wdt_stop()
125 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_ping() local
135 ret = regmap_write(da9063->regmap, DA9063_REG_CONTROL_F, in da9063_wdt_ping()
138 dev_alert(da9063->dev, "Failed to ping the watchdog (err = %d)\n", in da9063_wdt_ping()
147 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_set_timeout() local
161 ret = da9063_wdt_update_timeout(da9063, timeout); in da9063_wdt_set_timeout()
164 dev_err(da9063->dev, "Failed to set watchdog timeout (err = %d)\n", in da9063_wdt_set_timeout()
175 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_restart() local
176 struct i2c_client *client = to_i2c_client(da9063->dev); in da9063_wdt_restart()
192 dev_alert(da9063->dev, "Failed to shutdown (err = %d)\n", in da9063_wdt_restart()
218 struct da9063 *da9063; in da9063_wdt_probe() local
225 da9063 = dev_get_drvdata(dev->parent); in da9063_wdt_probe()
226 if (!da9063) in da9063_wdt_probe()
244 watchdog_set_drvdata(wdd, da9063); in da9063_wdt_probe()
250 timeout = da9063_wdt_read_timeout(da9063); in da9063_wdt_probe()
260 da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_probe()