Lines Matching refs:sum
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()
81 __wsum sum, int *err_ptr) in csum_and_copy_to_user() argument
88 len, sum, err_ptr); in csum_and_copy_to_user()
92 len, sum, err_ptr); in csum_and_copy_to_user()
105 int len, __wsum sum);
113 u32 sum = (__force u32)csum;; in csum_fold() local
115 sum += (sum << 16); in csum_fold()
116 csum = (sum < csum); in csum_fold()
117 sum >>= 16; in csum_fold()
118 sum += csum; in csum_fold()
120 return (__force __sum16)~sum; in csum_fold()
165 __wsum sum) in csum_tcpudp_nofold() argument
192 : "=r" (sum) in csum_tcpudp_nofold()
200 "r" ((__force unsigned long)sum)); in csum_tcpudp_nofold()
202 return sum; in csum_tcpudp_nofold()
219 __wsum sum) in csum_ipv6_magic() argument
275 : "=&r" (sum), "=&r" (tmp) in csum_ipv6_magic()
277 "0" (htonl(len)), "r" (htonl(proto)), "r" (sum)); in csum_ipv6_magic()
279 return csum_fold(sum); in csum_ipv6_magic()