Home
last modified time | relevance | path

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

123456

/u-boot/scripts/
A Dcheckstack.pl36 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;
68 $re = qr/.*ADD.*A0StP,A0StP,\#(0x$x{1,8})/o;
75 $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
77 $re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
80 $re = qr/.*stwu.*r1,-($x{1,8})\(r1\)/o;
83 $re = qr/.*stdu.*r1,-($x{1,8})\(r1\)/o;
85 $re = qr/.*st[dw]u.*r1,-($x{1,8})\(r1\)/o;
100 $re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o;
[all …]
/u-boot/tools/
A Dzynqmp_pm_cfg_obj_convert.py6 import re
255 num_re = re.compile(r"^([0-9]+)U?$")
256 const_re = re.compile(r"^([A-Z_][A-Z0-9_]*)$")
289 code = re.sub('//.*?\n|/\*.*?\*/', '', code, flags=re.DOTALL)
292 code = re.search('const u32 XPm_ConfigObject.*=.*{\n(.*)};',
293 code, flags=re.DOTALL).group(1)
A Dmicrocode-tool10 import re
49 re_date = re.compile('/\* *(.* [0-9]{4}) *\*/$')
50 re_license = re.compile('/[^-*+] *(.*)$')
51 re_name = re.compile('/\* *(.*)\.inc *\*/', re.IGNORECASE)
A Dmicrocode-tool.py10 import re
49 re_date = re.compile('/\* *(.* [0-9]{4}) *\*/$')
50 re_license = re.compile('/[^-*+] *(.*)$')
51 re_name = re.compile('/\* *(.*)\.inc *\*/', re.IGNORECASE)
/u-boot/doc/sphinx/
A Dautomarkup.py15 import re
22 ascii_p3 = re.ASCII
33 RE_function = re.compile(r'\b(([a-zA-Z_]\w+)\(\))', flags=ascii_p3)
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.compile(r'\bDocumentation(/[\w\-_/]+)(\.\w+)*')
56 RE_namespace = re.compile(r'^\s*..\s*c:namespace::\s*(\S+)\s*$')
116 repl.append(markup_func[m.re](docname, app, m))
[all …]
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("\s(\S):\s", line)
99 m = re.search("\*([^\*]+)\*", line)
117 heading = re.sub("\s+", " ", line)
A Dcdomain.py44 import re
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/
A Dslre.c200 while (**re != '\0' && (strchr(meta_chars, **re)) == NULL) in exact()
236 res = (*re)[-1]; in get_escape_char()
250 (*re)++; in anyof()
333 (*re)--; in compile()
349 anyof(r, re); in compile()
365 compile(r, re); in compile()
375 (*re)--; in compile()
388 (*re)++; in compile()
405 (*re)--; in compile()
407 exact(r, re); in compile()
[all …]
/u-boot/tools/patman/
A Dcheckpatch.py7 import re
85 re_stats = re.compile(emacs_stats +
87 re_stats_full = re.compile(emacs_stats +
90 re_ok = re.compile('.*has no obvious style problems')
91 re_bad = re.compile('.*has style problems, please review')
93 re_error = re.compile('ERROR:%s (.*)' % type_name)
94 re_warning = re.compile(emacs_prefix + 'WARNING:%s (.*)' % type_name)
95 re_check = re.compile('CHECK:%s (.*)' % type_name)
96 re_file = re.compile('#(\d+): (FILE: ([^:]*):(\d+):)?')
97 re_note = re.compile('NOTE: (.*)')
[all …]
A Dpatchstream.py12 import re
27 RE_ALLOWED_AFTER_TEST = re.compile('^Signed-off-by:')
30 RE_SIGNOFF = re.compile('^Signed-off-by: *(.*)')
33 RE_COVER = re.compile('^Cover-([a-z-]*): *(.*)')
36 RE_SERIES_TAG = re.compile('^Series-([a-z-]*): *(.*)')
39 RE_CHANGE_ID = re.compile('^Change-Id: *(.*)')
42 RE_COMMIT_TAG = re.compile('^Commit-([a-z-]*): *(.*)')
48 RE_COMMIT = re.compile('^commit ([0-9a-f]*)$')
51 RE_SPACE_BEFORE_TAB = re.compile('^[+].* \t')
54 RE_LEADING_WHITESPACE = re.compile(r'^\s')
[all …]
A Dcommit.py6 import re
9 re_subject_tag = re.compile('([^:\s]*):\s*(.*)')
/u-boot/test/py/
A Du_boot_console_base.py14 import re
19 pattern_u_boot_spl_signon = re.compile('(U-Boot SPL \\d{4}\\.\\d{2}[^\r\n]*\\))')
20 pattern_u_boot_spl2_signon = re.compile('(U-Boot SPL \\d{4}\\.\\d{2}[^\r\n]*\\))')
21 pattern_u_boot_main_signon = re.compile('(U-Boot \\d{4}\\.\\d{2}[^\r\n]*\\))')
22 pattern_stop_autoboot_prompt = re.compile('Hit any key to stop autoboot: ')
23 pattern_unknown_command = re.compile('Unknown command \'.*\' - try \'help\'')
24 pattern_error_notification = re.compile('## Error: ')
25 pattern_error_please_reset = re.compile('### ERROR ### Please RESET the board ###')
110 self.prompt_compiled = re.compile('^' + re.escape(self.prompt), re.MULTILINE)
196 chunk = re.escape(chunk)
[all …]
A Du_boot_spawn.py7 import re
45 self.re_vt100 = re.compile(r'(\x1b\[|\x9b)[^@-_]*[@-_]|\x1b[@-_]', re.I)
136 patterns[pi] = re.compile(patterns[pi])
/u-boot/arch/x86/include/asm/acpi/
A Dcpu.asl9 /* Notify OS to re-read CPU tables */
15 /* Notify OS to re-read CPU _PPC limit */
21 /* Notify OS to re-read Throttle Limit tables */
/u-boot/scripts/dtc/
A Dtreesource.c268 struct reserve_info *re; in dt_to_source() local
272 for (re = dti->reservelist; re; re = re->next) { in dt_to_source()
275 for_each_label(re->labels, l) in dt_to_source()
278 (unsigned long long)re->address, in dt_to_source()
279 (unsigned long long)re->size); in dt_to_source()
A Dflattree.c311 struct reserve_info *re; in flatten_reserve_list() local
315 for (re = reservelist; re; re = re->next) { in flatten_reserve_list()
316 d = data_append_re(d, re->address, re->size); in flatten_reserve_list()
466 struct reserve_info *re; in dt_to_asm() local
531 for (re = dti->reservelist; re; re = re->next) { in dt_to_asm()
534 for_each_label(re->labels, l) { in dt_to_asm()
540 (unsigned int)(re->address & 0xffffffff)); in dt_to_asm()
703 struct fdt_reserve_entry re; in flat_read_mem_reserve() local
714 flat_read_chunk(inb, &re, sizeof(re)); in flat_read_mem_reserve()
715 address = fdt64_to_cpu(re.address); in flat_read_mem_reserve()
[all …]
A Ddata.c202 struct fdt_reserve_entry re; in data_append_re() local
204 re.address = cpu_to_fdt64(address); in data_append_re()
205 re.size = cpu_to_fdt64(size); in data_append_re()
207 return data_append_data(d, &re, sizeof(re)); in data_append_re()
/u-boot/test/py/tests/
A Dtest_tpm2.py8 import re
193 str = re.findall(r'\d+ known updates', read_pcr)[0]
195 updates = int(re.findall(r'\d+', str)[0])
225 str = re.findall(r'\d+ known updates', read_pcr)[0]
226 new_updates = int(re.findall(r'\d+', str)[0])
A Dtest_sf.py5 import re
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/tools/dtoc/
A Dsrc_scan.py17 import re
152 drivers = re.findall(r'U_BOOT_DRIVER\((.*)\)', buff)
159 driver_aliases = re.findall(
/u-boot/scripts/dtc/libfdt/
A Dfdt_sw.c192 struct fdt_reserve_entry *re; in fdt_add_reservemap_entry() local
198 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry()
201 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry()
202 re->address = cpu_to_fdt64(addr); in fdt_add_reservemap_entry()
203 re->size = cpu_to_fdt64(size); in fdt_add_reservemap_entry()
205 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry()
A Dfdt_rw.c158 struct fdt_reserve_entry *re; in fdt_add_mem_rsv() local
163 re = fdt_mem_rsv_w_(fdt, fdt_num_mem_rsv(fdt)); in fdt_add_mem_rsv()
164 err = fdt_splice_mem_rsv_(fdt, re, 0, 1); in fdt_add_mem_rsv()
168 re->address = cpu_to_fdt64(address); in fdt_add_mem_rsv()
169 re->size = cpu_to_fdt64(size); in fdt_add_mem_rsv()
175 struct fdt_reserve_entry *re = fdt_mem_rsv_w_(fdt, n); in fdt_del_mem_rsv() local
182 return fdt_splice_mem_rsv_(fdt, re, 1, 0); in fdt_del_mem_rsv()
/u-boot/tools/binman/test/files/
A D2.dat1 Oh, don't bother apologising, I'm sorry you're alive
/u-boot/scripts/dtc/pylibfdt/
A Dsetup.py23 import re
27 RE_KEY_VALUE = re.compile('(?P<key>\w+) *(?P<plus>[+])?= *(?P<value>.*)$')
/u-boot/drivers/mtd/ubi/
A Dvtbl.c134 struct ubi_rename_entry *re; in ubi_vtbl_rename_volumes() local
136 list_for_each_entry(re, rename_list, list) { in ubi_vtbl_rename_volumes()
138 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes()
141 if (re->remove) { in ubi_vtbl_rename_volumes()
147 vtbl_rec->name_len = cpu_to_be16(re->new_name_len); in ubi_vtbl_rename_volumes()
148 memcpy(vtbl_rec->name, re->new_name, re->new_name_len); in ubi_vtbl_rename_volumes()
149 memset(vtbl_rec->name + re->new_name_len, 0, in ubi_vtbl_rename_volumes()
150 UBI_VOL_NAME_MAX + 1 - re->new_name_len); in ubi_vtbl_rename_volumes()

Completed in 38 milliseconds

123456