• Home
  • Raw
  • Download

Lines Matching full:rtas

3  * Procedures for interfacing to the RTAS on CHRP machines.
32 #include <asm/rtas.h>
51 struct rtas_t rtas = { variable
54 EXPORT_SYMBOL(rtas);
71 /* RTAS use home made raw locking instead of spin_lock_irqsave
82 arch_spin_lock(&rtas.lock); in lock_rtas()
88 arch_spin_unlock(&rtas.lock); in unlock_rtas()
102 if (!rtas.base) in call_rtas_display_status()
106 rtas_call_unlocked(&rtas.args, 10, 1, 1, NULL, c); in call_rtas_display_status()
143 * hardcode rtas.base/entry etc.
152 if (!rtas.base) in udbg_rtascon_putc()
171 if (!rtas.base) in udbg_rtascon_getc_poll()
212 if (!rtas.base) in rtas_progress()
217 if ((root = of_find_node_by_path("/rtas"))) { in rtas_progress()
286 /* RTAS wants CR-LF, not just LF */ in rtas_progress()
322 if (rtas.dev == NULL) in rtas_token()
324 tokp = of_get_property(rtas.dev, service, NULL); in rtas_token()
338 * for all rtas calls that require an error buffer argument.
339 * This includes 'check-exception' and 'rtas-last-error'.
347 rtas_error_log_max = rtas_token ("rtas-error-log-max"); in rtas_get_error_log_max()
350 printk (KERN_WARNING "RTAS: bad log buffer size %d\n", in rtas_get_error_log_max()
363 * most recent failed call to rtas. Because the error text
364 * might go stale if there are any other intervening rtas calls,
366 * the error (i.e. with rtas.lock still held from the previous call).
386 save_args = rtas.args; in __fetch_rtas_last_error()
387 rtas.args = err_args; in __fetch_rtas_last_error()
389 enter_rtas(__pa(&rtas.args)); in __fetch_rtas_last_error()
391 err_args = rtas.args; in __fetch_rtas_last_error()
392 rtas.args = save_args; in __fetch_rtas_last_error()
456 if (!rtas.entry || token == RTAS_UNKNOWN_SERVICE) in rtas_call()
461 /* We use the global rtas args buffer */ in rtas_call()
462 rtas_args = &rtas.args; in rtas_call()
510 /* For an RTAS busy status code, perform the hinted delay. */
545 printk(KERN_ERR "%s: unexpected RTAS error %d\n", in rtas_error_rc()
631 indicators = of_get_property(rtas.dev, "rtas-indicators", &proplen); in rtas_indicator_present()
668 * Ignoring RTAS extended delay
693 printk("RTAS system-reboot returned %d\n", in rtas_restart()
703 printk("RTAS power-off returned %d\n", in rtas_power_off()
713 printk("RTAS power-off returned %d\n", in rtas_halt()
992 * rtas call in rtas_ibm_suspend_me()
1024 * Find a specific pseries error log in an RTAS extended event log.
1025 * @log: RTAS error/event log
1064 * arbitrary physical addresses to RTAS calls. A number of RTAS calls
1071 * subset of RTAS calls.
1073 * Accordingly, we filter RTAS requests to check that the call is
1185 pr_err_ratelimited("sys_rtas: RTAS call blocked - exploit attempt?\n"); in block_rtas_call()
1202 SYSCALL_DEFINE1(rtas, struct rtas_args __user *, uargs) in SYSCALL_DEFINE1() argument
1212 if (!rtas.entry) in SYSCALL_DEFINE1()
1265 rtas.args = args; in SYSCALL_DEFINE1()
1266 enter_rtas(__pa(&rtas.args)); in SYSCALL_DEFINE1()
1267 args = rtas.args; in SYSCALL_DEFINE1()
1293 * Call early during boot, before mem init, to retrieve the RTAS
1306 /* Get RTAS dev node and fill up our "rtas" structure with infos in rtas_initialize()
1309 rtas.dev = of_find_node_by_name(NULL, "rtas"); in rtas_initialize()
1310 if (!rtas.dev) in rtas_initialize()
1313 no_base = of_property_read_u32(rtas.dev, "linux,rtas-base", &base); in rtas_initialize()
1314 no_size = of_property_read_u32(rtas.dev, "rtas-size", &size); in rtas_initialize()
1316 of_node_put(rtas.dev); in rtas_initialize()
1317 rtas.dev = NULL; in rtas_initialize()
1321 rtas.base = base; in rtas_initialize()
1322 rtas.size = size; in rtas_initialize()
1323 no_entry = of_property_read_u32(rtas.dev, "linux,rtas-entry", &entry); in rtas_initialize()
1324 rtas.entry = no_entry ? rtas.base : entry; in rtas_initialize()
1326 /* If RTAS was found, allocate the RMO buffer for it and look for in rtas_initialize()
1338 rtas_last_error_token = rtas_token("rtas-last-error"); in rtas_initialize()
1353 if (depth != 1 || strcmp(uname, "rtas") != 0) in early_init_dt_scan_rtas()
1356 basep = of_get_flat_dt_prop(node, "linux,rtas-base", NULL); in early_init_dt_scan_rtas()
1357 entryp = of_get_flat_dt_prop(node, "linux,rtas-entry", NULL); in early_init_dt_scan_rtas()
1358 sizep = of_get_flat_dt_prop(node, "rtas-size", NULL); in early_init_dt_scan_rtas()
1361 rtas.base = *basep; in early_init_dt_scan_rtas()
1362 rtas.entry = *entryp; in early_init_dt_scan_rtas()
1363 rtas.size = *sizep; in early_init_dt_scan_rtas()