Home
last modified time | relevance | path

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

12

/scripts/dtc/
Dtreesource.c64 static void write_propval_string(FILE *f, struct data val) in write_propval_string() argument
66 const char *str = val.val; in write_propval_string()
68 struct marker *m = val.markers; in write_propval_string()
70 assert(str[val.len-1] == '\0'); in write_propval_string()
79 for (i = 0; i < (val.len-1); i++) { in write_propval_string()
132 assert (m->offset == val.len); in write_propval_string()
137 static void write_propval_cells(FILE *f, struct data val) in write_propval_cells() argument
139 void *propend = val.val + val.len; in write_propval_cells()
140 fdt32_t *cp = (fdt32_t *)val.val; in write_propval_cells()
141 struct marker *m = val.markers; in write_propval_cells()
[all …]
Dutil.c143 long val; in get_oct_char() local
148 val = strtol(x, &endx, 8); in get_oct_char()
153 return val; in get_oct_char()
166 long val; in get_hex_char() local
171 val = strtol(x, &endx, 16); in get_hex_char()
176 return val; in get_hex_char()
183 char val; in get_escape_char() local
187 val = '\a'; in get_escape_char()
190 val = '\b'; in get_escape_char()
193 val = '\t'; in get_escape_char()
[all …]
Ddata.c35 if (d.val) in data_free()
36 free(d.val); in data_free()
54 nd.val = xrealloc(d.val, newsize); in data_grow_for()
66 memcpy(d.val, mem, len); in data_copy_mem()
79 q = d.val; in data_copy_escape_string()
106 ret = fread(d.val + d.len, 1, chunksize, f); in data_copy_file()
123 memcpy(d.val + d.len, p, len); in data_append_data()
132 memmove(d.val + m->offset + len, d.val + m->offset, d.len - m->offset); in data_insert_at_marker()
133 memcpy(d.val + m->offset, p, len); in data_insert_at_marker()
159 d = data_append_markers(data_append_data(d1, d2.val, d2.len), m2); in data_merge()
[all …]
Dchecks.c173 if (!data_is_one_string(prop->val)) in check_is_string()
192 if (prop->val.len != sizeof(cell_t)) in check_is_cell()
282 if (prop && !prop->val.len) in check_unit_address_vs_reg()
389 struct marker *m = prop->val.markers; in check_duplicate_label_node()
412 if (prop->val.len != sizeof(cell_t)) { in check_phandle_prop()
414 node->fullpath, prop->val.len, prop->name); in check_phandle_prop()
418 m = prop->val.markers; in check_phandle_prop()
497 if ((prop->val.len != node->basenamelen+1) in check_name_properties()
498 || (memcmp(prop->val.val, node->name, node->basenamelen) != 0)) { in check_name_properties()
500 " of base node name)", node->fullpath, prop->val.val); in check_name_properties()
[all …]
Dflattree.c60 static void bin_emit_cell(void *e, cell_t val) in bin_emit_cell() argument
64 *dtbuf = data_append_cell(*dtbuf, val); in bin_emit_cell()
89 *dtbuf = data_append_data(*dtbuf, d.val, d.len); in bin_emit_data()
138 static void asm_emit_cell(void *e, cell_t val) in asm_emit_cell() argument
143 (val >> 24) & 0xff, (val >> 16) & 0xff, in asm_emit_cell()
144 (val >> 8) & 0xff, val & 0xff); in asm_emit_cell()
174 asm_emit_cell(e, fdt32_to_cpu(*((fdt32_t *)(d.val+off)))); in asm_emit_data()
179 fprintf(f, "\t.byte\t0x%hhx\n", d.val[off]); in asm_emit_data()
242 if (streq(str, d->val + i)) in stringtable_insert()
279 emit->cell(etarget, prop->val.len); in flatten_tree()
[all …]
Dlivetree.c53 struct property *build_property(char *name, struct data val) in build_property() argument
60 new->val = val; in build_property()
170 old_prop->val = new_prop->val; in merge_nodes()
307 d = data_append_data(p->val, data, len); in append_to_property()
308 p->val = d; in append_to_property()
395 assert(prop->val.len == sizeof(cell_t)); in propval_cell()
396 return fdt32_to_cpu(*((fdt32_t *)prop->val.val)); in propval_cell()
436 m = p->val.markers; in get_marker_label()
587 if (!reg || (reg->val.len != sizeof(uint32_t))) in guess_boot_cpuid()
819 m = prop->val.markers; in any_fixup_tree()
[all …]
Ddtc-parser.y262 FILE *f = srcfile_relative_open($4.val, NULL);
268 (unsigned long long)$6, $4.val,
278 FILE *f = srcfile_relative_open($4.val, NULL);
350 uint64_t val = ~0ULL >> (64 - $1.bits); variable
360 $$.data = data_append_integer($1.data, val, $1.bits);
Ddtc-lexer.l96 if (memchr(fn.val, '\0', fn.len - 1))
100 srcpos_set_line(xstrdup(fn.val), atoi(line) - 1);
193 yylval.integer = (unsigned char)d.val[0];
Ddtc.h89 char *val; member
145 struct data val; member
195 struct property *build_property(char *name, struct data val);
/scripts/dtc/libfdt/
Dlibfdt.h229 static inline void fdt_set_##name(void *fdt, uint32_t val) \
232 fdth->name = cpu_to_fdt32(val); \
1125 uint32_t idx, const void *val,
1159 const void *val, int len);
1191 const char *name, uint32_t val) in fdt_setprop_inplace_u32() argument
1193 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32()
1226 const char *name, uint64_t val) in fdt_setprop_inplace_u64() argument
1228 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64()
1238 const char *name, uint32_t val) in fdt_setprop_inplace_cell() argument
1240 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell()
[all …]
Dfdt_wip.c60 uint32_t idx, const void *val, in fdt_setprop_inplace_namelen_partial() argument
74 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial()
79 const void *val, int len) in fdt_setprop_inplace() argument
93 val, len); in fdt_setprop_inplace()
Dfdt_strerror.c62 #define FDT_ERRTABENT(val) \ argument
63 [(val)] = { .str = #val, }
Dfdt_rw.c273 const void *val, int len) in fdt_setprop() argument
287 memcpy(prop->data, val, len); in fdt_setprop()
292 const void *val, int len) in fdt_appendprop() argument
308 memcpy(prop->data + oldlen, val, len); in fdt_appendprop()
313 memcpy(prop->data, val, len); in fdt_appendprop()
/scripts/kconfig/
Dsymbol.c152 return strtoll(sym->curr.val, NULL, base); in sym_get_range_val()
159 long long val, val2; in sym_validate_range() local
175 val = strtoll(sym->curr.val, NULL, base); in sym_validate_range()
177 if (val >= val2) { in sym_validate_range()
179 if (val <= val2) in sym_validate_range()
186 sym->curr.val = strdup(str); in sym_validate_range()
323 def_sym = sym->def[S_DEF_USER].val; in sym_calc_choice()
370 sym->curr.val = sym->name; in sym_calc_value()
387 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
439 newval.val = sym->def[S_DEF_USER].val; in sym_calc_value()
[all …]
Dmconf.c472 tristate val; in build_conf() local
540 val = sym_get_tristate_value(sym); in build_conf()
544 item_make("[%c]", val == no ? ' ' : '*'); in build_conf()
547 switch (val) { in build_conf()
564 if (val == yes) { in build_conf()
584 val = sym_get_tristate_value(sym); in build_conf()
585 if (sym_is_choice_value(sym) && val == yes) { in build_conf()
593 item_make("[%c]", val == no ? ' ' : '*'); in build_conf()
595 item_make("-%c-", val == no ? ' ' : '*'); in build_conf()
600 switch (val) { in build_conf()
Dgconf.c82 const char *dbg_sym_flags(int val) in dbg_sym_flags() argument
88 if (val & SYMBOL_CONST) in dbg_sym_flags()
90 if (val & SYMBOL_CHECK) in dbg_sym_flags()
92 if (val & SYMBOL_CHOICE) in dbg_sym_flags()
94 if (val & SYMBOL_CHOICEVAL) in dbg_sym_flags()
96 if (val & SYMBOL_VALID) in dbg_sym_flags()
98 if (val & SYMBOL_OPTIONAL) in dbg_sym_flags()
100 if (val & SYMBOL_WRITE) in dbg_sym_flags()
102 if (val & SYMBOL_CHANGED) in dbg_sym_flags()
104 if (val & SYMBOL_AUTO) in dbg_sym_flags()
[all …]
Dconfdata.c181 sym->def[def].val = strdup(p); in conf_set_sym_val()
305 if (sym->def[def].val) in conf_read_simple()
306 free(sym->def[def].val); in conf_read_simple()
309 sym->def[def].val = NULL; in conf_read_simple()
398 cs->def[def].val = sym; in conf_read_simple()
438 if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val)) in conf_read()
463 if (sym_string_within_range(sym, sym->def[S_DEF_USER].val)) in conf_read()
879 sym->def[S_DEF_AUTO].val)) in conf_split_config()
1087 csym->def[S_DEF_USER].val = sym; in randomize_choice_values()
Dnconf.c741 tristate val; in build_conf() local
805 val = sym_get_tristate_value(sym); in build_conf()
810 val == no ? ' ' : '*'); in build_conf()
813 switch (val) { in build_conf()
833 if (val == yes) { in build_conf()
854 val = sym_get_tristate_value(sym); in build_conf()
855 if (sym_is_choice_value(sym) && val == yes) { in build_conf()
862 val == no ? ' ' : '*'); in build_conf()
865 val == no ? ' ' : '*'); in build_conf()
868 switch (val) { in build_conf()
/scripts/
Dmarkup_oops.pl132 my $val = $regs{$reg};
133 if ($val =~ /^[0]+$/) {
134 $val = "0";
136 $val =~ s/^0*//;
142 if (length($val) > 0) {
143 $str = $str . " $reg => $val ";
146 $val = "";
150 if (length($val) > 0) {
151 $str = $str . " $reg = $val ";
252 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;
Dget_maintainer.pl1656 my $val = 0;
1657 $val = $1 if $str =~ /^(\d+)$/;
1700 if ($val > 0 && $val <= $count) {
1701 $authored{$val - 1} = !$authored{$val - 1};
1710 if ($val > 0 && $val <= $count) {
1711 $signed{$val - 1} = !$signed{$val - 1};
1737 if ($val > 0) {
1738 $email_git_min_signatures = $val;
1742 if ($val > 0) {
1743 $email_git_max_maintainers = $val;
[all …]
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 …]
Ddiffconfig45 name, val = line[7:].split("=", 1)
46 d[name] = val

12