Lines Matching refs:sum
34 void *dst, int len, __wsum sum, int *errp);
44 unsigned int sum; in ip_fast_csum() local
67 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
71 return (__force __sum16)sum; in ip_fast_csum()
79 u32 sum = (__force u32)csum; in csum_fold() local
84 sum += (sum << 16) + (sum >> 16); in csum_fold()
85 return (__force __sum16)(~sum >> 16); in csum_fold()
90 __wsum sum) in csum_tcpudp_nofold() argument
97 : "=r" (sum) in csum_tcpudp_nofold()
98 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold()
99 return sum; in csum_tcpudp_nofold()
108 __wsum sum) in csum_tcpudp_magic() argument
110 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
127 __wsum sum) in csum_ipv6_magic() argument
182 : "=r" (sum), "=r" (saddr), "=r" (daddr), "=r" (len) in csum_ipv6_magic()
183 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len), "r" (proto) in csum_ipv6_magic()
185 return csum_fold(sum); in csum_ipv6_magic()
194 int len, __wsum sum, in csum_and_copy_to_user() argument
198 sum = csum_partial(src, len, sum); in csum_and_copy_to_user()
205 return sum; in csum_and_copy_to_user()