Lines Matching refs:sum
19 unsigned int csum_partial(const void *buff, int len, __wsum sum);
21 unsigned int sum, int *csum_err);
23 int len, unsigned int sum);
36 __wsum sum, int *err_ptr) in csum_and_copy_to_user() argument
38 sum = csum_partial(src, len, sum); in csum_and_copy_to_user()
43 return sum; in csum_and_copy_to_user()
52 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
71 : "=r" (sum) in csum_fold()
72 : "0" (sum)); in csum_fold()
73 return sum; in csum_fold()
85 unsigned int sum; in ip_fast_csum() local
123 : "=&r" (sum), "=&r" (iph), "=&r" (ihl), "=&r" (dummy) in ip_fast_csum()
126 return csum_fold(sum); in ip_fast_csum()
131 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
152 : "=r" (sum) in csum_tcpudp_nofold()
155 "r" (sum)); in csum_tcpudp_nofold()
156 return sum; in csum_tcpudp_nofold()
165 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
167 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
184 __wsum sum) in csum_ipv6_magic() argument
238 : "=r" (sum), "=r" (proto) in csum_ipv6_magic()
240 "0" (htonl(len)), "1" (htonl(proto)), "r" (sum)); in csum_ipv6_magic()
242 return csum_fold(sum); in csum_ipv6_magic()