Home
last modified time | relevance | path

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

123

/scripts/dtc/libfdt/
Dlibfdt_env.h71 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument
72 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument
73 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ argument
74 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3))
75 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ argument
76 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \
77 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \
78 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7))
80 static inline uint16_t fdt16_to_cpu(fdt16_t x) in fdt16_to_cpu() argument
82 return (__force uint16_t)CPU_TO_FDT16(x); in fdt16_to_cpu()
[all …]
/scripts/coccinelle/misc/
Dnoderef.cocci17 expression *x;
24 x = <+... sizeof(
25 - x
26 + *x
29 f(...,(T)(x),...,sizeof(
30 - x
31 + *x
35 - x
36 + *x
37 ),...,(T)(x),...)
[all …]
Dbadty.cocci26 T **x;
29 x =
40 T **x;
43 x =
46 + *x
55 T **x;
59 x =
/scripts/coccinelle/api/alloc/
Dpool_zalloc-simple.cocci20 expression x;
24 * x = \(dma_pool_alloc\|pci_pool_alloc\)(...);
25 if ((x==NULL) || ...) S
26 * memset(x,0, ...);
33 expression x;
38 - x = dma_pool_alloc(a,b,c);
39 + x = dma_pool_zalloc(a,b,c);
40 if ((x==NULL) || ...) S
41 - memset(x,0,...);
44 expression x;
[all …]
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/free/
Ddevm_free.cocci28 expression x;
32 x = devm_kmalloc(...)
34 x = devm_kvasprintf(...)
36 x = devm_kasprintf(...)
38 x = devm_kzalloc(...)
40 x = devm_kmalloc_array(...)
42 x = devm_kcalloc(...)
44 x = devm_kstrdup(...)
46 x = devm_kmemdup(...)
48 x = devm_get_free_pages(...)
[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)
/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/coccinelle/tests/
Dodd_ptr_err.cocci17 expression x,e;
21 if (IS_ERR(x=e) || ...) {
23 PTR_ERR@p(x)
28 expression x,e1,e2;
32 if (IS_ERR(x) || ...) {
35 PTR_ERR@p(\(e1 ? e2 : x\|e1 ? x : e2\))
37 PTR_ERR@p(x)
43 expression x,y;
47 if (IS_ERR(x) || ...) {
51 PTR_ERR(x)
[all …]
/scripts/gdb/linux/
Dconstants.py.in20 #define STRING(x) #x
21 #define XSTRING(x) STRING(x)
23 #define LX_VALUE(x) LX_##x = x
24 #define LX_GDBPARSED(x) LX_##x = gdb.parse_and_eval(XSTRING(x))
31 #define LX_CONFIG(x) LX_##x = IS_BUILTIN(x)
/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 …]
Dcheckstack.pl37 my (@stack, $re, $dre, $x, $xs, $funcre);
45 $x = "[0-9a-f]"; # hex character
47 $funcre = qr/^$x* <(.*)>:$/;
62 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o;
73 $re = qr/.*ADD.*A0StP,A0StP,\#(0x$x{1,8})/o;
74 $funcre = qr/^$x* <[^\$](.*)>:$/;
82 $re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
85 $re = qr/.*stwu.*r1,-($x{1,8})\(r1\)/o;
88 $re = qr/.*stdu.*r1,-($x{1,8})\(r1\)/o;
90 $re = qr/.*st[dw]u.*r1,-($x{1,8})\(r1\)/o;
[all …]
Drecordmcount.c312 static uint64_t w8rev(uint64_t const x) in w8rev() argument
314 return ((0xff & (x >> (0 * 8))) << (7 * 8)) in w8rev()
315 | ((0xff & (x >> (1 * 8))) << (6 * 8)) in w8rev()
316 | ((0xff & (x >> (2 * 8))) << (5 * 8)) in w8rev()
317 | ((0xff & (x >> (3 * 8))) << (4 * 8)) in w8rev()
318 | ((0xff & (x >> (4 * 8))) << (3 * 8)) in w8rev()
319 | ((0xff & (x >> (5 * 8))) << (2 * 8)) in w8rev()
320 | ((0xff & (x >> (6 * 8))) << (1 * 8)) in w8rev()
321 | ((0xff & (x >> (7 * 8))) << (0 * 8)); in w8rev()
324 static uint32_t w4rev(uint32_t const x) in w4rev() argument
[all …]
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/tracing/
Dftrace-bisect.sh83 x=`cat $full | wc -l`
84 if [ $x -eq 1 ]; then
90 let x=$x/2
91 let y=$x+1
114 sed -ne "1,${x}p" $full > $test
/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/kconfig/lxdialog/
Ddialog.h62 #define MIN(x,y) (x < y ? x : y) argument
63 #define MAX(x,y) (x > y ? x : y) argument
220 void end_dialog(int x, int y);
223 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
224 void print_button(WINDOW * win, const char *label, int y, int x, int selected);
226 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
228 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 = (getmaxx(stdscr) - 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()
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 - 28; 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()
163 print_button(win, gettext(" Save "), y, x + 36, selected == 3); in print_buttons()
164 print_button(win, gettext(" Load "), y, x + 48, selected == 4); in print_buttons()
166 wmove(win, y, x + 1 + 12 * selected); in print_buttons()
[all …]
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 = (getmaxx(stdscr) - width) / 2; in dialog_checklist()
146 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
[all …]
/scripts/dtc/
Dutil.c111 char x[4]; in get_oct_char() local
115 x[3] = '\0'; in get_oct_char()
116 strncpy(x, s + *i, 3); in get_oct_char()
118 val = strtol(x, &endx, 8); in get_oct_char()
120 assert(endx > x); in get_oct_char()
122 (*i) += endx - x; in get_oct_char()
134 char x[3]; in get_hex_char() local
138 x[2] = '\0'; in get_hex_char()
139 strncpy(x, s + *i, 2); in get_hex_char()
141 val = strtol(x, &endx, 16); in get_hex_char()
[all …]

123