Lines Matching refs:len
34 static unsigned do_csum(const unsigned char *buff, unsigned len)
39 if (unlikely(len == 0))
44 len--;
47 count = len >> 1; /* nr of 16-bit words.. */
52 len -= 2;
62 len -= 4;
101 if (len & 4) {
106 if (len & 2) {
111 if (len & 1)
122 * computes the checksum of a memory block at buff, length len,
133 __wsum csum_partial(const void *buff, int len, __wsum sum)
135 return (__force __wsum)add32_with_carry(do_csum(buff, len),
143 __sum16 ip_compute_csum(const void *buff, int len)
145 return csum_fold(csum_partial(buff,len,0));