Lines Matching refs:sum
22 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
26 : "=r" (sum) in csum_fold()
27 : "r" ((__force u32)sum << 16), in csum_fold()
28 "0" ((__force u32)sum & 0xffff0000)); in csum_fold()
29 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
47 unsigned int sum; in ip_fast_csum() local
69 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
72 return (__force __sum16)sum; in ip_fast_csum()
88 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
94 : "=r" (sum) in csum_tcpudp_nofold()
96 "g" ((len + proto)<<8), "0" (sum)); in csum_tcpudp_nofold()
97 return sum; in csum_tcpudp_nofold()
114 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
116 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
129 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
137 int len, __wsum sum,
146 int len, __wsum sum);
180 __u32 len, unsigned short proto, __wsum sum);