Lines Matching defs:node
24 MODE_SHOW_VALUE, /* show values for node properties */
25 MODE_LIST_PROPS, /* list the properties for a node */
26 MODE_LIST_SUBNODES, /* list the subnodes of a node */
34 const char *default_val; /* default value if node/property not found */
102 * List all properties in a node, one per line.
105 * @param node Node to display
108 static int list_properties(const void *blob, int node)
114 prop = fdt_first_property_offset(blob, node);
130 * List all subnodes in a node, one per line
133 * @param node Node to display
136 static int list_subnodes(const void *blob, int node)
138 int nextoffset; /* next node offset from libfdt */
142 int depth = 1; /* the assumed depth of this node */
145 tag = fdt_next_tag(blob, node, &nextoffset);
148 pathp = fdt_get_name(blob, node, NULL);
177 node = nextoffset;
183 * Show the data for a given node (and perhaps property) according to the
188 * @param node Node to display
193 int node, const char *property)
200 err = list_properties(blob, node);
204 err = list_subnodes(blob, node);
209 value = fdt_getprop(blob, node, property, &len);
241 int i, node;
248 node = fdt_path_offset(blob, arg[i]);
249 if (node < 0) {
254 report_error(arg[i], node);
260 if (show_data_for_item(blob, disp, node, prop))
271 " fdtget <options> <dt file> [<node> <property>]...\n"
272 " fdtget -p <options> <dt file> [<node> ]...\n"
275 "\t-p\t\tList properties for each node\n"
276 "\t-l\t\tList subnodes for each node\n"
345 /* Check for node, property arguments */