Home
last modified time | relevance | path

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

/drivers/watchdog/
Dwdat_wdt.c64 static int wdat_wdt_read(struct wdat_wdt *wdat, in wdat_wdt_read() argument
83 dev_dbg(&wdat->pdev->dev, "Read %#x from 0x%08llx\n", *value, in wdat_wdt_read()
89 static int wdat_wdt_write(struct wdat_wdt *wdat, in wdat_wdt_write() argument
108 dev_dbg(&wdat->pdev->dev, "Wrote %#x to 0x%08llx\n", value, in wdat_wdt_write()
114 static int wdat_wdt_run_action(struct wdat_wdt *wdat, unsigned int action, in wdat_wdt_run_action() argument
119 if (action >= ARRAY_SIZE(wdat->instructions)) in wdat_wdt_run_action()
122 if (!wdat->instructions[action]) in wdat_wdt_run_action()
125 dev_dbg(&wdat->pdev->dev, "Running action %#x\n", action); in wdat_wdt_run_action()
128 list_for_each_entry(instr, wdat->instructions[action], node) { in wdat_wdt_run_action()
144 ret = wdat_wdt_read(wdat, instr, &x); in wdat_wdt_run_action()
[all …]
/drivers/acpi/
Dacpi_watchdog.c28 static bool acpi_watchdog_uses_rtc(const struct acpi_table_wdat *wdat) in acpi_watchdog_uses_rtc() argument
33 entries = (struct acpi_wdat_entry *)(wdat + 1); in acpi_watchdog_uses_rtc()
34 for (i = 0; i < wdat->entries; i++) { in acpi_watchdog_uses_rtc()
52 static bool acpi_watchdog_uses_rtc(const struct acpi_table_wdat *wdat) in acpi_watchdog_uses_rtc() argument
62 const struct acpi_table_wdat *wdat = NULL; in acpi_watchdog_get_wdat() local
69 (struct acpi_table_header **)&wdat); in acpi_watchdog_get_wdat()
75 if (acpi_watchdog_uses_rtc(wdat)) { in acpi_watchdog_get_wdat()
76 acpi_put_table((struct acpi_table_header *)wdat); in acpi_watchdog_get_wdat()
81 return wdat; in acpi_watchdog_get_wdat()
105 const struct acpi_table_wdat *wdat; in acpi_watchdog_init() local
[all …]