Lines Matching refs:sp_wd
151 struct rave_sp_wdt *sp_wd = in rave_sp_wdt_reboot_notifier() local
154 const int ret = sp_wd->variant->restart(&sp_wd->wdd); in rave_sp_wdt_reboot_notifier()
157 dev_err(sp_wd->wdd.parent, in rave_sp_wdt_reboot_notifier()
257 struct rave_sp_wdt *sp_wd; in rave_sp_wdt_probe() local
262 sp_wd = devm_kzalloc(dev, sizeof(*sp_wd), GFP_KERNEL); in rave_sp_wdt_probe()
263 if (!sp_wd) in rave_sp_wdt_probe()
266 sp_wd->variant = of_device_get_match_data(dev); in rave_sp_wdt_probe()
267 sp_wd->sp = dev_get_drvdata(dev->parent); in rave_sp_wdt_probe()
269 wdd = &sp_wd->wdd; in rave_sp_wdt_probe()
273 wdd->min_timeout = sp_wd->variant->min_timeout; in rave_sp_wdt_probe()
274 wdd->max_timeout = sp_wd->variant->max_timeout; in rave_sp_wdt_probe()
293 sp_wd->reboot_notifier.notifier_call = rave_sp_wdt_reboot_notifier; in rave_sp_wdt_probe()
294 ret = devm_register_reboot_notifier(dev, &sp_wd->reboot_notifier); in rave_sp_wdt_probe()