Lines Matching refs:sum
32 __wsum csum_partial(const void *buff, int len, __wsum sum);
44 csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) in csum_partial_copy_nocheck() argument
54 : "0" (ret), "1" (d), "2" (l), "r" (sum) in csum_partial_copy_nocheck()
63 __wsum sum, int *err) in csum_partial_copy_from_user() argument
68 register __wsum s asm("g7") = sum; in csum_partial_copy_from_user()
87 __wsum sum, int *err) in csum_partial_copy_to_user() argument
91 return sum; in csum_partial_copy_to_user()
96 register __wsum s asm("g7") = sum; in csum_partial_copy_to_user()
123 __sum16 sum; in ip_fast_csum() local
151 : "=r" (sum), "=&r" (iph) in ip_fast_csum()
154 return sum; in ip_fast_csum()
158 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
166 : "=&r" (sum), "=r" (tmp) in csum_fold()
167 : "0" (sum), "1" ((__force u32)sum<<16) in csum_fold()
169 return (__force __sum16)sum; in csum_fold()
175 __wsum sum) in csum_tcpudp_nofold() argument
181 : "=r" (sum), "=r" (saddr) in csum_tcpudp_nofold()
182 : "r" (daddr), "r" (proto + len), "0" (sum), in csum_tcpudp_nofold()
185 return sum; in csum_tcpudp_nofold()
195 __wsum sum) in csum_tcpudp_magic() argument
197 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
205 __wsum sum) in csum_ipv6_magic() argument
227 : "=&r" (sum) in csum_ipv6_magic()
229 "r"(htonl(len)), "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
232 return csum_fold(sum); in csum_ipv6_magic()