Lines Matching full:mid
3 * intel-mid_wdt: generic Intel MID SCU watchdog driver
47 wdt_command(struct mid_wdt *mid, int sub, const void *in, size_t inlen, size_t size) in wdt_command() argument
49 struct intel_scu_ipc_dev *scu = mid->scu; in wdt_command()
57 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_start() local
73 ret = wdt_command(mid, SCU_WATCHDOG_START, &ipc_wd_start, in wdt_start()
76 dev_crit(mid->dev, "error starting watchdog: %d\n", ret); in wdt_start()
83 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_ping() local
86 ret = wdt_command(mid, SCU_WATCHDOG_KEEPALIVE, NULL, 0, 0); in wdt_ping()
88 dev_crit(mid->dev, "Error executing keepalive: %d\n", ret); in wdt_ping()
95 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_stop() local
98 ret = wdt_command(mid, SCU_WATCHDOG_STOP, NULL, 0, 0); in wdt_stop()
100 dev_crit(mid->dev, "Error stopping watchdog: %d\n", ret); in wdt_stop()
114 .identity = "Intel MID SCU watchdog",
130 struct mid_wdt *mid; in mid_wdt_probe() local
144 mid = devm_kzalloc(dev, sizeof(*mid), GFP_KERNEL); in mid_wdt_probe()
145 if (!mid) in mid_wdt_probe()
148 mid->dev = dev; in mid_wdt_probe()
149 wdt_dev = &mid->wd; in mid_wdt_probe()
159 watchdog_set_drvdata(wdt_dev, mid); in mid_wdt_probe()
161 mid->scu = devm_intel_scu_ipc_dev_get(dev); in mid_wdt_probe()
162 if (!mid->scu) in mid_wdt_probe()
193 dev_info(dev, "Intel MID watchdog device probed\n"); in mid_wdt_probe()
208 MODULE_DESCRIPTION("Watchdog Driver for Intel MID platform");