/u-boot/test/py/tests/ |
H A D | test_event_dump.py | 6 import re namespace 24 assert re.match(expect, out, re.MULTILINE) is not None
|
H A D | test_mii.py | 5 import re namespace 30 if not re.search(r"PHY (.+?):", output): 50 re.search(r"MII devices: '(.+)'", output).groups()[0].replace("'", "").split() 62 current_dev = re.search(r"Current device: '(.+?)'", output).groups()[0] 71 dev = re.search(r"Current device: '(.+?)'", output).groups()[0] 78 eth_addr = hex(int(re.search(r"PHY (.+?):", output).groups()[0], 16)) 88 eth_addr = hex(int(re.search(r"PHY (.+?):", output).groups()[0], 16))
|
H A D | test_zynqmp_secure.py | 5 import re namespace 57 ver_addr = re.search(r'Verified image at 0x(.+)', output).group(1) 99 ver_addr = re.search(r'Verified image at 0x(.+)', output).group(1)
|
H A D | test_tpm2.py | 8 import re namespace 255 str = re.findall(r'\d+ known updates', read_pcr)[0] 257 updates = int(re.findall(r'\d+', str)[0]) 281 str = re.findall(r'\d+ known updates', read_pcr)[0] 282 updates = int(re.findall(r'\d+', str)[0]) 296 str = re.findall(r'\d+ known updates', read_pcr)[0] 297 new_updates = int(re.findall(r'\d+', str)[0]) 310 str = re.findall(r'\d+ known updates', read_pcr)[0] 311 new_updates = int(re.findall(r'\d+', str)[0])
|
H A D | fs_helper.py | 8 import re namespace 37 if re.match('fat', fs_type):
|
H A D | test_usb.py | 6 import re namespace 33 # re-start the usb, in that case 46 obj = re.search(r'\d USB Device\(s\) found', output) 52 obj = re.search(r'\d Storage Device\(s\) found', output) 91 obj = re.search(r'\d USB Device\(s\) found', output) 97 obj = re.search(r'\d Storage Device\(s\) found', output) 118 num_controller = len(re.findall(': Hub,', output)) 119 num_mass_storage = len(re.findall(': Mass Storage,', output)) 129 num_controller = len(re.findall(': Hub,', output)) 130 num_mass_storage = len(re [all...] |
H A D | test_sf.py | 5 import re namespace 75 m = re.search('page size (.+?) Bytes', output) 79 m = re.search('erase size (.+?) KiB', output) 84 m = re.search('total (.+?) MiB', output)
|
/u-boot/scripts/ |
H A D | checkstack.pl | 27 # $re is used for two matches: 28 # $& (whole re) matches the complete objdump line with the stack growth 32 # $& (whole re) matches the complete objdump line with the stack growth 36 my (@stack, $re, $dre, $x, $xs, $funcre); 49 $re = qr/^.*stp.*sp,\#-([0-9]{1,8})\]\!/o; 52 $re = qr/.*sub.*sp, sp, #(([0-9]{2}|[3-9])[0-9]{2})/o; 57 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o; 61 $re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o; 65 $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o; 68 $re [all...] |
H A D | style.py | 13 import re namespace 22 RE_FUNC = re.compile(r' *def (\w+)\(') 81 newdata, count = re.subn(fr'{leaf}.{name}\(', 87 imports = re.findall(fr'from {module_name} import (.*)\n', data) 93 data = re.sub(fr'from {module_name} import (.*)\n', new_line, data) 97 newdata = re.sub(fr'\b{name}\(', f'{new_name}(', data) 103 newdata, count = re.subn(fr"{leaf}, '{name}'", 138 newdata = re.sub(fr'(?<!\.){name}\(', f'{new_name}(', data) 142 newdata = re.sub(fr'self.{name}\(', f'self.{new_name}(', data)
|
H A D | event_dump.py | 8 import re namespace 24 RE_EVTYPE_FULL = re.compile('%s(.*)_3_.*' % PREFIX_FULL) 25 RE_EVTYPE_SIMPLE = re.compile('%s(.*)_3_.*' % PREFIX_SIMPLE)
|
/u-boot/test/py/tests/test_fs/ |
H A D | test_fs_fat.py | 12 import re namespace 25 assert(re.search('Filesystem: %s' % fs_type.upper(), ''.join(output)))
|
/u-boot/tools/ |
H A D | zynqmp_pm_cfg_obj_convert.py | 6 import re namespace 257 num_re = re.compile(r"^([0-9]+)U?$") 258 const_re = re.compile(r"^([A-Z_][A-Z0-9_]*)$") 291 code = re.sub('//.*?\n|/\*.*?\*/', '', code, flags=re.DOTALL) 294 code = re.search('const u32 XPm_ConfigObject.*=.*{\n(.*)};', 295 code, flags=re.DOTALL).group(1)
|
H A D | expo.py | 14 import re namespace 24 RE_ENUM = re.compile(r'(\S*)(\s*= (\d))?,') 27 RE_DEF = re.compile(r'#define (\S*)\s*"(.*)"') 87 indata = re.sub(tools.to_bytes(find_str), outval, indata)
|
/u-boot/include/ |
H A D | slre.h | 82 int slre_compile(struct slre *, const char *re);
|
/u-boot/doc/sphinx/ |
H A D | automarkup.py | 15 import re namespace 19 # Python 2 lacks re.ASCII... 22 ascii_p3 = re.ASCII 33 RE_function = re.compile(r'\b(([a-zA-Z_]\w+)\(\))', flags=ascii_p3) 38 RE_generic_type = re.compile(r'\b(struct|union|enum|typedef)\s+([a-zA-Z_]\w+)', 45 RE_struct = re.compile(r'\b(struct)\s+([a-zA-Z_]\w+)', flags=ascii_p3) 46 RE_union = re.compile(r'\b(union)\s+([a-zA-Z_]\w+)', flags=ascii_p3) 47 RE_enum = re.compile(r'\b(enum)\s+([a-zA-Z_]\w+)', flags=ascii_p3) 48 RE_typedef = re.compile(r'\b(typedef)\s+([a-zA-Z_]\w+)', flags=ascii_p3) 54 RE_doc = re [all...] |
H A D | maintainers_include.py | 21 import re namespace 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)
|
H A D | cdomain.py | 44 import re namespace 58 RE_namespace = re.compile(r'^\s*..\s*c:namespace::\s*(\S+)\s*$') 70 RE_macro = re.compile(r'^\s*..\s*c:macro::\s*(\S+)\s+(\S.*)\s*$') 78 RE_ctype = re.compile(r'^\s*..\s*c:(struct|union|enum|enumerator|alias)::\s*(.*)$') 87 RE_ctype_refs = re.compile(r':c:(var|struct|union|enum|enumerator)::`([^\`]+)`') 94 RE_expr = re.compile(r':c:(expr|texpr):`([^\`]+)`') 116 n = n[:m.start()] + markup_func[m.re](m) + n[m.end():]
|
/u-boot/lib/ |
H A D | slre.c | 196 exact(struct slre *r, const char **re) argument 200 while (**re != '\0' && (strchr(meta_chars, **re)) == NULL) 201 store_char_in_data(r, *(*re)++); 209 get_escape_char(const char **re) argument 213 switch (*(*re)++) { 236 res = (*re)[-1]; 244 anyof(struct slre *r, const char **re) argument 248 if (**re == '^') { 250 (*re) 322 compile(struct slre *r, const char **re) argument 413 slre_compile(struct slre *r, const char *re) argument [all...] |
/u-boot/tools/patman/ |
H A D | checkpatch.py | 8 import re namespace 17 RE_ERROR = re.compile(r'ERROR:%s (.*)' % TYPE_NAME) 18 RE_WARNING = re.compile(EMACS_PREFIX + r'WARNING:%s (.*)' % TYPE_NAME) 19 RE_CHECK = re.compile(r'CHECK:%s (.*)' % TYPE_NAME) 20 RE_FILE = re.compile(r'#(\d+): (FILE: ([^:]*):(\d+):)?') 21 RE_NOTE = re.compile(r'NOTE: (.*)') 153 re_stats = re.compile(emacs_stats + 155 re_stats_full = re.compile(emacs_stats + 158 re_ok = re.compile(r'.*has no obvious style problems') 159 re_bad = re [all...] |
H A D | commit.py | 6 import re namespace 9 re_subject_tag = re.compile('([^:\s]*):\s*(.*)')
|
/u-boot/test/py/ |
H A D | u_boot_console_base.py | 14 import re namespace 19 pattern_u_boot_spl_signon = re.compile('(U-Boot SPL \\d{4}\\.\\d{2}[^\r\n]*\\))') 20 pattern_u_boot_main_signon = re.compile('(U-Boot \\d{4}\\.\\d{2}[^\r\n]*\\))') 21 pattern_stop_autoboot_prompt = re.compile('Hit any key to stop autoboot: ') 22 pattern_unknown_command = re.compile('Unknown command \'.*\' - try \'help\'') 23 pattern_error_notification = re.compile('## Error: ') 24 pattern_error_please_reset = re.compile('### ERROR ### Please RESET the board ###') 108 self.prompt_compiled = re.compile('^' + re.escape(self.prompt), re [all...] |
/u-boot/tools/binman/btool/ |
H A D | mkimage.py | 6 import re namespace
|
H A D | lzma_alone.py | 36 import re namespace 125 m_version = re.match(r'LZMA ([^:]*).*', out)
|
/u-boot/scripts/dtc/ |
H A D | treesource.c | 268 struct reserve_info *re; local 272 for (re = dti->reservelist; re; re = re->next) { 275 for_each_label(re->labels, l) 278 (unsigned long long)re->address, 279 (unsigned long long)re->size);
|
/u-boot/tools/buildman/ |
H A D | cfgutil.py | 8 import re namespace 12 RE_LINE = re.compile(r'(# )?CONFIG_([A-Z0-9_]+)(=(.*)| is not set)') 13 RE_CFG = re.compile(r'(~?)(CONFIG_)?([A-Z0-9_]+)(=.*)?')
|