Lines Matching refs:sum
22 __wsum csum_partial(const void *buff, int len, __wsum sum);
34 int len, __wsum sum,
39 __wsum sum);
47 unsigned int sum = 0; in ip_fast_csum() local
60 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp) in ip_fast_csum()
61 : "0" (sum), "1" (iph), "2" (ihl) in ip_fast_csum()
63 return (__force __sum16)~sum; in ip_fast_csum()
66 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
68 unsigned int tmp = (__force u32)sum; in csum_fold()
74 : "=&d" (sum), "=&d" (tmp) in csum_fold()
75 : "0" (sum), "1" (tmp)); in csum_fold()
77 return (__force __sum16)~sum; in csum_fold()
82 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
89 : "=&d" (sum), "=d" (saddr) in csum_tcpudp_nofold()
91 "0" (sum)); in csum_tcpudp_nofold()
92 return sum; in csum_tcpudp_nofold()
102 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
104 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
120 __u32 len, unsigned short proto, __wsum sum) in csum_ipv6_magic() argument
141 : "=&d" (sum), "=&d" (tmp) in csum_ipv6_magic()
143 "0" (sum)); in csum_ipv6_magic()
145 return csum_fold(sum); in csum_ipv6_magic()