Lines Matching refs:args
17 enum sm_handler_ret __wdt_sm_handler(struct thread_smc_args *args) in __wdt_sm_handler() argument
26 switch (args->a1) { in __wdt_sm_handler()
33 args->a0 = PSCI_RET_INTERNAL_FAILURE; in __wdt_sm_handler()
35 args->a0 = PSCI_RET_SUCCESS; in __wdt_sm_handler()
36 args->a1 = wdt_min_timeout; in __wdt_sm_handler()
37 args->a2 = wdt_max_timeout; in __wdt_sm_handler()
46 if (args->a2 < min_timeout || args->a2 > max_timeout) { in __wdt_sm_handler()
47 args->a0 = PSCI_RET_INVALID_PARAMETERS; in __wdt_sm_handler()
51 watchdog_settimeout(args->a2); in __wdt_sm_handler()
52 args->a0 = PSCI_RET_SUCCESS; in __wdt_sm_handler()
55 if (args->a2 == 0) { in __wdt_sm_handler()
57 args->a0 = PSCI_RET_SUCCESS; in __wdt_sm_handler()
58 } else if (args->a2 == 1) { in __wdt_sm_handler()
60 args->a0 = PSCI_RET_SUCCESS; in __wdt_sm_handler()
62 args->a0 = PSCI_RET_INVALID_PARAMETERS; in __wdt_sm_handler()
67 args->a0 = PSCI_RET_SUCCESS; in __wdt_sm_handler()
73 args->a0 = PSCI_RET_NOT_SUPPORTED; in __wdt_sm_handler()
75 args->a0 = PSCI_RET_INTERNAL_FAILURE; in __wdt_sm_handler()
77 args->a0 = PSCI_RET_DISABLED; in __wdt_sm_handler()
79 args->a0 = PSCI_RET_SUCCESS; in __wdt_sm_handler()
80 args->a1 = timeleft; in __wdt_sm_handler()
84 args->a0 = PSCI_RET_NOT_SUPPORTED; in __wdt_sm_handler()