Lines Matching refs:sum
27 __wsum csum_partial(const void *buff, int len, __wsum sum);
57 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
61 : "=r" (sum) in csum_fold()
62 : "r" (sum) in csum_fold()
64 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
75 __wsum sum; in ip_fast_csum() local
92 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1) in ip_fast_csum()
95 return csum_fold(sum); in ip_fast_csum()
100 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument
103 if (__builtin_constant_p(sum) && sum == 0) { in csum_tcpudp_nofold()
112 : "=&r" (sum) in csum_tcpudp_nofold()
125 : "=&r"(sum) in csum_tcpudp_nofold()
126 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
129 return sum; in csum_tcpudp_nofold()
137 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument
139 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
156 __be32 proto, __wsum sum);
160 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
163 htonl(proto), sum)); in csum_ipv6_magic()