Lines Matching refs:sum
29 unsigned int sum; in ip_fast_csum() local
53 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (t0), "=r" (t1), "=r" (t2) in ip_fast_csum()
57 return (__force __sum16)sum; in ip_fast_csum()
65 u32 sum = (__force u32)csum; in csum_fold() local
70 sum += (sum << 16) + (sum >> 16); in csum_fold()
71 return (__force __sum16)(~sum >> 16); in csum_fold()
76 __wsum sum) in csum_tcpudp_nofold() argument
83 : "=r" (sum) in csum_tcpudp_nofold()
84 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold()
85 return sum; in csum_tcpudp_nofold()
94 __wsum sum) in csum_tcpudp_magic() argument
96 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
113 __wsum sum) in csum_ipv6_magic() argument
169 : "=r" (sum), "=r" (saddr), "=r" (daddr), "=r" (len), in csum_ipv6_magic()
171 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len) in csum_ipv6_magic()
173 return csum_fold(sum); in csum_ipv6_magic()