Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 44) sorted by relevance

12

/scripts/coccinelle/api/alloc/
Dkzalloc-simple.cocci30 expression x;
35 * x = (T)kmalloc(E1,E2);
36 if ((x==NULL) || ...) S
37 * memset((T2)x,0,E1);
45 expression x;
50 - x = (T)kmalloc(E1,E2);
51 + x = kzalloc(E1,E2);
52 if ((x==NULL) || ...) S
53 - memset((T2)x,0,E1);
61 expression x;
[all …]
/scripts/coccinelle/api/
Derr_cast.cocci22 expression x;
25 * ERR_PTR(PTR_ERR(x))
28 expression x;
31 - ERR_PTR(PTR_ERR(x))
32 + ERR_CAST(x)
35 expression x;
39 ERR_PTR@p(PTR_ERR(x))
43 x << r.x;
46 msg="WARNING ERR_CAST can be used with %s" % (x)
52 x << r.x;
[all …]
Dkstrdup.cocci30 expression x,from,to;
35 - x = strlen(from) + 1;
36 ... when != \( x = E1 \| from = E1 \)
37 - to = \(kmalloc\|kzalloc\)(x,flag);
39 ... when != \(x = E2 \| from = E2 \| to = E2 \)
41 ... when != \(x = E3 \| from = E3 \| to = E3 \)
42 - memcpy(to, from, x);
60 expression x,from,to;
66 * x = strlen(from) + 1;
67 ... when != \( x = E1 \| from = E1 \)
[all …]
Dresource_size.cocci63 x << r_org.res;
66 msg="ERROR with %s" % (x)
72 x << r_org.res;
75 msg="ERROR: Missing resource_size with %s" % (x)
80 x << rbad_org.res;
83 msg="WARNING with %s" % (x)
89 x << rbad_org.res;
92 msg="WARNING: Suspicious code. resource_size is maybe missing with %s" % (x)
Dmemdup.cocci25 expression x,from,to;
30 x = strlen(from) + 1;
31 ... when != \( x = E1 \| from = E1 \)
32 to = \(kmalloc@p\|kzalloc@p\)(x,flag);
/scripts/coccinelle/iterators/
Ditnull.cocci23 expression x,E,E1,E2;
27 I(x,...) { <...
29 - if (x == NULL && ...) S
31 - if (x != NULL || ...)
34 - (x == NULL) ||
37 - (x != NULL) &&
40 - (x == NULL && ...) ? E1 :
43 - (x != NULL || ...) ?
47 - if (x == NULL && ...) S1 else
50 - if (x != NULL || ...)
[all …]
Dlist_entry_update.cocci20 expression x,E;
24 list_for_each_entry@p1(x,...) { <... x =@p2 E ...> }
27 expression x,E;
32 *x =@p2 E
34 list_for_each_entry@p1(x,...) S
39 expression x,E;
44 x =@p2 E
46 list_for_each_entry@p1(x,...) S
/scripts/dtc/libfdt/
Dlibfdt_env.h8 #define _B(n) ((unsigned long long)((uint8_t *)&x)[n])
9 static inline uint32_t fdt32_to_cpu(uint32_t x) in fdt32_to_cpu() argument
13 #define cpu_to_fdt32(x) fdt32_to_cpu(x) argument
15 static inline uint64_t fdt64_to_cpu(uint64_t x) in fdt64_to_cpu() argument
20 #define cpu_to_fdt64(x) fdt64_to_cpu(x) argument
Dlibfdt_internal.h55 #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) argument
56 #define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE)) argument
/scripts/
Drecordmcount.c190 static uint64_t w8rev(uint64_t const x) in w8rev() argument
192 return ((0xff & (x >> (0 * 8))) << (7 * 8)) in w8rev()
193 | ((0xff & (x >> (1 * 8))) << (6 * 8)) in w8rev()
194 | ((0xff & (x >> (2 * 8))) << (5 * 8)) in w8rev()
195 | ((0xff & (x >> (3 * 8))) << (4 * 8)) in w8rev()
196 | ((0xff & (x >> (4 * 8))) << (3 * 8)) in w8rev()
197 | ((0xff & (x >> (5 * 8))) << (2 * 8)) in w8rev()
198 | ((0xff & (x >> (6 * 8))) << (1 * 8)) in w8rev()
199 | ((0xff & (x >> (7 * 8))) << (0 * 8)); in w8rev()
202 static uint32_t w4rev(uint32_t const x) in w4rev() argument
[all …]
Dcheckstack.pl37 my (@stack, $re, $dre, $x, $xs);
45 $x = "[0-9a-f]"; # hex character
56 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%esp$/o;
60 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%rsp$/o;
76 $re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
79 $re = qr/.*stwu.*r1,-($x{1,8})\(r1\)/o;
82 $re = qr/.*stdu.*r1,-($x{1,8})\(r1\)/o;
84 $re = qr/.*st[dw]u.*r1,-($x{1,8})\(r1\)/o;
99 $re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o;
112 my $funcre = qr/^$x* <(.*)>:$/;
Dkernel-doc1456 my $x = shift;
1460 if ($x =~ /(struct|union)\s+(\w+)\s*{(.*)}/) {
1503 my $x = shift;
1506 $x =~ s@/\*.*?\*/@@gos; # strip comments.
1507 $x =~ s/^#\s*define\s+.*$//; # strip #define macros inside enums
1509 if ($x =~ /enum\s+(\w+)\s*{(.*)}/) {
1542 my $x = shift;
1545 $x =~ s@/\*.*?\*/@@gos; # strip comments.
1546 while (($x =~ /\(*.\)\s*;$/) || ($x =~ /\[*.\]\s*;$/)) {
1547 $x =~ s/\(*.\)\s*;$/;/;
[all …]
Dpatch-kernel209 if [ x$EXTRAVERSION != "x" ]
233 if [ x$EXTRAVER != "x" ]; then
239 if [ x$EXTRAVER != "x" ]; then
257 if [ x$STOPFULLVERSION = x$CURRENTFULLVERSION ]; then
300 if [ x$gotac != x ]; then
/scripts/coccinelle/null/
Deno.cocci17 expression x,E;
20 x = \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmallo…
21 ... when != x = E
22 - IS_ERR(x)
23 + !x
26 expression x,E;
30 *x = \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_al…
31 ... when != x = E
32 * IS_ERR@p2(x)
Dkmerr.cocci20 expression x;
25 x@p = f(...);
26 ... when != x->fld
27 \(x == NULL \| x != NULL\)
30 expression x,x1;
37 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
45 expression x,x1;
53 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
/scripts/coccinelle/free/
Ddevm_free.cocci28 expression x;
32 x = devm_kzalloc(...)
34 x = devm_request_irq(...)
36 x = devm_ioremap(...)
38 x = devm_ioremap_nocache(...)
40 x = devm_ioport_map(...)
44 expression r.x;
49 * kfree@p(x)
51 * free_irq@p(x)
53 * iounmap@p(x)
[all …]
/scripts/kconfig/lxdialog/
Ddialog.h62 #define MIN(x,y) (x < y ? x : y) argument
63 #define MAX(x,y) (x > y ? x : y) argument
198 void end_dialog(int x, int y);
201 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
202 void print_button(WINDOW * win, const char *label, int y, int x, int selected);
204 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
206 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
Dyesno.c29 int x = width / 2 - 10; in print_buttons() local
32 print_button(dialog, gettext(" Yes "), y, x, selected == 0); in print_buttons()
33 print_button(dialog, gettext(" No "), y, x + 13, selected == 1); in print_buttons()
35 wmove(dialog, y, x + 1 + 13 * selected); in print_buttons()
44 int i, x, y, key = 0, button = 0; in dialog_yesno() local
54 x = (COLS - width) / 2; in dialog_yesno()
57 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
59 dialog = newwin(height, width, y, x); in dialog_yesno()
Dchecklist.c66 int y, int x, int height) in print_arrows() argument
68 wmove(win, y, x); in print_arrows()
83 wmove(win, y, x); in print_arrows()
103 int x = width / 2 - 11; in print_buttons() local
106 print_button(dialog, gettext("Select"), y, x, selected == 0); in print_buttons()
107 print_button(dialog, gettext(" Help "), y, x + 14, selected == 1); in print_buttons()
109 wmove(dialog, y, x + 1 + 14 * selected); in print_buttons()
120 int i, x, y, box_x, box_y; in dialog_checklist() local
143 x = (COLS - width) / 2; in dialog_checklist()
146 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
[all …]
Dinputbox.c31 int x = width / 2 - 11; in print_buttons() local
34 print_button(dialog, gettext(" Ok "), y, x, selected == 0); in print_buttons()
35 print_button(dialog, gettext(" Help "), y, x + 14, selected == 1); in print_buttons()
37 wmove(dialog, y, x + 1 + 14 * selected); in print_buttons()
47 int i, x, y, box_y, box_x, box_width; in dialog_inputbox() local
64 x = (COLS - width) / 2; in dialog_inputbox()
67 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
69 dialog = newwin(height, width, y, x); in dialog_inputbox()
88 getyx(dialog, y, x); in dialog_inputbox()
Dmenubox.c111 static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x, in print_arrows() argument
118 wmove(win, y, x); in print_arrows()
133 wmove(win, y, x); in print_arrows()
157 int x = width / 2 - 16; in print_buttons() local
160 print_button(win, gettext("Select"), y, x, selected == 0); in print_buttons()
161 print_button(win, gettext(" Exit "), y, x + 12, selected == 1); in print_buttons()
162 print_button(win, gettext(" Help "), y, x + 24, selected == 2); in print_buttons()
164 wmove(win, y, x + 1 + 12 * selected); in print_buttons()
185 int i, j, x, y, box_x, box_y; in dialog_menu() local
204 x = (COLS - width) / 2; in dialog_menu()
[all …]
/scripts/dtc/
Ddata.c73 char x[4]; in get_oct_char() local
77 x[3] = '\0'; in get_oct_char()
78 strncpy(x, s + *i, 3); in get_oct_char()
80 val = strtol(x, &endx, 8); in get_oct_char()
82 assert(endx > x); in get_oct_char()
84 (*i) += endx - x; in get_oct_char()
90 char x[3]; in get_hex_char() local
94 x[2] = '\0'; in get_hex_char()
95 strncpy(x, s + *i, 2); in get_hex_char()
97 val = strtol(x, &endx, 16); in get_hex_char()
[all …]
/scripts/coccinelle/locks/
Ddouble_lock.cocci44 expression x <= locked.E1;
55 when != \(x = E2\|&x\)
64 expression x <= locked.E1;
73 when != \(x = E2\|&x\)
/scripts/kconfig/
Dnconf.gui.c153 { int length, x, y; in print_in_middle() local
159 getyx(win, y, x); in print_in_middle()
161 x = startx; in print_in_middle()
169 x = startx + (int)temp; in print_in_middle()
171 mvwprintw(win, y, x, "%s", string); in print_in_middle()
216 int x, y; in fill_window() local
220 getmaxyx(win, y, x); in fill_window()
224 char tmp[x+10]; in fill_window()
227 strncpy(tmp, line, min(len, x)); in fill_window()
255 int i, x, y; in btn_dialog() local
[all …]
/scripts/mod/
Dmodpost.h77 #define TO_NATIVE(x) \ argument
79 typeof(x) __x; \
80 __endian(&(x), &(__x), sizeof(__x)); \
86 #define TO_NATIVE(x) (x) argument

12