Lines Matching defs:chosen
432 int chosen;
436 if ((chosen = OF_finddevice("/chosen")) == -1)
437 panic("no /chosen from OFW");
438 if ((dhcplen = OF_getproplen(chosen, "bootp-response")) > 0) {
448 OF_getprop(chosen, "bootp-response", &bdp->dhcp_packet,
519 int chosen;
527 if ((chosen = OF_finddevice("/chosen")) == -1)
528 panic("no /chosen from OFW");
529 bp_len = OF_getproplen(chosen, "bootpath");
530 ba_len = OF_getproplen(chosen, "bootargs");
538 OF_getprop(chosen, "bootpath", bootpathv, bp_len);
543 OF_getprop(chosen, "bootargs", bootargsv, ba_len);
1658 int chosen;
1663 if ((chosen = OF_finddevice("/chosen")) == -1 ||
1664 OF_getprop(chosen, "memory", &mem_ihandle, sizeof(int)) < 0)
1677 int chosen;
1682 if ((chosen = OF_finddevice("/chosen")) == -1 ||
1683 OF_getprop(chosen, "mmu", &mmu_ihandle, sizeof(int)) < 0)