Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 44) sorted by relevance

12

/scripts/dtc/libfdt/
Dfdt_addresses.c17 uint32_t val; in fdt_cells() local
27 val = fdt32_to_cpu(*c); in fdt_cells()
28 if (val > FDT_MAX_NCELLS) in fdt_cells()
31 return (int)val; in fdt_cells()
36 int val; in fdt_address_cells() local
38 val = fdt_cells(fdt, nodeoffset, "#address-cells"); in fdt_address_cells()
39 if (val == 0) in fdt_address_cells()
41 if (val == -FDT_ERR_NOTFOUND) in fdt_address_cells()
43 return val; in fdt_address_cells()
48 int val; in fdt_size_cells() local
[all …]
Dlibfdt.h261 static inline void fdt_set_##name(void *fdt, uint32_t val) \
264 fdth->name = cpu_to_fdt32(val); \
1252 uint32_t idx, const void *val,
1286 const void *val, int len);
1318 const char *name, uint32_t val) in fdt_setprop_inplace_u32() argument
1320 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32()
1353 const char *name, uint64_t val) in fdt_setprop_inplace_u64() argument
1355 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64()
1370 const char *name, uint32_t val) in fdt_setprop_inplace_cell() argument
1372 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell()
[all …]
Dfdt_wip.c15 uint32_t idx, const void *val, in fdt_setprop_inplace_namelen_partial() argument
29 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial()
34 const void *val, int len) in fdt_setprop_inplace() argument
48 val, len); in fdt_setprop_inplace()
Dfdt_strerror.c18 #define FDT_ERRTABENT(val) \ argument
19 [(val)] = { .str = #val, }
Dfdt_overlay.c30 const fdt32_t *val; in overlay_get_target_phandle() local
33 val = fdt_getprop(fdto, fragment, "target", &len); in overlay_get_target_phandle()
34 if (!val) in overlay_get_target_phandle()
37 if ((len != sizeof(*val)) || (fdt32_to_cpu(*val) == (uint32_t)-1)) in overlay_get_target_phandle()
40 return fdt32_to_cpu(*val); in overlay_get_target_phandle()
119 const fdt32_t *val; in overlay_phandle_add_offset() local
123 val = fdt_getprop(fdt, node, name, &len); in overlay_phandle_add_offset()
124 if (!val) in overlay_phandle_add_offset()
127 if (len != sizeof(*val)) in overlay_phandle_add_offset()
130 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset()
/scripts/dtc/
Dutil.c148 long val; in get_oct_char() local
153 val = strtol(x, &endx, 8); in get_oct_char()
158 return val; in get_oct_char()
171 long val; in get_hex_char() local
176 val = strtol(x, &endx, 16); in get_hex_char()
181 return val; in get_hex_char()
188 char val; in get_escape_char() local
192 val = '\a'; in get_escape_char()
195 val = '\b'; in get_escape_char()
198 val = '\t'; in get_escape_char()
[all …]
Ddata.c20 if (d.val) in data_free()
21 free(d.val); in data_free()
39 nd.val = xrealloc(d.val, newsize); in data_grow_for()
51 memcpy(d.val, mem, len); in data_copy_mem()
65 q = d.val; in data_copy_escape_string()
93 ret = fread(d.val + d.len, 1, chunksize, f); in data_copy_file()
110 memcpy(d.val + d.len, p, len); in data_append_data()
119 memmove(d.val + m->offset + len, d.val + m->offset, d.len - m->offset); in data_insert_at_marker()
120 memcpy(d.val + m->offset, p, len); in data_insert_at_marker()
146 d = data_append_markers(data_append_data(d1, d2.val, d2.len), m2); in data_merge()
[all …]
Dchecks.c216 if (!data_is_one_string(prop->val)) in check_is_string()
236 str = prop->val.val; in check_is_string_list()
237 rem = prop->val.len; in check_is_string_list()
263 if (prop->val.len != sizeof(cell_t)) in check_is_cell()
369 if (prop && !prop->val.len) in check_unit_address_vs_reg()
474 struct marker *m = prop->val.markers; in check_duplicate_label_node()
497 if (prop->val.len != sizeof(cell_t)) { in check_phandle_prop()
499 prop->val.len, prop->name); in check_phandle_prop()
503 m = prop->val.markers; in check_phandle_prop()
582 if ((prop->val.len != node->basenamelen + 1U) in check_name_properties()
[all …]
Dflattree.c45 static void bin_emit_cell(void *e, cell_t val) in bin_emit_cell() argument
49 *dtbuf = data_append_cell(*dtbuf, val); in bin_emit_cell()
74 *dtbuf = data_append_data(*dtbuf, d.val, d.len); in bin_emit_data()
123 static void asm_emit_cell(void *e, cell_t val) in asm_emit_cell() argument
129 (val >> 24) & 0xff, (val >> 16) & 0xff, in asm_emit_cell()
130 (val >> 8) & 0xff, val & 0xff); in asm_emit_cell()
160 asm_emit_cell(e, dtb_ld32(d.val + off)); in asm_emit_data()
165 fprintf(f, "\t.byte\t0x%hhx\n", d.val[off]); in asm_emit_data()
228 if (streq(str, d->val + i)) in stringtable_insert()
265 emit->cell(etarget, prop->val.len); in flatten_tree()
[all …]
Dtreesource.c144 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()
177 size_t len = prop->val.len; in write_propval()
178 struct marker *m = prop->val.markers; in write_propval()
201 dummy_marker.next = prop->val.markers; in write_propval()
210 const char *p = &prop->val.val[m->offset]; in write_propval()
227 m_phandle = prop->val.markers; in write_propval()
Dlivetree.c39 struct property *build_property(char *name, struct data val, in build_property() argument
47 new->val = val; in build_property()
175 old_prop->val = new_prop->val; in merge_nodes()
347 d = data_add_marker(p->val, type, name); in append_to_property()
349 p->val = d; in append_to_property()
437 assert(prop->val.len == sizeof(cell_t)); in propval_cell()
438 return fdt32_to_cpu(*((fdt32_t *)prop->val.val)); in propval_cell()
443 assert(prop->val.len / sizeof(cell_t) >= n); in propval_cell_n()
444 return fdt32_to_cpu(*((fdt32_t *)prop->val.val + n)); in propval_cell_n()
484 m = p->val.markers; in get_marker_label()
[all …]
Dyamltree.c116 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()
145 char *data = &prop->val.val[m->offset]; in yaml_propval()
Ddtc-lexer.l81 if (memchr(fn.val, '\0', fn.len - 1))
85 srcpos_set_line(xstrdup(fn.val), atoi(line) - 1);
185 yylval.integer = (unsigned char)d.val[0];
Ddtc-parser.y310 FILE *f = srcfile_relative_open($4.val, NULL);
316 (unsigned long long)$6, $4.val,
326 FILE *f = srcfile_relative_open($4.val, NULL);
403 uint64_t val = ~0ULL >> (64 - $1.bits); variable
413 $$.data = data_append_integer($1.data, val, $1.bits);
/scripts/kconfig/
Dsymbol.c119 return strtoll(sym->curr.val, NULL, base); in sym_get_range_val()
127 long long val, val2; in sym_validate_range() local
142 val = strtoll(sym->curr.val, NULL, base); in sym_validate_range()
145 if (val >= val2) { in sym_validate_range()
148 if (val <= val2) in sym_validate_range()
151 sym->curr.val = range_sym->curr.val; in sym_validate_range()
288 def_sym = sym->def[S_DEF_USER].val; in sym_calc_choice()
356 sym->curr.val = sym->name; in sym_calc_value()
375 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
416 newval.val = sym->def[S_DEF_USER].val; in sym_calc_value()
[all …]
Dconfdata.c274 sym->def[def].val = xstrdup(p); in conf_set_sym_val()
416 if (sym->def[def].val) in conf_read_simple()
417 free(sym->def[def].val); in conf_read_simple()
420 sym->def[def].val = NULL; in conf_read_simple()
514 cs->def[def].val = sym; in conf_read_simple()
553 if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val)) in conf_read()
578 if (sym_string_within_range(sym, sym->def[S_DEF_USER].val)) in conf_read()
676 const char *val; in __print_symbol() local
682 val = sym_get_string_value(sym); in __print_symbol()
685 output_n != OUTPUT_N && *val == 'n') { in __print_symbol()
[all …]
Dmconf.c469 tristate val; in build_conf() local
536 val = sym_get_tristate_value(sym); in build_conf()
540 item_make("[%c]", val == no ? ' ' : '*'); in build_conf()
543 switch (val) { in build_conf()
560 if (val == yes) { in build_conf()
580 val = sym_get_tristate_value(sym); in build_conf()
581 if (sym_is_choice_value(sym) && val == yes) { in build_conf()
589 item_make("[%c]", val == no ? ' ' : '*'); in build_conf()
591 item_make("-%c-", val == no ? ' ' : '*'); in build_conf()
596 switch (val) { in build_conf()
Dgconf.c76 static const char *dbg_sym_flags(int val) in dbg_sym_flags() argument
82 if (val & SYMBOL_CONST) in dbg_sym_flags()
84 if (val & SYMBOL_CHECK) in dbg_sym_flags()
86 if (val & SYMBOL_CHOICE) in dbg_sym_flags()
88 if (val & SYMBOL_CHOICEVAL) in dbg_sym_flags()
90 if (val & SYMBOL_VALID) in dbg_sym_flags()
92 if (val & SYMBOL_OPTIONAL) in dbg_sym_flags()
94 if (val & SYMBOL_WRITE) in dbg_sym_flags()
96 if (val & SYMBOL_CHANGED) in dbg_sym_flags()
98 if (val & SYMBOL_NO_WRITE) in dbg_sym_flags()
[all …]
/scripts/
Dmarkup_oops.pl129 my $val = $regs{$reg};
130 if ($val =~ /^[0]+$/) {
131 $val = "0";
133 $val =~ s/^0*//;
139 if (length($val) > 0) {
140 $str = $str . " $reg => $val ";
143 $val = "";
147 if (length($val) > 0) {
148 $str = $str . " $reg = $val ";
249 my $val = $1;
[all …]
Dsorttable.c144 static void wbe(uint32_t val, uint32_t *x) in wbe() argument
146 put_unaligned_be32(val, x); in wbe()
149 static void w2be(uint16_t val, uint16_t *x) in w2be() argument
151 put_unaligned_be16(val, x); in w2be()
154 static void w8be(uint64_t val, uint64_t *x) in w8be() argument
156 put_unaligned_be64(val, x); in w8be()
159 static void wle(uint32_t val, uint32_t *x) in wle() argument
161 put_unaligned_le32(val, x); in wle()
164 static void w2le(uint16_t val, uint16_t *x) in w2le() argument
166 put_unaligned_le16(val, x); in w2le()
[all …]
Dextract_xc3028.pl65 my $val = shift;
66 my $msb = ($val >> 8) &0xff;
67 my $lsb = $val & 0xff;
74 my $val = shift;
75 my $l3 = ($val >> 24) & 0xff;
76 my $l2 = ($val >> 16) & 0xff;
77 my $l1 = ($val >> 8) & 0xff;
78 my $l0 = $val & 0xff;
Dleaking_addresses.pl264 my $val = "";
269 ($str, $val) = split /=/, $line;
270 chomp $val;
276 return $val;
Ddiffconfig45 name, val = line[7:].split("=", 1)
46 d[name] = val
Dunifdef.c917 int val; in eval_table() local
934 rt = ops->inner(ops+1, &val, &cp); in eval_table()
937 lt = op->fn(valp, lt, *valp, rt, val); in eval_table()
955 int val = 0; in ifeval() local
959 ret = eval_table(eval_ops, &val, cpp); in ifeval()
960 debug("eval = %d", val); in ifeval()
1157 char *val; in addsym() local
1167 val = sym + (skipsym(sym) - sym); in addsym()
1169 if (*val == '=') { in addsym()
1170 value[symind] = val+1; in addsym()
[all …]
Dget_maintainer.pl1879 my $val = 0;
1880 $val = $1 if $str =~ /^(\d+)$/;
1923 if ($val > 0 && $val <= $count) {
1924 $authored{$val - 1} = !$authored{$val - 1};
1933 if ($val > 0 && $val <= $count) {
1934 $signed{$val - 1} = !$signed{$val - 1};
1960 if ($val > 0) {
1961 $email_git_min_signatures = $val;
1965 if ($val > 0) {
1966 $email_git_max_maintainers = $val;
[all …]

12