/scripts/kconfig/ |
D | lexer.l | 56 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];
|
D | conf.c | 59 static void strip(char *str) in strip() argument 61 char *p = str; in strip() 67 if (p != str) in strip() 68 memmove(str, p, l + 1); in strip() 71 p = str + l - 1; in strip() 77 static void xfgets(char *str, int size, FILE *in) in xfgets() argument 79 if (!fgets(str, size, in)) in xfgets() 83 printf("%s", str); in xfgets() 428 const char *str; in check_conf() local 431 str = sym_get_string_value(sym); in check_conf() [all …]
|
D | preprocess.c | 346 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() 456 static char *expand_dollar_with_args(const char **str, int argc, char *argv[]) in expand_dollar_with_args() argument 458 const char *p = *str; in expand_dollar_with_args() 468 *str = p; in expand_dollar_with_args() 488 *str = q + 1; in expand_dollar_with_args() 493 char *expand_dollar(const char **str) in expand_dollar() argument 495 return expand_dollar_with_args(str, 0, NULL); in expand_dollar() 498 static char *__expand_string(const char **str, bool (*is_end)(char c), in __expand_string() argument 509 p = in = *str; in __expand_string() [all …]
|
D | lkc_proto.h | 29 bool sym_string_within_range(struct symbol *sym, const char *str); 47 char *expand_dollar(const char **str); 48 char *expand_one_token(const char **str);
|
D | symbol.c | 556 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid() argument 564 ch = *str++; in sym_string_valid() 566 ch = *str++; in sym_string_valid() 569 if (ch == '0' && *str != 0) in sym_string_valid() 571 while ((ch = *str++)) { in sym_string_valid() 577 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid() 578 str += 2; in sym_string_valid() 579 ch = *str++; in sym_string_valid() 583 } while ((ch = *str++)); in sym_string_valid() 587 switch (str[0]) { in sym_string_valid() [all …]
|
D | qconf.cc | 988 QString str; in symbolInfo() local 990 str += "<big>Symbol: <b>"; in symbolInfo() 991 str += print_filter(sym->name); in symbolInfo() 992 str += "</b></big><br><br>value: "; in symbolInfo() 993 str += print_filter(sym_get_string_value(sym)); in symbolInfo() 994 str += "<br>visibility: "; in symbolInfo() 995 str += sym->visible == yes ? "y" : sym->visible == mod ? "m" : "n"; in symbolInfo() 996 str += "<br>"; in symbolInfo() 997 str += debug_info(sym); in symbolInfo() 999 setText(str); in symbolInfo() [all …]
|
D | nconf.c | 250 char str[256]; member 510 char *str = k_menu_items[index].str; in get_mext_match() local 511 if (strcasestr(str, match_str) != NULL) in get_mext_match() 542 vsnprintf(k_menu_items[items_num].str, in item_make() 543 sizeof(k_menu_items[items_num].str), in item_make() 548 memcpy(k_menu_items[items_num].str, "XXX", 3); in item_make() 551 k_menu_items[items_num].str, in item_make() 552 k_menu_items[items_num].str); in item_make() 579 k_menu_items[index].str, new_str); in item_add_str() 580 strncpy(k_menu_items[index].str, in item_add_str() [all …]
|
D | confdata.c | 716 const char *str; in conf_write_symbol() local 722 str = sym_get_string_value(sym); in conf_write_symbol() 723 str = sym_escape_string_value(str); in conf_write_symbol() 724 printer->print_symbol(fp, sym, str, printer_arg); in conf_write_symbol() 725 free((void *)str); in conf_write_symbol() 728 str = sym_get_string_value(sym); in conf_write_symbol() 729 printer->print_symbol(fp, sym, str, printer_arg); in conf_write_symbol() 829 const char *str; in conf_write() local 874 str = menu_get_prompt(menu); in conf_write() 878 "#\n", str); in conf_write() [all …]
|
/scripts/dtc/libfdt/ |
D | fdt_strerror.c | 15 const char *str; member 19 [(val)] = { .str = #val, } 52 const char *s = fdt_errtable[-errval].str; in fdt_strerror()
|
D | libfdt.h | 1080 int fdt_stringlist_contains(const char *strlist, int listlen, const char *str); 1473 #define fdt_property_string(fdt, name, str) \ argument 1474 fdt_property(fdt, name, str, strlen(str)+1) 1731 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument 1732 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1) 1902 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ argument 1903 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
|
/scripts/ |
D | find-unused-docs.sh | 57 str=$(scripts/kernel-doc -export "$file" 2>/dev/null) 58 if [[ -n "$str" ]]; then
|
D | markup_oops.pl | 98 my $str = ""; 140 $str = $str . " $reg => $val "; 148 $str = $str . " $reg = $val "; 152 return $str;
|
D | unifdef.c | 805 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 …]
|
D | kallsyms.c | 535 static unsigned char *find_token(unsigned char *str, int len, in find_token() argument 541 if (str[i] == token[0] && str[i+1] == token[1]) in find_token() 542 return &str[i]; in find_token() 549 static void compress_symbols(const unsigned char *str, int idx) in compress_symbols() argument 560 p2 = find_token(p1, len, str); in compress_symbols() 579 p2 = find_token(p1, size, str); in compress_symbols()
|
/scripts/gdb/linux/ |
D | modules.py | 78 address=str(layout['base']).split()[0], 80 size=str(layout['size']), 81 ref=str(module['refcnt']['counter'] - 1)))
|
D | utils.py | 47 return int(str(element[field].address).split()[0], 16) 87 raise gdb.GdbError("unknown endianness '{0}'".format(str(endian))) 102 if type(buffer_val[0]) is str:
|
/scripts/dtc/ |
D | util.h | 32 static inline void NORETURN PRINTF(1, 2) die(const char *str, ...) in die() argument 36 va_start(ap, str); in die() 38 vfprintf(stderr, str, ap); in die()
|
D | checks.c | 67 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 …]
|
D | util.c | 90 char *str; in join_path() local 98 str = xmalloc(len); in join_path() 99 memcpy(str, path, lenp); in join_path() 101 str[lenp] = '/'; in join_path() 104 memcpy(str+lenp, name, lenn+1); in join_path() 105 return str; in join_path()
|
D | yamltree.c | 95 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()
|
D | flattree.c | 52 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/ |
D | keywords.c | 65 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()
|
D | genksyms.h | 76 #define xstrdup(str) ({ char *__str = strdup(str); \ argument
|
/scripts/clang-tools/ |
D | gen_compile_commands.py | 41 parser.add_argument('-d', '--directory', type=str, default='.', 46 parser.add_argument('-o', '--output', type=str, default=_DEFAULT_OUTPUT, 55 parser.add_argument('-a', '--ar', type=str, default='llvm-ar', help=ar_help) 60 parser.add_argument('paths', type=str, nargs='*', help=paths_help)
|
/scripts/mod/ |
D | modpost.h | 184 static inline bool strends(const char *str, const char *postfix) in strends() argument 186 if (strlen(str) < strlen(postfix)) in strends() 189 return strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in strends()
|