/openbmc/qemu/scripts/coccinelle/ |
H A D | exec_rw_const.cocci | 14 expression E1, E2, E3, E4, E5; 17 - address_space_rw(E1, E2, E3, E4, E5, 0) 18 + address_space_rw(E1, E2, E3, E4, E5, false) 20 - address_space_rw(E1, E2, E3, E4, E5, 1) 21 + address_space_rw(E1, E2, E3, E4, E5, true) 24 - cpu_physical_memory_rw(E1, E2, E3, 0) 25 + cpu_physical_memory_rw(E1, E2, E3, false) 27 - cpu_physical_memory_rw(E1, E2, E3, 1) 28 + cpu_physical_memory_rw(E1, E2, E3, true) 31 - cpu_physical_memory_map(E1, E2, 0) [all …]
|
H A D | memory-region-housekeeping.cocci | 16 expression E1, E2, E3, E4, E5; 20 - memory_region_init_ram(E1, E2, E3, E4, E5); 21 + memory_region_init_rom(E1, E2, E3, E4, E5); 22 ... WHEN != E1 23 - memory_region_set_readonly(E1, true); 25 - memory_region_init_ram_nomigrate(E1, E2, E3, E4, E5); 26 + memory_region_init_rom_nomigrate(E1, E2, E3, E4, E5); 27 ... WHEN != E1 28 - memory_region_set_readonly(E1, true); 33 expression E1, E2, E3, E4, E5; [all …]
|
H A D | round.cocci | 3 expression e1; 7 - ((e1) + e2 - 1) / (e2) 8 + DIV_ROUND_UP(e1,e2) 10 - ((e1) + (e2 - 1)) / (e2) 11 + DIV_ROUND_UP(e1,e2) 15 expression e1; 18 -(DIV_ROUND_UP(e1,e2)) 19 +DIV_ROUND_UP(e1,e2)
|
/openbmc/linux/arch/alpha/lib/ |
H A D | stxncpy.S | 55 lda t2, -1 # e1 : build a mask against false zero 58 ornot t1, t2, t2 # .. e1 : 60 cmpbge zero, t2, t8 # .. e1 : bits set iff null found 62 beq a2, $a_eoc # .. e1 : 63 bne t8, $a_eos # .. e1 : 70 addq a0, 8, a0 # .. e1 : 72 addq a1, 8, a1 # .. e1 : 74 cmpbge zero, t0, t8 # .. e1 (stall) 75 beq a2, $a_eoc # e1 : 76 beq t8, $a_loop # e1 : [all …]
|
H A D | stxcpy.S | 47 lda t2, -1 # e1 : build a mask against false zero 50 ornot t1, t2, t2 # .. e1 : 52 cmpbge zero, t2, t8 # .. e1 : bits set iff null found 54 bne t8, $a_eos # .. e1 : 62 addq a0, 8, a0 # .. e1 : 64 addq a1, 8, a1 # .. e1 : 66 beq t8, $a_loop # .. e1 (zdb) 74 and t8, t6, t12 # e1 (stall) 79 bne t6, 1f # .. e1 (zdb) 84 subq t12, 1, t6 # .. e1 : [all …]
|
H A D | csum_ipv6_magic.S | 25 zapnot $20,15,$20 # .. e1 : zero extend incoming csum 27 ldq_u $21,7($16) # .. e1 : handle misalignment 30 ldq_u $1,8($16) # .. e1 : 32 ldq_u $22,15($16) # .. e1 : 35 ldq_u $2,0($17) # .. e1 : 37 ldq_u $23,7($17) # .. e1 : 40 ldq_u $3,8($17) # .. e1 : 42 ldq_u $24,15($17) # .. e1 : 45 or $0,$21,$0 # .. e1 : 1st src word complete 47 addq $20,$0,$20 # .. e1 : begin summing the words [all …]
|
H A D | memchr.S | 51 beq $18, $not_found # .. e1 : 52 ldq_u $1, 0($16) # e1 : load first quadword 55 cmpult $18, 9, $4 # .. e1 : 57 lda $3, -1($31) # .. e1 : 59 addq $16, $5, $5 # .. e1 : 60 or $2, $17, $17 # e1 : $17 = 00000000chchchch 63 or $2, $17, $17 # e1 : $17 = chchchchchchchch 65 beq $4, $first_quad # .. e1 : 67 ldq_u $6, -1($5) #-e1 : eight or less bytes to search 70 or $7, $6, $1 # .. e1 : $1 = quadword starting at $16 [all …]
|
H A D | clear_user.S | 34 beq $4, 1f # .. e1 : 37 subq $0, 8, $0 # .. e1 : 39 addq $16, 8, $16 # .. e1 : 40 bne $4, 0b # e1 : 44 beq $1, $tail # .. e1 : 47 subq $0, 8, $0 # .. e1 : 49 subq $0, 8, $0 # .. e1 : 51 subq $0, 8, $0 # .. e1 : 53 subq $0, 8, $0 # .. e1 : 55 addq $16, 32, $16 # .. e1 : [all …]
|
H A D | strrchr.S | 23 mov zero, t6 # .. e1 : t6 is last match aligned addr 25 mov zero, t8 # .. e1 : t8 is last match byte compare mask 27 ldq_u t0, 0(a0) # .. e1 : load first quadword 29 andnot a0, 7, v0 # .. e1 : align source addr 31 lda t4, -1 # .. e1 : build garbage mask 33 cmpbge zero, t0, t1 # .. e1 : bits set iff byte == zero 35 or t5, a1, a1 # .. e1 : character replication complete 37 cmpbge zero, t4, t4 # .. e1 : bits set iff byte is garbage 39 andnot t1, t4, t1 # .. e1 : clear garbage from null test 41 bne t1, $eos # .. e1 : did we already hit the terminator? [all …]
|
H A D | strchr.S | 23 ldq_u t0, 0(a0) # .. e1 : load first quadword 25 andnot a0, 7, v0 # .. e1 : align our loop pointer 27 lda t4, -1 # .. e1 : build garbage mask 29 cmpbge zero, t0, t2 # .. e1 : bits set iff byte == zero 31 or t5, a1, a1 # .. e1 : 33 cmpbge zero, t4, t4 # .. e1 : bits set iff byte is garbage 35 xor t0, a1, t1 # .. e1 : make bytes == c zero 37 or t2, t3, t0 # e1 : bits set iff char match or zero match 39 bne t0, $found # .. e1 (zdb) 42 addq v0, 8, v0 # .. e1 : [all …]
|
H A D | memset.S | 33 and $17,255,$1 /* E1 */ 36 sll $17,16,$1 /* E1 (p-c latency, next cycle) */ 39 sll $17,32,$1 /* E1 (p-c latency, next cycle) */ 41 ldq_u $31,0($30) /* .. E1 */ 46 bis $16,$16,$0 /* .. E1 */ 48 ble $18,end /* .. E1 */ 51 beq $1,within_one_quad /* .. E1 (note EV5 zero-latency forwarding) */ 53 beq $3,aligned /* .. E1 (note EV5 zero-latency forwarding) */ 56 bis $16,$16,$5 /* .. E1 */ 58 subq $3,8,$3 /* .. E1 */ [all …]
|
/openbmc/linux/scripts/coccinelle/api/alloc/ |
H A D | zalloc-simple.cocci | 33 expression E1; 37 * x = (T)\(kmalloc(E1, ...)\|vmalloc(E1)\|dma_alloc_coherent(...,E1,...)\| 38 kmalloc_node(E1, ...)\|kmem_cache_alloc(...)\|kmem_alloc(E1, ...)\| 39 devm_kmalloc(...,E1,...)\|kvmalloc(E1, ...)\|kvmalloc_node(E1,...)\); 41 * memset((T2)x,0,E1); 50 expression E1,E2,E3,E4; 55 - x = kmalloc(E1,E2); 56 + x = kzalloc(E1,E2); 58 - x = (T *)kmalloc(E1,E2); 59 + x = kzalloc(E1,E2); [all …]
|
/openbmc/linux/scripts/kconfig/ |
H A D | expr.c | 34 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two() argument 38 e->left.expr = e1; in expr_alloc_two() 52 struct expr *expr_alloc_and(struct expr *e1, struct expr *e2) in expr_alloc_and() argument 54 if (!e1) in expr_alloc_and() 56 return e2 ? expr_alloc_two(E_AND, e1, e2) : e1; in expr_alloc_and() 59 struct expr *expr_alloc_or(struct expr *e1, struct expr *e2) in expr_alloc_or() argument 61 if (!e1) in expr_alloc_or() 63 return e2 ? expr_alloc_two(E_OR, e1, e2) : e1; in expr_alloc_or() 139 #define e1 (*ep1) macro 154 if (e1->type == type) { in __expr_eliminate_eq() [all …]
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | expr.c | 14 static int expr_eq(struct expr *e1, struct expr *e2); 33 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two() argument 37 e->left.expr = e1; in expr_alloc_two() 51 struct expr *expr_alloc_and(struct expr *e1, struct expr *e2) in expr_alloc_and() argument 53 if (!e1) in expr_alloc_and() 55 return e2 ? expr_alloc_two(E_AND, e1, e2) : e1; in expr_alloc_and() 58 struct expr *expr_alloc_or(struct expr *e1, struct expr *e2) in expr_alloc_or() argument 60 if (!e1) in expr_alloc_or() 62 return e2 ? expr_alloc_two(E_OR, e1, e2) : e1; in expr_alloc_or() 138 #define e1 (*ep1) macro [all …]
|
/openbmc/linux/scripts/coccinelle/misc/ |
H A D | array_size_dup.cocci | 20 expression E1, E2; 23 array_size(E1, E2) 26 expression subE1 <= as.E1; 28 expression as.E1, as.E2, E3; 33 * E1 * E2@p1 36 * array_size(E1, E2)@p2 55 expression subE1 <= as.E1; 57 expression as.E1, as.E2, E3; 62 * array_size(E1, E2)@p1 65 * E1 * E2@p2 [all …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | sha1_ni_asm.S | 68 #define E1 %xmm2 macro 123 movdqa ABCD, E1 129 sha1nexte MSG1, E1 131 sha1rnds4 $0, E1, ABCD 138 movdqa ABCD, E1 146 sha1nexte MSG3, E1 149 sha1rnds4 $0, E1, ABCD 155 movdqa ABCD, E1 162 sha1nexte MSG1, E1 165 sha1rnds4 $1, E1, ABCD [all …]
|
/openbmc/linux/scripts/coccinelle/locks/ |
H A D | double_lock.cocci | 19 expression E1; 39 ) (E1@p,...); 45 expression x <= locked.E1; 46 expression E,locked.E1; 51 <+... when != E1 52 lock(E1@p,...) 55 ... when != E1 59 <+... when != E1 60 unlock@p1(E1,...) 65 expression x <= locked.E1; [all …]
|
H A D | mini_lock.cocci | 23 expression E1; 54 ) (E1@p,...); 63 expression E1; 70 *lock(E1@p,...); 71 ... when != E1 74 ... when != E1 77 ... when != E1 79 *unlock@up(E1,...);
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | cpuid_test.c | 75 const struct kvm_cpuid_entry2 *e1, *e2; in compare_cpuids() local 82 e1 = &cpuid1->entries[i]; in compare_cpuids() 85 TEST_ASSERT(e1->function == e2->function && in compare_cpuids() 86 e1->index == e2->index && e1->flags == e2->flags, in compare_cpuids() 88 i, e1->function, e1->index, e1->flags, in compare_cpuids() 91 if (is_cpuid_mangled(e1)) in compare_cpuids() 94 TEST_ASSERT(e1->eax == e2->eax && e1->ebx == e2->ebx && in compare_cpuids() 95 e1->ecx == e2->ecx && e1->edx == e2->edx, in compare_cpuids() 97 e1->function, e1->index, in compare_cpuids() 98 e1->eax, e1->ebx, e1->ecx, e1->edx, in compare_cpuids()
|
/openbmc/linux/arch/mips/bcm47xx/ |
H A D | board.c | 241 const struct bcm47xx_board_type_list1 *e1; in bcm47xx_board_get_nvram() local 246 for (e1 = bcm47xx_board_list_model_name; e1->value1; e1++) { in bcm47xx_board_get_nvram() 247 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram() 248 return &e1->board; in bcm47xx_board_get_nvram() 253 for (e1 = bcm47xx_board_list_hardware_version; e1->value1; e1++) { in bcm47xx_board_get_nvram() 254 if (strstarts(buf1, e1->value1)) in bcm47xx_board_get_nvram() 255 return &e1->board; in bcm47xx_board_get_nvram() 269 for (e1 = bcm47xx_board_list_productid; e1->value1; e1++) { in bcm47xx_board_get_nvram() 270 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram() 271 return &e1->board; in bcm47xx_board_get_nvram() [all …]
|
/openbmc/linux/scripts/coccinelle/iterators/ |
H A D | for_each_child.cocci | 18 expression e1,e2; 30 for_each_node_by_name(n,e1) S 32 for_each_node_by_type(n,e1) S 34 for_each_compatible_node(n,e1,e2) S 36 for_each_matching_node(n,e1) S 38 for_each_matching_node_and_match(n,e1,e2) S 40 for_each_child_of_node(e1,n) S 42 for_each_available_child_of_node(e1,n) S 44 for_each_node_with_property(n,e1) S 83 expression e,e1; [all …]
|
H A D | device_node_continue.cocci | 20 expression e1,e2; 33 for_each_node_by_name(n,e1) S 35 for_each_node_by_type(n,e1) S 37 for_each_compatible_node(n,e1,e2) S 39 for_each_matching_node(n,e1) S 41 for_each_matching_node_and_match(n,e1,e2) S 43 for_each_child_of_node(e1,n) S 45 for_each_available_child_of_node(e1,n) S 47 for_each_node_with_property(n,e1) S
|
/openbmc/linux/scripts/coccinelle/api/ |
H A D | kstrdup.cocci | 19 expression flag,E1,E2; 25 ... when != \(from = E1 \| to = E1 \) 32 expression flag,E1,E2,E3; 37 ... when != \( x = E1 \| from = E1 \) 49 expression flag,E1,E2; 55 ... when != \(from = E1 \| to = E1 \) 62 expression flag,E1,E2,E3; 68 ... when != \( x = E1 \| from = E1 \)
|
H A D | kvmalloc.cocci | 24 expression E, E1, size; 33 * if (size cmp E1 || ...)@p { 48 ... when != E = E1 49 when != size = E1 60 ... when != x = E1 61 when != size = E1 87 expression E, E1, size, node; 94 - if (size cmp E1) 100 - if (size cmp E1) 126 - if (size cmp E1) [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | pmu-events.c | 285 static int compare_pmu_events(const struct pmu_event *e1, const struct pmu_event *e2) in compare_pmu_events() argument 287 if (!is_same(e1->name, e2->name)) { in compare_pmu_events() 288 pr_debug2("testing event e1 %s: mismatched name string, %s vs %s\n", in compare_pmu_events() 289 e1->name, e1->name, e2->name); in compare_pmu_events() 293 if (!is_same(e1->compat, e2->compat)) { in compare_pmu_events() 294 pr_debug2("testing event e1 %s: mismatched compat string, %s vs %s\n", in compare_pmu_events() 295 e1->name, e1->compat, e2->compat); in compare_pmu_events() 299 if (!is_same(e1->event, e2->event)) { in compare_pmu_events() 300 pr_debug2("testing event e1 %s: mismatched event, %s vs %s\n", in compare_pmu_events() 301 e1->name, e1->event, e2->event); in compare_pmu_events() [all …]
|