Lines Matching refs:sum
55 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
61 register int sum = 0; in in_cksum() local
88 sum += s_util.s; in in_cksum()
98 sum <<= 8; in in_cksum()
109 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in_cksum()
110 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in in_cksum()
111 sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11]; in in_cksum()
112 sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15]; in in_cksum()
117 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in_cksum()
125 sum += *w++; in in_cksum()
129 sum <<= 8; in in_cksum()
133 sum += s_util.s; in in_cksum()
145 sum += s_util.s; in in_cksum()
148 return (~sum & 0xffff); in in_cksum()
158 in_cksum_shouldbe(uint16_t sum, uint16_t computed_sum) in in_cksum_shouldbe() argument
196 shouldbe = sum; in in_cksum_shouldbe()