Home
last modified time | relevance | path

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

123

/scripts/dtc/libfdt/
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))
38 static inline uint16_t fdt16_to_cpu(fdt16_t x) in fdt16_to_cpu() argument
40 return (FDT_FORCE uint16_t)CPU_TO_FDT16(x); in fdt16_to_cpu()
[all …]
Dlibfdt_internal.h10 #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) argument
11 #define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE)) argument
/scripts/coccinelle/api/alloc/
Dzalloc-simple.cocci32 expression x;
37 * x = (T)\(kmalloc(E1, ...)\|vmalloc(E1)\|dma_alloc_coherent(...,E1,...)\|
40 if ((x==NULL) || ...) S
41 * memset((T2)x,0,E1);
49 expression x;
55 - x = kmalloc(E1,E2);
56 + x = kzalloc(E1,E2);
58 - x = (T *)kmalloc(E1,E2);
59 + x = kzalloc(E1,E2);
61 - x = (T)kmalloc(E1,E2);
[all …]
Dpool_zalloc-simple.cocci21 expression x;
25 * x = \(dma_pool_alloc\|pci_pool_alloc\)(...);
26 if ((x==NULL) || ...) S
27 * memset(x,0, ...);
34 expression x;
39 - x = dma_pool_alloc(a,b,c);
40 + x = dma_pool_zalloc(a,b,c);
41 if ((x==NULL) || ...) S
42 - memset(x,0,...);
45 expression x;
[all …]
/scripts/coccinelle/free/
Ddevm_free.cocci29 expression x;
33 x = devm_kmalloc(...)
35 x = devm_kvasprintf(...)
37 x = devm_kasprintf(...)
39 x = devm_kzalloc(...)
41 x = devm_kmalloc_array(...)
43 x = devm_kcalloc(...)
45 x = devm_kstrdup(...)
47 x = devm_kmemdup(...)
49 x = devm_get_free_pages(...)
[all …]
/scripts/coccinelle/misc/
Dnoderef.cocci18 expression *x;
25 x = <+... sizeof(
26 - x
27 + *x
30 f(...,(T)(x),...,sizeof(
31 - x
32 + *x
36 - x
37 + *x
38 ),...,(T)(x),...)
[all …]
Dbadty.cocci27 T **x;
30 x =
41 T **x;
44 x =
47 + *x
56 T **x;
60 x =
/scripts/coccinelle/api/
Datomic_as_refcounter.cocci14 identifier a, x;
26 atomic_dec_and_test@p1(&(a)->x)
28 atomic_dec_and_lock@p1(&(a)->x, ...)
30 atomic_long_dec_and_lock@p1(&(a)->x, ...)
32 atomic_long_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)
71 atomic_dec_and_lock@p1(&(a)->x, ...)
[all …]
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 …]
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 \)
42 ... when != \(x = E3 \| from = E3 \| to = E3 \)
43 - memcpy(to, from, x);
61 expression x,from,to;
67 * x = strlen(from) + 1;
68 ... when != \( x = E1 \| from = E1 \)
[all …]
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/
Ditnull.cocci24 expression x,E,E1,E2;
28 I(x,...) { <...
30 - if (x == NULL && ...) S
32 - if (x != NULL || ...)
35 - (x == NULL) ||
38 - (x != NULL) &&
41 - (x == NULL && ...) ? E1 :
44 - (x != NULL || ...) ?
48 - if (x == NULL && ...) S1 else
51 - if (x != NULL || ...)
[all …]
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/
Dodd_ptr_err.cocci18 expression x,e;
22 if (IS_ERR(x=e) || ...) {
24 PTR_ERR@p(x)
29 expression x,e1,e2;
33 if (IS_ERR(x) || ...) {
36 PTR_ERR@p(\(e1 ? e2 : x\|e1 ? x : e2\))
38 PTR_ERR@p(x)
44 expression x,y;
48 if (IS_ERR(x) || ...) {
52 PTR_ERR(x)
[all …]
/scripts/tracing/
Dftrace-bisect.sh84 x=`cat $full | wc -l`
85 if [ $x -eq 1 ]; then
91 let x=$x/2
92 let y=$x+1
115 sed -ne "1,${x}p" $full > $test
/scripts/
Dsortextable.c112 static uint64_t r8be(const uint64_t *x) in r8be() argument
114 return get_unaligned_be64(x); in r8be()
116 static uint32_t rbe(const uint32_t *x) in rbe() argument
118 return get_unaligned_be32(x); in rbe()
120 static uint16_t r2be(const uint16_t *x) in r2be() argument
122 return get_unaligned_be16(x); in r2be()
124 static uint64_t r8le(const uint64_t *x) in r8le() argument
126 return get_unaligned_le64(x); in r8le()
128 static uint32_t rle(const uint32_t *x) in rle() argument
130 return get_unaligned_le32(x); in rle()
[all …]
Drecordmcount.c359 static uint64_t w8rev(uint64_t const x) in w8rev() argument
361 return ((0xff & (x >> (0 * 8))) << (7 * 8)) in w8rev()
362 | ((0xff & (x >> (1 * 8))) << (6 * 8)) in w8rev()
363 | ((0xff & (x >> (2 * 8))) << (5 * 8)) in w8rev()
364 | ((0xff & (x >> (3 * 8))) << (4 * 8)) in w8rev()
365 | ((0xff & (x >> (4 * 8))) << (3 * 8)) in w8rev()
366 | ((0xff & (x >> (5 * 8))) << (2 * 8)) in w8rev()
367 | ((0xff & (x >> (6 * 8))) << (1 * 8)) in w8rev()
368 | ((0xff & (x >> (7 * 8))) << (0 * 8)); in w8rev()
371 static uint32_t w4rev(uint32_t const x) in w4rev() argument
[all …]
Dcheckstack.pl38 my (@stack, $re, $dre, $x, $xs, $funcre);
46 $x = "[0-9a-f]"; # hex character
48 $funcre = qr/^$x* <(.*)>:$/;
53 $dre = qr/^.*sub.*sp, sp, #(0x$x{1,8})/o;
61 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o;
83 $re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
87 $re = qr/.*st[dw]u.*r1,-($x{1,8})\(r1\)/o;
Dinsert-sys-cert.c70 Elf_Shdr *x; in get_offset_from_address() local
73 x = (void *)hdr + hdr->e_shoff; in get_offset_from_address()
75 num_sections = x[0].sh_size; in get_offset_from_address()
80 unsigned long start = x[i].sh_addr; in get_offset_from_address()
81 unsigned long end = start + x[i].sh_size; in get_offset_from_address()
82 unsigned long offset = x[i].sh_offset; in get_offset_from_address()
138 Elf_Shdr *x; in find_elf_symbol() local
141 x = (void *)hdr + hdr->e_shoff; in find_elf_symbol()
145 strtab = (void *)hdr + x[link].sh_offset; in find_elf_symbol()
163 Elf_Shdr *x; in get_symbol_from_table() local
[all …]
/scripts/gdb/linux/
Dconstants.py.in24 #define STRING(x) #x
25 #define XSTRING(x) STRING(x)
27 #define LX_VALUE(x) LX_##x = x
28 #define LX_GDBPARSED(x) LX_##x = gdb.parse_and_eval(XSTRING(x))
35 #define LX_CONFIG(x) LX_##x = IS_BUILTIN(x)
/scripts/coccinelle/null/
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)
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/
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()
Ddialog.h43 #define MIN(x,y) (x < y ? x : y) argument
44 #define MAX(x,y) (x > y ? x : y) argument
201 void end_dialog(int x, int y);
204 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
205 void print_button(WINDOW * win, const char *label, int y, int x, int selected);
207 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
209 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
/scripts/gcc-plugins/
Drandomize_layout_plugin.c144 #define rot(x,k) (((x)<<(k))|((x)>>(64-(k)))) argument
145 static u64 ranval(ranctx *x) { in ranval() argument
146 u64 e = x->a - rot(x->b, 7); in ranval()
147 x->a = x->b ^ rot(x->c, 13); in ranval()
148 x->b = x->c + rot(x->d, 37); in ranval()
149 x->c = x->d + e; in ranval()
150 x->d = e + x->a; in ranval()
151 return x->d; in ranval()
154 static void raninit(ranctx *x, u64 *seed) { in raninit() argument
157 x->a = seed[0]; in raninit()
[all …]

123