Lines Matching refs:rtas
46 #include <machine/rtas.h>
51 static MALLOC_DEFINE(M_RTAS, "rtas", "Run Time Abstraction Service");
59 static phandle_t rtas;
82 rtas = OF_finddevice("/rtas");
83 if (rtas == -1) {
84 rtas = 0;
87 OF_package_to_path(rtas, path, sizeof(path));
106 OF_getencprop(rtas, "rtas-size", &rtas_size, sizeof(rtas_size));
121 if (OF_hasprop(rtas, "linux,rtas-entry") &&
122 OF_hasprop(rtas, "linux,rtas-base")) {
123 OF_getencprop(rtas, "linux,rtas-base", &rtas_ptr,
126 OF_getencprop(rtas, "linux,rtas-entry", &rtas_ptr,
131 rtas = 0;
137 result = OF_call_method("instantiate-rtas", rtasi, 1, 1,
142 rtas = 0;
197 return (rtas != 0);
266 if (OF_getencprop(rtas, method, &token, sizeof(token)) == -1)