Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 28) sorted by relevance

12

/scripts/dtc/
Dlivetree.c100 struct node *build_node(struct property *proplist, struct node *children) in build_node()
102 struct node *new = xmalloc(sizeof(*new)); in build_node()
103 struct node *child; in build_node()
117 struct node *build_node_delete(void) in build_node_delete()
119 struct node *new = xmalloc(sizeof(*new)); in build_node_delete()
128 struct node *name_node(struct node *node, char *name) in name_node() argument
130 assert(node->name == NULL); in name_node()
132 node->name = name; in name_node()
134 return node; in name_node()
137 struct node *merge_nodes(struct node *old_node, struct node *new_node) in merge_nodes()
[all …]
Dchecks.c43 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node);
99 static void check_nodes_props(struct check *c, struct dt_info *dti, struct node *node) in check_nodes_props() argument
101 struct node *child; in check_nodes_props()
103 TRACE(c, "%s", node->fullpath); in check_nodes_props()
105 c->fn(c, dti, node); in check_nodes_props()
107 for_each_child(node, child) in check_nodes_props()
113 struct node *dt = dti->dt; in run_check()
157 struct node *node) in check_always_fail() argument
164 struct node *node) in check_is_string() argument
169 prop = get_property(node, propname); in check_is_string()
[all …]
Ddtc.h152 struct node { struct
156 struct node *children; argument
158 struct node *parent; argument
159 struct node *next_sibling; argument
200 struct node *build_node(struct property *proplist, struct node *children);
201 struct node *build_node_delete(void);
202 struct node *name_node(struct node *node, char *name);
203 struct node *chain_node(struct node *first, struct node *list);
204 struct node *merge_nodes(struct node *old_node, struct node *new_node);
206 void add_property(struct node *node, struct property *prop);
[all …]
Dfdtput.c137 int node; in store_key_value() local
140 node = fdt_path_offset(blob, node_name); in store_key_value()
141 if (node < 0) { in store_key_value()
142 report_error(node_name, -1, node); in store_key_value()
146 err = fdt_setprop(blob, node, property, buf, len); in store_key_value()
168 int node, offset = 0; in create_paths() local
174 for (sep = path; *sep; path = sep + 1, offset = node) { in create_paths()
180 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths()
182 if (node == -FDT_ERR_NOTFOUND) { in create_paths()
183 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths()
[all …]
Dfdtget.c122 static int list_properties(const void *blob, int node) in list_properties() argument
128 prop = fdt_first_property_offset(blob, node); in list_properties()
150 static int list_subnodes(const void *blob, int node) in list_subnodes() argument
159 tag = fdt_next_tag(blob, node, &nextoffset); in list_subnodes()
162 pathp = fdt_get_name(blob, node, NULL); in list_subnodes()
191 node = nextoffset; in list_subnodes()
207 int node, const char *property) in show_data_for_item() argument
214 err = list_properties(blob, node); in show_data_for_item()
218 err = list_subnodes(blob, node); in show_data_for_item()
223 value = fdt_getprop(blob, node, property, &len); in show_data_for_item()
[all …]
Dsrcpos.c101 struct search_path *node; in fopen_any_on_path() local
111 for (node = search_path_head; !*fp && node; node = node->next) in fopen_any_on_path()
112 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path()
185 struct search_path *node; in srcfile_add_search_path() local
188 node = xmalloc(sizeof(*node)); in srcfile_add_search_path()
189 node->next = NULL; in srcfile_add_search_path()
190 node->dirname = xstrdup(dirname); in srcfile_add_search_path()
194 *search_path_tail = node; in srcfile_add_search_path()
196 search_path_head = node; in srcfile_add_search_path()
197 search_path_tail = &node->next; in srcfile_add_search_path()
Ddt_to_config332 my $node = $pn_arg_ref->{node};
445 my $node = $pn_arg_ref->{node};
457 print "$node";
734 my $node = shift;
742 return if (!$node or !$compatible);
746 return if ($node eq "/");
749 $pn_arg{node} = $node;
866 my $node = "";
888 &handle_compatible($full_node, $node, $compatible,
897 $node = $line;
[all …]
Dfstree.c26 static struct node *read_fstree(const char *dirname) in read_fstree()
31 struct node *tree; in read_fstree()
68 struct node *newchild; in read_fstree()
84 struct node *tree; in dt_from_fs()
Ddtc-parser.y52 struct node *node; member
53 struct node *nodelist;
86 %type <node> devicetree
87 %type <node> nodedef
88 %type <node> subnode
172 struct node *target = get_node_by_ref($1, $3);
183 struct node *target = get_node_by_ref($1, $2);
193 struct node *target = get_node_by_ref($1, $3);
Dflattree.c250 static void flatten_tree(struct node *tree, struct emitter *emit, in flatten_tree()
255 struct node *child; in flatten_tree()
745 static struct node *unflatten_tree(struct inbuf *dtbuf, in unflatten_tree()
749 struct node *node; in unflatten_tree() local
753 node = build_node(NULL, NULL); in unflatten_tree()
758 node->name = nodename_from_path(parent_flatname, flatname); in unflatten_tree()
760 node->name = flatname; in unflatten_tree()
764 struct node *child; in unflatten_tree()
769 if (node->children) in unflatten_tree()
773 add_property(node, prop); in unflatten_tree()
[all …]
Ddtc-parser.tab.h_shipped92 struct node *node;
93 struct node *nodelist;
Ddtc-parser.tab.c_shipped163 struct node *node;
164 struct node *nodelist;
1474 parser_output = build_dt_info((yyvsp[-2].flags), (yyvsp[-1].re), (yyvsp[0].node),
1475 guess_boot_cpuid((yyvsp[0].node)));
1542 (yyval.node) = name_node((yyvsp[0].node), "");
1550 (yyval.node) = merge_nodes((yyvsp[-2].node), (yyvsp[0].node));
1558 struct node *target = get_node_by_ref((yyvsp[-3].node), (yyvsp[-1].labelref));
1562 merge_nodes(target, (yyvsp[0].node));
1565 (yyval.node) = (yyvsp[-3].node);
1573 struct node *target = get_node_by_ref((yyvsp[-2].node), (yyvsp[-1].labelref));
[all …]
Ddtc.c44 static void fill_fullpaths(struct node *tree, const char *prefix) in fill_fullpaths()
46 struct node *child; in fill_fullpaths()
Dtreesource.c236 static void write_tree_source_node(FILE *f, struct node *tree, int level) in write_tree_source_node()
239 struct node *child; in write_tree_source_node()
/scripts/gcc-plugins/
Dgcc-common.h160 #define DECL_NAME_POINTER(node) IDENTIFIER_POINTER(DECL_NAME(node)) argument
161 #define DECL_NAME_LENGTH(node) IDENTIFIER_LENGTH(DECL_NAME(node)) argument
162 #define TYPE_NAME_POINTER(node) IDENTIFIER_POINTER(TYPE_NAME(node)) argument
163 #define TYPE_NAME_LENGTH(node) IDENTIFIER_LENGTH(TYPE_NAME(node)) argument
310 struct cgraph_node *node = cgraph_get_node(decl); in cgraph_get_create_node() local
312 return node ? node : cgraph_node(decl); in cgraph_get_create_node()
315 static inline bool cgraph_function_with_gimple_body_p(struct cgraph_node *node) in cgraph_function_with_gimple_body_p() argument
317 return node->analyzed && !node->thunk.thunk_p && !node->alias; in cgraph_function_with_gimple_body_p()
322 struct cgraph_node *node; in cgraph_first_function_with_gimple_body() local
324 for (node = cgraph_nodes; node; node = node->next) in cgraph_first_function_with_gimple_body()
[all …]
Dlatent_entropy_plugin.c122 static tree handle_latent_entropy_attribute(tree *node, tree name, in handle_latent_entropy_attribute() argument
134 switch (TREE_CODE(*node)) { in handle_latent_entropy_attribute()
142 if (DECL_INITIAL(*node)) { in handle_latent_entropy_attribute()
145 *node, name); in handle_latent_entropy_attribute()
149 if (!TREE_STATIC(*node)) { in handle_latent_entropy_attribute()
152 *node, name); in handle_latent_entropy_attribute()
156 type = TREE_TYPE(*node); in handle_latent_entropy_attribute()
161 *node, name); in handle_latent_entropy_attribute()
177 *node, name, fld); in handle_latent_entropy_attribute()
198 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
[all …]
Drandomize_layout_plugin.c26 #define ORIG_TYPE_NAME(node) \ argument
27 …TYPE_NAME(TYPE_MAIN_VARIANT(node)) != NULL_TREE ? ((const unsigned char *)IDENTIFIER_POINTER(TYPE_…
76 static tree handle_randomize_layout_attr(tree *node, tree name, tree args, int flags, bool *no_add_… in handle_randomize_layout_attr() argument
81 if (TREE_CODE(*node) == FUNCTION_DECL) { in handle_randomize_layout_attr()
82 error("%qE attribute does not apply to functions (%qF)", name, *node); in handle_randomize_layout_attr()
86 if (TREE_CODE(*node) == PARM_DECL) { in handle_randomize_layout_attr()
87 error("%qE attribute does not apply to function parameters (%qD)", name, *node); in handle_randomize_layout_attr()
91 if (TREE_CODE(*node) == VAR_DECL) { in handle_randomize_layout_attr()
92 error("%qE attribute does not apply to variables (%qD)", name, *node); in handle_randomize_layout_attr()
96 if (TYPE_P(*node)) { in handle_randomize_layout_attr()
[all …]
Dstructleak_plugin.c48 static tree handle_user_attribute(tree *node, tree name, tree args, int flags, bool *no_add_attrs) in handle_user_attribute() argument
53 if (TREE_CODE(*node) != FIELD_DECL) in handle_user_attribute()
/scripts/gdb/linux/
Dlists.py28 node = head['next'].dereference()
29 while node.address != head.address:
30 yield node.address
31 node = node['next'].dereference()
35 for node in list_for_each(head):
36 if node.type != list_head.get_type().pointer():
38 .format(node.type))
39 yield utils.container_of(node, gdbtype, member)
/scripts/genksyms/
Dgenksyms.c335 void free_node(struct string_list *node) in free_node() argument
337 free(node->string); in free_node()
338 free(node); in free_node()
379 struct string_list *copy_node(struct string_list *node) in copy_node() argument
384 newnode->string = xstrdup(node->string); in copy_node()
385 newnode->tag = node->tag; in copy_node()
423 struct string_list node = { in read_node() local
430 if (node.string == buffer) in read_node()
436 if (node.string == buffer) in read_node()
441 if (node.string >= buffer + sizeof(buffer) - 1) { in read_node()
[all …]
Dparse.y41 struct string_list *node = *p; in remove_node() local
42 *p = node->next; in remove_node()
43 free_node(node); in remove_node()
/scripts/kconfig/lxdialog/
Dutil.c619 vsnprintf(item_cur->node.str, sizeof(item_cur->node.str), fmt, ap); in item_make()
628 avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str); in item_add_str()
631 vsnprintf(item_cur->node.str + strlen(item_cur->node.str), in item_add_str()
633 item_cur->node.str[sizeof(item_cur->node.str) - 1] = '\0'; in item_add_str()
639 item_cur->node.tag = tag; in item_set_tag()
643 item_cur->node.data = ptr; in item_set_data()
648 item_cur->node.selected = val; in item_set_selected()
661 return item_cur->node.data; in item_data()
666 return item_cur->node.tag; in item_tag()
702 return item_cur->node.str; in item_str()
[all …]
/scripts/dtc/libfdt/
Dlibfdt.h207 #define fdt_for_each_subnode(node, fdt, parent) \ argument
208 for (node = fdt_first_subnode(fdt, parent); \
209 node >= 0; \
210 node = fdt_next_subnode(fdt, node))
514 #define fdt_for_each_property_offset(property, fdt, node) \ argument
515 for (property = fdt_first_property_offset(fdt, node); \
/scripts/coccinelle/iterators/
Ddevice_node_continue.cocci1 /// Device node iterators put the previous value of the index variable, so an
/scripts/kconfig/
Dgconf.c76 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row);
1162 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row) in set_node() argument
1175 gtk_tree_store_set(tree, node, in set_node()
1201 GtkTreeIter *node = parents[indent]; in place_node() local
1203 gtk_tree_store_append(tree, node, parent); in place_node()
1204 set_node(node, menu, row); in place_node()

12