Lines Matching full:sum

78 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; (void)ADDCARRY(sum);}
93 int sum; in _in6_cksum_pseudo() local
104 sum = csum; in _in6_cksum_pseudo()
114 sum += uph.phs[0]; sum += uph.phs[1]; in _in6_cksum_pseudo()
115 sum += uph.phs[2]; sum += uph.phs[3]; in _in6_cksum_pseudo()
120 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in _in6_cksum_pseudo()
121 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in _in6_cksum_pseudo()
123 sum -= scope; in _in6_cksum_pseudo()
128 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in _in6_cksum_pseudo()
129 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in _in6_cksum_pseudo()
131 sum -= scope; in _in6_cksum_pseudo()
133 return (sum); in _in6_cksum_pseudo()
140 int sum; in in6_cksum_pseudo() local
142 sum = _in6_cksum_pseudo(ip6, len, nxt, csum); in in6_cksum_pseudo()
144 return (sum); in in6_cksum_pseudo()
153 int len, sum; in in6_cksumdata() local
160 sum = 0; in in6_cksumdata()
176 sum += s_util.s; in in6_cksumdata()
187 sum <<= 8; in in6_cksumdata()
198 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in6_cksumdata()
199 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in in6_cksumdata()
200 sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11]; in in6_cksumdata()
201 sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15]; in in6_cksumdata()
206 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in6_cksumdata()
214 sum += *w++; in in6_cksumdata()
218 sum <<= 8; in in6_cksumdata()
221 sum += s_util.s; in in6_cksumdata()
229 return (sum); in in6_cksumdata()
233 int sum; member
243 arg->sum += in6_cksumdata(data, &len, &arg->resid, arg->rlen); in in6_cksum_partial_one()
264 int sum; in in6_cksum_partial() local
288 sum = uph.phs[0]; sum += uph.phs[1]; in in6_cksum_partial()
289 sum += uph.phs[2]; sum += uph.phs[3]; in in6_cksum_partial()
296 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in6_cksum_partial()
297 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in in6_cksum_partial()
299 sum -= scope; in in6_cksum_partial()
304 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in6_cksum_partial()
305 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in in6_cksum_partial()
307 sum -= scope; in in6_cksum_partial()
313 arg.sum = sum; in in6_cksum_partial()
316 sum = arg.sum; in in6_cksum_partial()
324 sum += s_util.s; in in6_cksum_partial()
327 return (~sum & 0xffff); in in6_cksum_partial()