/scripts/coccinelle/api/ |
D | d_find_alias.cocci | 15 @r exists@ 45 local idexpression struct dentry *r.dent; 46 position r.p1,r.p2; 58 p1 << r.p1; 59 p2 << r.p2; 65 local idexpression struct dentry *r.dent; 66 position r.p2; 77 p1 << r.p1; 78 p2 << r.p2;
|
D | pm_runtime.cocci | 85 @r depends on (org || report) exists@ 99 p1 << r.p1; 100 p2 << r.p2; 101 pm_runtime_api << r.pm_runtime_api; 108 p1 << r.p1; 109 p2 << r.p2; 110 pm_runtime_api << r.pm_runtime_api;
|
D | err_cast.cocci | 35 @r depends on !context && !patch && (org || report)@ 43 p << r.p; 44 x << r.x; 52 p << r.p; 53 x << r.x;
|
/scripts/atomic/fallbacks/ |
D | try_cmpxchg | 5 ${int} r, o = *old; 6 r = ${atomic}_cmpxchg${order}(v, o, new); 7 if (unlikely(r != o)) 8 *old = r; 9 return likely(r == o);
|
/scripts/coccinelle/misc/ |
D | doubleinit.cocci | 17 @r@ 26 identifier I, s, r.fld; 27 position r.p0,p; 34 p0 << r.p0; 35 fld << r.fld; 37 pr << r.p; 43 cocci.print_secs("r",pr) 46 p0 << r.p0; 47 fld << r.fld; 49 pr << r.p;
|
D | orplus.cocci | 17 @r@ 30 constant r.c, r.c1; 54 position r.p; 61 p << r.p; 67 p << r.p;
|
D | cstptr.cocci | 16 @r exists@ 29 p1 << r.p1; 30 p2 << r.p2; 37 p1 << r.p1; 38 p2 << r.p2;
|
D | of_table.cocci | 52 @r depends on org || report@ 74 p1 << r.p1; 75 arr << r.arr; 81 p1 << r.p1; 82 arr << r.arr;
|
D | boolconv.cocci | 46 @r depends on !patch@ 75 @script:python depends on r&&org@ 76 p << r.p; 86 @script:python depends on r&&report@ 87 p << r.p;
|
D | ifcol.cocci | 22 @r disable braces4@ 34 p1 << r.p1; 35 p2 << r.p2; 43 p1 << r.p1; 44 p2 << r.p2;
|
/scripts/coccinelle/iterators/ |
D | list_entry_update.cocci | 19 @r exists@ 29 position r.p1,r.p2; 41 position r.p1,r.p2; 50 p1 << r.p1; 51 p2 << r.p2; 58 p1 << r.p1; 59 p2 << r.p2;
|
D | device_node_continue.cocci | 19 @r exists@ 59 local idexpression r.n; 61 position r.p1,r.p2; 72 position r.p2; 81 position r.p2;
|
/scripts/coccinelle/locks/ |
D | flags.cocci | 16 @r exists@ 44 expression f <= r.flags; 46 position r.p1, r.p2; 68 p1 << r.p1; 69 p2 << r.p2; 76 p1 << r.p1; 77 p2 << r.p2;
|
D | double_lock.cocci | 64 @r depends on !balanced exists@ 78 p1 << r.p1; 79 p2 << r.p2; 80 lock << r.lock; 87 p1 << r.p1; 88 p2 << r.p2; 89 lock << r.lock;
|
D | mini_lock.cocci | 57 position r; 60 for(...;...;...) { <+... return@r ...; ...+> } 66 position r!=looped.r; 75 * return@r ...; 85 p2 << err.r; 95 p2 << err.r;
|
/scripts/coccinelle/tests/ |
D | doubletest.cocci | 19 @r expression@ 31 expression r.E,e1,e2,fn; 32 position r.p; 43 expression r.E; 44 position r.p; 50 p << r.p; 56 p << r.p;
|
/scripts/ |
D | sortextable.c | 163 static uint32_t (*r)(const uint32_t *); variable 192 return r(&symtab_shndx_start[sym_offs]); in get_secindex() 202 int32_t av = (int32_t)r(a); in compare_relative_table() 203 int32_t bv = (int32_t)r(b); in compare_relative_table() 220 w(r(loc) + i, loc); in x86_sort_relative_table() 221 w(r(loc + 1) + i + 4, loc + 1); in x86_sort_relative_table() 222 w(r(loc + 2) + i + 8, loc + 2); in x86_sort_relative_table() 233 w(r(loc) - i, loc); in x86_sort_relative_table() 234 w(r(loc + 1) - (i + 4), loc + 1); in x86_sort_relative_table() 235 w(r(loc + 2) - (i + 8), loc + 2); in x86_sort_relative_table() [all …]
|
D | checkkconfigsymbols.py | 22 OPERATORS = r"&|\(|\)|\||\!" 23 SYMBOL = r"(?:\w*[A-Z0-9]\w*){2,}" 24 DEF = r"^\s*(?:menu){,1}config\s+(" + SYMBOL + r")\s*" 25 EXPR = r"(?:" + OPERATORS + r"|\s|" + SYMBOL + r")+" 26 DEFAULT = r"default\s+.*?(?:if\s.+){,1}" 27 STMT = r"^\s*(?:if|select|imply|depends\s+on|(?:" + DEFAULT + r"))\s+" + EXPR 28 SOURCE_SYMBOL = r"(?:\W|\b)+[D]{,1}CONFIG_(" + SYMBOL + r")" 31 REGEX_FILE_KCONFIG = re.compile(r".*Kconfig[\.\w+\-]*$") 32 REGEX_SYMBOL = re.compile(r'(?!\B)' + SYMBOL + r'(?!\B)') 37 REGEX_KCONFIG_HELP = re.compile(r"^\s+(help|---help---)\s*$") [all …]
|
D | tags.sh | 221 local mode=$1 lang tmp=() r 231 for r in "${tmp[@]}"; do 236 case "$r" in 238 r=${r%?/} 241 case "$r" in 244 r="/^[^#]*${r#/}"
|
D | sortextable.h | 74 # define _r r 123 secindex_strings = r(&shdr[0].sh_link); in do_func() 128 idx = r(&shdr[i].sh_name); in do_func() 133 if ((r(&shdr[i].sh_type) == SHT_REL || in do_func() 134 r(&shdr[i].sh_type) == SHT_RELA) && in do_func() 135 r(&shdr[i].sh_info) == extab_index) { in do_func() 143 if (r(&shdr[i].sh_type) == SHT_SYMTAB_SHNDX) in do_func() 183 idx = r(&sym->st_name); in do_func()
|
/scripts/kconfig/ |
D | menu.c | 701 static void get_prompt_str(struct gstr *r, struct property *prop, in get_prompt_str() argument 708 str_printf(r, "Prompt: %s\n", prop->text); in get_prompt_str() 741 str_printf(r, " Location:\n"); in get_prompt_str() 745 jump->offset = strlen(r->s); in get_prompt_str() 746 str_printf(r, "%*c-> %s", j, ' ', in get_prompt_str() 749 str_printf(r, " (%s [=%s])", menu->sym->name ? in get_prompt_str() 753 str_append(r, "\n"); in get_prompt_str() 770 static void get_symbol_props_str(struct gstr *r, struct symbol *sym, in get_symbol_props_str() argument 778 str_append(r, prefix); in get_symbol_props_str() 781 str_printf(r, " && "); in get_symbol_props_str() [all …]
|
/scripts/genksyms/ |
D | keywords.c | 69 struct resword *r = keywords + i; in is_reserved_word() local 70 int l = strlen(r->name); in is_reserved_word() 71 if (len == l && !memcmp(str, r->name, len)) in is_reserved_word() 72 return r->token; in is_reserved_word()
|
/scripts/coccinelle/null/ |
D | eno.cocci | 26 @r depends on !patch exists@ 36 p1 << r.p1; 37 p2 << r.p2; 44 p1 << r.p1; 45 p2 << r.p2;
|
/scripts/mod/ |
D | modpost.c | 1055 Elf_Rela *r, Elf_Sym *sym, const char *fromsec); 1061 Elf_Rela *r, Elf_Sym *sym, 1404 char *r = p; in sec2annotation() local 1421 return r; in sec2annotation() 1604 Elf_Rela *r, Elf_Sym *sym, const char *fromsec) in default_mismatch_handler() argument 1612 from = find_elf_symbol2(elf, r->r_offset, fromsec); in default_mismatch_handler() 1619 to = find_elf_symbol(elf, r->r_addend, sym); in default_mismatch_handler() 1626 fromsec, r->r_offset, fromsym, in default_mismatch_handler() 1645 static void find_extable_entry_size(const char* const sec, const Elf_Rela* r) in find_extable_entry_size() argument 1657 extable_entry_size = r->r_offset * 2; in find_extable_entry_size() [all …]
|
/scripts/coccinelle/api/alloc/ |
D | pool_zalloc-simple.cocci | 59 @r depends on org || report@ 71 p << r.p; 72 x << r.x; 80 p << r.p; 81 x << r.x;
|