Lines Matching refs:node
39 * The model value is expected to match the model in the flashprom node.
202 visit(pnode_t node)
214 if (prom_getproplen(node, OBP_NAME) != sizeof (flashprom))
216 (void) prom_getprop(node, OBP_NAME, model);
220 plen = prom_getproplen(node, version);
223 (void) prom_getprop(node, version, vers);
230 plen = prom_getproplen(node, model_name);
233 (void) prom_getprop(node, model_name, model);
238 prom_printf("prom_version_check: node contains "
250 * We know that "node"'s flashprom image contains downrev firmware,
252 * Check for that case by looking at the "/openprom" node,
265 return (node);
267 plen = prom_getproplen(node, version);
269 return (node);
270 (void) prom_getprop(node, version, vers);
276 return (node);
282 "</openprom> node <version> property: bad tstamp\n");
283 return (node);
294 return (node);
298 * visit each node in the device tree, until we get a non-null answer
301 walk(pnode_t node)
305 if (visit(node))
306 return (node);
308 for (node = prom_childnode(node); node; node = prom_nextnode(node))
309 if ((id = walk(node)) != (pnode_t)0)
323 * Return the nodeid of the flashprom node in *nodeid.
330 pnode_t node = flashprom_node;
337 flashprom_node = node = walk(prom_rootnode());
342 *nodeid = node;
344 if (node == (pnode_t)0) {