Lines Matching defs:chosen
95 phandle_t chosen, node;
104 chosen = OF_finddevice("/chosen");
105 if (chosen == -1)
109 if (OF_getencprop(chosen, "stdout", &stdout, sizeof(stdout)) ==
113 if (OF_getprop(chosen, "stdout-path", buf, sizeof(buf)) > 0)
117 * The "/chosen/stdout" does not exist try
481 phandle_t chosen;
495 chosen = OF_finddevice("/chosen");
496 if (OF_getencprop(chosen, "stdout", &sc->sc_handle,
500 /* Try "/chosen/stdout-path" now */
501 if (OF_getprop(chosen, "stdout-path", buf, sizeof(buf)) > 0) {
508 * The "/chosen/stdout" does not exist try
519 * Retrieve vendor-id from /chosen parent node, usually pointing to