Searched refs:wdog_dev (Results 1 – 2 of 2) sorted by relevance
38 struct watchdog_device wdog_dev; member54 static int airoha_wdt_start(struct watchdog_device *wdog_dev) in airoha_wdt_start() argument56 struct airoha_wdt_desc *airoha_wdt = watchdog_get_drvdata(wdog_dev); in airoha_wdt_start()62 val = wdog_dev->timeout * airoha_wdt->wdt_freq; in airoha_wdt_start()68 static int airoha_wdt_stop(struct watchdog_device *wdog_dev) in airoha_wdt_stop() argument70 struct airoha_wdt_desc *airoha_wdt = watchdog_get_drvdata(wdog_dev); in airoha_wdt_stop()80 static int airoha_wdt_ping(struct watchdog_device *wdog_dev) in airoha_wdt_ping() argument82 struct airoha_wdt_desc *airoha_wdt = watchdog_get_drvdata(wdog_dev); in airoha_wdt_ping()92 static int airoha_wdt_set_timeout(struct watchdog_device *wdog_dev, unsigned int timeout) in airoha_wdt_set_timeout() argument94 wdog_dev->timeout = timeout; in airoha_wdt_set_timeout()[all …]
191 struct watchdog_device *wdog_dev = &priv->wdev; in gti_wdt_set_pretimeout() local201 if (timeout * 3 <= wdog_dev->max_timeout) in gti_wdt_set_pretimeout()252 struct watchdog_device *wdog_dev; in gti_wdt_probe() local287 wdog_dev = &priv->wdev; in gti_wdt_probe()288 wdog_dev->info = >i_wdt_ident; in gti_wdt_probe()289 wdog_dev->ops = >i_wdt_ops; in gti_wdt_probe()290 wdog_dev->parent = dev; in gti_wdt_probe()298 wdog_dev->pretimeout = max_pretimeout; in gti_wdt_probe()301 wdog_dev->max_timeout = max_pretimeout * 3; in gti_wdt_probe()302 wdog_dev->max_hw_heartbeat_ms = max_pretimeout * 1000; in gti_wdt_probe()[all …]