Home
last modified time | relevance | path

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

12

/scripts/dtc/libfdt/
Dfdt_addresses.c17 int val; in fdt_cells() local
27 val = fdt32_to_cpu(*c); in fdt_cells()
28 if ((val <= 0) || (val > FDT_MAX_NCELLS)) in fdt_cells()
31 return 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 == -FDT_ERR_NOTFOUND) in fdt_address_cells()
41 return val; in fdt_address_cells()
46 int val; in fdt_size_cells() local
48 val = fdt_cells(fdt, nodeoffset, "#size-cells"); in fdt_size_cells()
[all …]
Dlibfdt.h248 static inline void fdt_set_##name(void *fdt, uint32_t val) \
251 fdth->name = cpu_to_fdt32(val); \
1219 uint32_t idx, const void *val,
1253 const void *val, int len);
1285 const char *name, uint32_t val) in fdt_setprop_inplace_u32() argument
1287 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32()
1320 const char *name, uint64_t val) in fdt_setprop_inplace_u64() argument
1322 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64()
1332 const char *name, uint32_t val) in fdt_setprop_inplace_cell() argument
1334 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.c147 long val; in get_oct_char() local
152 val = strtol(x, &endx, 8); in get_oct_char()
157 return val; in get_oct_char()
170 long val; in get_hex_char() local
175 val = strtol(x, &endx, 16); in get_hex_char()
180 return val; in get_hex_char()
187 char val; in get_escape_char() local
191 val = '\a'; in get_escape_char()
194 val = '\b'; in get_escape_char()
197 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.c208 if (!data_is_one_string(prop->val)) in check_is_string()
228 str = prop->val.val; in check_is_string_list()
229 rem = prop->val.len; in check_is_string_list()
255 if (prop->val.len != sizeof(cell_t)) in check_is_cell()
346 if (prop && !prop->val.len) in check_unit_address_vs_reg()
451 struct marker *m = prop->val.markers; in check_duplicate_label_node()
474 if (prop->val.len != sizeof(cell_t)) { in check_phandle_prop()
476 prop->val.len, prop->name); in check_phandle_prop()
480 m = prop->val.markers; in check_phandle_prop()
559 if ((prop->val.len != node->basenamelen+1) 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
128 (val >> 24) & 0xff, (val >> 16) & 0xff, in asm_emit_cell()
129 (val >> 8) & 0xff, val & 0xff); in asm_emit_cell()
159 asm_emit_cell(e, fdt32_to_cpu(*((fdt32_t *)(d.val+off)))); in asm_emit_data()
164 fprintf(f, "\t.byte\t0x%hhx\n", d.val[off]); in asm_emit_data()
227 if (streq(str, d->val + i)) in stringtable_insert()
264 emit->cell(etarget, prop->val.len); in flatten_tree()
[all …]
Dtreesource.c165 int len = prop->val.len; in guess_value_type()
166 const char *p = prop->val.val; in guess_value_type()
167 struct marker *m = prop->val.markers; in guess_value_type()
180 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in guess_value_type()
198 size_t len = prop->val.len; in write_propval()
199 struct marker *m = prop->val.markers; in write_propval()
222 dummy_marker.next = prop->val.markers; in write_propval()
231 const char *p = &prop->val.val[m->offset]; 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 …]
Ddtc-lexer.l82 if (memchr(fn.val, '\0', fn.len - 1))
86 srcpos_set_line(xstrdup(fn.val), atoi(line) - 1);
186 yylval.integer = (unsigned char)d.val[0];
Dyamltree.c115 int len = prop->val.len; in yaml_propval()
116 struct marker *m = prop->val.markers; in yaml_propval()
143 char *data = &prop->val.val[m->offset]; in yaml_propval()
Ddtc-parser.y306 FILE *f = srcfile_relative_open($4.val, NULL);
312 (unsigned long long)$6, $4.val,
322 FILE *f = srcfile_relative_open($4.val, NULL);
399 uint64_t val = ~0ULL >> (64 - $1.bits); variable
409 $$.data = data_append_integer($1.data, val, $1.bits);
/scripts/kconfig/
Dsymbol.c114 return strtoll(sym->curr.val, NULL, base); in sym_get_range_val()
121 long long val, val2; in sym_validate_range() local
137 val = strtoll(sym->curr.val, NULL, base); in sym_validate_range()
139 if (val >= val2) { in sym_validate_range()
141 if (val <= val2) in sym_validate_range()
148 sym->curr.val = xstrdup(str); in sym_validate_range()
285 def_sym = sym->def[S_DEF_USER].val; in sym_calc_choice()
353 sym->curr.val = sym->name; in sym_calc_value()
372 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
412 newval.val = sym->def[S_DEF_USER].val; in sym_calc_value()
[all …]
Dmconf.c471 tristate val; in build_conf() local
538 val = sym_get_tristate_value(sym); in build_conf()
542 item_make("[%c]", val == no ? ' ' : '*'); in build_conf()
545 switch (val) { in build_conf()
562 if (val == yes) { in build_conf()
582 val = sym_get_tristate_value(sym); in build_conf()
583 if (sym_is_choice_value(sym) && val == yes) { in build_conf()
591 item_make("[%c]", val == no ? ' ' : '*'); in build_conf()
593 item_make("-%c-", val == no ? ' ' : '*'); in build_conf()
598 switch (val) { in build_conf()
Dgconf.c79 static const char *dbg_sym_flags(int val) in dbg_sym_flags() argument
85 if (val & SYMBOL_CONST) in dbg_sym_flags()
87 if (val & SYMBOL_CHECK) in dbg_sym_flags()
89 if (val & SYMBOL_CHOICE) in dbg_sym_flags()
91 if (val & SYMBOL_CHOICEVAL) in dbg_sym_flags()
93 if (val & SYMBOL_VALID) in dbg_sym_flags()
95 if (val & SYMBOL_OPTIONAL) in dbg_sym_flags()
97 if (val & SYMBOL_WRITE) in dbg_sym_flags()
99 if (val & SYMBOL_CHANGED) in dbg_sym_flags()
101 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 …]
Dpnmtologo.c86 int c, val; in get_number() local
104 val = 0; in get_number()
106 val = 10*val+c-'0'; in get_number()
116 return val; in get_number()
121 unsigned int val = get_number(fp); in get_number255() local
122 return (255*val+maxval/2)/maxval; in get_number255()
286 unsigned char val, bit; in write_logo_mono() local
300 for (val = 0, bit = 0x80; bit && j < logo_width; j++, bit >>= 1) in write_logo_mono()
302 val |= bit; in write_logo_mono()
303 write_hex(val); in write_logo_mono()
[all …]
Dsortextable.c137 static void w8be(uint64_t val, uint64_t *x) in w8be() argument
139 put_unaligned_be64(val, x); in w8be()
141 static void wbe(uint32_t val, uint32_t *x) in wbe() argument
143 put_unaligned_be32(val, x); in wbe()
145 static void w2be(uint16_t val, uint16_t *x) in w2be() argument
147 put_unaligned_be16(val, x); in w2be()
149 static void w8le(uint64_t val, uint64_t *x) in w8le() argument
151 put_unaligned_le64(val, x); in w8le()
153 static void wle(uint32_t val, uint32_t *x) in wle() argument
155 put_unaligned_le32(val, x); in wle()
[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.pl1845 my $val = 0;
1846 $val = $1 if $str =~ /^(\d+)$/;
1889 if ($val > 0 && $val <= $count) {
1890 $authored{$val - 1} = !$authored{$val - 1};
1899 if ($val > 0 && $val <= $count) {
1900 $signed{$val - 1} = !$signed{$val - 1};
1926 if ($val > 0) {
1927 $email_git_min_signatures = $val;
1931 if ($val > 0) {
1932 $email_git_max_maintainers = $val;
[all …]

12