• Home
  • Raw
  • Download

Lines Matching refs:sum

30 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
41 int len, __wsum sum,
52 int len, __wsum sum) in csum_partial_copy_nocheck() argument
54 return csum_partial_copy_generic(src, dst, len, sum, NULL, NULL); in csum_partial_copy_nocheck()
59 int len, __wsum sum, int *err_ptr) in csum_partial_copy_from_user() argument
62 len, sum, err_ptr, NULL); in csum_partial_copy_from_user()
69 static __inline__ __sum16 csum_fold(__wsum sum) in csum_fold() argument
81 : "=r" (sum), "=&r" (__dummy) in csum_fold()
82 : "0" (sum)); in csum_fold()
83 return (__force __sum16)sum; in csum_fold()
92 unsigned int sum, tmp, endaddr; in ip_fast_csum() local
117 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmp), in ip_fast_csum()
122 return csum_fold(sum); in ip_fast_csum()
128 __wsum sum) in csum_tcpudp_nofold() argument
150 : "=r" (sum), "=r" (len_proto) in csum_tcpudp_nofold()
151 : "r" (daddr), "r" (saddr), "1" (len_proto), "0" (sum)); in csum_tcpudp_nofold()
152 return sum; in csum_tcpudp_nofold()
162 __wsum sum) in csum_tcpudp_magic() argument
164 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
181 __wsum sum) in csum_ipv6_magic() argument
232 : "=r" (sum), "=&r" (__dummy) in csum_ipv6_magic()
234 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
237 return csum_fold(sum); in csum_ipv6_magic()
246 __wsum sum, int *err_ptr) in csum_and_copy_to_user() argument
249 return csum_partial_copy_generic(src,dst,len,sum,NULL,err_ptr); in csum_and_copy_to_user()