Searched refs:val (Results 1 - 25 of 32) sorted by relevance

12

/scripts/dtc/
H A Dtreesource.c62 static void write_propval_string(FILE *f, struct data val) argument
64 const char *str = val.val;
66 struct marker *m = val.markers;
68 assert(str[val.len-1] == '\0');
77 for (i = 0; i < (val.len-1); i++) {
130 assert (m->offset == val.len);
135 static void write_propval_cells(FILE *f, struct data val) argument
137 void *propend = val.val
165 write_propval_bytes(FILE *f, struct data val) argument
[all...]
H A Ddata.c35 if (d.val)
36 free(d.val);
54 nd.val = xrealloc(d.val, newsize);
66 memcpy(d.val, mem, len);
75 long val; local
80 val = strtol(x, &endx, 8);
85 return val;
92 long val; local
97 val
[all...]
H A Ddtc-parser.y197 FILE *f = srcfile_relative_open($4.val, NULL);
204 $4.val,
214 FILE *f = srcfile_relative_open($4.val, NULL);
332 unsigned long long val;
336 val = strtoull(s, &e, base);
340 || ((bits < 64) && (val >= (1ULL << bits))))
344 return val;
H A Dchecks.c189 if (!data_is_one_string(prop->val))
206 if (prop->val.len != sizeof(cell_t))
325 struct marker *m = prop->val.markers;
348 if (prop->val.len != sizeof(cell_t)) {
350 node->fullpath, prop->val.len, prop->name);
354 m = prop->val.markers;
410 if ((prop->val.len != node->basenamelen+1)
411 || (memcmp(prop->val.val, node->name, node->basenamelen) != 0)) {
413 " of base node name)", node->fullpath, prop->val
[all...]
H A Dflattree.c60 static void bin_emit_cell(void *e, cell_t val) argument
64 *dtbuf = data_append_cell(*dtbuf, val);
89 *dtbuf = data_append_data(*dtbuf, d.val, d.len);
138 static void asm_emit_cell(void *e, cell_t val) argument
143 (val >> 24) & 0xff, (val >> 16) & 0xff,
144 (val >> 8) & 0xff, val & 0xff);
182 asm_emit_cell(e, fdt32_to_cpu(*((uint32_t *)(d.val+off))));
187 fprintf(f, "\t.byte\t0x%hhx\n", d.val[of
600 uint32_t val; local
680 struct data val; local
746 uint32_t val; local
815 uint32_t val; local
[all...]
H A Dlivetree.c42 struct property *build_property(char *name, struct data val) argument
49 new->val = val;
128 old_prop->val = new_prop->val;
282 assert(prop->val.len == sizeof(cell_t));
283 return fdt32_to_cpu(*((cell_t *)prop->val.val));
323 m = p->val.markers;
466 if (!reg || (reg->val
[all...]
H A Ddtc.h86 char *val; member in struct:data
135 struct data val; member in struct:property
170 struct property *build_property(char *name, struct data val);
/scripts/dtc/libfdt/
H A Dfdt_strerror.c62 #define FDT_ERRTABENT(val) \
63 [(val)] = { .str = #val, }
H A Dlibfdt.h157 static inline void fdt_set_##name(void *fdt, uint32_t val) \
160 fdth->name = cpu_to_fdt32(val); \
669 * @val: pointer to data to replace the property value with
673 * the data in val, of length len. This function cannot change the
693 const void *val, int len);
700 * @val: cell (32-bit integer) value to replace the property with
703 * with the 32-bit integer cell value in val, converting val to
724 const char *name, uint32_t val)
726 val
723 fdt_setprop_inplace_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
789 fdt_property_cell(void *fdt, const char *name, uint32_t val) argument
939 fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
[all...]
H A Dfdt_wip.c59 const void *val, int len)
71 memcpy(propval, val, len);
58 fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
H A Dfdt_ro.c383 const void *val; local
396 val = fdt_getprop(fdt, offset, propname, &len);
397 if (val && (len == proplen)
398 && (memcmp(val, propval, len) == 0))
H A Dfdt_sw.c191 int fdt_property(void *fdt, const char *name, const void *val, int len) argument
209 memcpy(prop->data, val, len);
/scripts/kconfig/
H A Dsymbol.c152 return strtol(sym->curr.val, NULL, base);
158 int base, val, val2; local
174 val = strtol(sym->curr.val, NULL, base);
176 if (val >= val2) {
178 if (val <= val2)
185 sym->curr.val = strdup(str);
279 def_sym = sym->def[S_DEF_USER].val;
318 sym->curr.val = sym->name;
335 newval.tri = (prop_get_symbol(prop)->curr.val
462 sym_tristate_within_range(struct symbol *sym, tristate val) argument
481 sym_set_tristate_value(struct symbol *sym, tristate val) argument
586 int val; local
628 char *val; local
686 tristate val; local
750 tristate val; local
[all...]
H A Dmconf.c345 tristate val; local
412 val = sym_get_tristate_value(sym);
416 item_make("[%c]", val == no ? ' ' : '*');
419 switch (val) {
436 if (val == yes) {
456 val = sym_get_tristate_value(sym);
457 if (sym_is_choice_value(sym) && val == yes) {
465 item_make("[%c]", val == no ? ' ' : '*');
467 item_make("-%c-", val == no ? ' ' : '*');
472 switch (val) {
[all...]
H A Dgconf.c82 const char *dbg_sym_flags(int val) argument
88 if (val & SYMBOL_CONST)
90 if (val & SYMBOL_CHECK)
92 if (val & SYMBOL_CHOICE)
94 if (val & SYMBOL_CHOICEVAL)
96 if (val & SYMBOL_VALID)
98 if (val & SYMBOL_OPTIONAL)
100 if (val & SYMBOL_WRITE)
102 if (val & SYMBOL_CHANGED)
104 if (val
1067 tristate val; local
[all...]
H A Dconfdata.c172 sym->def[def].val = strdup(p);
241 if (sym->def[def].val)
242 free(sym->def[def].val);
245 sym->def[def].val = NULL;
332 cs->def[def].val = sym;
370 if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val))
395 if (sym_string_within_range(sym, sym->def[S_DEF_USER].val))
810 sym->def[S_DEF_AUTO].val))
1018 csym->def[S_DEF_USER].val
[all...]
H A Dnconf.c738 tristate val; local
802 val = sym_get_tristate_value(sym);
807 val == no ? ' ' : '*');
810 switch (val) {
830 if (val == yes) {
851 val = sym_get_tristate_value(sym);
852 if (sym_is_choice_value(sym) && val == yes) {
859 val == no ? ' ' : '*');
862 val == no ? ' ' : '*');
865 switch (val) {
[all...]
H A Dlkc.h158 return (struct symbol *)sym->curr.val;
/scripts/rt-tester/
H A Drt-tester.py78 def analyse(val, top, arg):
80 intval = int(val)
184 val = s[2:].strip() variable
185 query = analyse(val, testop, dat)
/scripts/
H A Dpnmtologo.c85 int c, val; local
103 val = 0;
105 val = 10*val+c-'0';
110 return val;
115 unsigned int val = get_number(fp); local
116 return (255*val+maxval/2)/maxval;
279 unsigned char val, bit; local
293 for (val = 0, bit = 0x80; bit && j < logo_width; j++, bit >>= 1)
295 val |
307 unsigned char val; local
[all...]
H A 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
[all...]
H A Ddiffconfig45 name, val = line[7:].split("=", 1)
46 d[name] = val
H A Dconfig15 --set-val option value
114 --set-val)
H A Dget_maintainer.pl1524 my $val = 0;
1525 $val = $1 if $str =~ /^(\d+)$/;
1568 if ($val > 0 && $val <= $count) {
1569 $authored{$val - 1} = !$authored{$val - 1};
1578 if ($val > 0 && $val <= $count) {
1579 $signed{$val - 1} = !$signed{$val
[all...]
/scripts/kconfig/lxdialog/
H A Ddialog.h158 void item_set_selected(int val);

Completed in 94 milliseconds

12