Lines Matching refs:sum
20 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
31 int len, __wsum sum,
42 int len, __wsum sum) in csum_partial_copy_nocheck() argument
44 return csum_partial_copy_generic(src, dst, len, sum, NULL, NULL); in csum_partial_copy_nocheck()
49 int len, __wsum sum, in csum_partial_copy_from_user() argument
57 len, sum, err_ptr, NULL); in csum_partial_copy_from_user()
72 unsigned int sum; in ip_fast_csum() local
94 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
97 return (__force __sum16)sum; in ip_fast_csum()
104 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
108 : "=r" (sum) in csum_fold()
109 : "r" ((__force u32)sum << 16), in csum_fold()
110 "0" ((__force u32)sum & 0xffff0000)); in csum_fold()
111 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
117 __wsum sum) in csum_tcpudp_nofold() argument
123 : "=r" (sum) in csum_tcpudp_nofold()
125 "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold()
126 return sum; in csum_tcpudp_nofold()
136 __wsum sum) in csum_tcpudp_magic() argument
138 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
155 __wsum sum) in csum_ipv6_magic() argument
168 : "=&r" (sum) in csum_ipv6_magic()
170 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
173 return csum_fold(sum); in csum_ipv6_magic()
182 int len, __wsum sum, in csum_and_copy_to_user() argument
191 len, sum, NULL, err_ptr); in csum_and_copy_to_user()