Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 26) sorted by relevance

12

/scripts/dtc/
Dchecks.c63 struct property *prop, in check_msg() argument
74 if (prop && prop->srcpos) in check_msg()
75 pos = prop->srcpos; in check_msg()
93 if (prop) in check_msg()
94 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg()
105 if (!prop && pos) { in check_msg()
126 #define FAIL_PROP(c, dti, node, prop, ...) \ argument
130 check_msg((c), dti, node, prop, __VA_ARGS__); \
209 struct property *prop; in check_is_string() local
212 prop = get_property(node, propname); in check_is_string()
[all …]
Dlivetree.c266 void add_property(struct node *node, struct property *prop) in add_property() argument
270 prop->next = NULL; in add_property()
276 *p = prop; in add_property()
281 struct property *prop = node->proplist; in delete_property_by_name() local
283 while (prop) { in delete_property_by_name()
284 if (streq(prop->name, name)) { in delete_property_by_name()
285 delete_property(prop); in delete_property_by_name()
288 prop = prop->next; in delete_property_by_name()
292 void delete_property(struct property *prop) in delete_property() argument
294 prop->deleted = 1; in delete_property()
[all …]
Dtreesource.c142 static enum markertype guess_value_type(struct property *prop) in guess_value_type() argument
144 int len = prop->val.len; in guess_value_type()
145 const char *p = prop->val.val; in guess_value_type()
146 struct marker *m = prop->val.markers; in guess_value_type()
159 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in guess_value_type()
175 static void write_propval(FILE *f, struct property *prop) in write_propval() argument
177 size_t len = prop->val.len; in write_propval()
178 struct marker *m = prop->val.markers; in write_propval()
186 srcstr = srcpos_string_first(prop->srcpos, annotate); in write_propval()
200 dummy_marker.type = guess_value_type(prop); in write_propval()
[all …]
Dfdtget.c112 int prop; in list_properties() local
114 prop = fdt_first_property_offset(blob, node); in list_properties()
117 if (prop < 0) in list_properties()
118 return prop == -FDT_ERR_NOTFOUND ? 0 : prop; in list_properties()
119 data = fdt_get_property_by_offset(blob, prop, NULL); in list_properties()
123 prop = fdt_next_property_offset(blob, prop); in list_properties()
240 const char *prop; in do_fdtget() local
258 prop = args_per_step == 1 ? NULL : arg[i + 1]; in do_fdtget()
260 if (show_data_for_item(blob, disp, node, prop)) in do_fdtget()
Dyamltree.c113 static void yaml_propval(yaml_emitter_t *emitter, struct property *prop) in yaml_propval() argument
116 unsigned int len = prop->val.len; in yaml_propval()
117 struct marker *m = prop->val.markers; in yaml_propval()
118 struct marker *markers = prop->val.markers; in yaml_propval()
122 (yaml_char_t *)YAML_STR_TAG, (yaml_char_t*)prop->name, in yaml_propval()
123 strlen(prop->name), 1, 1, YAML_PLAIN_SCALAR_STYLE); in yaml_propval()
137 die("No markers present in property '%s' value\n", prop->name); in yaml_propval()
145 char *data = &prop->val.val[m->offset]; in yaml_propval()
180 struct property *prop; in yaml_tree() local
191 for_each_property(tree, prop) in yaml_tree()
[all …]
Dfstree.c37 struct property *prop; in read_fstree() local
46 prop = build_property(xstrdup(de->d_name), in read_fstree()
50 add_property(tree, prop); in read_fstree()
Ddtc.h279 void add_property(struct node *node, struct property *prop);
281 void delete_property(struct property *prop);
291 cell_t propval_cell(struct property *prop);
292 cell_t propval_cell_n(struct property *prop, unsigned int n);
296 struct node **node, struct property **prop);
Dflattree.c240 struct property *prop; in flatten_tree() local
256 for_each_property(tree, prop) { in flatten_tree()
259 if (streq(prop->name, "name")) in flatten_tree()
262 nameoff = stringtable_insert(strbuf, prop->name); in flatten_tree()
264 emit->property(etarget, prop->labels); in flatten_tree()
265 emit->cell(etarget, prop->val.len); in flatten_tree()
268 if ((vi->flags & FTF_VARALIGN) && (prop->val.len >= 8)) in flatten_tree()
271 emit->data(etarget, prop->val); in flatten_tree()
749 struct property *prop; in unflatten_tree() local
758 prop = flat_read_property(dtbuf, strbuf, flags); in unflatten_tree()
[all …]
Ddtc-parser.y45 struct property *prop; member
80 %type <prop> propdef
/scripts/kconfig/
Dmenu.c32 static void prop_warn(struct property *prop, const char *fmt, ...) in prop_warn() argument
36 fprintf(stderr, "%s:%d:warning: ", prop->file->name, prop->lineno); in prop_warn()
132 struct property *prop; in menu_add_prop() local
134 prop = xmalloc(sizeof(*prop)); in menu_add_prop()
135 memset(prop, 0, sizeof(*prop)); in menu_add_prop()
136 prop->type = type; in menu_add_prop()
137 prop->file = current_file; in menu_add_prop()
138 prop->lineno = zconf_lineno(); in menu_add_prop()
139 prop->menu = current_entry; in menu_add_prop()
140 prop->expr = expr; in menu_add_prop()
[all …]
Dsymbol.c78 struct property *prop; in sym_get_choice_prop() local
80 for_all_choices(sym, prop) in sym_get_choice_prop()
81 return prop; in sym_get_choice_prop()
87 struct property *prop; in sym_get_default_prop() local
89 for_all_defaults(sym, prop) { in sym_get_default_prop()
90 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
91 if (prop->visible.tri != no) in sym_get_default_prop()
92 return prop; in sym_get_default_prop()
99 struct property *prop; in sym_get_range_prop() local
101 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
[all …]
Dparser.y583 struct property *prop; in print_symbol() local
609 for (prop = sym->prop; prop; prop = prop->next) { in print_symbol()
610 if (prop->menu != menu) in print_symbol()
612 switch (prop->type) { in print_symbol()
615 print_quoted_string(out, prop->text); in print_symbol()
616 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
618 expr_fprint(prop->visible.expr, out); in print_symbol()
624 expr_fprint(prop->expr, out); in print_symbol()
625 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
627 expr_fprint(prop->visible.expr, out); in print_symbol()
[all …]
Dqconf.cc94 struct property *prop; in updateMenu() local
107 prop = menu->prompt; in updateMenu()
110 if (prop) switch (prop->type) { in updateMenu()
1084 for (struct property *prop = sym->prop; prop; prop = prop->next) { in debug_info() local
1085 switch (prop->type) { in debug_info()
1089 stream << print_filter(prop->text); in debug_info()
1098 stream << prop_get_type_name(prop->type); in debug_info()
1100 expr_print(prop->expr, expr_print_help, in debug_info()
1107 expr_print(prop->expr, expr_print_help, in debug_info()
1114 stream << prop_get_type_name(prop->type); in debug_info()
[all …]
Dconf.c118 struct property *prop; in randomize_choice_values() local
131 prop = sym_get_choice_prop(csym); in randomize_choice_values()
135 expr_list_for_each_sym(prop->expr, e, sym) in randomize_choice_values()
145 expr_list_for_each_sym(prop->expr, e, sym) { in randomize_choice_values()
567 struct property *prop; in conf() local
574 prop = menu->prompt; in conf()
575 if (prop) { in conf()
578 switch (prop->type) { in conf()
Dexpr.h120 struct property *prop; member
203 for (st = sym->prop; st; st = st->next) \
208 for (st = sym->prop; st; st = st->next) \
Dmconf.c507 struct property *prop; in build_conf() local
525 prop = menu->prompt; in build_conf()
527 if (prop && menu != current_menu) { in build_conf()
529 switch (prop->type) { in build_conf()
Dlkc.h114 struct symbol *prop_get_symbol(struct property *prop);
Dconfdata.c1266 struct property *prop; in set_all_choice_values() local
1270 prop = sym_get_choice_prop(csym); in set_all_choice_values()
1275 expr_list_for_each_sym(prop->expr, e, sym) { in set_all_choice_values()
Dnconf.c811 struct property *prop; in build_conf() local
821 prop = menu->prompt; in build_conf()
823 if (prop && menu != current_menu) { in build_conf()
/scripts/dtc/libfdt/
Dfdt_rw.c185 int len, struct fdt_property **prop) in fdt_resize_property_() argument
190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_()
191 if (!*prop) in fdt_resize_property_()
194 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in fdt_resize_property_()
198 (*prop)->len = cpu_to_fdt32(len); in fdt_resize_property_()
203 int len, struct fdt_property **prop) in fdt_add_property_() argument
218 *prop = fdt_offset_ptr_w_(fdt, nextoffset); in fdt_add_property_()
219 proplen = sizeof(**prop) + FDT_TAGALIGN(len); in fdt_add_property_()
221 err = fdt_splice_struct_(fdt, *prop, 0, proplen); in fdt_add_property_()
229 (*prop)->tag = cpu_to_fdt32(FDT_PROP); in fdt_add_property_()
[all …]
Dfdt_addresses.c61 uint8_t data[sizeof(fdt64_t) * 2], *prop; in fdt_appendprop_addrrange() local
74 prop = data; in fdt_appendprop_addrrange()
79 fdt32_st(prop, (uint32_t)addr); in fdt_appendprop_addrrange()
81 fdt64_st(prop, addr); in fdt_appendprop_addrrange()
87 prop += addr_cells * sizeof(fdt32_t); in fdt_appendprop_addrrange()
92 fdt32_st(prop, (uint32_t)size); in fdt_appendprop_addrrange()
94 fdt64_st(prop, size); in fdt_appendprop_addrrange()
Dfdt_ro.c361 const struct fdt_property *prop; in fdt_get_property_by_offset_() local
370 prop = fdt_offset_ptr_(fdt, offset); in fdt_get_property_by_offset_()
373 *lenp = fdt32_ld_(&prop->len); in fdt_get_property_by_offset_()
375 return prop; in fdt_get_property_by_offset_()
404 const struct fdt_property *prop; in fdt_get_property_namelen_() local
406 prop = fdt_get_property_by_offset_(fdt, offset, lenp); in fdt_get_property_namelen_()
407 if (!can_assume(LIBFDT_FLAWLESS) && !prop) { in fdt_get_property_namelen_()
411 if (fdt_string_eq_(fdt, fdt32_ld_(&prop->nameoff), in fdt_get_property_namelen_()
415 return prop; in fdt_get_property_namelen_()
455 const struct fdt_property *prop; in fdt_getprop_namelen() local
[all …]
Dfdt_wip.c61 struct fdt_property *prop; in fdt_nop_property() local
64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
65 if (!prop) in fdt_nop_property()
68 fdt_nop_region_(prop, len + sizeof(*prop)); in fdt_nop_property()
Dfdt_sw.c295 struct fdt_property *prop; in fdt_property_placeholder() local
311 prop = fdt_grab_space_(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property_placeholder()
312 if (! prop) { in fdt_property_placeholder()
318 prop->tag = cpu_to_fdt32(FDT_PROP); in fdt_property_placeholder()
319 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property_placeholder()
320 prop->len = cpu_to_fdt32(len); in fdt_property_placeholder()
321 *valp = prop->data; in fdt_property_placeholder()
363 struct fdt_property *prop = in fdt_finish() local
367 nameoff = fdt32_to_cpu(prop->nameoff); in fdt_finish()
369 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_finish()
Dfdt_overlay.c550 const void *prop; in overlay_apply_node() local
554 prop = fdt_getprop_by_offset(fdto, property, &name, in overlay_apply_node()
561 ret = fdt_setprop(fdt, target, name, prop, prop_len); in overlay_apply_node()
682 int root_sym, ov_sym, prop, path_len, fragment, target; in overlay_symbol_update() local
710 fdt_for_each_property_offset(prop, fdto, ov_sym) { in overlay_symbol_update()
711 path = fdt_getprop_by_offset(fdto, prop, &name, &path_len); in overlay_symbol_update()

12