Lines Matching full:mid
3 * intel-mid_wdt: generic Intel MID SCU watchdog driver
20 #include <asm/intel-mid.h>
43 wdt_command(struct mid_wdt *mid, int sub, const void *in, size_t inlen, size_t size) in wdt_command() argument
45 struct intel_scu_ipc_dev *scu = mid->scu; in wdt_command()
53 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_start() local
69 ret = wdt_command(mid, SCU_WATCHDOG_START, &ipc_wd_start, in wdt_start()
72 dev_crit(mid->dev, "error starting watchdog: %d\n", ret); in wdt_start()
79 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_ping() local
82 ret = wdt_command(mid, SCU_WATCHDOG_KEEPALIVE, NULL, 0, 0); in wdt_ping()
84 dev_crit(mid->dev, "Error executing keepalive: %d\n", ret); in wdt_ping()
91 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_stop() local
94 ret = wdt_command(mid, SCU_WATCHDOG_STOP, NULL, 0, 0); in wdt_stop()
96 dev_crit(mid->dev, "Error stopping watchdog: %d\n", ret); in wdt_stop()
110 .identity = "Intel MID SCU watchdog",
126 struct mid_wdt *mid; in mid_wdt_probe() local
140 mid = devm_kzalloc(dev, sizeof(*mid), GFP_KERNEL); in mid_wdt_probe()
141 if (!mid) in mid_wdt_probe()
144 mid->dev = dev; in mid_wdt_probe()
145 wdt_dev = &mid->wd; in mid_wdt_probe()
155 watchdog_set_drvdata(wdt_dev, mid); in mid_wdt_probe()
157 mid->scu = devm_intel_scu_ipc_dev_get(dev); in mid_wdt_probe()
158 if (!mid->scu) in mid_wdt_probe()
189 dev_info(dev, "Intel MID watchdog device probed\n"); in mid_wdt_probe()
204 MODULE_DESCRIPTION("Watchdog Driver for Intel MID platform");