Lines Matching refs:sum
54 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
60 register int sum = 0; in in_cksum() local
87 sum += s_util.s; in in_cksum()
97 sum <<= 8; in in_cksum()
108 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in_cksum()
109 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in in_cksum()
110 sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11]; in in_cksum()
111 sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15]; in in_cksum()
116 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in_cksum()
124 sum += *w++; in in_cksum()
128 sum <<= 8; in in_cksum()
132 sum += s_util.s; in in_cksum()
144 sum += s_util.s; in in_cksum()
147 return (~sum & 0xffff); in in_cksum()
157 in_cksum_shouldbe(u_int16_t sum, u_int16_t computed_sum) in in_cksum_shouldbe() argument
195 shouldbe = sum; in in_cksum_shouldbe()