Lines Matching refs:sum
19 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
31 int len, __wsum sum) in csum_partial_copy_nocheck() argument
34 return csum_partial(dst, len, sum); in csum_partial_copy_nocheck()
47 int len, __wsum sum, int *err_ptr) in csum_partial_copy_from_user() argument
54 return csum_partial(dst, len, sum); in csum_partial_copy_from_user()
65 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
70 : "=r" (sum) in csum_fold()
71 : "r" ((__force u32)sum << 16), in csum_fold()
72 "0" ((__force u32)sum & 0xffff0000) in csum_fold()
74 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
90 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
96 : "=r" (sum) in csum_tcpudp_nofold()
97 : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold()
98 return sum; in csum_tcpudp_nofold()
108 __wsum sum) in csum_tcpudp_magic() argument
110 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
120 unsigned int sum; in ip_fast_csum() local
142 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
145 return (__force __sum16)sum; in ip_fast_csum()