Lines Matching refs:sum
23 __wsum csum_partial(const void *buff, int len, __wsum sum);
48 unsigned int sum = 0; in ip_fast_csum() local
61 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp) in ip_fast_csum()
62 : "0" (sum), "1" (iph), "2" (ihl) in ip_fast_csum()
64 return (__force __sum16)~sum; in ip_fast_csum()
67 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
69 unsigned int tmp = (__force u32)sum; in csum_fold()
75 : "=&d" (sum), "=&d" (tmp) in csum_fold()
76 : "0" (sum), "1" (tmp)); in csum_fold()
78 return (__force __sum16)~sum; in csum_fold()
83 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
90 : "=&d" (sum), "=d" (saddr) in csum_tcpudp_nofold()
92 "0" (sum)); in csum_tcpudp_nofold()
93 return sum; in csum_tcpudp_nofold()
103 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
105 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
121 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
142 : "=&d" (sum), "=&d" (tmp) in csum_ipv6_magic()
144 "0" (sum)); in csum_ipv6_magic()
146 return csum_fold(sum); in csum_ipv6_magic()