Home
last modified time | relevance | path

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

12

/scripts/dtc/
A Dtreesource.c66 const char *str = val.val; in write_propval_string()
139 void *propend = val.val + val.len; in write_propval_cells()
140 fdt32_t *cp = (fdt32_t *)val.val; in write_propval_cells()
145 while (m && (m->offset <= ((char *)cp - val.val))) { in write_propval_cells()
147 assert(m->offset == ((char *)cp - val.val)); in write_propval_cells()
169 void *propend = val.val + val.len; in write_propval_bytes()
170 const char *bp = val.val; in write_propval_bytes()
175 while (m && (m->offset == (bp-val.val))) { in write_propval_bytes()
197 int len = prop->val.len; in write_propval()
198 const char *p = prop->val.val; in write_propval()
[all …]
A Dutil.c154 long val; in get_oct_char() local
164 return val; in get_oct_char()
177 long val; in get_hex_char() local
187 return val; in get_hex_char()
194 char val; in get_escape_char() local
198 val = '\a'; in get_escape_char()
201 val = '\b'; in get_escape_char()
204 val = '\t'; in get_escape_char()
207 val = '\n'; in get_escape_char()
234 val = c; in get_escape_char()
[all …]
A 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()
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()
229 memset(d.val + d.len, 0, len); in data_append_zeroes()
262 if (d.val[i] == '\0') in data_is_one_string()
[all …]
A Dchecks.c208 str = prop->val.val; in check_is_string_list()
672 if (!prop->val.val || !get_node_by_path(dti->dt, prop->val.val)) { in check_alias_paths()
674 prop->val.val); in check_alias_paths()
787 if (!prop || !streq(prop->val.val, "pci")) in check_pci_bridge()
814 cells = (cell_t *)prop->val.val; in check_pci_bridge()
836 cells = (cell_t *)prop->val.val; in check_pci_device_bus_num()
843 cells = (cell_t *)prop->val.val; in check_pci_device_bus_num()
870 cells = (cell_t *)prop->val.val; in check_pci_device_reg()
911 for (str = prop->val.val, end = str + prop->val.len; str < end; in node_is_compatible()
940 cells = (cell_t *)prop->val.val; in check_simple_bus_reg()
[all …]
A Dflattree.c143 (val >> 24) & 0xff, (val >> 16) & 0xff, in asm_emit_cell()
144 (val >> 8) & 0xff, val & 0xff); in asm_emit_cell()
452 p = strbuf.val; in dump_stringtable_asm()
603 fdt32_t val; in flat_read_word() local
607 flat_read_chunk(inb, &val, sizeof(val)); in flat_read_word()
683 struct data val; in flat_read_property() local
749 uint32_t val; in unflatten_tree() local
765 switch (val) { in unflatten_tree()
796 val); in unflatten_tree()
822 uint32_t val; in dt_from_blob() local
[all …]
A Dlivetree.c60 new->val = val; in build_property()
184 old_prop->val = new_prop->val; in merge_nodes()
351 p->val = d; in append_to_property()
438 assert(prop->val.len == sizeof(cell_t)); in propval_cell()
439 return fdt32_to_cpu(*((fdt32_t *)prop->val.val)); in propval_cell()
445 return fdt32_to_cpu(*((fdt32_t *)prop->val.val + n)); in propval_cell_n()
485 m = p->val.markers; in get_marker_label()
898 m = prop->val.markers; in any_fixup_tree()
944 m = prop->val.markers; in generate_fixups_tree_internal()
963 m = prop->val.markers; in any_local_fixup_tree()
[all …]
A Ddtc-lexer.l96 if (memchr(fn.val, '\0', fn.len - 1))
100 srcpos_set_line(xstrdup(fn.val), atoi(line) - 1);
200 yylval.integer = (unsigned char)d.val[0];
A Ddtc-parser.y307 FILE *f = srcfile_relative_open($4.val, NULL);
313 (unsigned long long)$6, $4.val,
323 FILE *f = srcfile_relative_open($4.val, NULL);
395 uint64_t val = ~0ULL >> (64 - $1.bits); variable
405 $$.data = data_append_integer($1.data, val, $1.bits);
A Ddtc.h90 char *val; member
145 struct data val; member
197 struct property *build_property(char *name, struct data val);
/scripts/dtc/libfdt/
A 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
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
51 if (val == -FDT_ERR_NOTFOUND) in fdt_size_cells()
[all …]
A Dlibfdt.h220 fdth->name = cpu_to_fdt32(val); \
1222 const void *val, int len);
1256 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32()
1291 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64()
1406 fdt32_t tmp = cpu_to_fdt32(val); in fdt_property_u32()
1411 fdt64_t tmp = cpu_to_fdt64(val); in fdt_property_u64()
1553 const void *val, int len);
1615 uint32_t val) in fdt_setprop_u32() argument
1650 uint64_t val) in fdt_setprop_u64() argument
1662 uint32_t val) in fdt_setprop_cell() argument
[all …]
A 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()
A Dfdt_strerror.c18 #define FDT_ERRTABENT(val) \ argument
19 [(val)] = { .str = #val, }
A 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()
A Dfdt_rw.c278 const void *val, int len) in fdt_setprop() argument
288 memcpy(prop_data, val, len); in fdt_setprop()
293 const void *val, int len) in fdt_appendprop() argument
309 memcpy(prop->data + oldlen, val, len); in fdt_appendprop()
314 memcpy(prop->data, val, len); in fdt_appendprop()
/scripts/kconfig/
A Dsymbol.c139 val = strtoll(sym->curr.val, NULL, base); in sym_validate_range()
414 newval.val = sym->def[S_DEF_USER].val; in sym_calc_value()
423 newval.val = ds->curr.val; in sym_calc_value()
493 return val >= sym->rev_dep.tri && val <= sym->visible; in sym_tristate_within_range()
643 char *val; in sym_set_string_value() local
674 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value()
678 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value()
701 tristate val; in sym_get_string_default() local
732 val = EXPR_OR(val, sym->rev_dep.tri); in sym_get_string_default()
737 val = yes; in sym_get_string_default()
[all …]
A 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()
A Dgconf.c88 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_NO_WRITE) in dbg_sym_flags()
1011 tristate val; in fill_row() local
[all …]
A Dnconf.c739 tristate val; in build_conf() local
803 val = sym_get_tristate_value(sym); in build_conf()
808 val == no ? ' ' : '*'); in build_conf()
811 switch (val) { in build_conf()
831 if (val == yes) { in build_conf()
852 val = sym_get_tristate_value(sym); in build_conf()
853 if (sym_is_choice_value(sym) && val == yes) { in build_conf()
860 val == no ? ' ' : '*'); in build_conf()
863 val == no ? ' ' : '*'); in build_conf()
866 switch (val) { in build_conf()
A Dconfdata.c213 sym->def[def].val = xstrdup(p); in conf_set_sym_val()
337 if (sym->def[def].val) in conf_read_simple()
338 free(sym->def[def].val); in conf_read_simple()
341 sym->def[def].val = NULL; in conf_read_simple()
430 cs->def[def].val = sym; in conf_read_simple()
471 if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val)) in conf_read()
496 if (sym_string_within_range(sym, sym->def[S_DEF_USER].val)) in conf_read()
946 sym->def[S_DEF_AUTO].val)) in conf_split_config()
1155 csym->def[S_DEF_USER].val = sym; in randomize_choice_values()
/scripts/dtc/pylibfdt/
A Dlibfdt.i_shipped84 def check_err(val, quiet=()):
94 val if val >= 0
97 FdtException if val < 0
99 if isinstance(val, int) and val < 0:
100 if -val not in quiet:
102 return val
115 val if val is a list, None if not
124 if -val not in quiet:
126 return val
643 val = val.encode('utf-8') + b'\0'
[all …]
/scripts/
A 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) {
1965 if ($val > 0) {
1970 if ($str ne "" && $val >= 0) {
1998 if ($str ne "" && $val >= 0) {
[all …]
A Devent_dump.py42 val = struct.unpack(fmt, val_data)[0]
43 return val
A Dspdxcheck.py134 val = tok.value.upper()
136 if val in self.reserved:
137 tok.type = val
A Dconfig24 --set-val option value

Completed in 595 milliseconds

12