| /linux/scripts/coccinelle/misc/ |
| H A D | array_size_dup.cocci | 30 position p1, p2; 36 * array_size(E1, E2)@p2 40 p2 << as_next.p2; 43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 48 p2 << as_next.p2; 51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 59 position p1, p2; 65 * E1 * E2@p2 69 p2 << as_prev.p2; 73 coccilib.report.print_report(p2[0], msg) [all …]
|
| H A D | ifcol.cocci | 23 position p1,p2; 30 if (...) S1@p1 S2@p2 35 p2 << r.p2; 38 if (p1[0].column == p2[0].column): 40 cocci.print_secs("after",p2) 44 p2 << r.p2; 47 if (p1[0].column == p2[0].column): 48 msg = "code aligned with following code on line %s" % (p2[0].line)
|
| H A D | cstptr.cocci | 19 position p1,p2; 26 *PTR_ERR@p2(e) 30 p2 << r.p2; 33 cocci.print_main("PTR_ERR",p2) 38 p2 << r.p2; 42 coccilib.report.print_report(p2[0],msg)
|
| H A D | returnvar.cocci | 45 position p1, p2; 50 return ret@p2; 54 p2 << r1.p2; 58 …int_report(p1[0], "Unneeded variable: \"" + ret + "\". Return \"" + C + "\" on line " + p2[0].line) 62 p2 << r1.p2; 67 cocci.print_sec("return " + C + " here", p2)
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_cpuset_prs.sh | 115 rmdir rtest/p1/c11 rtest/p1/c12 rtest/p2/c21 \ 116 rtest/p2/c22 rtest/p1 rtest/p2 rtest > /dev/null 2>&1 241 " C2-3:P1 C3:P2 . . O3=0 O3=1 . . 0 A1:2|A2:3 A1:P1|A2:P2" 243 " C2-3:P1 C3:P2 . . O2=0 O2=1 . . 0 A1:2|A2:3 A1:P1|A2:P2" 248 " C2-3:P1 C3:P2 . . T:O2=0 . . . 0 A1:3|A2:3 A1:P1|A2:P-2" 249 " C1-3:P1 C3:P2 . . . T:O3=0 . . 0 A1:1-2|A2:1-2 A1:P1|A2:P-2 3|" 250 " C1-3:P1 C3:P2 . . . T:O3=0 O3=1 . 0 A1:1-2|A2:3 A1:P1|A2:P2 3" 269 …" C0-3 C1-3 C2-3 . X2-3 X2-3:P2 . . 0 A1:0-1|A2:2-3|A3:2-3 A1:P0|A2:P2 2-… 270 " C0-3 C1-3 C2-3 . X2-3 X3:P2 . . 0 A1:0-2|A2:3|A3:3 A1:P0|A2:P2 3" 271 " C0-3 C1-3 C2-3 . X2-3 X2-3 X2-3:P2 . 0 A1:0-1|A2:1|A3:2-3 A1:P0|A3:P2 2-3" [all …]
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | scoped_base_variants.h | 28 * P1-. P1 -> P2 : allow 29 * \ P2 -> P1 : allow 30 * 'P2 43 * P1--. P1 -> P2 : allow 44 * \ P2 -> P1 : deny 46 * | P2 | 60 * | P1 --. P1 -> P2 : deny 61 * '------' \ P2 -> P1 : allow 63 * P2 76 * | P1 ---. P1 -> P2 : deny [all …]
|
| H A D | scoped_multiple_domain_variants.h | 27 * | ####### | P3 -> P2 : allow 28 * | P1----# P2 # | P3 -> P1 : deny 46 * # ####### # P3 -> P2 : allow 47 * # P1----# P2 # # P3 -> P1 : deny 65 * | .-----. | P3 -> P2 : allow 66 * | P1----| P2 | | P3 -> P1 : allow 83 * .----. ###### P3 -> P2 : allow 84 * | P1 |----# P2 # P3 -> P1 : allow 100 * ###### .-----. P3 -> P2 : allow 101 * # P1 #----| P2 | P3 -> P1 : allow [all …]
|
| /linux/scripts/coccinelle/api/ |
| H A D | d_find_alias.cocci | 19 position p1, p2; 37 return @p2 ...; 39 dent@p2 = E1; 46 position r.p1,r.p2; 51 * return@p2 ...; 53 * dent@p2 59 p2 << r.p2; 62 cocci.print_secs("",p2) 66 position r.p2; 70 return @p2 ...; [all …]
|
| H A D | atomic_as_refcounter.cocci | 15 position p1, p2; 40 fname@p2(a, ...); 42 fname2@p2(...); 44 fname3@p2(...); 46 fname4@p2(...); 48 fname5@p2(...); 50 fname6@p2(...); 56 p2 << r1.p2; 59 coccilib.report.print_report(p1[0], msg % (p2[0].line)) 63 position p1, p2; [all …]
|
| H A D | kstrdup.cocci | 51 position p1,p2; 58 * strcpy@p2(to, from); 64 position p1,p2; 73 * memcpy@p2(to, from, x); 77 p2 << r1.p2; 81 cocci.print_secs("strcpy",p2) 85 p2 << r2.p2; 89 cocci.print_secs("memcpy",p2) 93 p2 << r1.p2; 96 msg = "WARNING opportunity for kstrdup (strcpy on line %s)" % (p2[0].line) [all …]
|
| H A D | check_bq27xxx_data.cocci | 69 position p2; 72 u8 i2regs@p2[...] = { i2regs_vals, }; 80 p2 << getregs2.p2; 89 i1regs i2regs (List.hd p2).line in 105 position p2; 108 struct bq27xxx_dm_reg i2dmregs@p2[] = { i2dmregs_vals, }; 116 p2 << getdmregs2.p2; 125 i1dmregs i2dmregs (List.hd p2).line in 141 position p2; 144 enum power_supply_property i2props@p2[] = { i2props_vals, }; [all …]
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | of_helpers.c | 49 const __be32 *p2; in of_read_drc_info_cell() local 67 p2 = (const __be32 *)p; in of_read_drc_info_cell() 68 data->drc_index_start = be32_to_cpu(*p2); in of_read_drc_info_cell() 71 p2 = of_prop_next_u32(*prop, p2, &data->drc_name_suffix_start); in of_read_drc_info_cell() 72 if (!p2) in of_read_drc_info_cell() 76 p2 = of_prop_next_u32(*prop, p2, &data->num_sequential_elems); in of_read_drc_info_cell() 77 if (!p2) in of_read_drc_info_cell() 81 p2 = of_prop_next_u32(*prop, p2, &data->sequential_inc); in of_read_drc_info_cell() 82 if (!p2) in of_read_drc_info_cell() 86 p2 = of_prop_next_u32(*prop, p2, &data->drc_power_domain); in of_read_drc_info_cell() [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am335x-pocketbeagle.dts | 80 "P2.29 [SPI1_CLK]", 87 "P2.11 [I2C1_SDA]", 88 "P2.09 [I2C1_SCL]", 92 "P2.31 [SPI1_CS]", 96 "P2.03", 100 "P2.19", 103 "P2.05 [UART4_RX]", 104 "P2.07 [UART4_TX]"; 118 "P2.25 [SPI1_MOSI]", 121 "P2.24", [all …]
|
| /linux/scripts/coccinelle/locks/ |
| H A D | flags.cocci | 18 position p1,p2; 36 spin_lock_irqsave@p2(lock2,flags) 38 read_lock_irqsave@p2(lock2,flags) 40 write_lock_irqsave@p2(lock2,flags) 46 position r.p1, r.p2; 58 *spin_lock_irqsave@p2(lock2,flags) 60 *read_lock_irqsave@p2(lock2,flags) 62 *write_lock_irqsave@p2(lock2,flags) 69 p2 << r.p2; 73 cocci.print_secs("nested lock+irqsave that reuses flags",p2) [all …]
|
| H A D | double_lock.cocci | 69 position locked.p,p1,p2; 75 lock@p2 (E1,...); 79 p2 << r.p2; 84 cocci.print_secs("second lock",p2) 88 p2 << r.p2; 92 msg = "second lock on line %s" % (p2[0].line)
|
| /linux/scripts/coccinelle/iterators/ |
| H A D | list_entry_update.cocci | 22 position p1,p2; 25 list_for_each_entry@p1(x,...) { <... x =@p2 E ...> } 29 position r.p1,r.p2; 33 *x =@p2 E 41 position r.p1,r.p2; 45 x =@p2 E 51 p2 << r.p2; 55 cocci.print_secs("update",p2) 59 p2 << r.p2; 62 msg = "iterator with update on line %s" % (p2[0].line)
|
| H A D | itnull.cocci | 68 position p1,p2; 74 * x@p2 == NULL 76 * x@p2 != NULL 83 p2 << r.p2; 87 cocci.print_secs("useless NULL test",p2) 91 p2 << r.p2; 95 coccilib.report.print_report(p2[0], msg)
|
| /linux/scripts/coccinelle/free/ |
| H A D | pci_free_consistent.cocci | 16 position p1,p2; 35 return@p2 ...; 40 p2 << search.p2; 43 …t; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].line,p2[0].line) 44 coccilib.report.print_report(p2[0],msg) 48 p2 << search.p2; 51 …t; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].line,p2[0].line) 53 cocci.print_secs("",p2)
|
| H A D | put_device.cocci | 15 position p1,p2; 36 | return@p2 ...; 41 p2 << search.p2; 44 coccilib.report.print_report(p2[0], 51 p2 << search.p2; 55 cocci.print_secs("needed put_device", p2)
|
| H A D | clk_put.cocci | 23 position p1,p2,p3; 43 *if@p2 (...) 53 p2 << clk.p2; 58 cocci.print_secs("if",p2) 63 p2 << clk.p2; 67 …ing clk_put; clk_get on line %s and execution via conditional on line %s" % (p1[0].line,p2[0].line)
|
| H A D | iounmap.cocci | 23 position p1,p2,p3; 43 *if@p2 (...) 53 p2 << iom.p2; 58 cocci.print_secs("if",p2) 63 p2 << iom.p2; 67 …ing iounmap; ioremap on line %s and execution via conditional on line %s" % (p1[0].line,p2[0].line)
|
| /linux/drivers/ata/pata_parport/ |
| H A D | on26.c | 33 #define P2 \ macro 51 w0(1); P1; w0(r); P2; w0(0); P1; in on26_read_regr() 57 w0(1); P1; w0(r); P2; w0(0); P1; in on26_read_regr() 79 w0(1); P1; w0(r); P2; w0(0); P1; in on26_write_regr() 80 w0(val); P2; w0(val); P2; in on26_write_regr() 113 w0(2); P1; w0(8); P2; in on26_connect() 114 w0(2); P1; w0(x); P2; in on26_connect() 156 w0(2); P1; w0(0); P2; in on26_test_port() 157 w0(3); P1; w0(0); P2; in on26_test_port() 158 w0(2); P1; w0(8); P2; udelay(100); in on26_test_port() [all …]
|
| /linux/scripts/coccinelle/null/ |
| H A D | eno.cocci | 28 position p1,p2; 33 * IS_ERR@p2(x) 37 p2 << r.p2; 41 cocci.print_secs("IS_ERR that should be NULL tests",p2) 45 p2 << r.p2; 49 coccilib.report.print_report(p2[0], msg)
|
| /linux/tools/testing/selftests/ftrace/test.d/instances/ |
| H A D | instance-event.tc | 51 p2=$! 52 echo $p2 61 kill -1 $p2 65 wait $p1 $p2 $p3 103 p2=$! 104 echo $p2 122 kill -1 $p2 128 wait $p1 $p2 $p3 $p4 $p5
|
| /linux/drivers/usb/serial/ |
| H A D | io_ionsp.h | 145 // 08-0B 3-byte commands: ==== P1 ==== ==== P2 ==== 151 // 0C-0D 4-byte commands. P1 = extended cmd and P2,P3 = params 155 // P2 = extended cmd, P3..Pn = parameters. 167 // P2 = Parameter 171 // or may not use parameter P2. 235 // P2 = Bit mask as follows: 256 // P2 = Bit mask as follows: 291 // P2 = 0x11 304 // P2 = 0x13 325 // P2 = Sequence number [all …]
|