Home
last modified time | relevance | path

Searched refs:wdog_dev (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/watchdog/
H A Dairoha_wdt.c38 struct watchdog_device wdog_dev; member
54 static int airoha_wdt_start(struct watchdog_device *wdog_dev) in airoha_wdt_start() argument
56 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() argument
70 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() argument
82 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() argument
94 wdog_dev->timeout = timeout; in airoha_wdt_set_timeout()
[all …]
H A Dmarvell_gti_wdt.c191 struct watchdog_device *wdog_dev = &priv->wdev; in gti_wdt_set_pretimeout() local
201 if (timeout * 3 <= wdog_dev->max_timeout) in gti_wdt_set_pretimeout()
252 struct watchdog_device *wdog_dev; in gti_wdt_probe() local
287 wdog_dev = &priv->wdev; in gti_wdt_probe()
288 wdog_dev->info = &gti_wdt_ident; in gti_wdt_probe()
289 wdog_dev->ops = &gti_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 …]