Lines Matching full:sum
25 * and adds in "sum" (32-bit)
35 __wsum csum_partial(const void *buff, int len, __wsum sum);
79 u32 sum = (__force u32)csum; in csum_fold() local
81 sum += (sum << 16); in csum_fold()
82 csum = (__force __wsum)(sum < (__force u32)csum); in csum_fold()
83 sum >>= 16; in csum_fold()
84 sum += (__force u32)csum; in csum_fold()
86 return (__force __sum16)~sum; in csum_fold()
134 unsigned long sum = (__force unsigned long)daddr; in csum_tcpudp_nofold() local
139 sum += tmp; in csum_tcpudp_nofold()
142 sum += sum < tmp; in csum_tcpudp_nofold()
150 sum += tmp; in csum_tcpudp_nofold()
152 sum += sum < tmp; in csum_tcpudp_nofold()
155 sum += tmp; in csum_tcpudp_nofold()
158 sum += sum < tmp; in csum_tcpudp_nofold()
159 osum = sum; in csum_tcpudp_nofold()
161 tmp = sum << sh32; in csum_tcpudp_nofold()
162 sum += tmp; in csum_tcpudp_nofold()
163 osum = sum < tmp; in csum_tcpudp_nofold()
164 osum += sum >> sh32; in csum_tcpudp_nofold()
186 __wsum sum) in csum_ipv6_magic() argument
242 : "=&r" (sum), "=&r" (tmp) in csum_ipv6_magic()
244 "0" (htonl(len)), "r" (htonl(proto)), "r" (sum) in csum_ipv6_magic()
247 return csum_fold(sum); in csum_ipv6_magic()