Lines Matching refs:sum
23 __wsum csum_partial(const void *buff, int len, __wsum sum);
33 __wsum sum, int *src_err_ptr,
45 int len, __wsum sum) in csum_partial_copy_nocheck() argument
47 return csum_partial_copy_generic(src, dst, len, sum, NULL, NULL); in csum_partial_copy_nocheck()
52 int len, __wsum sum, int *err_ptr) in csum_partial_copy_from_user() argument
55 sum, err_ptr, NULL); in csum_partial_copy_from_user()
64 unsigned int sum, tmp; in ip_fast_csum() local
88 : "=r"(sum), "=r"(iph), "=r"(ihl), "=r"(tmp) in ip_fast_csum()
91 return (__force __sum16)sum; in ip_fast_csum()
98 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
107 : "=&r"(sum), "=&r"(tmp) in csum_fold()
108 : "0"(sum)); in csum_fold()
110 return (__force __sum16)~sum; in csum_fold()
116 __wsum sum) in csum_tcpudp_nofold() argument
122 : "=r"(sum) in csum_tcpudp_nofold()
124 "0"(sum) in csum_tcpudp_nofold()
127 return sum; in csum_tcpudp_nofold()
137 __wsum sum) in csum_tcpudp_magic() argument
139 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()