Lines Matching refs:buff
165 __wsum __csum_partial(const void *buff, int len, __wsum sum);
167 static inline __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument
171 sum = csum_add(sum, (__force __wsum)*(const u16 *)buff); in csum_partial()
173 sum = csum_add(sum, (__force __wsum)*(const u32 *)buff); in csum_partial()
176 *(const u16 *)(buff + 4)); in csum_partial()
179 *(const u32 *)(buff + 4)); in csum_partial()
182 *(const u16 *)(buff + 8)); in csum_partial()
185 *(const u32 *)(buff + 8)); in csum_partial()
188 *(const u16 *)(buff + 12)); in csum_partial()
191 *(const u32 *)(buff + 12)); in csum_partial()
193 sum = csum_add(sum, ip_fast_csum_nofold(buff, len >> 2)); in csum_partial()
195 sum = __csum_partial(buff, len, sum); in csum_partial()
204 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument
206 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()