Home | History | Annotate | Download | only in fdt

Lines Matching defs:chosen

115 	int chosen, len;
120 chosen = OF_finddevice("/chosen");
121 if (chosen < 0)
124 start_data = fdtbus_get_prop(chosen, startname, &len);
125 end_data = fdtbus_get_prop(chosen, endname, NULL);
139 printf("Unsupported len %d for /chosen `%s'\n",
196 const int chosen = OF_finddevice("/chosen");
198 if (chosen >= 0)
199 OF_getprop(chosen, "bootargs", bootargs, sizeof(bootargs));
351 const int chosen_off = fdt_path_offset(fdtbus_get_data(), "/chosen");
381 const int chosen_off = fdt_path_offset(fdt, "/chosen");
404 const int chosen = OF_finddevice("/chosen");
405 if (chosen < 0)
408 if (of_hasprop(chosen, "netbsd,mbr") &&
409 of_hasprop(chosen, "netbsd,partition")) {
424 rhash = fdtbus_get_prop(chosen, "netbsd,mbr", &len);
427 of_getprop_uint32(chosen, "netbsd,partition", &part);
455 if (of_hasprop(chosen, "netbsd,gpt-guid")) {
457 fdtbus_get_prop(chosen, "netbsd,gpt-guid", &len);
472 if (of_hasprop(chosen, "netbsd,gpt-label")) {
473 const char *label = fdtbus_get_string(chosen, "netbsd,gpt-label");
484 if (of_hasprop(chosen, "netbsd,booted-mac-address")) {
486 fdtbus_get_prop(chosen, "netbsd,booted-mac-address", &len);