Lines Matching defs:node
38 MODE_SHOW_VALUE, /* show values for node properties */
39 MODE_LIST_PROPS, /* list the properties for a node */
40 MODE_LIST_SUBNODES, /* list the subnodes of a node */
48 const char *default_val; /* default value if node/property not found */
116 * List all properties in a node, one per line.
119 * @param node Node to display
122 static int list_properties(const void *blob, int node)
128 prop = fdt_first_property_offset(blob, node);
144 * List all subnodes in a node, one per line
147 * @param node Node to display
150 static int list_subnodes(const void *blob, int node)
152 int nextoffset; /* next node offset from libfdt */
156 int depth = 1; /* the assumed depth of this node */
159 tag = fdt_next_tag(blob, node, &nextoffset);
162 pathp = fdt_get_name(blob, node, NULL);
191 node = nextoffset;
197 * Show the data for a given node (and perhaps property) according to the
202 * @param node Node to display
207 int node, const char *property)
214 err = list_properties(blob, node);
218 err = list_subnodes(blob, node);
223 value = fdt_getprop(blob, node, property, &len);
255 int i, node;
262 node = fdt_path_offset(blob, arg[i]);
263 if (node < 0) {
268 report_error(arg[i], node);
275 if (show_data_for_item(blob, disp, node, prop)) {
289 " fdtget <options> <dt file> [<node> <property>]...\n"
290 " fdtget -p <options> <dt file> [<node> ]...\n"
304 "List properties for each node",
305 "List subnodes for each node",
359 /* Check for node, property arguments */