Lines Matching refs:sum
26 __wsum csum_partial(const void *buff, int len, __wsum sum);
37 csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum);
40 csum_partial_copy_from_user(const void __user *src, void *dst, int len, __wsum sum, int *err_ptr);
45 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
49 : "=r" (sum) in csum_fold()
50 : "r" (sum) in csum_fold()
52 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
63 __wsum sum; in ip_fast_csum() local
80 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1) in ip_fast_csum()
83 return csum_fold(sum); in ip_fast_csum()
88 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
91 if (__builtin_constant_p(sum) && sum == 0) { in csum_tcpudp_nofold()
100 : "=&r" (sum) in csum_tcpudp_nofold()
113 : "=&r"(sum) in csum_tcpudp_nofold()
114 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
117 return sum; in csum_tcpudp_nofold()
125 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
127 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
144 __be32 proto, __wsum sum);
148 unsigned short proto, __wsum sum) in csum_ipv6_magic() argument
151 htonl(proto), sum)); in csum_ipv6_magic()