Lines Matching full:re

16 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), ' '),
90 (KernRe(r'\s*____cacheline_aligned', re.S), ' '),
111 # Python re module, as it has:
126 (KernRe(r'\bstruct_group\s*\(([^,]*,)', re.S), r'STRUCT_GROUP('),
127 (KernRe(r'\bstruct_group_attr\s*\(([^,]*,){2}', re.S), r'STRUCT_GROUP('),
128 (KernRe(r'\bstruct_group_tagged\s*\(([^,]*),([^,]*),', re.S), r'struct \1 \2; STRUCT_GROUP('),
129 (KernRe(r'\b__struct_group\s*\(([^,]*,){3}', re.S), r'STRUCT_GROUP('),
138 (KernRe(r'__ETHTOOL_DECLARE_LINK_MODE_MASK\s*\(([^\)]+)\)', re.S),
140 (KernRe(r'DECLARE_PHY_INTERFACE_MASK\s*\(([^\)]+)\)', re.S),
143 re.S), r'unsigned long \1[BITS_TO_LONGS(\2)]'),
145 re.S), r'unsigned long \1[1 << ((\2) - 1)]'),
147 r',\s*' + struct_args_pattern + r'\)', re.S), r'\2 *\1'),
149 struct_args_pattern + r'\)', re.S), r'\2 *\1'),
151 struct_args_pattern + r'\)', re.S), r'\1 \2[]'),
152 (KernRe(r'DEFINE_DMA_UNMAP_ADDR\s*\(' + struct_args_pattern + r'\)', re.S), r'dma_addr_t \1'),
153 (KernRe(r'DEFINE_DMA_UNMAP_LEN\s*\(' + struct_args_pattern + r'\)', re.S), r'__u32 \1'),
161 (re.compile(r'\bSTRUCT_GROUP\('), r'\1'),
187 (KernRe(r"__(?:re)?alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +"), ""),
217 text = KernRe(r'/\*\s*private:.*?/\*\s*public:.*?\*/', flags=re.S).sub('', text)
218 text = KernRe(r'/\*\s*private:.*', flags=re.S).sub('', text)
222 return KernRe(r'\s*/\*.*?\*/\s*', flags=re.S).sub('', text).strip()
575 args[0] = re.sub(r'(\*+)\s*', r' \1', args[0])
826 members = re.sub(r'(\{[^\{\}]*\})', '', members)
845 proto = KernRe(r'#\s*((define|ifdef|if)\s+|endif)[^;]*;', flags=re.S).sub('', proto)
956 # 1. Return type (may be nothing if we're looking at a macro)
1141 # Otherwise we're looking for a normal kerneldoc declaration line.
1330 # Add the trimmed result to the section and we're done.
1384 proto = re.sub(r'[\r\n]+', ' ', proto)
1456 line = KernRe(r"//.*$", re.S).sub('', line)
1492 # ... and we're done
1501 line = KernRe(r"//.*$", re.S).sub('', line).strip()