| /kernel/linux/linux-5.10/arch/alpha/lib/ |
| D | ev6-memcpy.S | 16 * E - either cluster 21 * $1,$2, - scratch 34 mov $16, $0 # E : copy dest to return 36 xor $16, $17, $1 # E : are source and dest alignments the same? 37 and $1, 7, $1 # E : are they the same mod 8? 39 bne $1, $misaligned # U : Nope - gotta do this the slow way 41 and $16, 7, $1 # E : Are both 0mod8? 42 beq $1, $both_0mod8 # U : Yes 43 nop # E : 52 ldbu $1, 0($17) # L : grab a byte [all …]
|
| D | ev6-memchr.S | 26 * E - either cluster 42 # Hack -- if someone passes in (size_t)-1, hoping to just 49 ldq_u $1, 0($16) # L : load first quadword Latency=3 50 and $17, 0xff, $17 # E : L L U U : 00000000000000ch 52 insbl $17, 1, $2 # U : 000000000000ch00 53 cmpult $18, 9, $4 # E : small (< 1 quad) string? 54 or $2, $17, $17 # E : 000000000000chch 55 lda $3, -1($31) # E : U L L U 58 addq $16, $5, $5 # E : Max search address 59 or $2, $17, $17 # E : 00000000chchchch [all …]
|
| D | ev6-memset.S | 15 * E - either cluster 53 and $17,255,$1 # E : 00000000000000ch 54 insbl $17,1,$2 # U : 000000000000ch00 55 bis $16,$16,$0 # E : return value 58 addq $18,$16,$6 # E : max address to write to 59 bis $1,$2,$17 # E : 000000000000chch 60 insbl $1,2,$3 # U : 0000000000ch0000 61 insbl $1,3,$4 # U : 00000000ch000000 63 or $3,$4,$3 # E : 00000000chch0000 65 xor $16,$6,$1 # E : will complete write be within one quadword? [all …]
|
| D | ev6-clear_user.S | 18 * E - either cluster 53 and $16, 7, $4 # .. E .. .. : find dest head misalignment 56 addq $0, $4, $1 # .. .. .. E : bias counter 57 and $1, 7, $2 # .. .. E .. : number of misaligned bytes in tail 60 srl $1, 3, $1 # .. E .. .. : number of quadwords to clear 68 beq $1, $onebyte # .. .. U .. : sub-word store? 70 addq $16, 8, $16 # E .. .. .. : L U U L 73 subq $1, 1, $1 # .. .. E .. : 74 addq $0, $4, $0 # .. E .. .. : bytes left -= 8 - misalignment 75 subq $0, 8, $0 # E .. .. .. : U L U L [all …]
|
| D | ev6-csum_ipv6_magic.S | 17 * E - either cluster 66 ldq_u $1,8($16) # L : Latency: 3 69 and $16,7,$6 # E : src misalignment 75 extqh $1,$6,$22 # U : 79 cmoveq $6,$31,$22 # E : src aligned? 82 addl $19,$7,$19 # E : U L U L : <sign bits>bbaabb00 84 or $0,$22,$0 # E : 1st src word complete 85 extql $1,$6,$1 # U : 86 or $18,$4,$18 # E : 000000CCDDAABBCC 89 and $17,7,$6 # E : dst misalignment [all …]
|
| D | ev6-stxncpy.S | 36 * E - either cluster 65 /* Create the 1st output word and detect 0's in the 1st input word. */ 66 lda t2, -1 # E : build a mask against false zero 69 ornot t1, t2, t2 # E : (stall) 72 cmpbge zero, t2, t8 # E : bits set iff null found 73 or t0, t3, t0 # E : (stall) 87 * limit of 1 bcond/quad to permit training 91 addq a0, 8, a0 # E : 92 subq a2, 1, a2 # E : 96 addq a1, 8, a1 # E : [all …]
|
| D | ev67-strncat.S | 10 * past count, whereas libc may write to count+1. This follows the generic 18 * E - either cluster 37 ldq_u $1, 0($16) # L : load first quadword ($16 may be misaligned) 38 lda $2, -1($31) # E : 41 andnot $16, 7, $16 # E : 42 nop # E : 43 or $2, $1, $1 # E : 45 nop # E : 46 nop # E : 47 cmpbge $31, $1, $2 # E : bits set iff byte == 0 [all …]
|
| D | ev6-copy_user.S | 21 * E - either cluster 49 mov $18, $0 # .. .. .. E 50 subq $18, 32, $1 # .. .. E. .. : Is this going to be a small copy? 51 nop # .. E .. .. 54 and $16,7,$3 # .. .. .. E : is leading dest misalignment 55 ble $1, $onebyteloop # .. .. U .. : 1st branch : small amount of data 57 subq $3, 8, $3 # E .. .. .. : L U U L : trip counter 59 * The fetcher stall also hides the 1 cycle cross-cluster stall for $3 (L --> U) 64 EXI( ldbu $1,0($17) ) # .. .. .. L : Keep loads separate from stores 65 addq $16,1,$16 # .. .. E .. : Section 3.8 in the CWG [all …]
|
| D | ev6-divide.S | 38 * $1 - shifted divisor 53 * E - either cluster 66 #define divisor $1 109 subq $30,STACK,$30 # E : 113 7: stq $1, 0($30) # L : 114 bis $25,$25,divisor # E : 117 bis $24,$24,modulus # E : 119 bis $31,$31,quotient # E : 120 LONGIFY(divisor) # E : U L L U 123 LONGIFY(modulus) # E : [all …]
|
| D | ev6-stxcpy.S | 28 * E - either cluster 57 /* Create the 1st output word and detect 0's in the 1st input word. */ 58 lda t2, -1 # E : build a mask against false zero 61 ornot t1, t2, t2 # E : (stall) 64 cmpbge zero, t2, t8 # E : bits set iff null found 65 or t0, t3, t1 # E : (stall) 75 addq a0, 8, a0 # E : 80 addq a1, 8, a1 # E : 81 cmpbge zero, t1, t8 # E : (3 cycle stall) 89 negq t8, t6 # E : find low bit set [all …]
|
| /kernel/linux/linux-5.10/security/apparmor/ |
| D | policy_unpack_test.c | 14 (3 + strlen(TEST_STRING_NAME) + 1) 19 (TEST_STRING_BUF_OFFSET + 3 + strlen(TEST_STRING_DATA) + 1) 21 (TEST_NAMED_U32_BUF_OFFSET + 3 + strlen(TEST_U32_NAME) + 1) 28 #define TEST_NAMED_U64_BUF_OFFSET (TEST_U32_BUF_OFFSET + sizeof(u32) + 1) 30 (TEST_NAMED_U64_BUF_OFFSET + 3 + strlen(TEST_U64_NAME) + 1) 35 #define TEST_NAMED_BLOB_BUF_OFFSET (TEST_U64_BUF_OFFSET + sizeof(u64) + 1) 37 (TEST_NAMED_BLOB_BUF_OFFSET + 3 + strlen(TEST_BLOB_NAME) + 1) 44 (TEST_NAMED_ARRAY_BUF_OFFSET + 3 + strlen(TEST_ARRAY_NAME) + 1) 47 struct aa_ext *e; member 55 struct aa_ext *e; in build_aa_ext_struct() local [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/crypto/ |
| D | sha1-spe-asm.S | 3 * Fast SHA-1 implementation for SPE instruction set (PPC) 106 #define R_00_15(a, b, c, d, e, w0, w1, k, off) \ argument 107 LOAD_DATA(w0, off) /* 1: W */ \ 108 and rT2,b,c; /* 1: F' = B and C */ \ 109 LOAD_K##k##1 \ 110 andc rT1,d,b; /* 1: F" = ~B and D */ \ 111 rotrwi rT0,a,27; /* 1: A' = A rotl 5 */ \ 112 or rT2,rT2,rT1; /* 1: F = F' or F" */ \ 113 add e,e,rT0; /* 1: E = E + A' */ \ 114 rotrwi b,b,2; /* 1: B = B rotl 30 */ \ [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ |
| D | event.c | 23 void event_init_opts(struct event *e, u64 config, int type, char *name) in event_init_opts() argument 25 memset(e, 0, sizeof(*e)); in event_init_opts() 27 e->name = name; in event_init_opts() 29 e->attr.type = type; in event_init_opts() 30 e->attr.config = config; in event_init_opts() 31 e->attr.size = sizeof(e->attr); in event_init_opts() 33 e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \ in event_init_opts() 37 void event_init_named(struct event *e, u64 config, char *name) in event_init_named() argument 39 event_init_opts(e, config, PERF_TYPE_RAW, name); in event_init_named() 42 void event_init(struct event *e, u64 config) in event_init() argument [all …]
|
| D | per_event_excludes.c | 25 struct event *e, events[4]; in per_event_excludes() local 34 e = &events[0]; in per_event_excludes() 35 event_init_opts(e, PERF_COUNT_HW_INSTRUCTIONS, in per_event_excludes() 37 e->attr.disabled = 1; in per_event_excludes() 39 e = &events[1]; in per_event_excludes() 40 event_init_opts(e, PERF_COUNT_HW_INSTRUCTIONS, in per_event_excludes() 42 e->attr.disabled = 1; in per_event_excludes() 43 e->attr.exclude_user = 1; in per_event_excludes() 44 e->attr.exclude_hv = 1; in per_event_excludes() 46 e = &events[2]; in per_event_excludes() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/filesystems/epoll/ |
| D | epoll_wakeup_test.c | 37 struct epoll_event e; in waiter_entry1a() local 40 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a() 41 __sync_fetch_and_add(&ctx->count, 1); in waiter_entry1a() 49 struct epoll_event e; in waiter_entry1ap() local 54 if (poll(&pfd, 1, -1) > 0) { in waiter_entry1ap() 55 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap() 56 __sync_fetch_and_add(&ctx->count, 1); in waiter_entry1ap() 64 struct epoll_event e; in waiter_entry1o() local 67 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1o() 68 __sync_fetch_and_or(&ctx->count, 1); in waiter_entry1o() [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ipset/ |
| D | ip_set_hash_netportnet.c | 25 /* 1 Forceadd support added */ 73 return elem->nomatch ? -ENOTEMPTY : 1; in hash_netportnet4_do_data_match() 92 elem->ip[1] = orig->ip[1]; in hash_netportnet4_data_reset_elem() 100 elem->ip[1] &= ip_set_netmask(cidr); in hash_netportnet4_data_netmask() 101 elem->cidr[1] = cidr; in hash_netportnet4_data_netmask() 115 nla_put_ipaddr4(skb, IPSET_ATTR_IP2, data->ip[1]) || in hash_netportnet4_data_list() 118 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr[1]) || in hash_netportnet4_data_list() 142 hash_netportnet4_init(struct hash_netportnet4_elem *e) in hash_netportnet4_init() argument 144 e->cidr[0] = HOST_MASK; in hash_netportnet4_init() 145 e->cidr[1] = HOST_MASK; in hash_netportnet4_init() [all …]
|
| D | ip_set_hash_netnet.c | 24 /* 1 Forceadd support added */ 67 return elem->nomatch ? -ENOTEMPTY : 1; in hash_netnet4_do_data_match() 86 elem->ip[1] = orig->ip[1]; in hash_netnet4_data_reset_elem() 93 elem->ip[1] &= ip_set_netmask(cidr); in hash_netnet4_data_netmask() 94 elem->cidr[1] = cidr; in hash_netnet4_data_netmask() 108 nla_put_ipaddr4(skb, IPSET_ATTR_IP2, data->ip[1]) || in hash_netnet4_data_list() 110 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr[1]) || in hash_netnet4_data_list() 132 hash_netnet4_init(struct hash_netnet4_elem *e) in hash_netnet4_init() argument 134 e->cidr[0] = HOST_MASK; in hash_netnet4_init() 135 e->cidr[1] = HOST_MASK; in hash_netnet4_init() [all …]
|
| D | ip_set_hash_ipportnet.c | 24 /* 1 SCTP and UDPLITE support added */ 41 * However this way we have to store internally cidr - 1, 56 u8 nomatch:1; 77 return elem->nomatch ? -ENOTEMPTY : 1; in hash_ipportnet4_do_data_match() 96 elem->cidr = cidr - 1; in hash_ipportnet4_data_netmask() 108 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr + 1) || in hash_ipportnet4_data_list() 139 struct hash_ipportnet4_elem e = { in hash_ipportnet4_kadt() local 145 e.cidr = HOST_MASK - 1; in hash_ipportnet4_kadt() 148 &e.port, &e.proto)) in hash_ipportnet4_kadt() 151 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportnet4_kadt() [all …]
|
| /kernel/linux/linux-5.10/fs/ |
| D | binfmt_misc.c | 34 # define USE_DEBUG 1 40 VERBOSE_STATUS = 1 /* make it zero to save 400 bytes kernel memory */ 44 static int enabled = 1; 47 #define MISC_FMT_PRESERVE_ARGV0 (1 << 31) 48 #define MISC_FMT_OPEN_BINARY (1 << 30) 49 #define MISC_FMT_CREDENTIALS (1 << 29) 50 #define MISC_FMT_OPEN_FILE (1 << 28) 74 * - type: 1 byte 97 Node *e = list_entry(l, Node, list); in check_file() local 102 if (!test_bit(Enabled, &e->flags)) in check_file() [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | sha1.c | 53 #define SHA_MIX(t) rol32(W(t+13) ^ W(t+8) ^ W(t+2) ^ W(t), 1) 55 #define SHA_ROUND(t, input, fn, constant, A, B, C, D, E) do { \ argument 57 E += TEMP + rol32(A,5) + (fn) + (constant); \ 60 #define T_0_15(t, A, B, C, D, E) SHA_ROUND(t, SHA_SRC, (((C^D)&B)^D) , 0x5a827999, A, B, C, D, E ) argument 61 #define T_16_19(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (((C^D)&B)^D) , 0x5a827999, A, B, C, D, E ) argument 62 #define T_20_39(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (B^C^D) , 0x6ed9eba1, A, B, C, D, E ) argument 63 #define T_40_59(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, ((B&C)+(D&(B^C))) , 0x8f1bbcdc, A, B, C, D,… argument 64 #define T_60_79(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (B^C^D) , 0xca62c1d6, A, B, C, D, E ) argument 73 * This function executes SHA-1's internal compression function. It updates the 76 * Don't use this function. SHA-1 is no longer considered secure. And even if [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
| D | l2t.c | 54 #define SYNC_WR_F SYNC_WR_V(1) 65 static inline unsigned int vlan_prio(const struct l2t_entry *e) in vlan_prio() argument 67 return e->vlan >> VLAN_PRIO_SHIFT; in vlan_prio() 70 static inline void l2t_hold(struct l2t_data *d, struct l2t_entry *e) in l2t_hold() argument 72 if (atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */ in l2t_hold() 98 u32 xor = key[0] ^ key[1] ^ key[2] ^ key[3]; in ipv6_hash() 118 static int addreq(const struct l2t_entry *e, const u32 *addr) in addreq() argument 120 if (e->v6) in addreq() 121 return (e->addr[0] ^ addr[0]) | (e->addr[1] ^ addr[1]) | in addreq() 122 (e->addr[2] ^ addr[2]) | (e->addr[3] ^ addr[3]); in addreq() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
| D | test_bpftool_build.sh | 4 case $1 in 6 echo -e "$0 [-j <n>]" 7 echo -e "\tTest the different ways of building bpftool." 8 echo -e "" 9 echo -e "\tOptions:" 10 echo -e "\t\t-j <n>:\tPass -j flag to 'make'." 23 if [ ! -e tools/bpf/bpftool/Makefile ]; then 24 echo -e "skip: bpftool files not found!\n" 41 local dir=$(realpath $1) 46 ERROR=1 && printf "FAILURE: Did not find bpftool\n" [all …]
|
| /kernel/linux/linux-5.10/arch/x86/crypto/ |
| D | sha1_ssse3_asm.S | 3 * This is a SIMD SHA-1 implementation. It requires the Intel(R) Supplemental 17 … http://software.intel.com/en-us/articles/improving-the-performance-of-the-secure-hash-algorithm-1/ 66 * This macro implements the SHA-1 function's body for single 64-byte block 108 * This macro implements 80 rounds of SHA-1 for one 64-byte block 117 mov 16(HASH_PTR), E 122 .set i, (i+1) 126 1: 127 RR F1,A,B,C,D,E,0 128 RR F1,D,E,A,B,C,2 129 RR F1,B,C,D,E,A,4 [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | xt_quota2.c | 67 struct xt_quota_counter *e = m->private; in quota_proc_show() local 69 spin_lock_bh(&e->lock); in quota_proc_show() 70 seq_printf(m, "%llu\n", e->quota); in quota_proc_show() 71 spin_unlock_bh(&e->lock); in quota_proc_show() 84 struct xt_quota_counter *e = PDE_DATA(file_inode(file)); in quota_proc_write() local 91 buf[sizeof(buf)-1] = '\0'; in quota_proc_write() 96 int64_t temp = simple_strtoll(buf + 1, NULL, 0); in quota_proc_write() 97 spin_lock_bh(&e->lock); in quota_proc_write() 99 if (temp > 0 || -temp < e->quota) in quota_proc_write() 100 e->quota += temp; in quota_proc_write() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/ |
| D | kselftest_deps.sh | 13 echo -e "Usage: $0 -[p] <compiler> [test_name]\n" 14 echo -e "\tkselftest_deps.sh [-p] gcc" 15 echo -e "\tkselftest_deps.sh [-p] gcc vm" 16 echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc" 17 echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc vm\n" 30 exit 1 41 echo -e "\tPlease run $0 in" 42 echo -e "\ttools/testing/selftests directory ..." 43 exit 1 51 print_targets=1 [all …]
|