Lines Matching defs:phandle
291 // If this is a phandle then we need to get the name of the
319 // If we already have some bytes, make the phandle a
1239 if ((p->get_key() == "phandle") ||
1240 (p->get_key() == "linux,phandle"))
1244 fprintf(stderr, "Invalid phandle value for node %s. Should be a 4-byte value.\n", n->name.c_str());
1249 uint32_t phandle = p->begin()->get_as_uint32();
1250 used_phandles.insert(std::make_pair(phandle, n.get()));
1270 device_tree::assign_phandle(node *n, uint32_t &phandle)
1272 // If there is an existing phandle, use it
1273 property_ptr p = n->get_property("phandle");
1276 p = n->get_property("linux,phandle");
1280 // Otherwise insert a new phandle node
1282 while (used_phandles.find(phandle) != used_phandles.end())
1285 // store this phandle in the set,
1287 // increasing the value of phandle and
1294 phandle++;
1296 push_big_endian(v.byte_data, phandle++);
1299 p.reset(new property("linux,phandle"));
1305 p.reset(new property("phandle"));
1329 device_tree::resolve_cross_references(uint32_t &phandle)
1454 // If there is an existing phandle, use it
1455 property_ptr p = assign_phandle(target, phandle);
2024 uint32_t phandle = 1;
2030 assign_phandles(root, phandle);
2032 resolve_cross_references(phandle);
2081 // If we have any unresolved phandle references in this plugin,
2100 // If we have any resolved phandle references in this plugin, then