Lines Matching refs:sum
24 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
63 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
73 : "=r" (sum), "=&r" (__dummy) in csum_fold()
74 : "0" (sum) in csum_fold()
76 return (__force __sum16)sum; in csum_fold()
88 __wsum sum; in ip_fast_csum() local
108 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1) in ip_fast_csum()
112 return csum_fold(sum); in ip_fast_csum()
117 __wsum sum) in csum_tcpudp_nofold() argument
130 : "=r" (sum), "=r" (len_proto) in csum_tcpudp_nofold()
131 : "r" (daddr), "r" (saddr), "1" (len_proto), "0" (sum) in csum_tcpudp_nofold()
134 return sum; in csum_tcpudp_nofold()
143 __wsum sum) in csum_tcpudp_magic() argument
145 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
160 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
184 : "=r" (sum), "=&r" (__dummy) in csum_ipv6_magic()
186 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
189 return csum_fold(sum); in csum_ipv6_magic()