Lines Matching refs:sum
11 static u64 accumulate(u64 sum, u64 data) in accumulate() argument
13 __uint128_t tmp = (__uint128_t)sum + data; in accumulate()
23 unsigned int offset, shift, sum; in do_csum() local
124 sum = sum64 >> 32; in do_csum()
125 sum += (sum >> 16) | (sum << 16); in do_csum()
127 return (u16)swab32(sum); in do_csum()
129 return sum >> 16; in do_csum()
137 u64 sum = (__force u64)csum; in csum_ipv6_magic() local
142 sum += (__force u32)htonl(len); in csum_ipv6_magic()
144 sum += (u32)proto << 24; in csum_ipv6_magic()
146 sum += proto; in csum_ipv6_magic()
151 sum = accumulate(sum, src >> 64); in csum_ipv6_magic()
152 sum = accumulate(sum, dst >> 64); in csum_ipv6_magic()
154 sum += ((sum >> 32) | (sum << 32)); in csum_ipv6_magic()
155 return csum_fold((__force __wsum)(sum >> 32)); in csum_ipv6_magic()