Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/watchdog/
Dwdat_wdt.c60 static int wdat_wdt_read(struct wdat_wdt *wdat, in wdat_wdt_read() argument
79 dev_dbg(&wdat->pdev->dev, "Read %#x from 0x%08llx\n", *value, in wdat_wdt_read()
85 static int wdat_wdt_write(struct wdat_wdt *wdat, in wdat_wdt_write() argument
104 dev_dbg(&wdat->pdev->dev, "Wrote %#x to 0x%08llx\n", value, in wdat_wdt_write()
110 static int wdat_wdt_run_action(struct wdat_wdt *wdat, unsigned int action, in wdat_wdt_run_action() argument
115 if (action >= ARRAY_SIZE(wdat->instructions)) in wdat_wdt_run_action()
118 if (!wdat->instructions[action]) in wdat_wdt_run_action()
121 dev_dbg(&wdat->pdev->dev, "Running action %#x\n", action); in wdat_wdt_run_action()
124 list_for_each_entry(instr, wdat->instructions[action], node) { in wdat_wdt_run_action()
140 ret = wdat_wdt_read(wdat, instr, &x); in wdat_wdt_run_action()
[all …]
/Linux-v4.19/drivers/acpi/
Dacpi_watchdog.c31 static bool acpi_watchdog_uses_rtc(const struct acpi_table_wdat *wdat) in acpi_watchdog_uses_rtc() argument
36 entries = (struct acpi_wdat_entry *)(wdat + 1); in acpi_watchdog_uses_rtc()
37 for (i = 0; i < wdat->entries; i++) { in acpi_watchdog_uses_rtc()
55 static bool acpi_watchdog_uses_rtc(const struct acpi_table_wdat *wdat) in acpi_watchdog_uses_rtc() argument
63 const struct acpi_table_wdat *wdat = NULL; in acpi_watchdog_get_wdat() local
70 (struct acpi_table_header **)&wdat); in acpi_watchdog_get_wdat()
76 if (acpi_watchdog_uses_rtc(wdat)) { in acpi_watchdog_get_wdat()
81 return wdat; in acpi_watchdog_get_wdat()
97 const struct acpi_table_wdat *wdat; in acpi_watchdog_init() local
105 wdat = acpi_watchdog_get_wdat(); in acpi_watchdog_init()
[all …]