Lines Matching defs:len
44 __wsum csum_partial(const void *buff, int len, __wsum sum)
49 if (likely(len >= 80)) {
55 len -= 80;
56 } while (len >= 80);
64 * len == 40 is the hot case due to IPv6 headers, so return
67 if (len >= 40) {
69 len -= 40;
70 if (!len)
75 if (len & 32) {
85 if (len & 16) {
93 if (len & 8) {
100 if (len & 7) {
101 unsigned int shift = (-len << 3) & 63;
119 __sum16 ip_compute_csum(const void *buff, int len)
121 return csum_fold(csum_partial(buff, len, 0));