Lines Matching refs:sum
33 __wsum csum_partial(const void *buff, int len, __wsum sum);
83 __sum16 sum; in ip_fast_csum() local
111 : "=r" (sum), "=&r" (iph) in ip_fast_csum()
114 return sum; in ip_fast_csum()
118 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
126 : "=&r" (sum), "=r" (tmp) in csum_fold()
127 : "0" (sum), "1" ((__force u32)sum<<16) in csum_fold()
129 return (__force __sum16)sum; in csum_fold()
134 __wsum sum) in csum_tcpudp_nofold() argument
140 : "=r" (sum), "=r" (saddr) in csum_tcpudp_nofold()
141 : "r" (daddr), "r" (proto + len), "0" (sum), in csum_tcpudp_nofold()
144 return sum; in csum_tcpudp_nofold()
153 __wsum sum) in csum_tcpudp_magic() argument
155 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
162 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
184 : "=&r" (sum) in csum_ipv6_magic()
186 "r"(htonl(len)), "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
189 return csum_fold(sum); in csum_ipv6_magic()