/openbmc/linux/arch/arm/lib/ |
H A D | csumpartialcopygeneric.S | 114 adcs sum, sum, r4 115 adcs sum, sum, r5 116 adcs sum, sum, r6 117 adcs sum, sum, r7 128 adcs sum, sum, r4 129 adcs sum, sum, r5 135 adcs sum, sum, r4 185 adcs sum, sum, r4 186 adcs sum, sum, r5 187 adcs sum, sum, r6 [all …]
|
H A D | csumpartial.S | 39 movne sum, sum, ror #8 63 adcs sum, sum, td0 116 adcs sum, sum, td0 117 adcs sum, sum, td1 118 adcs sum, sum, td2 119 adcs sum, sum, td3 121 adcs sum, sum, td0 122 adcs sum, sum, td1 123 adcs sum, sum, td2 124 adcs sum, sum, td3 [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | checksum.h | 78 : "=r" (sum) in csum_tcpudp_nofold() 80 return sum; in csum_tcpudp_nofold() 150 return sum; in ip_fast_csum_nofold() 181 sum = csum_add(sum, (__force __wsum) in csum_partial() 184 sum = csum_add(sum, (__force __wsum) in csum_partial() 187 sum = csum_add(sum, (__force __wsum) in csum_partial() 190 sum = csum_add(sum, (__force __wsum) in csum_partial() 193 sum = csum_add(sum, (__force __wsum) in csum_partial() 196 sum = csum_add(sum, (__force __wsum) in csum_partial() 201 sum = __csum_partial(buff, len, sum); in csum_partial() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | ip6_checksum.c | 20 sum += carry; in csum_ipv6_magic() 24 sum += carry; in csum_ipv6_magic() 28 sum += carry; in csum_ipv6_magic() 32 sum += carry; in csum_ipv6_magic() 36 sum += carry; in csum_ipv6_magic() 40 sum += carry; in csum_ipv6_magic() 44 sum += carry; in csum_ipv6_magic() 48 sum += carry; in csum_ipv6_magic() 51 sum += ulen; in csum_ipv6_magic() 53 sum += carry; in csum_ipv6_magic() [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | checksum.h | 41 : [sum] "+&d" (sum), [rp] "+&d" (rp.pair) : : "cc", "memory"); in csum_partial() 42 return sum; in csum_partial() 48 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 50 u32 csum = (__force u32) sum; in csum_fold() 82 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 84 __u64 csum = (__force __u64)sum; in csum_tcpudp_nofold() 99 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument 117 __u64 sum = (__force __u64)csum; in csum_ipv6_magic() local 127 sum += len; in csum_ipv6_magic() 128 sum += proto; in csum_ipv6_magic() [all …]
|
/openbmc/u-boot/net/ |
H A D | checksum.c | 15 int sum, oddbyte; in compute_ip_checksum() local 18 sum = 0; in compute_ip_checksum() 20 sum += *ptr++; in compute_ip_checksum() 27 sum += oddbyte; in compute_ip_checksum() 29 sum = (sum >> 16) + (sum & 0xffff); in compute_ip_checksum() 30 sum += (sum >> 16); in compute_ip_checksum() 31 sum = ~sum & 0xffff; in compute_ip_checksum() 33 return sum; in compute_ip_checksum() 36 unsigned add_ip_checksums(unsigned offset, unsigned sum, unsigned new) in add_ip_checksums() argument 40 sum = ~sum & 0xffff; in add_ip_checksums() [all …]
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | checksum.h | 48 unsigned int sum = 0; in ip_fast_csum() local 64 return (__force __sum16)~sum; in ip_fast_csum() 75 : "=&d" (sum), "=&d" (tmp) in csum_fold() 76 : "0" (sum), "1" (tmp)); in csum_fold() 78 return (__force __sum16)~sum; in csum_fold() 90 : "=&d" (sum), "=d" (saddr) in csum_tcpudp_nofold() 92 "0" (sum)); in csum_tcpudp_nofold() 93 return sum; in csum_tcpudp_nofold() 142 : "=&d" (sum), "=&d" (tmp) in csum_ipv6_magic() 144 "0" (sum)); in csum_ipv6_magic() [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | checksum.h | 81 sum += (sum << 16); in csum_fold() 83 sum >>= 16; in csum_fold() 139 sum += tmp; in csum_tcpudp_nofold() 142 sum += sum < tmp; in csum_tcpudp_nofold() 150 sum += tmp; in csum_tcpudp_nofold() 152 sum += sum < tmp; in csum_tcpudp_nofold() 155 sum += tmp; in csum_tcpudp_nofold() 158 sum += sum < tmp; in csum_tcpudp_nofold() 159 osum = sum; in csum_tcpudp_nofold() 162 sum += tmp; in csum_tcpudp_nofold() [all …]
|
/openbmc/linux/arch/loongarch/lib/ |
H A D | csum.c | 12 sum += data; in accumulate() 13 if (sum < data) in accumulate() 14 sum += 1; in accumulate() 15 return sum; in accumulate() 112 sum = sum64 >> 32; in do_csum() 113 sum += (sum >> 16) | (sum << 16); in do_csum() 117 return sum >> 16; in do_csum() 131 sum += (u32)proto << 24; in csum_ipv6_magic() 135 sum = accumulate(sum, src >> 64); in csum_ipv6_magic() 136 sum = accumulate(sum, dst >> 64); in csum_ipv6_magic() [all …]
|
/openbmc/linux/arch/arm/include/asm/ |
H A D | checksum.h | 62 : "=r" (sum) in csum_fold() 63 : "r" (sum) in csum_fold() 76 __wsum sum; in ip_fast_csum() local 96 return csum_fold(sum); in ip_fast_csum() 101 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 104 if (__builtin_constant_p(sum) && sum == 0) { in csum_tcpudp_nofold() 113 : "=&r" (sum) in csum_tcpudp_nofold() 126 : "=&r"(sum) in csum_tcpudp_nofold() 130 return sum; in csum_tcpudp_nofold() 138 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument [all …]
|
/openbmc/linux/arch/parisc/include/asm/ |
H A D | checksum.h | 29 unsigned int sum; in ip_fast_csum() local 57 return (__force __sum16)sum; in ip_fast_csum() 65 u32 sum = (__force u32)csum; in csum_fold() local 70 sum += (sum << 16) + (sum >> 16); in csum_fold() 71 return (__force __sum16)(~sum >> 16); in csum_fold() 76 __wsum sum) in csum_tcpudp_nofold() argument 83 : "=r" (sum) in csum_tcpudp_nofold() 85 return sum; in csum_tcpudp_nofold() 94 __wsum sum) in csum_tcpudp_magic() argument 113 __wsum sum) in csum_ipv6_magic() argument [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | iters_num.c | 16 __s64 sum = 0, i; in num_empty_zero() local 30 __s64 sum = 0, i; in num_empty_int_min() local 44 __s64 sum = 0, i; in num_empty_int_max() local 58 __s64 sum = 0, i; in num_empty_minus_one() local 72 __s64 sum = 0, i; in num_simple_sum() local 75 res_simple_sum = sum; in num_simple_sum() 86 __s64 sum = 0, i; in num_neg_sum() local 89 res_neg_sum = sum; in num_neg_sum() 100 __s64 sum = 0, i; in num_very_neg_sum() local 114 __s64 sum = 0, i; in num_very_big_sum() local [all …]
|
H A D | test_rdonly_maps.c | 21 unsigned sum; member 29 unsigned iters = 0, sum = 0; in skip_loop() local 34 sum += *p; in skip_loop() 39 res.sum = sum; in skip_loop() 48 unsigned iters = 0, sum = 0; in part_loop() local 53 sum += *p; in part_loop() 58 res.sum = sum; in part_loop() 68 unsigned iters = 0, sum = 0; in full_loop() local 73 sum += *p; in full_loop() 79 res.sum = sum; in full_loop()
|
/openbmc/linux/arch/x86/um/asm/ |
H A D | checksum.h | 31 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 36 : "=r" (sum) in csum_fold() 37 : "r" ((__force u32)sum << 16), in csum_fold() 38 "0" ((__force u32)sum & 0xffff0000) in csum_fold() 56 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 62 : "=r" (sum) in csum_tcpudp_nofold() 64 return sum; in csum_tcpudp_nofold() 73 __wsum sum) in csum_tcpudp_magic() argument 85 unsigned int sum; in ip_fast_csum() local 107 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | checksum_32.h | 67 unsigned int sum; in ip_fast_csum() local 89 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 92 return (__force __sum16)sum; in ip_fast_csum() 103 : "=r" (sum) in csum_fold() 104 : "r" ((__force u32)sum << 16), in csum_fold() 111 __wsum sum) in csum_tcpudp_nofold() argument 117 : "=r" (sum) in csum_tcpudp_nofold() 120 return sum; in csum_tcpudp_nofold() 129 __wsum sum) in csum_tcpudp_magic() argument 160 : "=&r" (sum) in csum_ipv6_magic() [all …]
|
H A D | checksum_64.h | 22 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 26 : "=r" (sum) in csum_fold() 27 : "r" ((__force u32)sum << 16), in csum_fold() 47 unsigned int sum; in ip_fast_csum() local 69 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 72 return (__force __sum16)sum; in ip_fast_csum() 88 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 94 : "=r" (sum) in csum_tcpudp_nofold() 97 return sum; in csum_tcpudp_nofold() 114 __wsum sum) in csum_tcpudp_magic() argument [all …]
|
/openbmc/linux/sound/pci/ctxfi/ |
H A D | ctamixer.c | 96 amixer->sum = sum; in amixer_set_sum() 102 sum->rsc.ops->index(&sum->rsc)); in amixer_set_sum() 114 struct sum *sum; in amixer_commit_write() local 118 sum = amixer->sum; in amixer_commit_write() 126 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write() 137 sum->rsc.ops->index(&sum->rsc)); in amixer_commit_write() 138 sum->rsc.ops->next_conj(&sum->rsc); in amixer_commit_write() 149 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write() 175 unsigned int scale, struct sum *sum) in amixer_setup() argument 361 static int sum_rsc_init(struct sum *sum, in sum_rsc_init() argument [all …]
|
/openbmc/linux/crypto/ |
H A D | tea.c | 142 y += ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum&3]); in xtea_encrypt() 144 z += ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 &3]); in xtea_encrypt() 153 u32 y, z, sum; in xtea_decrypt() local 163 while (sum) { in xtea_decrypt() 166 y -= ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum & 3]); in xtea_decrypt() 186 y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3]; in xeta_encrypt() 188 z += (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 &3]; in xeta_encrypt() 197 u32 y, z, sum; in xeta_decrypt() local 207 while (sum) { in xeta_decrypt() 208 z -= (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 & 3]; in xeta_decrypt() [all …]
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | checksum_32.h | 83 __sum16 sum; in ip_fast_csum() local 111 : "=r" (sum), "=&r" (iph) in ip_fast_csum() 114 return sum; in ip_fast_csum() 126 : "=&r" (sum), "=r" (tmp) in csum_fold() 127 : "0" (sum), "1" ((__force u32)sum<<16) in csum_fold() 129 return (__force __sum16)sum; in csum_fold() 134 __wsum sum) in csum_tcpudp_nofold() argument 144 return sum; in csum_tcpudp_nofold() 153 __wsum sum) in csum_tcpudp_magic() argument 184 : "=&r" (sum) in csum_ipv6_magic() [all …]
|
H A D | checksum_64.h | 51 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 60 : "=&r" (sum), "=r" (tmp) in csum_fold() 61 : "0" (sum), "1" ((__force u32)sum<<16) in csum_fold() 63 return (__force __sum16)sum; in csum_fold() 68 __wsum sum) in csum_tcpudp_nofold() argument 75 : "=r" (sum), "=r" (saddr) in csum_tcpudp_nofold() 78 return sum; in csum_tcpudp_nofold() 87 __wsum sum) in csum_tcpudp_magic() argument 118 : "=&r" (sum) in csum_ipv6_magic() 120 "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic() [all …]
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | checksum_32.h | 73 : "=r" (sum), "=&r" (__dummy) in csum_fold() 74 : "0" (sum) in csum_fold() 76 return (__force __sum16)sum; in csum_fold() 88 __wsum sum; in ip_fast_csum() local 112 return csum_fold(sum); in ip_fast_csum() 117 __wsum sum) in csum_tcpudp_nofold() argument 130 : "=r" (sum), "=r" (len_proto) in csum_tcpudp_nofold() 134 return sum; in csum_tcpudp_nofold() 143 __wsum sum) in csum_tcpudp_magic() argument 184 : "=r" (sum), "=&r" (__dummy) in csum_ipv6_magic() [all …]
|
/openbmc/linux/arch/xtensa/include/asm/ |
H A D | checksum.h | 79 : "=r" (sum), "=&r" (__dummy) in csum_fold() 80 : "0" (sum)); in csum_fold() 81 return (__force __sum16)sum; in csum_fold() 90 unsigned int sum, tmp, endaddr; in ip_fast_csum() local 120 return csum_fold(sum); in ip_fast_csum() 125 __wsum sum) in csum_tcpudp_nofold() argument 149 return sum; in csum_tcpudp_nofold() 158 __wsum sum) in csum_tcpudp_magic() argument 177 __wsum sum) in csum_ipv6_magic() argument 228 : "=r" (sum), "=&r" (__dummy) in csum_ipv6_magic() [all …]
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | checksum.h | 13 __u32 len, __u8 proto, __wsum sum); 17 u32 sum = (__force u32)csum; in csum_fold() local 18 sum += (sum >> 16) | (sum << 16); in csum_fold() 19 return ~(__force __sum16)(sum >> 16); in csum_fold() 26 u64 sum; in ip_fast_csum() local 33 sum = tmp >> 64; in ip_fast_csum() 35 sum += *(const u32 *)iph; in ip_fast_csum() 39 sum += ((sum >> 32) | (sum << 32)); in ip_fast_csum() 40 return csum_fold((__force __wsum)(sum >> 32)); in ip_fast_csum()
|
/openbmc/linux/arch/arm64/lib/ |
H A D | csum.c | 23 unsigned int offset, shift, sum; in do_csum() local 124 sum = sum64 >> 32; in do_csum() 125 sum += (sum >> 16) | (sum << 16); in do_csum() 127 return (u16)swab32(sum); in do_csum() 129 return sum >> 16; in do_csum() 137 u64 sum = (__force u64)csum; in csum_ipv6_magic() local 144 sum += (u32)proto << 24; in csum_ipv6_magic() 146 sum += proto; in csum_ipv6_magic() 151 sum = accumulate(sum, src >> 64); in csum_ipv6_magic() 152 sum = accumulate(sum, dst >> 64); in csum_ipv6_magic() [all …]
|
/openbmc/linux/arch/mips/lib/ |
H A D | csum_partial.S | 101 #define sum v0 macro 126 ADDC(sum, t0) 277 dsra32 sum, sum, 0 295 srl sum, sum, 8 296 and sum, sum, v1 297 or sum, sum, t0 440 li sum, -1 703 dsra32 sum, sum, 0 720 srl sum, sum, 8 721 and sum, sum, v1 [all …]
|