Lines Matching full:sum
18 * and adds in "sum" (32-bit)
28 __wsum csum_partial(const void *buff, int len, __wsum sum);
58 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
62 : "=r" (sum) in csum_fold()
63 : "r" (sum) in csum_fold()
65 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
76 __wsum sum; in ip_fast_csum() local
93 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1) in ip_fast_csum()
96 return csum_fold(sum); in ip_fast_csum()
101 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument
104 if (__builtin_constant_p(sum) && sum == 0) { in csum_tcpudp_nofold()
113 : "=&r" (sum) in csum_tcpudp_nofold()
126 : "=&r"(sum) in csum_tcpudp_nofold()
127 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
130 return sum; in csum_tcpudp_nofold()
138 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument
140 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
157 __be32 proto, __wsum sum);
161 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
164 htonl(proto), sum)); in csum_ipv6_magic()