/scripts/dtc/libfdt/ |
D | libfdt_env.h | 72 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument 73 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument 74 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ argument 75 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3)) 76 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ argument 77 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \ 78 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \ 79 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7)) 81 static inline uint16_t fdt16_to_cpu(fdt16_t x) in fdt16_to_cpu() argument 83 return (__force uint16_t)CPU_TO_FDT16(x); in fdt16_to_cpu() [all …]
|
D | libfdt_internal.h | 55 #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) argument 56 #define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE)) argument
|
/scripts/coccinelle/api/alloc/ |
D | pool_zalloc-simple.cocci | 20 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 …]
|
D | kzalloc-simple.cocci | 30 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/misc/ |
D | noderef.cocci | 17 expression *x; 23 x = <+... sizeof( 24 - x 25 + *x 28 f(...,(T)(x),...,sizeof( 29 - x 30 + *x 33 f(...,sizeof(x),...,(T)( 34 - x 35 + *x [all …]
|
D | badty.cocci | 26 T **x; 29 x = 40 T **x; 43 x = 46 + *x 55 T **x; 59 x =
|
/scripts/coccinelle/api/ |
D | err_cast.cocci | 22 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 …]
|
D | kstrdup.cocci | 30 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 …]
|
D | resource_size.cocci | 63 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/ |
D | itnull.cocci | 23 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 …]
|
D | list_entry_update.cocci | 20 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/ |
D | sortextable.c | 112 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 …]
|
D | checkstack.pl | 37 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 …]
|
D | recordmcount.c | 316 static uint64_t w8rev(uint64_t const x) in w8rev() argument 318 return ((0xff & (x >> (0 * 8))) << (7 * 8)) in w8rev() 319 | ((0xff & (x >> (1 * 8))) << (6 * 8)) in w8rev() 320 | ((0xff & (x >> (2 * 8))) << (5 * 8)) in w8rev() 321 | ((0xff & (x >> (3 * 8))) << (4 * 8)) in w8rev() 322 | ((0xff & (x >> (4 * 8))) << (3 * 8)) in w8rev() 323 | ((0xff & (x >> (5 * 8))) << (2 * 8)) in w8rev() 324 | ((0xff & (x >> (6 * 8))) << (1 * 8)) in w8rev() 325 | ((0xff & (x >> (7 * 8))) << (0 * 8)); in w8rev() 328 static uint32_t w4rev(uint32_t const x) in w4rev() argument [all …]
|
D | kernel-doc | 1794 my $x = shift; 1798 if ($x =~ /(struct|union)\s+(\w+)\s*{(.*)}/) { 1843 my $x = shift; 1846 $x =~ s@/\*.*?\*/@@gos; # strip comments. 1847 $x =~ s/^#\s*define\s+.*$//; # strip #define macros inside enums 1849 if ($x =~ /enum\s+(\w+)\s*{(.*)}/) { 1882 my $x = shift; 1885 $x =~ s@/\*.*?\*/@@gos; # strip comments. 1888 if ($x =~ /typedef\s+(\w+)\s*\(\*\s*(\w\S+)\s*\)\s*\((.*)\);/) { 1911 while (($x =~ /\(*.\)\s*;$/) || ($x =~ /\[*.\]\s*;$/)) { [all …]
|
/scripts/coccinelle/tests/ |
D | odd_ptr_err.cocci | 17 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/coccinelle/null/ |
D | eno.cocci | 17 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)
|
D | kmerr.cocci | 20 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/ |
D | devm_free.cocci | 28 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/ |
D | dialog.h | 62 #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);
|
D | yesno.c | 29 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()
|
D | menubox.c | 111 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 …]
|
D | checklist.c | 66 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/ |
D | util.c | 141 char x[4]; in get_oct_char() local 145 x[3] = '\0'; in get_oct_char() 146 strncpy(x, s + *i, 3); in get_oct_char() 148 val = strtol(x, &endx, 8); in get_oct_char() 150 assert(endx > x); in get_oct_char() 152 (*i) += endx - x; in get_oct_char() 164 char x[3]; in get_hex_char() local 168 x[2] = '\0'; in get_hex_char() 169 strncpy(x, s + *i, 2); in get_hex_char() 171 val = strtol(x, &endx, 16); in get_hex_char() [all …]
|
/scripts/kconfig/ |
D | nconf.gui.c | 153 { 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 …]
|