/scripts/dtc/ |
D | util.c | 43 char *str; in join_path() local 51 str = xmalloc(len); in join_path() 52 memcpy(str, path, lenp); in join_path() 54 str[lenp] = '/'; in join_path() 57 memcpy(str+lenp, name, lenn+1); in join_path() 58 return str; in join_path()
|
D | util.h | 23 static inline void __attribute__((noreturn)) die(char * str, ...) in die() argument 27 va_start(ap, str); in die() 29 vfprintf(stderr, str, ap); in die()
|
D | flattree.c | 67 static void bin_emit_string(void *e, char *str, int len) in bin_emit_string() argument 72 len = strlen(str); in bin_emit_string() 74 *dtbuf = data_append_data(*dtbuf, str, len); in bin_emit_string() 147 static void asm_emit_string(void *e, char *str, int len) in asm_emit_string() argument 154 c = str[len]; in asm_emit_string() 155 str[len] = '\0'; in asm_emit_string() 158 fprintf(f, "\t.string\t\"%s\"\n", str); in asm_emit_string() 161 str[len] = c; in asm_emit_string() 243 static int stringtable_insert(struct data *d, const char *str) in stringtable_insert() argument 250 if (streq(str, d->val + i)) in stringtable_insert() [all …]
|
D | treesource.c | 64 const char *str = val.val; in write_propval_string() local 68 assert(str[val.len-1] == '\0'); in write_propval_string() 78 char c = str[i]; in write_propval_string()
|
/scripts/ |
D | kallsyms.c | 76 static inline int is_arm_mapping_symbol(const char *str) in is_arm_mapping_symbol() argument 78 return str[0] == '$' && strchr("atd", str[1]) in is_arm_mapping_symbol() 79 && (str[2] == '\0' || str[2] == '.'); in is_arm_mapping_symbol() 104 char str[500]; in read_symbol() local 108 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str); in read_symbol() 110 if (rc != EOF && fgets(str, 500, in) == NULL) in read_symbol() 115 sym = str; in read_symbol() 117 if (symbol_prefix_char && str[0] == symbol_prefix_char) in read_symbol() 139 else if (str[0] == '$') in read_symbol() 147 s->len = strlen(str) + 1; in read_symbol() [all …]
|
D | gen_initramfs_list.sh | 118 local str="${mode} ${uid} ${gid}" 125 str="${ftype} ${name} ${location} ${str}" 135 str="${ftype} ${name} ${str} ${dev} ${maj} ${min}" 139 str="${ftype} ${name} ${target} ${str}" 142 str="${ftype} ${name} ${str}" 146 echo "${str}" >> ${output}
|
D | markup_oops.pl | 101 my $str = ""; 143 $str = $str . " $reg => $val "; 151 $str = $str . " $reg = $val "; 155 return $str;
|
D | get_maintainer.pl | 1523 my $str = substr($nr, 1); 1525 $val = $1 if $str =~ /^(\d+)$/; 1546 if (lc($str) eq "m") { 1551 } elsif (lc($str) eq "g") { 1556 } elsif (lc($str) eq "l") { 1561 } elsif (lc($str) eq "s") { 1570 } elsif ($str eq '*' || $str eq '^') { 1572 $toggle = 1 if ($str eq '*'); 1580 } elsif ($str eq '*' || $str eq '^') { 1582 $toggle = 1 if ($str eq '*'); [all …]
|
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 …]
|
/scripts/kconfig/ |
D | zconf.l | 49 static void append_string(const char *str, int size) in append_string() argument 58 memcpy(text + text_size, str, size); in append_string() 63 static void alloc_string(const char *str, int size) in alloc_string() argument 66 memcpy(text, str, size); in alloc_string() 75 int str = 0; 127 str = yytext[0];
|
D | symbol.c | 159 char str[64]; in sym_validate_range() local 182 sprintf(str, "%d", val2); in sym_validate_range() 184 sprintf(str, "0x%x", val2); in sym_validate_range() 185 sym->curr.val = strdup(str); in sym_validate_range() 540 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid() argument 548 ch = *str++; in sym_string_valid() 550 ch = *str++; in sym_string_valid() 553 if (ch == '0' && *str != 0) in sym_string_valid() 555 while ((ch = *str++)) { in sym_string_valid() 561 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid() [all …]
|
D | zconf.hash.c_shipped | 34 static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len); 45 kconf_id_hash (register const char *str, register unsigned int len) 81 hval += asso_values[(unsigned char)str[2]]; 85 hval += asso_values[(unsigned char)str[0]]; 88 return hval + asso_values[(unsigned char)str[len - 1]]; 169 kconf_id_lookup (register const char *str, register unsigned int len) 269 register int key = kconf_id_hash (str, len); 278 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
|
D | conf.c | 21 static void xfgets(char *str, int size, FILE *in); 55 static void strip(char *str) in strip() argument 57 char *p = str; in strip() 63 if (p != str) in strip() 64 memmove(str, p, l + 1); in strip() 67 p = str + l - 1; in strip() 680 void xfgets(char *str, int size, FILE *in) in xfgets() argument 682 if (fgets(str, size, in) == NULL) in xfgets()
|
D | nconf.c | 255 char str[256]; member 514 char *str = k_menu_items[index].str; in get_mext_match() local 515 if (strcasestr(str, match_str) != 0) in get_mext_match() 546 vsnprintf(k_menu_items[items_num].str, in item_make() 547 sizeof(k_menu_items[items_num].str), in item_make() 552 memcpy(k_menu_items[items_num].str, "XXX", 3); in item_make() 555 k_menu_items[items_num].str, in item_make() 556 k_menu_items[items_num].str); in item_make() 583 k_menu_items[index].str, new_str); in item_add_str() 584 strncpy(k_menu_items[index].str, in item_add_str() [all …]
|
D | confdata.c | 564 const char *str; in conf_write_symbol() local 571 str = sym_get_string_value(sym); in conf_write_symbol() 572 str = sym_escape_string_value(str); in conf_write_symbol() 573 printer->print_symbol(fp, sym, str, printer_arg); in conf_write_symbol() 574 free((void *)str); in conf_write_symbol() 577 str = sym_get_string_value(sym); in conf_write_symbol() 578 printer->print_symbol(fp, sym, str, printer_arg); in conf_write_symbol() 679 const char *str; in conf_write() local 728 str = menu_get_prompt(menu); in conf_write() 732 "#\n", str); in conf_write()
|
D | qconf.cc | 61 static inline QString qgettext(const char* str) in qgettext() argument 63 return QString::fromLocal8Bit(gettext(str)); in qgettext() 66 static inline QString qgettext(const QString& str) in qgettext() argument 68 return QString::fromLocal8Bit(gettext(str.latin1())); in qgettext() 996 QString str; in symbolInfo() local 998 str += "<big>Symbol: <b>"; in symbolInfo() 999 str += print_filter(sym->name); in symbolInfo() 1000 str += "</b></big><br><br>value: "; in symbolInfo() 1001 str += print_filter(sym_get_string_value(sym)); in symbolInfo() 1002 str += "<br>visibility: "; in symbolInfo() [all …]
|
D | zconf.y | 589 static void print_quoted_string(FILE *out, const char *str) in print_quoted_string() argument 595 while ((p = strchr(str, '"'))) { in print_quoted_string() 596 len = p - str; in print_quoted_string() 598 fprintf(out, "%.*s", len, str); in print_quoted_string() 600 str = p + 1; in print_quoted_string() 602 fputs(str, out); in print_quoted_string()
|
D | lkc.h | 91 static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) in xfwrite() argument 95 if (fwrite(str, len, count, out) != count) in xfwrite()
|
/scripts/dtc/libfdt/ |
D | fdt_strerror.c | 59 const char *str; member 63 [(val)] = { .str = #val, } 89 const char *s = fdt_errtable[-errval].str; in fdt_strerror()
|
D | libfdt.h | 794 #define fdt_property_string(fdt, name, str) \ argument 795 fdt_property(fdt, name, str, strlen(str)+1) 974 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument 975 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
|
/scripts/genksyms/ |
D | keywords.hash.c_shipped | 34 static const struct resword *is_reserved_word(register const char *str, register unsigned int len); 47 is_reserved_hash (register const char *str, register unsigned int len) 78 …turn len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]] + asso_values[(… 88 is_reserved_word (register const char *str, register unsigned int len) 209 register int key = is_reserved_hash (str, len); 215 if (*str == *s && !strcmp (str + 1, s + 1))
|
D | genksyms.h | 87 #define xstrdup(str) ({ char *__str = strdup(str); \ argument
|
/scripts/rt-tester/ |
D | rt-tester.py | 73 def progress(str): argument 75 print str 210 sys.stderr.write(str(ex))
|
/scripts/kconfig/lxdialog/ |
D | util.c | 563 vsnprintf(item_cur->node.str, sizeof(item_cur->node.str), fmt, ap); in item_make() 572 avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str); in item_add_str() 575 vsnprintf(item_cur->node.str + strlen(item_cur->node.str), in item_add_str() 577 item_cur->node.str[sizeof(item_cur->node.str) - 1] = '\0'; in item_add_str() 646 return item_cur->node.str; in item_str()
|
/scripts/mod/ |
D | modpost.c | 229 const char *str; member 232 { .str = "EXPORT_SYMBOL", .export = export_plain }, 233 { .str = "EXPORT_UNUSED_SYMBOL", .export = export_unused }, 234 { .str = "EXPORT_SYMBOL_GPL", .export = export_gpl }, 235 { .str = "EXPORT_UNUSED_SYMBOL_GPL", .export = export_unused_gpl }, 236 { .str = "EXPORT_SYMBOL_GPL_FUTURE", .export = export_gpl_future }, 237 { .str = "(unknown)", .export = export_unknown }, 243 return export_list[ex].str; in export_str() 253 if (strcmp(export_list[i].str, s) == 0) in export_no() 261 #define strstarts(str, prefix) (strncmp(str, prefix, strlen(prefix)) == 0) argument [all …]
|