/Linux-v5.4/arch/arm/lib/ |
D | csumpartialcopygeneric.S | 21 sum .req r3 label 23 .Lzero: mov r0, sum 38 adcs sum, sum, ip, put_byte_1 @ update checksum 45 adcs sum, sum, r8, put_byte_0 47 adcs sum, sum, ip, put_byte_1 65 adcs sum, sum, ip, put_byte_1 @ update checksum 72 adcs sum, sum, r8, put_byte_0 74 adcs sum, sum, ip, put_byte_1 83 adcs sum, sum, r8, put_byte_0 @ update checksum 93 adds sum, sum, #0 @ C = 0 [all …]
|
D | csumpartial.S | 20 sum .req r2 label 26 .Lzero: mov r0, sum 39 movne sum, sum, ror #8 42 adcsne sum, sum, td0, put_byte_1 63 adcs sum, sum, td0 69 adcsne sum, sum, td0, put_byte_0 @ update checksum 71 .Ldone: adc r0, sum, #0 @ collect up the last carry 80 adcsne sum, sum, td0, put_byte_1 @ update checksum 96 adcsne sum, sum, td0 @ update checksum 105 movne sum, sum, ror #8 [all …]
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | checksum.h | 22 int len, __wsum sum, 27 int len, __wsum sum, int *err_ptr); 30 int len, __wsum sum, int *err_ptr); 32 #define csum_partial_copy_nocheck(src, dst, len, sum) \ argument 33 csum_partial_copy_generic((src), (dst), (len), (sum), NULL, NULL) 40 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 45 __asm__("rlwinm %0,%1,16,0,31" : "=r" (tmp) : "r" (sum)); in csum_fold() 49 return (__force __sum16)(~((__force u32)sum + tmp) >> 16); in csum_fold() 58 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 61 u64 s = (__force u32)sum; in csum_tcpudp_nofold() [all …]
|
/Linux-v5.4/net/ipv6/ |
D | ip6_checksum.c | 16 __u32 sum = (__force u32)csum; in csum_ipv6_magic() local 18 sum += (__force u32)saddr->s6_addr32[0]; in csum_ipv6_magic() 19 carry = (sum < (__force u32)saddr->s6_addr32[0]); in csum_ipv6_magic() 20 sum += carry; in csum_ipv6_magic() 22 sum += (__force u32)saddr->s6_addr32[1]; in csum_ipv6_magic() 23 carry = (sum < (__force u32)saddr->s6_addr32[1]); in csum_ipv6_magic() 24 sum += carry; in csum_ipv6_magic() 26 sum += (__force u32)saddr->s6_addr32[2]; in csum_ipv6_magic() 27 carry = (sum < (__force u32)saddr->s6_addr32[2]); in csum_ipv6_magic() 28 sum += carry; in csum_ipv6_magic() [all …]
|
/Linux-v5.4/arch/m68k/include/asm/ |
D | checksum.h | 23 __wsum csum_partial(const void *buff, int len, __wsum sum); 35 int len, __wsum sum, 40 __wsum sum); 48 unsigned int sum = 0; in ip_fast_csum() local 61 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp) in ip_fast_csum() 62 : "0" (sum), "1" (iph), "2" (ihl) in ip_fast_csum() 64 return (__force __sum16)~sum; in ip_fast_csum() 67 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 69 unsigned int tmp = (__force u32)sum; in csum_fold() 75 : "=&d" (sum), "=&d" (tmp) in csum_fold() [all …]
|
/Linux-v5.4/arch/x86/include/asm/ |
D | checksum_32.h | 20 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum); 31 int len, __wsum sum, 42 int len, __wsum sum) in csum_partial_copy_nocheck() argument 44 return csum_partial_copy_generic(src, dst, len, sum, NULL, NULL); in csum_partial_copy_nocheck() 49 int len, __wsum sum, in csum_partial_copy_from_user() argument 57 len, sum, err_ptr, NULL); in csum_partial_copy_from_user() 72 unsigned int sum; in ip_fast_csum() local 94 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 97 return (__force __sum16)sum; in ip_fast_csum() 104 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument [all …]
|
D | checksum_64.h | 23 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 27 : "=r" (sum) in csum_fold() 28 : "r" ((__force u32)sum << 16), in csum_fold() 29 "0" ((__force u32)sum & 0xffff0000)); in csum_fold() 30 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold() 48 unsigned int sum; in ip_fast_csum() local 70 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 73 return (__force __sum16)sum; in ip_fast_csum() 89 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 95 : "=r" (sum) in csum_tcpudp_nofold() [all …]
|
/Linux-v5.4/arch/parisc/include/asm/ |
D | checksum.h | 34 void *dst, int len, __wsum sum, int *errp); 44 unsigned int sum; in ip_fast_csum() local 67 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 71 return (__force __sum16)sum; in ip_fast_csum() 79 u32 sum = (__force u32)csum; in csum_fold() local 84 sum += (sum << 16) + (sum >> 16); in csum_fold() 85 return (__force __sum16)(~sum >> 16); in csum_fold() 90 __wsum sum) in csum_tcpudp_nofold() argument 97 : "=r" (sum) in csum_tcpudp_nofold() 98 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold() [all …]
|
/Linux-v5.4/arch/sh/include/asm/ |
D | checksum_32.h | 23 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum); 34 int len, __wsum sum, 46 int len, __wsum sum) in csum_partial_copy_nocheck() argument 48 return csum_partial_copy_generic(src, dst, len, sum, NULL, NULL); in csum_partial_copy_nocheck() 53 int len, __wsum sum, int *err_ptr) in csum_partial_copy_from_user() argument 56 len, sum, err_ptr, NULL); in csum_partial_copy_from_user() 63 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 73 : "=r" (sum), "=&r" (__dummy) in csum_fold() 74 : "0" (sum) in csum_fold() 76 return (__force __sum16)sum; in csum_fold() [all …]
|
/Linux-v5.4/arch/mips/include/asm/ |
D | checksum.h | 35 __wsum csum_partial(const void *buff, int len, __wsum sum); 38 int len, __wsum sum, int *err_ptr); 41 int len, __wsum sum, int *err_ptr); 43 int len, __wsum sum, int *err_ptr); 50 __wsum sum, int *err_ptr) in csum_partial_copy_from_user() argument 55 len, sum, err_ptr); in csum_partial_copy_from_user() 58 len, sum, err_ptr); in csum_partial_copy_from_user() 64 int len, __wsum sum, int *err_ptr) in csum_and_copy_from_user() argument 67 return csum_partial_copy_from_user(src, dst, len, sum, in csum_and_copy_from_user() 72 return sum; in csum_and_copy_from_user() [all …]
|
/Linux-v5.4/arch/arm/include/asm/ |
D | checksum.h | 27 __wsum csum_partial(const void *buff, int len, __wsum sum); 38 csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum); 41 csum_partial_copy_from_user(const void __user *src, void *dst, int len, __wsum sum, int *err_ptr); 46 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 50 : "=r" (sum) in csum_fold() 51 : "r" (sum) in csum_fold() 53 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold() 64 __wsum sum; in ip_fast_csum() local 81 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1) in ip_fast_csum() 84 return csum_fold(sum); in ip_fast_csum() [all …]
|
/Linux-v5.4/arch/sparc/include/asm/ |
D | checksum_32.h | 33 __wsum csum_partial(const void *buff, int len, __wsum sum); 45 csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) in csum_partial_copy_nocheck() argument 55 : "0" (ret), "1" (d), "2" (l), "r" (sum) in csum_partial_copy_nocheck() 64 __wsum sum, int *err) in csum_partial_copy_from_user() argument 69 register __wsum s asm("g7") = sum; in csum_partial_copy_from_user() 88 __wsum sum, int *err) in csum_partial_copy_to_user() argument 92 return sum; in csum_partial_copy_to_user() 97 register __wsum s asm("g7") = sum; in csum_partial_copy_to_user() 124 __sum16 sum; in ip_fast_csum() local 152 : "=r" (sum), "=&r" (iph) in ip_fast_csum() [all …]
|
D | checksum_64.h | 33 __wsum csum_partial(const void * buff, int len, __wsum sum); 42 int len, __wsum sum); 46 __wsum sum); 51 __wsum sum, int *err) in csum_partial_copy_from_user() argument 53 long ret = __csum_partial_copy_from_user(src, dst, len, sum); in csum_partial_copy_from_user() 65 __wsum sum); 70 __wsum sum, int *err) in csum_and_copy_to_user() argument 72 long ret = __csum_partial_copy_to_user(src, dst, len, sum); in csum_and_copy_to_user() 84 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 93 : "=&r" (sum), "=r" (tmp) in csum_fold() [all …]
|
/Linux-v5.4/arch/xtensa/include/asm/ |
D | checksum.h | 30 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum); 41 int len, __wsum sum, 52 int len, __wsum sum) in csum_partial_copy_nocheck() argument 54 return csum_partial_copy_generic(src, dst, len, sum, NULL, NULL); in csum_partial_copy_nocheck() 59 int len, __wsum sum, int *err_ptr) in csum_partial_copy_from_user() argument 62 len, sum, err_ptr, NULL); in csum_partial_copy_from_user() 69 static __inline__ __sum16 csum_fold(__wsum sum) in csum_fold() argument 81 : "=r" (sum), "=&r" (__dummy) in csum_fold() 82 : "0" (sum)); in csum_fold() 83 return (__force __sum16)sum; in csum_fold() [all …]
|
/Linux-v5.4/arch/x86/um/asm/ |
D | checksum.h | 21 extern __wsum csum_partial(const void *buff, int len, __wsum sum); 33 int len, __wsum sum) in csum_partial_copy_nocheck() argument 36 return csum_partial(dst, len, sum); in csum_partial_copy_nocheck() 49 int len, __wsum sum, int *err_ptr) in csum_partial_copy_from_user() argument 56 return csum_partial(dst, len, sum); in csum_partial_copy_from_user() 67 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 72 : "=r" (sum) in csum_fold() 73 : "r" ((__force u32)sum << 16), in csum_fold() 74 "0" ((__force u32)sum & 0xffff0000) in csum_fold() 76 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold() [all …]
|
/Linux-v5.4/sound/pci/ctxfi/ |
D | ctamixer.c | 92 static int amixer_set_sum(struct amixer *amixer, struct sum *sum) in amixer_set_sum() argument 97 amixer->sum = sum; in amixer_set_sum() 98 if (!sum) { in amixer_set_sum() 103 sum->rsc.ops->index(&sum->rsc)); in amixer_set_sum() 115 struct sum *sum; in amixer_commit_write() local 119 sum = amixer->sum; in amixer_commit_write() 126 if (sum) in amixer_commit_write() 127 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write() 136 if (sum) { in amixer_commit_write() 138 sum->rsc.ops->index(&sum->rsc)); in amixer_commit_write() [all …]
|
/Linux-v5.4/crypto/ |
D | tea.c | 59 u32 y, z, n, sum = 0; in tea_encrypt() local 76 sum += TEA_DELTA; in tea_encrypt() 77 y += ((z << 4) + k0) ^ (z + sum) ^ ((z >> 5) + k1); in tea_encrypt() 78 z += ((y << 4) + k2) ^ (y + sum) ^ ((y >> 5) + k3); in tea_encrypt() 87 u32 y, z, n, sum; in tea_decrypt() local 101 sum = TEA_DELTA << 5; in tea_decrypt() 106 z -= ((y << 4) + k2) ^ (y + sum) ^ ((y >> 5) + k3); in tea_decrypt() 107 y -= ((z << 4) + k0) ^ (z + sum) ^ ((z >> 5) + k1); in tea_decrypt() 108 sum -= TEA_DELTA; in tea_decrypt() 132 u32 y, z, sum = 0; in xtea_encrypt() local [all …]
|
/Linux-v5.4/arch/nios2/include/asm/ |
D | checksum.h | 14 extern __wsum csum_partial(const void *buff, int len, __wsum sum); 16 __wsum sum); 18 int len, __wsum sum, int *csum_err); 19 #define csum_partial_copy_nocheck(src, dst, len, sum) \ argument 20 csum_partial_copy((src), (dst), (len), (sum)) 28 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument 36 : "=r" (sum) in csum_fold() 37 : "r" (sum << 16), "0" (sum) in csum_fold() 39 return (__force __sum16) sum; in csum_fold() 49 __wsum sum) in csum_tcpudp_nofold() argument [all …]
|
/Linux-v5.4/include/asm-generic/ |
D | checksum.h | 17 extern __wsum csum_partial(const void *buff, int len, __wsum sum); 26 extern __wsum csum_partial_copy(const void *src, void *dst, int len, __wsum sum); 35 int len, __wsum sum, int *csum_err); 38 #define csum_partial_copy_nocheck(src, dst, len, sum) \ argument 39 csum_partial_copy((src), (dst), (len), (sum)) 56 u32 sum = (__force u32)csum; in csum_fold() local 57 sum = (sum & 0xffff) + (sum >> 16); in csum_fold() 58 sum = (sum & 0xffff) + (sum >> 16); in csum_fold() 59 return (__force __sum16)~sum; in csum_fold() 70 __u8 proto, __wsum sum); [all …]
|
/Linux-v5.4/include/net/ |
D | checksum.h | 27 int len, __wsum sum, int *err_ptr) in csum_and_copy_from_user() argument 30 return csum_partial_copy_from_user(src, dst, len, sum, err_ptr); in csum_and_copy_from_user() 35 return sum; in csum_and_copy_from_user() 41 (const void *src, void __user *dst, int len, __wsum sum, int *err_ptr) in csum_and_copy_to_user() argument 43 sum = csum_partial(src, len, sum); in csum_and_copy_to_user() 47 return sum; in csum_and_copy_to_user() 86 u32 sum = (__force u32)csum2; in csum_block_add() local 90 sum = ror32(sum, 8); in csum_block_add() 92 return csum_add(csum, (__force __wsum)sum); in csum_block_add() 112 static inline __wsum csum_partial_ext(const void *buff, int len, __wsum sum) in csum_partial_ext() argument [all …]
|
/Linux-v5.4/arch/alpha/include/asm/ |
D | checksum.h | 18 __u32 len, __u8 proto, __wsum sum); 21 __u32 len, __u8 proto, __wsum sum); 35 extern __wsum csum_partial(const void *buff, int len, __wsum sum); 44 __wsum csum_partial_copy_from_user(const void __user *src, void *dst, int len, __wsum sum, int *err… 46 __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum); 62 u32 sum = (__force u32)csum; in csum_fold() local 63 sum = (sum & 0xffff) + (sum >> 16); in csum_fold() 64 sum = (sum & 0xffff) + (sum >> 16); in csum_fold() 65 return (__force __sum16)~sum; in csum_fold() 71 __u32 len, __u8 proto, __wsum sum);
|
/Linux-v5.4/arch/arm64/include/asm/ |
D | checksum.h | 12 u32 sum = (__force u32)csum; in csum_fold() local 13 sum += (sum >> 16) | (sum << 16); in csum_fold() 14 return ~(__force __sum16)(sum >> 16); in csum_fold() 21 u64 sum; in ip_fast_csum() local 27 sum = tmp >> 64; in ip_fast_csum() 29 sum += *(const u32 *)iph; in ip_fast_csum() 33 sum += ((sum >> 32) | (sum << 32)); in ip_fast_csum() 34 return csum_fold((__force u32)(sum >> 32)); in ip_fast_csum()
|
/Linux-v5.4/arch/ia64/include/asm/ |
D | checksum.h | 21 __u32 len, __u8 proto, __wsum sum); 24 __u32 len, __u8 proto, __wsum sum); 38 extern __wsum csum_partial(const void *buff, int len, __wsum sum); 47 int len, __wsum sum, 51 int len, __wsum sum); 64 u32 sum = (__force u32)csum; in csum_fold() local 65 sum = (sum & 0xffff) + (sum >> 16); in csum_fold() 66 sum = (sum & 0xffff) + (sum >> 16); in csum_fold() 67 return (__force __sum16)~sum; in csum_fold()
|
/Linux-v5.4/arch/mips/lib/ |
D | csum_partial.S | 59 #define ADDC(sum,reg) \ argument 62 ADD sum, reg; \ 63 sltu v1, sum, reg; \ 64 ADD sum, v1; \ 67 #define ADDC32(sum,reg) \ argument 70 addu sum, reg; \ 71 sltu v1, sum, reg; \ 72 addu sum, v1; \ 75 #define CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3) \ argument 82 ADDC(sum, _t0); \ [all …]
|
/Linux-v5.4/arch/m68k/lib/ |
D | checksum.c | 38 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument 117 : "=d" (sum), "=d" (len), "=a" (buff), in csum_partial() 119 : "0" (sum), "1" (len), "2" (buff) in csum_partial() 121 return(sum); in csum_partial() 133 int len, __wsum sum, int *csum_err) in csum_partial_copy_from_user() argument 309 : "=d" (sum), "=d" (len), "=a" (src), "=a" (dst), in csum_partial_copy_from_user() 311 : "0" (sum), "1" (len), "2" (src), "3" (dst) in csum_partial_copy_from_user() 316 return(sum); in csum_partial_copy_from_user() 327 csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) in csum_partial_copy_nocheck() argument 415 : "=d" (sum), "=d" (len), "=a" (src), "=a" (dst), in csum_partial_copy_nocheck() [all …]
|