• Home
  • Raw
  • Download

Lines Matching refs:len

58 crc32_body(u32 crc, unsigned char const *buf, size_t len, const u32 (*tab)[256])  argument
85 if (unlikely((long)buf & 3 && len)) {
88 } while ((--len) && ((long)buf)&3);
92 rem_len = len & 3;
93 len = len >> 2;
95 rem_len = len & 7;
96 len = len >> 3;
102 for (i = 0; i < len; i++) {
104 for (--b; len; --len) {
115 len = rem_len;
117 if (len) {
120 for (i = 0; i < len; i++)
125 } while (--len);
147 size_t len, const u32 (*tab)[256], argument
152 while (len--) {
158 while (len--) {
166 while (len--) {
173 while (len--) {
179 crc = crc32_body(crc, p, len, tab);
186 u32 __pure __weak crc32_le(u32 crc, unsigned char const *p, size_t len) argument
188 return crc32_le_generic(crc, p, len, NULL, CRC32_POLY_LE);
190 u32 __pure __weak __crc32c_le(u32 crc, unsigned char const *p, size_t len) argument
192 return crc32_le_generic(crc, p, len, NULL, CRC32C_POLY_LE);
195 u32 __pure __weak crc32_le(u32 crc, unsigned char const *p, size_t len) argument
197 return crc32_le_generic(crc, p, len,
200 u32 __pure __weak __crc32c_le(u32 crc, unsigned char const *p, size_t len) argument
202 return crc32_le_generic(crc, p, len,
243 static u32 __attribute_const__ crc32_generic_shift(u32 crc, size_t len, argument
250 for (i = 0; i < 8 * (int)(len & 3); i++)
253 len >>= 2;
254 if (!len)
259 if (len & 1)
262 len >>= 1;
263 if (!len)
273 u32 __attribute_const__ crc32_le_shift(u32 crc, size_t len) argument
275 return crc32_generic_shift(crc, len, CRC32_POLY_LE);
278 u32 __attribute_const__ __crc32c_le_shift(u32 crc, size_t len) argument
280 return crc32_generic_shift(crc, len, CRC32C_POLY_LE);
295 size_t len, const u32 (*tab)[256], argument
300 while (len--) {
308 while (len--) {
316 while (len--) {
322 while (len--) {
328 crc = crc32_body(crc, p, len, tab);
335 u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len) argument
337 return crc32_be_generic(crc, p, len, NULL, CRC32_POLY_BE);
340 u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len) argument
342 return crc32_be_generic(crc, p, len,