/scripts/ |
D | checkstack.pl | 40 my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack); 59 $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; 63 $re = qr/.*sub.*sp, sp, #([0-9]{1,4})/o; 69 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o; 73 $re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o; 77 $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o; 80 $re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; 83 $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; 86 $re = qr/.*addi.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; 89 $re = qr/.*l\.addi.*r1,r1,-(([0-9]{2}|[3-9])[0-9]{2})/o; [all …]
|
D | checkkconfigsymbols.py | 14 import re 31 REGEX_FILE_KCONFIG = re.compile(r".*Kconfig[\.\w+\-]*$") 32 REGEX_SYMBOL = re.compile(r'(?!\B)' + SYMBOL + r'(?!\B)') 33 REGEX_SOURCE_SYMBOL = re.compile(SOURCE_SYMBOL) 34 REGEX_KCONFIG_DEF = re.compile(DEF) 35 REGEX_KCONFIG_EXPR = re.compile(EXPR) 36 REGEX_KCONFIG_STMT = re.compile(STMT) 37 REGEX_KCONFIG_HELP = re.compile(r"^\s+help\s*$") 38 REGEX_FILTER_SYMBOLS = re.compile(r"[A-Za-z0-9]$") 39 REGEX_NUMERIC = re.compile(r"0[xX][0-9a-fA-F]+|[0-9]+") [all …]
|
D | bpf_helpers_doc.py | 10 import re 42 arg_re = re.compile('((\w+ )*?(\w+|...))( (\**)(\w+))?$') 44 proto_re = re.compile('(.+) (\**)(\w+)\(((([^,]+)(, )?){1,5})\)$') 90 … p = re.compile(' \* ?((.+) \**\w+\((((const )?(struct )?(\w+|\.\.\.)( \**\w+)?)(, )?){1,5}\))$') 98 p = re.compile(' \* ?(?:\t| {5,8})Description$') 112 p = re.compile(' \* ?(?:\t| {5,8})(?:\t| {8})(.*)') 121 p = re.compile(' \* ?(?:\t| {5,8})Return$') 135 p = re.compile(' \* ?(?:\t| {5,8})(?:\t| {8})(.*)') 388 for line in re.sub('\n$', '', helper.desc, count=1).split('\n'): 543 for line in re.sub('\n$', '', helper.desc, count=1).split('\n'):
|
D | bloat-o-meter | 10 import sys, os, re 23 re_NUMBER = re.compile(r'\.[0-9]+')
|
D | spdxcheck.py | 11 import re 88 self.lexer = lex.lex(module = self, reflags = re.UNICODE)
|
/scripts/dtc/ |
D | flattree.c | 296 struct reserve_info *re; in flatten_reserve_list() local 300 for (re = reservelist; re; re = re->next) { in flatten_reserve_list() 301 d = data_append_re(d, re->address, re->size); in flatten_reserve_list() 451 struct reserve_info *re; in dt_to_asm() local 516 for (re = dti->reservelist; re; re = re->next) { in dt_to_asm() 519 for_each_label(re->labels, l) { in dt_to_asm() 523 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->address >> 32)); in dt_to_asm() 525 (unsigned int)(re->address & 0xffffffff)); in dt_to_asm() 526 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->size >> 32)); in dt_to_asm() 527 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->size & 0xffffffff)); in dt_to_asm() [all …]
|
D | treesource.c | 330 struct reserve_info *re; in dt_to_source() local 334 for (re = dti->reservelist; re; re = re->next) { in dt_to_source() 337 for_each_label(re->labels, l) in dt_to_source() 340 (unsigned long long)re->address, in dt_to_source() 341 (unsigned long long)re->size); in dt_to_source()
|
D | data.c | 189 struct fdt_reserve_entry re; in data_append_re() local 191 re.address = cpu_to_fdt64(address); in data_append_re() 192 re.size = cpu_to_fdt64(size); in data_append_re() 194 return data_append_data(d, &re, sizeof(re)); in data_append_re()
|
D | dtc-parser.y | 43 struct reserve_info *re; member 70 %type <re> memreserve 71 %type <re> memreserves
|
/scripts/dtc/libfdt/ |
D | fdt_sw.c | 190 struct fdt_reserve_entry *re; in fdt_add_reservemap_entry() local 196 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry() 199 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry() 200 re->address = cpu_to_fdt64(addr); in fdt_add_reservemap_entry() 201 re->size = cpu_to_fdt64(size); in fdt_add_reservemap_entry() 203 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry()
|
D | fdt_rw.c | 157 struct fdt_reserve_entry *re; in fdt_add_mem_rsv() local 162 re = fdt_mem_rsv_w_(fdt, fdt_num_mem_rsv(fdt)); in fdt_add_mem_rsv() 163 err = fdt_splice_mem_rsv_(fdt, re, 0, 1); in fdt_add_mem_rsv() 167 re->address = cpu_to_fdt64(address); in fdt_add_mem_rsv() 168 re->size = cpu_to_fdt64(size); in fdt_add_mem_rsv() 174 struct fdt_reserve_entry *re = fdt_mem_rsv_w_(fdt, n); in fdt_del_mem_rsv() local 181 return fdt_splice_mem_rsv_(fdt, re, 1, 0); in fdt_del_mem_rsv()
|
D | fdt_ro.c | 177 const struct fdt_reserve_entry *re; in fdt_get_mem_rsv() local 180 re = fdt_mem_rsv(fdt, n); in fdt_get_mem_rsv() 181 if (!can_assume(VALID_INPUT) && !re) in fdt_get_mem_rsv() 184 *address = fdt64_ld(&re->address); in fdt_get_mem_rsv() 185 *size = fdt64_ld(&re->size); in fdt_get_mem_rsv() 192 const struct fdt_reserve_entry *re; in fdt_num_mem_rsv() local 194 for (i = 0; (re = fdt_mem_rsv(fdt, i)) != NULL; i++) { in fdt_num_mem_rsv() 195 if (fdt64_ld(&re->size) == 0) in fdt_num_mem_rsv()
|
/scripts/clang-tools/ |
D | gen_compile_commands.py | 14 import re 83 filename_matcher = re.compile(_FILENAME_PATTERN) 199 line_matcher = re.compile(_LINE_PATTERN)
|
/scripts/tracing/ |
D | draw_functrace.py | 25 import sys, re 106 m = re.match("[^]]+?\\] +([a-z.]+) +([0-9.]+): (\\w+) <-(\\w+)", line)
|
/scripts/coccinelle/api/alloc/ |
D | alloc_cast.cocci | 25 import re 27 m = re.compile(pattern)
|
/scripts/gdb/linux/ |
D | symbols.py | 16 import re 88 if re.match(module_pattern, name) and os.path.exists(name):
|
/scripts/coccinelle/misc/ |
D | cond_no_effect.cocci | 30 // * Both paths of the branch look the same. They're supposed to
|
/scripts/kconfig/ |
D | symbol.c | 956 regex_t re; in sym_re_search() local 963 if (regcomp(&re, pattern, REG_EXTENDED|REG_ICASE)) in sym_re_search() 969 if (regexec(&re, sym->name, 1, match, 0)) in sym_re_search() 999 regfree(&re); in sym_re_search()
|
D | qconf.cc | 1124 QRegExp re("[<>&\"\\n]"); in print_filter() local 1126 for (int i = 0; (i = res.indexOf(re, i)) >= 0;) { in print_filter()
|