Lines Matching refs:sum
29 __wsum csum_partial(const void *buff, int len, __wsum sum);
38 __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum);
47 int len, __wsum sum, int *csum_err);
57 unsigned int tmp, inc, sum = 0; in ip_fast_csum() local
75 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (inc), "=&r"(tmp) in ip_fast_csum()
76 : "0" (sum), "1" (iph), "2" (ihl), "3" (4), in ip_fast_csum()
81 return (__force __sum16)~sum; in ip_fast_csum()
87 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
96 : "=r"(sum), "=&r"(tmp) in csum_fold()
97 : "0"(sum) in csum_fold()
100 return (__force __sum16)~sum; in csum_fold()
109 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
115 : "=r" (sum) in csum_tcpudp_nofold()
116 : "r" (daddr), "r" (saddr), "r" (len + proto), "0"(sum) in csum_tcpudp_nofold()
119 return sum; in csum_tcpudp_nofold()
124 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
126 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
138 __u32 len, unsigned short proto, __wsum sum) in csum_ipv6_magic() argument
172 : "=r" (sum), "=&r" (tmp), "=r" (tmp2) in csum_ipv6_magic()
173 : "r" (saddr), "r" (daddr), "0" (sum), "2" (len + proto) in csum_ipv6_magic()
177 return (__force __sum16)~sum; in csum_ipv6_magic()