Home | History | Annotate | Download | only in ofwboot

Lines Matching defs:chosen

192 	int chosen, cpu, cpunode, j, is64=0;
203 chosen = OF_finddevice("/");
204 dump_ofwtree(chosen);
209 if ((chosen = OF_finddevice("/chosen")) == -1 ||
210 OF_getprop(chosen, "bootpath", bootdev, sizeof bootdev) < 0 ||
211 OF_getprop(chosen, "bootargs", bootline, sizeof bootline) < 0) {
217 if (OF_getprop(chosen, "cpu", &cpu, sizeof cpu) == sizeof(cpu)) {
264 OF_setprop(chosen, "bootpath", opened_name, strlen(opened_name) + 1);
287 OF_setprop(chosen, "bootargs", bootline, strlen(bootline) + 1);