Lines Matching defs:phandle
175 phandle_t phandle;
183 phandle = OF_finddevice("/");
184 if (OF_getencprop(phandle, "#address-cells", &address_cells,
187 if (OF_getencprop(phandle, "#size-cells", &size_cells,
241 phandle_t phandle;
249 phandle = OF_finddevice("/");
250 if (OF_getencprop(phandle, "#address-cells", &address_cells,
253 if (OF_getencprop(phandle, "#size-cells", &size_cells,
466 phandle_t phandle;
475 for (phandle = OF_child(OF_peer(0)); phandle != 0;
476 phandle = OF_peer(phandle)) {
477 if (OF_getprop(phandle, "name", name, sizeof(name)) <= 0)
482 count = parse_numa_ofw_memory(phandle, "reg", &memp[msz]);
487 curmemp->mr_domain = platform_node_numa_domain(phandle);
506 phandle_t phandle;
516 for (phandle = OF_child(OF_peer(0)); phandle != 0;
517 phandle = OF_peer(phandle)) {
518 if (OF_getprop(phandle, "name", name, sizeof(name)) <= 0)
524 res = parse_ofw_memory(phandle, "reg", &memp[msz]);
533 if (OF_getproplen(phandle, "linux,usable-memory") >= 0)
534 res = parse_ofw_memory(phandle, "linux,usable-memory",
536 else if (OF_getproplen(phandle, "available") >= 0)
537 res = parse_ofw_memory(phandle, "available",
540 res = parse_ofw_memory(phandle, "reg", &availp[asz]);
545 phandle = OF_finddevice("/chosen");
546 if (OF_hasprop(phandle, "fdtmemreserv"))
553 if (OF_hasprop(phandle, "linux,initrd-start"))