Lines Matching refs:sum
26 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
37 int len, __wsum sum,
49 int len, __wsum sum) in csum_partial_copy_nocheck() argument
51 return csum_partial_copy_generic(src, dst, len, sum, NULL, NULL); in csum_partial_copy_nocheck()
56 int len, __wsum sum, int *err_ptr) in csum_partial_copy_from_user() argument
59 len, sum, err_ptr, NULL); in csum_partial_copy_from_user()
66 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
76 : "=r" (sum), "=&r" (__dummy) in csum_fold()
77 : "0" (sum) in csum_fold()
79 return (__force __sum16)sum; in csum_fold()
91 unsigned int sum, __dummy0, __dummy1; in ip_fast_csum() local
110 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1) in ip_fast_csum()
114 return csum_fold(sum); in ip_fast_csum()
120 __wsum sum) in csum_tcpudp_nofold() argument
133 : "=r" (sum), "=r" (len_proto) in csum_tcpudp_nofold()
134 : "r" (daddr), "r" (saddr), "1" (len_proto), "0" (sum) in csum_tcpudp_nofold()
137 return sum; in csum_tcpudp_nofold()
147 __wsum sum) in csum_tcpudp_magic() argument
149 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
165 __wsum sum) in csum_ipv6_magic() argument
189 : "=r" (sum), "=&r" (__dummy) in csum_ipv6_magic()
191 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
194 return csum_fold(sum); in csum_ipv6_magic()
203 int len, __wsum sum, in csum_and_copy_to_user() argument
208 dst, len, sum, NULL, err_ptr); in csum_and_copy_to_user()