Lines Matching refs:args

39   args;
41 INIT_IEEE1275_COMMON (&args.common, "finddevice", 1, 1);
42 args.device = (grub_ieee1275_cell_t) name;
44 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
46 *phandlep = args.phandle;
47 if (args.phandle == IEEE1275_PHANDLE_INVALID)
66 args;
68 INIT_IEEE1275_COMMON (&args.common, "getprop", 4, 1);
69 args.phandle = phandle;
70 args.prop = (grub_ieee1275_cell_t) property;
71 args.buf = (grub_ieee1275_cell_t) buf;
72 args.buflen = (grub_ieee1275_cell_t) size;
74 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
77 *actual = (grub_ssize_t) args.size;
78 if (args.size == IEEE1275_CELL_INVALID)
115 args;
117 INIT_IEEE1275_COMMON (&args.common, "nextprop", 3, 1);
118 args.phandle = phandle;
119 args.prev_prop = (grub_ieee1275_cell_t) prev_prop;
120 args.next_prop = (grub_ieee1275_cell_t) prop;
121 args.flags = (grub_ieee1275_cell_t) -1;
123 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
125 return (int) args.flags;
139 args;
141 INIT_IEEE1275_COMMON (&args.common, "getproplen", 2, 1);
142 args.phandle = phandle;
143 args.prop = (grub_ieee1275_cell_t) prop;
144 args.length = (grub_ieee1275_cell_t) -1;
146 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
148 *length = args.length;
149 if (args.length == IEEE1275_CELL_INVALID)
164 args;
166 INIT_IEEE1275_COMMON (&args.common, "instance-to-package", 1, 1);
167 args.ihandle = ihandle;
169 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
171 *phandlep = args.phandle;
172 if (args.phandle == IEEE1275_PHANDLE_INVALID)
190 args;
192 INIT_IEEE1275_COMMON (&args.common, "package-to-path", 3, 1);
193 args.phandle = phandle;
194 args.buf = (grub_ieee1275_cell_t) path;
195 args.buflen = (grub_ieee1275_cell_t) len;
197 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
200 *actual = args.actual;
201 if (args.actual == IEEE1275_CELL_INVALID)
219 args;
221 INIT_IEEE1275_COMMON (&args.common, "instance-to-path", 3, 1);
222 args.ihandle = ihandle;
223 args.buf = (grub_ieee1275_cell_t) path;
224 args.buflen = (grub_ieee1275_cell_t) len;
226 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
229 *actual = args.actual;
230 if (args.actual == IEEE1275_CELL_INVALID)
247 args;
249 INIT_IEEE1275_COMMON (&args.common, "write", 3, 1);
250 args.ihandle = ihandle;
251 args.buf = (grub_ieee1275_cell_t) buffer;
252 args.len = (grub_ieee1275_cell_t) len;
254 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
257 *actualp = args.actual;
273 args;
275 INIT_IEEE1275_COMMON (&args.common, "read", 3, 1);
276 args.ihandle = ihandle;
277 args.buf = (grub_ieee1275_cell_t) buffer;
278 args.len = (grub_ieee1275_cell_t) len;
280 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
283 *actualp = args.actual;
299 args;
301 INIT_IEEE1275_COMMON (&args.common, "seek", 3, 1);
302 args.ihandle = ihandle;
305 args.pos_hi = 0;
306 args.pos_lo = pos;
308 args.pos_hi = (grub_ieee1275_cell_t) (pos >> (8 * GRUB_IEEE1275_CELL_SIZEOF));
309 args.pos_lo = (grub_ieee1275_cell_t)
313 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
317 *result = args.result;
331 args;
333 INIT_IEEE1275_COMMON (&args.common, "peer", 1, 1);
334 args.node = node;
336 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
338 *result = args.result;
339 if (args.result == 0)
354 args;
356 INIT_IEEE1275_COMMON (&args.common, "child", 1, 1);
357 args.node = node;
358 args.result = IEEE1275_PHANDLE_INVALID;
360 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
362 *result = args.result;
363 if (args.result == 0)
378 args;
380 INIT_IEEE1275_COMMON (&args.common, "parent", 1, 1);
381 args.node = node;
382 args.result = IEEE1275_PHANDLE_INVALID;
384 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
386 *result = args.result;
399 args;
404 INIT_IEEE1275_COMMON (&args.common, "interpret", 1, 1);
405 args.command = (grub_ieee1275_cell_t) command;
407 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
410 *catch = args.catch;
421 args;
423 INIT_IEEE1275_COMMON (&args.common, "enter", 0, 0);
425 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
437 args;
439 INIT_IEEE1275_COMMON (&args.common, "exit", 0, 0);
441 IEEE1275_CALL_ENTRY_FN (&args);
454 args;
456 INIT_IEEE1275_COMMON (&args.common, "open", 1, 1);
457 args.path = (grub_ieee1275_cell_t) path;
459 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
461 *result = args.result;
462 if (args.result == IEEE1275_IHANDLE_INVALID)
475 args;
477 INIT_IEEE1275_COMMON (&args.common, "close", 1, 0);
478 args.ihandle = ihandle;
480 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
498 args;
500 INIT_IEEE1275_COMMON (&args.common, "claim", 3, 1);
501 args.addr = (grub_ieee1275_cell_t) addr;
502 args.size = (grub_ieee1275_cell_t) size;
503 args.align = (grub_ieee1275_cell_t) align;
505 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
508 *result = args.base;
509 if (args.base == IEEE1275_CELL_INVALID)
523 args;
525 INIT_IEEE1275_COMMON (&args.common, "release", 2, 0);
526 args.addr = addr;
527 args.size = size;
529 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
548 args;
550 INIT_IEEE1275_COMMON (&args.common, "setprop", 4, 1);
551 args.size = (grub_ieee1275_cell_t) size;
552 args.buf = (grub_ieee1275_cell_t) buf;
553 args.propname = (grub_ieee1275_cell_t) propname;
554 args.phandle = (grub_ieee1275_cell_t) phandle;
556 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
558 *actual = args.actual;
559 if ((args.actual == IEEE1275_CELL_INVALID) || (args.actual != args.size))
579 args;
581 INIT_IEEE1275_COMMON (&args.common, "call-method", 6, 1);
582 args.method = (grub_ieee1275_cell_t) "color!";
583 args.ihandle = ihandle;
584 args.index = index;
585 args.r = r;
586 args.g = g;
587 args.b = b;
589 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
591 return args.catch_result;
602 args;
604 INIT_IEEE1275_COMMON (&args.common, "milliseconds", 0, 1);
606 if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
608 *msecs = args.msecs;