Home
last modified time | relevance | path

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

1234

/scripts/dtc/libfdt/
A Dlibfdt_env.h29 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument
30 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument
31 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ argument
32 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3))
33 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ argument
34 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \
35 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \
36 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7))
44 return (FDT_FORCE fdt16_t)CPU_TO_FDT16(x); in cpu_to_fdt16()
53 return (FDT_FORCE fdt32_t)CPU_TO_FDT32(x); in cpu_to_fdt32()
[all …]
/scripts/coccinelle/api/alloc/
A Dzalloc-simple.cocci158 x << r.x;
167 x << r.x;
188 x << r1.x;
197 x << r1.x;
218 x << r2.x;
227 x << r2.x;
248 x << r3.x;
257 x << r3.x;
278 x << r4.x;
287 x << r4.x;
[all …]
A Dpool_zalloc-simple.cocci21 expression x;
27 * memset(x,0, ...);
34 expression x;
42 - memset(x,0,...);
45 expression x;
53 - memset(x,0,...);
60 expression x;
68 memset(x,0, ...);
72 x << r.x;
75 msg="%s" % (x)
[all …]
/scripts/coccinelle/free/
A Ddevm_free.cocci29 expression x;
59 expression x;
90 kfree@p(x)
98 free_page@p(x)
100 free_irq@p(x)
102 iounmap@p(x)
108 expression r.x;
113 * kfree@p(x)
121 * free_page@p(x)
123 * free_irq@p(x)
[all …]
/scripts/coccinelle/misc/
A Dnoderef.cocci26 - x
27 + *x
31 - x
36 - x
41 - x
46 - x
60 *x = <+... sizeof@p(x) ...+>
62 *f(...,(T)(x),...,sizeof@p(x),...)
64 *f(...,sizeof@p(x),...,(T)(x),...)
66 *f(...,(T)(x),...,i*sizeof@p(x),...)
[all …]
A Dminmax.cocci22 expression x, y;
30 * ((x) cmp@p (y) ? (x) : (y))
36 expression x, y;
57 expression x;
64 return ((x) cmp@p 0 ? (x) : 0);
70 expression x, y;
78 * ((x) cmp@p (y) ? (x) : (y))
110 - ((x) cmp (y) ? (x) : (y))
111 + max(x, y)
144 - ((x) cmp@p (y) ? (x) : (y))
[all …]
/scripts/coccinelle/api/
A Datomic_as_refcounter.cocci14 identifier a, x;
26 atomic_dec_and_test@p1(&(a)->x)
34 atomic64_dec_and_test@p1(&(a)->x)
36 local_dec_and_test@p1(&(a)->x)
62 identifier a, x, y;
69 atomic_dec_and_test@p1(&(a)->x)
77 atomic64_dec_and_test@p1(&(a)->x)
79 local_dec_and_test@p1(&(a)->x)
95 identifier a, x;
100 atomic_add_unless(&(a)->x,-1,1)@p1
[all …]
A Derr_cast.cocci23 expression x;
26 * ERR_PTR(PTR_ERR(x))
29 expression x;
32 - ERR_PTR(PTR_ERR(x))
33 + ERR_CAST(x)
36 expression x;
40 ERR_PTR@p(PTR_ERR(x))
44 x << r.x;
47 msg="WARNING ERR_CAST can be used with %s" % (x)
53 x << r.x;
[all …]
A Dkvmalloc.cocci27 identifier x;
60 ... when != x = E1
63 * if (x == NULL)@p {
117 - if (x == NULL)
122 - if (x == NULL)
149 - if (x == NULL)
154 - if (x == NULL)
181 - if (x == NULL)
186 - if (x == NULL)
213 - if (x == NULL)
[all …]
A Dkstrdup.cocci31 expression x,from,to;
36 - x = strlen(from) + 1;
37 ... when != \( x = E1 \| from = E1 \)
38 - to = \(kmalloc\|kzalloc\)(x,flag);
40 ... when != \(x = E2 \| from = E2 \| to = E2 \)
43 - memcpy(to, from, x);
61 expression x,from,to;
67 * x = strlen(from) + 1;
68 ... when != \( x = E1 \| from = E1 \)
69 * to = \(kmalloc@p1\|kzalloc@p1\)(x,flag);
[all …]
A Dresource_size.cocci64 x << r_org.res;
67 msg="ERROR with %s" % (x)
73 x << r_org.res;
76 msg="ERROR: Missing resource_size with %s" % (x)
81 x << rbad_org.res;
84 msg="WARNING with %s" % (x)
90 x << rbad_org.res;
93 msg="WARNING: Suspicious code. resource_size is maybe missing with %s" % (x)
/scripts/coccinelle/iterators/
A Ditnull.cocci24 expression x,E,E1,E2;
28 I(x,...) { <...
35 - (x == NULL) ||
38 - (x != NULL) &&
56 x == NULL
60 x != NULL
67 expression x,E;
71 *I@p1(x,...)
72 { ... when != x = E
74 * x@p2 == NULL
[all …]
A Dlist_entry_update.cocci21 expression x,E;
25 list_for_each_entry@p1(x,...) { <... x =@p2 E ...> }
28 expression x,E;
33 *x =@p2 E
35 list_for_each_entry@p1(x,...) S
40 expression x,E;
45 x =@p2 E
47 list_for_each_entry@p1(x,...) S
/scripts/coccinelle/tests/
A Dodd_ptr_err.cocci18 expression x,e;
24 PTR_ERR@p(x)
29 expression x,e1,e2;
36 PTR_ERR@p(\(e1 ? e2 : x\|e1 ? x : e2\))
38 PTR_ERR@p(x)
44 expression x,y;
52 PTR_ERR(x)
56 + x
66 expression x, y;
74 PTR_ERR(x)
[all …]
/scripts/mod/
A Dmodpost.h55 #define bswap(x) \ argument
57 _Static_assert(sizeof(x) == 1 || sizeof(x) == 2 || \
58 sizeof(x) == 4 || sizeof(x) == 8, "bug"); \
59 (typeof(x))(sizeof(x) == 2 ? bswap_16(x) : \
60 sizeof(x) == 4 ? bswap_32(x) : \
61 sizeof(x) == 8 ? bswap_64(x) : \
62 x); \
65 #define TO_NATIVE(x) \ argument
66 (target_is_big_endian == host_is_big_endian ? x : bswap(x))
69 const struct { type x; } __attribute__((__packed__)) *__pptr = \
[all …]
/scripts/tracing/
A Dftrace-bisect.sh102 x=`cat $full | wc -l`
103 if [ $x -eq 1 ]; then
109 let x=$x/2
110 let y=$x+1
133 sed -ne "1,${x}p" $full > $test
/scripts/coccinelle/null/
A Deno.cocci18 expression x,E;
21 x = \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmallo…
22 ... when != x = E
23 - IS_ERR(x)
24 + !x
27 expression x,E;
31 *x = \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_al…
32 ... when != x = E
33 * IS_ERR@p2(x)
A Dkmerr.cocci21 expression x;
26 x@p = f(...);
27 ... when != x->fld
28 \(x == NULL \| x != NULL\)
31 expression x,x1;
38 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
46 expression x,x1;
54 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
/scripts/kconfig/lxdialog/
A Dyesno.c16 int x = width / 2 - 10; in print_buttons() local
19 print_button(dialog, " Yes ", y, x, selected == 0); in print_buttons()
20 print_button(dialog, " No ", y, x + 13, selected == 1); in print_buttons()
22 wmove(dialog, y, x + 1 + 13 * selected); in print_buttons()
31 int i, x, y, key = 0, button = 0; in dialog_yesno() local
41 x = (getmaxx(stdscr) - width) / 2; in dialog_yesno()
44 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
46 dialog = newwin(height, width, y, x); in dialog_yesno()
A Ddialog.h27 #define MIN(x,y) (x < y ? x : y) argument
28 #define MAX(x,y) (x > y ? x : y) argument
181 void end_dialog(int x, int y);
184 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
185 void print_button(WINDOW * win, const char *label, int y, int x, int selected);
187 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
189 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
/scripts/
A Dextract-fwblobs14 grep -w rodata | awk '{print "0x"$5" 0x"$6}' )"
17 awk -n '/fw_end/ { end=$2 ; print name " 0x" start " 0x" end; } { start=$2; name=$8; }')"
A Dcheckstack.pl40 my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
53 $x = "[0-9a-f]"; # hex character
55 $funcre = qr/^$x* <(.*)>:$/;
60 $dre = qr/^.*sub.*sp, sp, #(0x$x{1,8})/o;
69 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o;
88 $re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
92 $re = qr/.*st[dw]u.*r1,-($x{1,8})\(r1\)/o;
141 next if $line !~ m/^($x*)/;
A Drust_is_available_bindgen_libclang_concat.h2 #define F(x) int x##x argument
A Drecordmcount.c373 static uint64_t w8rev(uint64_t const x) in w8rev() argument
375 return ((0xff & (x >> (0 * 8))) << (7 * 8)) in w8rev()
376 | ((0xff & (x >> (1 * 8))) << (6 * 8)) in w8rev()
385 static uint32_t w4rev(uint32_t const x) in w4rev() argument
393 static uint32_t w2rev(uint16_t const x) in w2rev() argument
399 static uint64_t w8nat(uint64_t const x) in w8nat() argument
401 return x; in w8nat()
404 static uint32_t w4nat(uint32_t const x) in w4nat() argument
406 return x; in w4nat()
409 static uint32_t w2nat(uint16_t const x) in w2nat() argument
[all …]
/scripts/gdb/linux/
A Dconstants.py.in30 #define STRING(x) #x
31 #define XSTRING(x) STRING(x)
33 #define LX_VALUE(x) LX_##x = x
34 #define LX_GDBPARSED(x) LX_##x = gdb.parse_and_eval(XSTRING(x))
41 #define LX_CONFIG(x) LX_##x = IS_BUILTIN(x)

Completed in 18 milliseconds

1234