Lines Matching refs:csum

41 						     unsigned int csum)   in csum_ipv6_magic()  argument
48 csum += saddr->s6_addr32[0]; in csum_ipv6_magic()
49 carry = (csum < saddr->s6_addr32[0]); in csum_ipv6_magic()
50 csum += carry; in csum_ipv6_magic()
52 csum += saddr->s6_addr32[1]; in csum_ipv6_magic()
53 carry = (csum < saddr->s6_addr32[1]); in csum_ipv6_magic()
54 csum += carry; in csum_ipv6_magic()
56 csum += saddr->s6_addr32[2]; in csum_ipv6_magic()
57 carry = (csum < saddr->s6_addr32[2]); in csum_ipv6_magic()
58 csum += carry; in csum_ipv6_magic()
60 csum += saddr->s6_addr32[3]; in csum_ipv6_magic()
61 carry = (csum < saddr->s6_addr32[3]); in csum_ipv6_magic()
62 csum += carry; in csum_ipv6_magic()
64 csum += daddr->s6_addr32[0]; in csum_ipv6_magic()
65 carry = (csum < daddr->s6_addr32[0]); in csum_ipv6_magic()
66 csum += carry; in csum_ipv6_magic()
68 csum += daddr->s6_addr32[1]; in csum_ipv6_magic()
69 carry = (csum < daddr->s6_addr32[1]); in csum_ipv6_magic()
70 csum += carry; in csum_ipv6_magic()
72 csum += daddr->s6_addr32[2]; in csum_ipv6_magic()
73 carry = (csum < daddr->s6_addr32[2]); in csum_ipv6_magic()
74 csum += carry; in csum_ipv6_magic()
76 csum += daddr->s6_addr32[3]; in csum_ipv6_magic()
77 carry = (csum < daddr->s6_addr32[3]); in csum_ipv6_magic()
78 csum += carry; in csum_ipv6_magic()
81 csum += ulen; in csum_ipv6_magic()
82 carry = (csum < ulen); in csum_ipv6_magic()
83 csum += carry; in csum_ipv6_magic()
86 csum += uproto; in csum_ipv6_magic()
87 carry = (csum < uproto); in csum_ipv6_magic()
88 csum += carry; in csum_ipv6_magic()
90 return csum_fold(csum); in csum_ipv6_magic()
127 static inline unsigned int csum_add(unsigned int csum, unsigned int addend) in csum_add() argument
129 csum += addend; in csum_add()
130 return csum + (csum < addend); in csum_add()
133 static inline unsigned int csum_sub(unsigned int csum, unsigned int addend) in csum_sub() argument
135 return csum_add(csum, ~addend); in csum_sub()
139 csum_block_add(unsigned int csum, unsigned int csum2, int offset) in csum_block_add() argument
143 return csum_add(csum, csum2); in csum_block_add()
147 csum_block_sub(unsigned int csum, unsigned int csum2, int offset) in csum_block_sub() argument
151 return csum_sub(csum, csum2); in csum_block_sub()