Lines Matching refs:dev
260 struct device *dev = &pdev->dev; in sbsa_gwdt_probe() local
266 gwdt = devm_kzalloc(dev, sizeof(*gwdt), GFP_KERNEL); in sbsa_gwdt_probe()
289 wdd->parent = dev; in sbsa_gwdt_probe()
304 dev_warn(dev, "System reset by WDT.\n"); in sbsa_gwdt_probe()
314 dev_warn(dev, "unable to get ws0 interrupt.\n"); in sbsa_gwdt_probe()
321 if (devm_request_irq(dev, irq, sbsa_gwdt_interrupt, 0, in sbsa_gwdt_probe()
324 dev_warn(dev, "unable to request IRQ %d.\n", in sbsa_gwdt_probe()
329 dev_warn(dev, "falling back to single stage mode.\n"); in sbsa_gwdt_probe()
338 watchdog_init_timeout(wdd, timeout, dev); in sbsa_gwdt_probe()
347 ret = devm_watchdog_register_device(dev, wdd); in sbsa_gwdt_probe()
351 dev_info(dev, "Initialized with %ds timeout @ %u Hz, action=%d.%s\n", in sbsa_gwdt_probe()
359 static int __maybe_unused sbsa_gwdt_suspend(struct device *dev) in sbsa_gwdt_suspend() argument
361 struct sbsa_gwdt *gwdt = dev_get_drvdata(dev); in sbsa_gwdt_suspend()
370 static int __maybe_unused sbsa_gwdt_resume(struct device *dev) in sbsa_gwdt_resume() argument
372 struct sbsa_gwdt *gwdt = dev_get_drvdata(dev); in sbsa_gwdt_resume()