Lines Matching full:sum
64 q_util.q = sum; \
65 sum = q_util.s[0] + q_util.s[1] + q_util.s[2] + q_util.s[3]; \
69 q_util.q = sum; \
71 sum = l_util.s[0] + l_util.s[1]; \
72 ADDCARRY(sum); \
105 u_int64_t sum = 0; in in_cksumdata() local
111 sum = (u_int64_t) lw[0] + lw[1] + lw[2] + lw[3] + lw[4]; in in_cksumdata()
113 return sum; in in_cksumdata()
119 sum = *lw++ & masks[len >= 3 ? 3 : len]; in in_cksumdata()
123 return sum; in in_cksumdata()
134 sum += (u_int64_t) lw[0]; in in_cksumdata()
138 sum += (u_int64_t) lw[0] + lw[1]; in in_cksumdata()
142 sum += (u_int64_t) lw[0] + lw[1] + lw[2] + lw[3]; in in_cksumdata()
155 sum += prefilled + lw[1] + lw[2] + lw[3] in in_cksumdata()
161 sum += prefilled + lw[1] + lw[2] + lw[3] in in_cksumdata()
168 sum += (u_int64_t) lw[0] + lw[1] + lw[2] + lw[3]; in in_cksumdata()
173 sum += (u_int64_t) *lw++; in in_cksumdata()
177 sum += (u_int64_t) (in_masks[len] & *lw); in in_cksumdata()
179 return sum; in in_cksumdata()
185 u_int64_t sum = a + b; in in_addword() local
187 ADDCARRY(sum); in in_addword()
188 return (sum); in in_addword()
194 u_int64_t sum; in in_pseudo() local
198 sum = (u_int64_t) a + b + c; in in_pseudo()
200 return (sum); in in_pseudo()
228 uint64_t sum; in in_cksum_skip() local
239 sum = a.csum; in in_cksum_skip()
241 return (~sum & 0xffff); in in_cksum_skip()
246 u_int64_t sum = in_cksumdata(ip, sizeof(struct ip)); in in_cksum_hdr() local
250 return (~sum & 0xffff); in in_cksum_hdr()