Lines Matching refs:token
106 cell_t token; in rtas_gettime() local
109 token = rtas_token_lookup("get-time-of-day"); in rtas_gettime()
110 if (token == -1) in rtas_gettime()
112 error = rtas_call_method(token, 0, 8, &tod[0], &tod[1], &tod[2], in rtas_gettime()
134 cell_t token, status; in rtas_settime() local
137 token = rtas_token_lookup("set-time-of-day"); in rtas_settime()
138 if (token == -1) in rtas_settime()
142 error = rtas_call_method(token, 7, 1, ct.year, ct.mon, ct.day, ct.hour, in rtas_settime()
155 cell_t token, status; in rtas_shutdown() local
158 token = rtas_token_lookup("power-off"); in rtas_shutdown()
159 if (token == -1) in rtas_shutdown()
162 rtas_call_method(token, 2, 1, 0, 0, &status); in rtas_shutdown()
164 token = rtas_token_lookup("system-reboot"); in rtas_shutdown()
165 if (token == -1) in rtas_shutdown()
168 rtas_call_method(token, 0, 1, &status); in rtas_shutdown()