Lines Matching refs:csum
111 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
113 u32 sum = (__force u32)csum;; in csum_fold()
116 csum = (sum < csum); in csum_fold()
118 sum += csum; in csum_fold()
135 unsigned int csum; in ip_fast_csum() local
138 csum = word[0]; in ip_fast_csum()
139 csum += word[1]; in ip_fast_csum()
140 carry = (csum < word[1]); in ip_fast_csum()
141 csum += carry; in ip_fast_csum()
143 csum += word[2]; in ip_fast_csum()
144 carry = (csum < word[2]); in ip_fast_csum()
145 csum += carry; in ip_fast_csum()
147 csum += word[3]; in ip_fast_csum()
148 carry = (csum < word[3]); in ip_fast_csum()
149 csum += carry; in ip_fast_csum()
153 csum += *word; in ip_fast_csum()
154 carry = (csum < *word); in ip_fast_csum()
155 csum += carry; in ip_fast_csum()
159 return csum_fold(csum); in ip_fast_csum()