| /linux/tools/lib/python/abi/ |
| H A D | abi_regex.py | 10 import re 40 (re.compile("\\\\"), ""), 43 (re.compile(r"\."), "\xf6"), 46 (re.compile(r"\[0\-9\]\+"), "\xff"), 49 (re.compile(r"\[0\-\d+\]"), "\xff"), 50 (re.compile(r"\[0:\d+\]"), "\xff"), 51 (re.compile(r"\[(\d+)\]"), "\xf4\\\\d+\xf5"), 54 (re.compile(r"\[(\d)\-(\d)\]"), "\xf4\1-\2\xf5"), 57 (re.compile(r"[\{\<\[]([\w_]+)(?:[,|]+([\w_]+)){1,}[\}\>\]]"), r"(\1|\2)"), 60 (re.compile(r"([^\/])\*"), "\\1\\\\w\xf7"), [all …]
|
| H A D | abi_parser.py | 13 import re 55 self.re_abi_dir = re.compile(r"(.*)" + ABI_DIR) 56 self.re_tag = re.compile(r"(\S+)(:\s*)(.*)", re.I) 57 self.re_valid = re.compile(self.TAGS) 58 self.re_start_spc = re.compile(r"(\s*)(\S.*)") 59 self.re_whitespace = re.compile(r"^\s+") 62 self.re_what = re.compile(r"(\/?(?:[\w\-]+\/?){1,2})") 63 self.re_escape = re.compile(r"([\.\x01-\x08\x0e-\x1f\x21-\x2f\x3a-\x40\x7b-\xff])") 64 self.re_unprintable = re [all...] |
| /linux/scripts/ |
| H A D | checkstack.pl | 29 # $re is used for two matches: 30 # $& (whole re) matches the complete objdump line with the stack growth 34 # $& (whole re) matches the complete objdump line with the stack growth 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; 71 $re = qr/^.*[as][du][db][ql]?\s+\$(0x$x{1,8}),\s*\%(e|r)sp/o; 76 $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o; 79 $re = qr/.*daddiu.*sp,sp,-([0-9]{1,8})/o; 82 $re [all...] |
| H A 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_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 [all...] |
| H A D | macro_checker.py | 9 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 D | bpf_doc.py | 12 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/tools/lib/python/kdoc/ |
| H A D | parse_data_structs.py | 25 import re 88 re.compile(r"^\s*enum\s+([\w_]+)\s*\{"), 89 re.compile(r"^\s*enum\s+([\w_]+)\s*$"), 90 re.compile(r"^\s*typedef\s*enum\s+([\w_]+)\s*\{"), 91 re.compile(r"^\s*typedef\s*enum\s+([\w_]+)\s*$"), 96 re.compile(r"^\s*struct\s+([_\w][\w\d_]+)\s*\{"), 97 re.compile(r"^\s*struct\s+([_\w][\w\d_]+)$"), 98 re.compile(r"^\s*typedef\s*struct\s+([_\w][\w\d_]+)\s*\{"), 99 re.compile(r"^\s*typedef\s*struct\s+([_\w][\w\d_]+)$"), 122 # We're callin [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_bpftool_synctypes.py | 7 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 D | ref-verify.c | 136 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_obj(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 D | valgrindPlugin.py | 8 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 D | sp_maddf.c | 18 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 D | dp_maddf.c | 43 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()
|
| H A D | sp_div.c | 15 int re; in ieee754sp_div() local 116 re = xe - ye; in ieee754sp_div() 138 re--; in ieee754sp_div() 141 return ieee754sp_format(xs == ys ? 0 : 1, re, rm); in ieee754sp_div()
|
| /linux/tools/docs/ |
| H A D | sphinx-pre-install | 31 import re 449 match = re.match(r"^sphinx-build\s+([\d\.]+)(?:\+(?:/[\da-f]+)|b\d+)?\s*$", line) 453 match = re.match(r"^Sphinx.*\s+([\d\.]+)\s*$", line) 464 match = re.match(r"^\s*needs_sphinx\s*=\s*[\'\"]([\d\.]+)[\'\"]", line) 546 match = re.match(r"^([\w\d\_]+)=\"?([^\"]*)\"?\n", line) 747 match = re.search(r"(release|Linux)\s+(\d+)", self.system_release) 755 elif re.search("Fedora", self.system_release): 848 match = re.search(r"(Leap)\s+(\d+).(\d)", self.system_release) 907 if re.search(r"OpenMandriva", self.system_release): 1096 if not re.search(rf"\s*{arg}\b", line): [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_db_mgr.c | 227 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 D | xe_guc_id_mgr.c | 110 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 D | dt-extract-compatibles | 6 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):
|
| /linux/drivers/mtd/ubi/ |
| H A D | cdev.c | 13 * manipulate whole volumes: create, remove, and re-size them. Volume character 651 * verify_rsvol_req - verify volume re-size request. 672 * @req: volumes re-name request 674 * This is a helper function for the volume re-name IOCTL which validates the 684 struct ubi_rename_entry *re, *re1; in rename_volumes() local 723 /* Create the re-name list */ in rename_volumes() 730 re = kzalloc_obj(struct ubi_rename_entry); 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 in rename_volumes() [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | spin_lock.c | 64 regex_t re; in match_regex() local 66 err = regcomp(&re, pattern, REG_NOSUB); in match_regex() 70 regerror(err, &re, errbuf, sizeof(errbuf)); in match_regex() 74 rc = regexec(&re, string, 0, NULL, 0); in match_regex() 75 regfree(&re); in match_regex()
|
| H A D | ctx_rewrite.c | 331 regex_t *re; in compile_regex() 334 re = malloc(sizeof(regex_t)); in compile_regex() 335 if (!re) { in compile_regex() 340 err = regcomp(re, pat, REG_EXTENDED); in compile_regex() 344 regerror(err, re, errbuf, sizeof(errbuf)); in compile_regex() 346 free(re); in compile_regex() 350 return re; in compile_regex() 353 static void free_regex(regex_t *re) 355 if (!re) in free_regex() 358 regfree(re); in free_regex() 332 regex_t *re; compile_regex() local 354 free_regex(regex_t * re) free_regex() argument [all...] |
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | kunit.py | 8 import re 53 pattern = re.compile( 54 r'^\s*(.*?)\b' + re.escape(handler_name) + r'\(([^)]*)\)', 55 re.MULTILINE | re.DOTALL 65 probe_pattern = re.compile(
|
| /linux/arch/um/ |
| H A D | Kconfig.debug | 13 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/drivers/net/ethernet/marvell/ |
| H A D | sky2.c | 823 * sky2_reset will re-enable on resume in sky2_wol_init() 1155 struct rx_ring_info *re; in sky2_get_rx_data_size() local 1162 BUG_ON(sky2->rx_nfrags > ARRAY_SIZE(re->frag_addr)); in sky2_get_rx_data_size() 1196 const struct rx_ring_info *re) in sky2_rx_submit() argument 1200 sky2_rx_add(sky2, OP_PACKET, re->data_addr, sky2->rx_data_size); in sky2_rx_submit() 1202 for (i = 0; i < skb_shinfo(re->skb)->nr_frags; i++) in sky2_rx_submit() 1203 sky2_rx_add(sky2, OP_BUFFER, re->frag_addr[i], PAGE_SIZE); in sky2_rx_submit() 1207 static int sky2_rx_map_skb(struct pci_dev *pdev, struct rx_ring_info *re, in sky2_rx_map_skb() argument 1210 struct sk_buff *skb = re->skb; in sky2_rx_map_skb() 1213 re in sky2_rx_map_skb() 1249 sky2_rx_unmap_skb(struct pci_dev * pdev,struct rx_ring_info * re) sky2_rx_unmap_skb() argument 1355 struct rx_ring_info *re = sky2->rx_ring + i; sky2_rx_clean() local 1494 struct rx_ring_info *re = sky2->rx_ring + i; sky2_alloc_rx_skbs() local 1521 struct rx_ring_info *re; sky2_rx_start() local 1806 sky2_tx_unmap(struct pci_dev * pdev,struct tx_ring_info * re) sky2_tx_unmap() argument 1829 struct tx_ring_info *re; sky2_xmit_frame() local 2009 struct tx_ring_info *re = sky2->tx_ring + idx; sky2_tx_complete() local 2446 needs_copy(const struct rx_ring_info * re,unsigned length) needs_copy() argument 2459 receive_copy(struct sky2_port * sky2,const struct rx_ring_info * re,unsigned length) receive_copy() argument 2520 receive_new(struct sky2_port * sky2,struct rx_ring_info * re,unsigned int length) receive_new() argument 2559 struct rx_ring_info *re = sky2->rx_ring + sky2->rx_next; sky2_receive() local [all...] |
| /linux/Documentation/sphinx/ |
| H A D | maintainers_include.py | 18 import re 98 self.re_doc = re.compile(r'(Documentation/(\S*)\.rst)') 115 if re.search('^[A-Z0-9]', line): 188 m = re.match(r"\s+(\S):\s+(\S+)", line) 194 m = re.search(r"\*([^\*]+)\*", line) 214 self.subsystem_name = re.sub(r"\s+", " ", self.linkify(line)) 237 match = re.match(r"(https?://.*)", details) 400 match = re.match(r"(.*/)Documentation", app_dir)
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | iou-zcrx.py | 4 import re 29 values = re.search(r'New RSS context is (\d+)', output).group(1) 36 values = re.search(r'New RSS context is (\d+)', output).group(1) 42 values = re.search(r'ID (\d+)', output).group(1) 48 values = re.search(r'ID (\d+)', output).group(1)
|