Lines Matching refs:sum
32 __wsum csum_partial(const void * buff, int len, __wsum sum);
41 int len, __wsum sum);
45 __wsum sum);
50 __wsum sum, int *err) in csum_partial_copy_from_user() argument
52 long ret = __csum_partial_copy_from_user(src, dst, len, sum); in csum_partial_copy_from_user()
64 __wsum sum);
69 __wsum sum, int *err) in csum_and_copy_to_user() argument
71 long ret = __csum_partial_copy_to_user(src, dst, len, sum); in csum_and_copy_to_user()
83 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
92 : "=&r" (sum), "=r" (tmp) in csum_fold()
93 : "0" (sum), "1" ((__force u32)sum<<16) in csum_fold()
95 return (__force __sum16)sum; in csum_fold()
101 __wsum sum) in csum_tcpudp_nofold() argument
108 : "=r" (sum), "=r" (saddr) in csum_tcpudp_nofold()
109 : "r" (daddr), "r" (proto + len), "0" (sum), "1" (saddr) in csum_tcpudp_nofold()
111 return sum; in csum_tcpudp_nofold()
121 __wsum sum) in csum_tcpudp_magic() argument
123 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
131 __wsum sum) in csum_ipv6_magic() argument
153 : "=&r" (sum) in csum_ipv6_magic()
155 "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
158 return csum_fold(sum); in csum_ipv6_magic()