Lines Matching refs:sum
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()
88 unsigned int sum, __dummy0, __dummy1; in ip_fast_csum() local
107 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1) in ip_fast_csum()
111 return csum_fold(sum); in ip_fast_csum()
116 __wsum sum) in csum_tcpudp_nofold() argument
129 : "=r" (sum), "=r" (len_proto) in csum_tcpudp_nofold()
130 : "r" (daddr), "r" (saddr), "1" (len_proto), "0" (sum) in csum_tcpudp_nofold()
133 return sum; in csum_tcpudp_nofold()
142 __wsum sum) in csum_tcpudp_magic() argument
144 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
159 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
183 : "=r" (sum), "=&r" (__dummy) in csum_ipv6_magic()
185 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
188 return csum_fold(sum); in csum_ipv6_magic()
197 int len, __wsum sum, in csum_and_copy_to_user() argument
202 dst, len, sum, NULL, err_ptr); in csum_and_copy_to_user()