Lines Matching refs:rtas

10 #define pr_fmt(fmt)	"rtas: " fmt
41 #include <asm/rtas-work-area.h>
42 #include <asm/rtas.h>
63 * @token: Value of @name if it exists under the /rtas node.
65 * @filter: If non-NULL, invoking this function via the rtas syscall is
486 .name = "rtas-last-error",
567 if (!rtas.dev)
674 srr_regs_clobbered(); /* rtas uses SRRs, invalidate */
737 struct rtas_t rtas;
763 if (!rtas.base)
804 * hardcode rtas.base/entry etc.
813 if (!rtas.base)
832 if (!rtas.base)
873 if (!rtas.base)
878 if ((root = of_find_node_by_path("/rtas"))) {
985 if (rtas.dev == NULL)
995 * access non-function properties of the /rtas node. Warn and
1001 tokp = of_get_property(rtas.dev, service, NULL);
1012 * for all rtas calls that require an error buffer argument.
1013 * This includes 'check-exception' and 'rtas-last-error'.
1022 static const char propname[] __initconst = "rtas-error-log-max";
1025 if (of_property_read_u32(rtas.dev, propname, &max)) {
1044 * most recent failed call to rtas. Because the error text
1045 * might go stale if there are any other intervening rtas calls,
1223 if (!rtas.entry || token == RTAS_UNKNOWN_SERVICE)
1244 /* We use the global rtas args buffer */
1538 indicators = of_get_property(rtas.dev, "rtas-indicators", &proplen);
1892 SYSCALL_DEFINE1(rtas, struct rtas_args __user *, uargs)
1904 if (!rtas.entry)
2043 for_each_property_of_node(rtas.dev, prop) {
2070 /* Get RTAS dev node and fill up our "rtas" structure with infos
2073 rtas.dev = of_find_node_by_name(NULL, "rtas");
2074 if (!rtas.dev)
2077 no_base = of_property_read_u32(rtas.dev, "linux,rtas-base", &base);
2078 no_size = of_property_read_u32(rtas.dev, "rtas-size", &size);
2080 of_node_put(rtas.dev);
2081 rtas.dev = NULL;
2085 rtas.base = base;
2086 rtas.size = size;
2087 no_entry = of_property_read_u32(rtas.dev, "linux,rtas-entry", &entry);
2088 rtas.entry = no_entry ? rtas.base : entry;
2099 ibm_extended_os_term = of_property_read_bool(rtas.dev, "ibm,extended-os-term");
2122 if (depth != 1 || strcmp(uname, "rtas") != 0)
2125 basep = of_get_flat_dt_prop(node, "linux,rtas-base", NULL);
2126 entryp = of_get_flat_dt_prop(node, "linux,rtas-entry", NULL);
2127 sizep = of_get_flat_dt_prop(node, "rtas-size", NULL);
2136 rtas.base = *basep;
2137 rtas.entry = *entryp;
2138 rtas.size = *sizep;