Lines Matching refs:sum
34 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
43 int len, __wsum sum);
50 int len, __wsum sum,
57 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
68 : "=r" (sum), "=&r" (tmpreg) in csum_fold()
69 : "0" (sum) in csum_fold()
72 return (__force __sum16)sum; in csum_fold()
82 __wsum sum; in ip_fast_csum() local
109 : "=&r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmpreg0), "=&r" (tmpreg1) in ip_fast_csum()
113 return csum_fold(sum); in ip_fast_csum()
119 __wsum sum) in csum_tcpudp_nofold() argument
135 : "=r" (sum), "=&r" (tmpreg) in csum_tcpudp_nofold()
136 : "r" (daddr), "r" (saddr), "r" (len_proto), "0" (sum) in csum_tcpudp_nofold()
140 return sum; in csum_tcpudp_nofold()
150 __wsum sum) in csum_tcpudp_magic() argument
152 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
169 __wsum sum) in csum_ipv6_magic() argument
193 : "=&r" (sum), "=&r" (tmpreg0), "=&r" (tmpreg1), in csum_ipv6_magic()
196 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
200 return csum_fold(sum); in csum_ipv6_magic()