Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 766) sorted by relevance

12345678910>>...31

/linux/scripts/lib/abi/
H A Dabi_regex.py10 import re
28 (re.compile("\\\\"), ""),
31 (re.compile(r"\."), "\xf6"),
34 (re.compile(r"\[0\-9\]\+"), "\xff"),
37 (re.compile(r"\[0\-\d+\]"), "\xff"),
38 (re.compile(r"\[0:\d+\]"), "\xff"),
39 (re.compile(r"\[(\d+)\]"), "\xf4\\\\d+\xf5"),
42 (re.compile(r"\[(\d)\-(\d)\]"), "\xf4\1-\2\xf5"),
45 (re.compile(r"[\{\<\[]([\w_]+)(?:[,|]+([\w_]+)){1,}[\}\>\]]"), r"(\1|\2)"),
48 (re.compile(r"([^\/])\*"), "\\1\\\\w\xf7"),
[all …]
H A Dabi_parser.py13 import re
52 self.re_abi_dir = re.compile(r"(.*)" + ABI_DIR)
53 self.re_tag = re.compile(r"(\S+)(:\s*)(.*)", re.I)
54 self.re_valid = re.compile(self.TAGS)
55 self.re_start_spc = re.compile(r"(\s*)(\S.*)")
56 self.re_whitespace = re.compile(r"^\s+")
59 self.re_what = re.compile(r"(\/?(?:[\w\-]+\/?){1,2})")
60 self.re_escape = re.compile(r"([\.\x01-\x08\x0e-\x1f\x21-\x2f\x3a-\x40\x7b-\xff])")
61 self.re_unprintable = re.compile(r"([\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xff]+)")
62 self.re_title_mark = re.compile(r"\n[\-\*\=\^\~]+\n")
[all …]
/linux/tools/docs/lib/
H A Dparse_data_structs.py25 import re
78 re.compile(r"^\s*enum\s+([\w_]+)\s*\{"),
79 re.compile(r"^\s*enum\s+([\w_]+)\s*$"),
80 re.compile(r"^\s*typedef\s*enum\s+([\w_]+)\s*\{"),
81 re.compile(r"^\s*typedef\s*enum\s+([\w_]+)\s*$"),
84 re.compile(r"^\s*struct\s+([_\w][\w\d_]+)\s*\{"),
85 re.compile(r"^\s*struct\s+([_\w][\w\d_]+)$"),
86 re.compile(r"^\s*typedef\s*struct\s+([_\w][\w\d_]+)\s*\{"),
87 re.compile(r"^\s*typedef\s*struct\s+([_\w][\w\d_]+)$"),
206 if re.search(r"/\*.*", line):
[all …]
/linux/scripts/
H A Dcheckstack.pl40 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;
74 $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o;
77 $re = qr/.*daddiu.*sp,sp,-([0-9]{1,8})/o;
80 $re = qr/.*addiu.*sp,sp,-([0-9]{1,8})/o;
83 $re = qr/.*addi.*sp,sp,-([0-9]{1,8})/o;
86 $re = qr/.*l\.addi.*r1,r1,-([0-9]{1,8})/o;
88 $re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
[all …]
H A Dsphinx-pre-install30 import re
249 match = re.search(r"(\d+\.\d+\.\d+)", version)
295 match = re.search(r"(\d+\.\d+\.\d+)", ver)
528 match = re.match(r"^sphinx-build\s+([\d\.]+)(?:\+(?:/[\da-f]+)|b\d+)?\s*$", line)
532 match = re.match(r"^Sphinx.*\s+([\d\.]+)\s*$", line)
543 match = re.match(r"^\s*needs_sphinx\s*=\s*[\'\"]([\d\.]+)[\'\"]", line)
625 match = re.match(r"^([\w\d\_]+)=\"?([^\"]*)\"?\n", line)
826 match = re.search(r"(release|Linux)\s+(\d+)", self.system_release)
834 elif re.search("Fedora", self.system_release):
927 match = re.search(r"(Leap)\s+(\d+).(\d)", self.system_release)
[all …]
H A Dcheckkconfigsymbols.py14 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_FILTER_SYMBOLS = re.compile(r"[A-Za-z0-9]$")
38 REGEX_NUMERIC = re.compile(r"0[xX][0-9a-fA-F]+|[0-9]+")
39 REGEX_QUOTES = re.compile("(\"(.*?)\")")
[all …]
H A Dmacro_checker.py9 import re
27 match = re.match(macro_pattern, macro_line)
29 macro_def = re.sub(macro_pattern, '', macro_line)
42 if (re.match(fp_pattern, macro_def)):
66 macro = re.sub(comment_pattern1, '', macro)
67 macro = re.sub(comment_pattern2, '', macro)
91 macro = re.match(macro_pattern, line)
H A Dbpf_doc.py12 import re
71 arg_re = re.compile(r'((\w+ )*?(\w+|...))( (\**)(\w+))?$')
73 proto_re = re.compile(r'(.+) (\**)(\w+)\(((([^,]+)(, )?){1,5})\)$')
138 p = re.compile(r' \* ?(BPF\w+)$')
142 end_re = re.compile(r' \* ?NOTES$')
157 … p = re.compile(r' \* ?((.+) \**\w+\((((const )?(struct )?(\w+|\.\.\.)( \**\w+)?)(, )?){1,5}\))$')
165 p = re.compile(r' \* ?(?:\t| {5,8})Description$')
178 p = re.compile(r' \* ?(?:\t| {5,8})(?:\t| {8})(.*)')
191 p = re.compile(r' \* ?(?:\t| {5,8})Return$')
204 p = re.compile(r' \* ?(?:\t| {5,8})(?:\t| {8})(.*)')
[all …]
/linux/Documentation/sphinx/
H A Dautomarkup.py11 import re
23 RE_function = re.compile(r'\b(([a-zA-Z_]\w+)\(\))', flags=re.ASCII)
29 RE_struct = re.compile(r'\b(struct)\s+([a-zA-Z_]\w+)', flags=re.ASCII)
30 RE_union = re.compile(r'\b(union)\s+([a-zA-Z_]\w+)', flags=re.ASCII)
31 RE_enum = re.compile(r'\b(enum)\s+([a-zA-Z_]\w+)', flags=re.ASCII)
32 RE_typedef = re.compile(r'\b(typedef)\s+([a-zA-Z_]\w+)', flags=re.ASCII)
38 RE_doc = re.compile(r'(\bDocumentation/)?((\.\./)*[\w\-/]+)\.(rst|txt)')
39 RE_abi_file = re.compile(r'(\bDocumentation/ABI/[\w\-/]+)')
40 RE_abi_symbol = re.compile(r'(\b/(sys|config|proc)/[\w\-/]+)')
42 RE_namespace = re.compile(r'^\s*..\s*c:namespace::\s*(\S+)\s*$')
[all …]
H A Dmaintainers_include.py21 import re
75 if re.search('^[A-Z0-9]', line):
83 m = re.search(pat, line)
86 line = re.sub(pat, ':doc:`%s <../%s>`' % (m.group(2), m.group(2)), line)
95 m = re.search(r"\s(\S):\s", line)
99 m = re.search(r"\*([^\*]+)\*", line)
117 heading = re.sub(r"\s+", " ", line)
/linux/arch/arm64/crypto/
H A Dsm3-neon-core.S45 #define re w7 macro
358 ldp re, rf, [RSTATE, #16]
401 R1(ra, rb, rc, rd, re, rf, rg, rh, k_even, KL, 0, 0, IW, _, 0)
402 R1(rd, ra, rb, rc, rh, re, rf, rg, k_odd, _, 1, 1, IW, _, 0)
403 R1(rc, rd, ra, rb, rg, rh, re, rf, k_even, KL, 2, 2, IW, _, 0)
404 R1(rb, rc, rd, ra, rf, rg, rh, re, k_odd, _, 3, 3, IW, _, 0)
407 R1(ra, rb, rc, rd, re, rf, rg, rh, k_even, KL, 4, 0, IW, _, 0)
408 R1(rd, ra, rb, rc, rh, re, rf, rg, k_odd, _, 5, 1, IW, _, 0)
409 R1(rc, rd, ra, rb, rg, rh, re, rf, k_even, KL, 6, 2, IW, SCHED_W_W0W1W2W3W4W5_1, 12)
410 R1(rb, rc, rd, ra, rf, rg, rh, re, k_odd, _, 7, 3, IW, SCHED_W_W0W1W2W3W4W5_2, 12)
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_bpftool_synctypes.py7 import re
37 array_start = re.search(start_marker, self.reader.read())
52 if not line or re.match(end_marker, line):
65 end_marker = re.compile('^};')
69 self.start_marker = re.compile(fr'(static )?const bool {self.array_name}\[.*\] = {{\n')
83 pattern = re.compile(r'\[(BPF_\w*)\]\s*= (true|false),?$')
87 if line == '' or re.match(self.end_marker, line):
111 if re.search(end_marker, line):
180 start_marker = re.compile(f'enum {enum_name} {{\n')
181 pattern = re.compile(r'^\s*(BPF_\w+),?(\s+/\*.*\*/)?$')
[all …]
/linux/fs/btrfs/
H A Dref-verify.c136 struct root_entry *re) in insert_root_entry() argument
140 node = rb_find_add(&re->node, root, root_entry_root_objectid_cmp); in insert_root_entry()
219 struct root_entry *re; in free_block_entry() local
225 re = rb_entry(n, struct root_entry, node); in free_block_entry()
226 rb_erase(&re->node, &be->roots); in free_block_entry()
227 kfree(re); in free_block_entry()
250 struct root_entry *re = NULL; in add_block_entry() local
252 re = kzalloc(sizeof(struct root_entry), GFP_NOFS); in add_block_entry()
254 if (!be || !re) { in add_block_entry()
255 kfree(re); in add_block_entry()
[all …]
/linux/tools/testing/selftests/tc-testing/plugin-lib/
H A DvalgrindPlugin.py8 import re
114 self.definitely_lost_re = re.compile(
115 … r'definitely lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\sblocks', re.MULTILINE | re.DOTALL)
116 self.indirectly_lost_re = re.compile(
117 … r'indirectly lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL)
118 self.possibly_lost_re = re.compile(
119 r'possibly lost:\s+([,0-9]+)bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL)
120 self.non_leak_error_re = re.compile(
121 … r'ERROR SUMMARY:\s+([,0-9]+) errors from\s+([,0-9]+)\s+contexts', re.MULTILINE | re.DOTALL)
/linux/arch/mips/math-emu/
H A Dsp_maddf.c18 int re; in _sp_maddf() local
155 re = xe + ye; in _sp_maddf()
166 re++; in _sp_maddf()
178 return ieee754sp_format(rs, re, rm); in _sp_maddf()
186 if (ze > re) { in _sp_maddf()
190 s = ze - re; in _sp_maddf()
192 re += s; in _sp_maddf()
193 } else if (re > ze) { in _sp_maddf()
197 s = re - ze; in _sp_maddf()
201 assert(ze == re); in _sp_maddf()
H A Ddp_maddf.c43 int re; in _dp_maddf() local
184 re = xe + ye; in _dp_maddf()
222 re++; in _dp_maddf()
234 return ieee754dp_format(rs, re, lrm); in _dp_maddf()
243 if (ze > re) { in _dp_maddf()
247 s = ze - re; in _dp_maddf()
249 re += s; in _dp_maddf()
250 } else if (re > ze) { in _dp_maddf()
254 s = re - ze; in _dp_maddf()
258 assert(ze == re); in _dp_maddf()
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_db_mgr.c227 unsigned int rs, re; in dbm_print_locked() local
235 for_each_clear_bitrange(rs, re, dbm->bitmap, dbm->count) { in dbm_print_locked()
237 rs, re - 1, re - rs); in dbm_print_locked()
238 total += re - rs; in dbm_print_locked()
243 for_each_set_bitrange(rs, re, dbm->bitmap, dbm->count) { in dbm_print_locked()
245 rs, re - 1, re - rs); in dbm_print_locked()
246 total += re - rs; in dbm_print_locked()
H A Dxe_guc_id_mgr.c110 unsigned int rs, re, range; in find_last_zero_area() local
112 for_each_clear_bitrange(rs, re, bitmap, total) { in find_last_zero_area()
113 range = re - rs; in find_last_zero_area()
252 unsigned int rs, re; in idm_print_locked() local
261 for_each_set_bitrange(rs, re, idm->bitmap, idm->total) in idm_print_locked()
262 drm_printf_indent(p, indent, "range %u..%u (%u)\n", rs, re - 1, re - rs); in idm_print_locked()
/linux/scripts/dtc/
H A Ddt-extract-compatibles6 import re
18 for m in re.finditer(re_macros, data):
20 compat = re.search(r'"(.*?)"', m[0])[1]
32 for m in re.finditer(r'of_device_id(\s+\S+)?\s+(\S+)\[\](\s+\S+)?\s*=\s*({.*?);', data):
35 compat_list += re.findall(r'\.compatible\s+=\s+"(\S+)"', m[4])
43 for m in re.finditer(r'\.of_match_table\s+=\s+(of_match_ptr\()?([a-zA-Z0-9_-]+)', data):
52 for m in re.finditer(rf'{func_name}\(([a-zA-Z0-9_>\(\)"\-]+,\s)*"([a-zA-Z0-9_,-]+)"\)', data):
H A Dflattree.c297 struct reserve_info *re; in flatten_reserve_list() local
301 for (re = reservelist; re; re = re->next) { in flatten_reserve_list()
302 d = data_append_re(d, re->address, re->size); in flatten_reserve_list()
452 struct reserve_info *re; in dt_to_asm() local
517 for (re = dti->reservelist; re; re = re->next) { in dt_to_asm()
520 for_each_label(re->labels, l) { in dt_to_asm()
524 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->address >> 32)); in dt_to_asm()
526 (unsigned int)(re->address & 0xffffffff)); in dt_to_asm()
527 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->size >> 32)); in dt_to_asm()
528 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->size & 0xffffffff)); in dt_to_asm()
[all …]
/linux/scripts/lib/kdoc/
H A Dkdoc_parser.py16 import re
47 known_sections = KernRe(known_section_names, flags = re.I)
50 flags=re.I, cache=False)
83 (KernRe(r"__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)", flags=re.I | re.S, cache=False), ' '),
84 (KernRe(r'\s*__aligned\s*\([^;]*\)', re.S), ' '),
85 (KernRe(r'\s*__counted_by\s*\([^;]*\)', re.S), ' '),
86 (KernRe(r'\s*__counted_by_(le|be)\s*\([^;]*\)', re.S), ' '),
87 (KernRe(r'\s*__packed\s*', re.S), ' '),
88 (KernRe(r'\s*CRYPTO_MINALIGN_ATTR', re.S), ' '),
89 (KernRe(r'\s*____cacheline_aligned_in_smp', re.S), ' '),
[all …]
/linux/drivers/mtd/ubi/
H A Dcdev.c684 struct ubi_rename_entry *re, *re1; in rename_volumes() local
730 re = kzalloc(sizeof(struct ubi_rename_entry), GFP_KERNEL); in rename_volumes()
731 if (!re) { in rename_volumes()
736 re->desc = ubi_open_volume(ubi->ubi_num, vol_id, UBI_METAONLY); in rename_volumes()
737 if (IS_ERR(re->desc)) { in rename_volumes()
738 err = PTR_ERR(re->desc); in rename_volumes()
741 kfree(re); in rename_volumes()
746 if (re->desc->vol->name_len == name_len && in rename_volumes()
747 !memcmp(re->desc->vol->name, name, name_len)) { in rename_volumes()
748 ubi_close_volume(re->desc); in rename_volumes()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dspin_lock.c61 regex_t re; in match_regex() local
63 err = regcomp(&re, pattern, REG_NOSUB); in match_regex()
67 regerror(err, &re, errbuf, sizeof(errbuf)); in match_regex()
71 rc = regexec(&re, string, 0, NULL, 0); in match_regex()
72 regfree(&re); in match_regex()
/linux/arch/um/
H A DKconfig.debug13 If you're involved in UML kernel development and want to use gprof,
14 say Y. If you're unsure, say N.
28 If you're involved in UML kernel development and want to use gcov,
29 say Y. If you're unsure, say N.
/linux/tools/perf/arch/x86/util/
H A Dheader.c96 regex_t re; in strcmp_cpuid_str() local
112 if (regcomp(&re, mapcpuid, REG_EXTENDED) != 0) { in strcmp_cpuid_str()
118 match = !regexec(&re, id, 1, pmatch, 0); in strcmp_cpuid_str()
119 regfree(&re); in strcmp_cpuid_str()

12345678910>>...31