Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 46) sorted by relevance

12

/scripts/kconfig/
Dlexer.l56 static void append_string(const char *str, int size) in append_string() argument
65 memcpy(text + text_size, str, size); in append_string()
70 static void alloc_string(const char *str, int size) in alloc_string() argument
73 memcpy(text, str, size); in alloc_string()
88 int str = 0;
141 str = yytext[0];
Dconf.c56 static void strip(char *str) in strip() argument
58 char *p = str; in strip()
64 if (p != str) in strip()
65 memmove(str, p, l + 1); in strip()
68 p = str + l - 1; in strip()
74 static void xfgets(char *str, int size, FILE *in) in xfgets() argument
76 if (!fgets(str, size, in)) in xfgets()
80 printf("%s", str); in xfgets()
425 const char *str; in check_conf() local
428 str = sym_get_string_value(sym); in check_conf()
[all …]
Dpreprocess.c346 static char *eval_clause(const char *str, size_t len, int argc, char *argv[]) in eval_clause() argument
355 tmp = xstrndup(str, len); in eval_clause()
453 static char *expand_dollar_with_args(const char **str, int argc, char *argv[]) in expand_dollar_with_args() argument
455 const char *p = *str; in expand_dollar_with_args()
465 *str = p; in expand_dollar_with_args()
485 *str = q + 1; in expand_dollar_with_args()
490 char *expand_dollar(const char **str) in expand_dollar() argument
492 return expand_dollar_with_args(str, 0, NULL); in expand_dollar()
495 static char *__expand_string(const char **str, bool (*is_end)(char c), in __expand_string() argument
506 p = in = *str; in __expand_string()
[all …]
Dsymbol.c122 char str[64]; in sym_validate_range() local
145 sprintf(str, "%lld", val2); in sym_validate_range()
147 sprintf(str, "0x%llx", val2); in sym_validate_range()
148 sym->curr.val = xstrdup(str); in sym_validate_range()
553 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid() argument
561 ch = *str++; in sym_string_valid()
563 ch = *str++; in sym_string_valid()
566 if (ch == '0' && *str != 0) in sym_string_valid()
568 while ((ch = *str++)) { in sym_string_valid()
574 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid()
[all …]
Dlkc_proto.h43 bool sym_string_within_range(struct symbol *sym, const char *str);
61 char *expand_dollar(const char **str);
62 char *expand_one_token(const char **str);
Dqconf.cc43 static inline QString qgettext(const char* str) in qgettext() argument
45 return QString::fromLocal8Bit(str); in qgettext()
1057 QString str; in symbolInfo() local
1059 str += "<big>Symbol: <b>"; in symbolInfo()
1060 str += print_filter(sym->name); in symbolInfo()
1061 str += "</b></big><br><br>value: "; in symbolInfo()
1062 str += print_filter(sym_get_string_value(sym)); in symbolInfo()
1063 str += "<br>visibility: "; in symbolInfo()
1064 str += sym->visible == yes ? "y" : sym->visible == mod ? "m" : "n"; in symbolInfo()
1065 str += "<br>"; in symbolInfo()
[all …]
Dnconf.c249 char str[256]; member
509 char *str = k_menu_items[index].str; in get_mext_match() local
510 if (strcasestr(str, match_str) != NULL) in get_mext_match()
541 vsnprintf(k_menu_items[items_num].str, in item_make()
542 sizeof(k_menu_items[items_num].str), in item_make()
547 memcpy(k_menu_items[items_num].str, "XXX", 3); in item_make()
550 k_menu_items[items_num].str, in item_make()
551 k_menu_items[items_num].str); in item_make()
578 k_menu_items[index].str, new_str); in item_add_str()
579 strncpy(k_menu_items[index].str, in item_add_str()
[all …]
Dconfdata.c735 const char *str; in conf_write_symbol() local
741 str = sym_get_string_value(sym); in conf_write_symbol()
742 str = sym_escape_string_value(str); in conf_write_symbol()
743 printer->print_symbol(fp, sym, str, printer_arg); in conf_write_symbol()
744 free((void *)str); in conf_write_symbol()
747 str = sym_get_string_value(sym); in conf_write_symbol()
748 printer->print_symbol(fp, sym, str, printer_arg); in conf_write_symbol()
848 const char *str; in conf_write() local
893 str = menu_get_prompt(menu); in conf_write()
897 "#\n", str); in conf_write()
[all …]
/scripts/dtc/libfdt/
Dfdt_strerror.c15 const char *str; member
19 [(val)] = { .str = #val, }
52 const char *s = fdt_errtable[-errval].str; in fdt_strerror()
Dlibfdt.h1075 int fdt_stringlist_contains(const char *strlist, int listlen, const char *str);
1468 #define fdt_property_string(fdt, name, str) \ argument
1469 fdt_property(fdt, name, str, strlen(str)+1)
1726 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument
1727 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1897 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ argument
1898 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
/scripts/
Dkallsyms.c83 static int is_arm_mapping_symbol(const char *str) in is_arm_mapping_symbol() argument
85 return str[0] == '$' && strchr("axtd", str[1]) in is_arm_mapping_symbol()
86 && (str[2] == '\0' || str[2] == '.'); in is_arm_mapping_symbol()
499 static void *find_token(unsigned char *str, int len, unsigned char *token) in find_token() argument
504 if (str[i] == token[0] && str[i+1] == token[1]) in find_token()
505 return &str[i]; in find_token()
512 static void compress_symbols(unsigned char *str, int idx) in compress_symbols() argument
523 p2 = find_token(p1, len, str); in compress_symbols()
542 p2 = find_token(p1, size, str); in compress_symbols()
663 static int prefix_underscores_count(const char *str) in prefix_underscores_count() argument
[all …]
Dfind-unused-docs.sh57 str=$(scripts/kernel-doc -text -export "$file" 2>/dev/null)
58 if [[ -n "$str" ]]; then
Dmarkup_oops.pl98 my $str = "";
140 $str = $str . " $reg => $val ";
148 $str = $str . " $reg = $val ";
152 return $str;
Dgen_compile_commands.py42 parser.add_argument('-d', '--directory', type=str, help=directory_help)
46 parser.add_argument('-o', '--output', type=str, help=output_help)
52 '--log_level', type=str, default=_DEFAULT_LOG_LEVEL,
Dunifdef.c805 const char *str; member
927 for (op = ops->op; op->str != NULL; op++) in eval_table()
928 if (strncmp(cp, op->str, strlen(op->str)) == 0) in eval_table()
930 if (op->str == NULL) in eval_table()
932 cp += strlen(op->str); in eval_table()
933 debug("eval%d %s", ops - eval_ops, op->str); in eval_table()
1121 findsym(const char *str) in findsym() argument
1126 cp = skipsym(str); in findsym()
1127 if (cp == str) in findsym()
1135 (int)(cp-str), str, in findsym()
[all …]
/scripts/gdb/linux/
Dmodules.py78 address=str(layout['base']).split()[0],
80 size=str(layout['size']),
81 ref=str(module['refcnt']['counter'] - 1)))
Dutils.py47 return int(str(element[field].address).split()[0], 16)
87 raise gdb.GdbError("unknown endianness '{0}'".format(str(endian)))
99 if type(buffer_val[0]) is str:
Dtasks.py63 raise gdb.GdbError("No task of PID " + str(pid))
136 raise gdb.GdbError("No task of PID " + str(pid))
/scripts/dtc/
Dutil.h27 static inline void NORETURN PRINTF(1, 2) die(const char *str, ...) in die() argument
31 va_start(ap, str); in die()
33 vfprintf(stderr, str, ap); in die()
Dchecks.c67 char *str = NULL; in check_msg() local
81 xasprintf(&str, "%s", file_str); in check_msg()
84 xasprintf(&str, "<stdout>"); in check_msg()
86 xasprintf(&str, "%s", dti->outname); in check_msg()
89 xasprintf_append(&str, ": %s (%s): ", in check_msg()
94 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg()
96 xasprintf_append(&str, "%s: ", node->fullpath); in check_msg()
100 xavsprintf_append(&str, fmt, ap); in check_msg()
103 xasprintf_append(&str, "\n"); in check_msg()
111 xasprintf_append(&str, " also defined at %s\n", file_str); in check_msg()
[all …]
Dutil.c89 char *str; in join_path() local
97 str = xmalloc(len); in join_path()
98 memcpy(str, path, lenp); in join_path()
100 str[lenp] = '/'; in join_path()
103 memcpy(str+lenp, name, lenn+1); in join_path()
104 return str; in join_path()
Dyamltree.c95 static void yaml_propval_string(yaml_emitter_t *emitter, char *str, int len) in yaml_propval_string() argument
100 assert(str[len-1] == '\0'); in yaml_propval_string()
104 assert(isascii(str[i])); in yaml_propval_string()
107 (yaml_char_t *)YAML_STR_TAG, (yaml_char_t*)str, in yaml_propval_string()
Dflattree.c52 static void bin_emit_string(void *e, const char *str, int len) in bin_emit_string() argument
57 len = strlen(str); in bin_emit_string()
59 *dtbuf = data_append_data(*dtbuf, str, len); in bin_emit_string()
132 static void asm_emit_string(void *e, const char *str, int len) in asm_emit_string() argument
137 fprintf(f, "\t.string\t\"%.*s\"\n", len, str); in asm_emit_string()
139 fprintf(f, "\t.string\t\"%s\"\n", str); in asm_emit_string()
220 static int stringtable_insert(struct data *d, const char *str) in stringtable_insert() argument
227 if (streq(str, d->val + i)) in stringtable_insert()
231 *d = data_append_data(*d, str, strlen(str)+1); in stringtable_insert()
610 char *str; in flat_read_string() local
[all …]
/scripts/genksyms/
Dkeywords.c65 static int is_reserved_word(register const char *str, register unsigned int len) in is_reserved_word() argument
71 if (len == l && !memcmp(str, r->name, len)) in is_reserved_word()
Dgenksyms.h76 #define xstrdup(str) ({ char *__str = strdup(str); \ argument

12