Home
last modified time | relevance | path

Searched refs:length (Results 1 – 22 of 22) sorted by relevance

/lib/lz4/
Dlz4_decompress.c122 size_t length; in LZ4_decompress_generic() local
128 length = token>>ML_BITS; in LZ4_decompress_generic()
145 if ((endOnInput ? length != RUN_MASK : length <= 8) in LZ4_decompress_generic()
154 op += length; ip += length; in LZ4_decompress_generic()
161 length = token & ML_MASK; /* match length */ in LZ4_decompress_generic()
168 if ((length != ML_MASK) && in LZ4_decompress_generic()
175 op += length + MINMATCH; in LZ4_decompress_generic()
189 if (length == RUN_MASK) { in LZ4_decompress_generic()
198 length += s; in LZ4_decompress_generic()
205 length < (uptrval)(op))) { in LZ4_decompress_generic()
[all …]
Dlz4hc_compress.c271 int length; in LZ4HC_encodeSequence() local
275 length = (int)(*ip - *anchor); in LZ4HC_encodeSequence()
279 && ((*op + (length>>8) in LZ4HC_encodeSequence()
280 + length + (2 + 1 + LASTLITERALS)) > oend)) { in LZ4HC_encodeSequence()
284 if (length >= (int)RUN_MASK) { in LZ4HC_encodeSequence()
288 len = length - RUN_MASK; in LZ4HC_encodeSequence()
293 *token = (BYTE)(length<<ML_BITS); in LZ4HC_encodeSequence()
296 LZ4_wildCopy(*op, *anchor, (*op) + length); in LZ4HC_encodeSequence()
297 *op += length; in LZ4HC_encodeSequence()
304 length = (int)(matchLength - MINMATCH); in LZ4HC_encodeSequence()
[all …]
/lib/
Dcrc32test.c554 u32 length; /* random 11 bit length of test */ member
678 bytes += 2*test[i].length; in crc32c_test()
681 test[i].start, test[i].length); in crc32c_test()
691 test[i].start, test[i].length)) in crc32c_test()
720 test[i].length); in crc32c_combine_test()
721 for (j = 0; j <= test[i].length; ++j) { in crc32c_combine_test()
723 u32 len1 = j, len2 = test[i].length - j; in crc32c_combine_test()
760 bytes += 2*test[i].length; in crc32_test()
763 test[i].start, test[i].length); in crc32_test()
766 test[i].start, test[i].length); in crc32_test()
[all …]
Dscatterlist.c78 total += sg->length; in sg_nents_for_len()
486 struct scatterlist *sgl_alloc_order(unsigned long long length, in sgl_alloc_order() argument
495 nent = round_up(length, PAGE_SIZE << order) >> (PAGE_SHIFT + order); in sgl_alloc_order()
497 if (length > (nent << (PAGE_SHIFT + order))) in sgl_alloc_order()
513 while (length) { in sgl_alloc_order()
514 elem_len = min_t(u64, length, PAGE_SIZE << order); in sgl_alloc_order()
522 length -= elem_len; in sgl_alloc_order()
525 WARN_ONCE(length, "length = %lld\n", length); in sgl_alloc_order()
540 struct scatterlist *sgl_alloc(unsigned long long length, gfp_t gfp, in sgl_alloc() argument
543 return sgl_alloc_order(length, 0, false, gfp, nent_p); in sgl_alloc()
[all …]
Ducs2_string.c9 unsigned long length = 0; in ucs2_strnlen() local
11 while (*s++ != 0 && length < maxlength) in ucs2_strnlen()
12 length++; in ucs2_strnlen()
13 return length; in ucs2_strnlen()
Dcheck_signature.c17 const unsigned char *signature, int length) in check_signature() argument
19 while (length--) { in check_signature()
Dlibcrc32c.c38 u32 crc32c(u32 crc, const void *address, unsigned int length) in crc32c() argument
47 err = crypto_shash_update(shash, address, length); in crc32c()
Ddecompress_bunzip2.c235 unsigned char length[MAX_SYMBOLS], temp[MAX_HUFCODE_BITS+1]; in get_next_block() local
269 length[i] = t+1; in get_next_block()
272 minLen = maxLen = length[0]; in get_next_block()
275 if (length[i] > maxLen) in get_next_block()
276 maxLen = length[i]; in get_next_block()
277 else if (length[i] < minLen) in get_next_block()
278 minLen = length[i]; in get_next_block()
311 if (length[t] == i) in get_next_block()
316 temp[length[i]]++; in get_next_block()
Dsg_split.c36 sglen = mapped ? sg_dma_len(sg) : sg->length; in sg_calculate_split()
90 out_sg->length -= split->skip_sg0; in sg_split_phys()
98 out_sg[-1].length = split->length_last_sg; in sg_split_phys()
Dkobject.c131 int length = 1; in get_kobj_path_length() local
141 length += strlen(kobject_name(parent)) + 1; in get_kobj_path_length()
144 return length; in get_kobj_path_length()
147 static void fill_kobj_path(struct kobject *kobj, char *path, int length) in fill_kobj_path() argument
151 --length; in fill_kobj_path()
155 length -= cur; in fill_kobj_path()
156 memcpy(path + length, kobject_name(parent), cur); in fill_kobj_path()
157 *(path + --length) = '/'; in fill_kobj_path()
Drhashtable.c961 static u32 rhashtable_jhash2(const void *key, u32 length, u32 seed) in rhashtable_jhash2() argument
963 return jhash2(key, length, seed); in rhashtable_jhash2()
DKconfig148 and crc32_be over byte strings with random alignment and length
/lib/zlib_deflate/
Ddeftree.c177 static void send_bits (deflate_state *s, int value, int length);
182 int length /* number of bits */ in send_bits() argument
185 Tracevv((stderr," l %2d v %4x ", length, value)); in send_bits()
186 Assert(length > 0 && length <= 15, "invalid length"); in send_bits()
187 s->bits_sent += (ulg)length; in send_bits()
193 if (s->bi_valid > (int)Buf_size - length) { in send_bits()
197 s->bi_valid += length - Buf_size; in send_bits()
200 s->bi_valid += length; in send_bits()
205 #define send_bits(s, value, length) \ argument
206 { int len = length;\
[all …]
Ddeflate.c81 int length);
701 int length in check_match() argument
706 (char *)s->window + start, length) != EQUAL) { in check_match()
708 start, match, length); in check_match()
711 } while (--length != 0); in check_match()
715 fprintf(stderr,"\\[%d,%d]", start-match, length); in check_match()
716 do { putc(s->window[start++], stderr); } while (--length != 0); in check_match()
720 # define check_match(s, start, match, length) argument
/lib/zlib_inflate/
Dinflate.c431 state->length = (unsigned)hold & 0xffff; in zlib_inflate()
436 copy = state->length; in zlib_inflate()
446 state->length -= copy; in zlib_inflate()
587 state->length = (unsigned)this.val; in zlib_inflate()
607 state->length += BITS(state->extra); in zlib_inflate()
669 if (copy > state->length) copy = state->length; in zlib_inflate()
673 copy = state->length; in zlib_inflate()
677 state->length -= copy; in zlib_inflate()
681 if (state->length == 0) state->mode = LEN; in zlib_inflate()
685 *put++ = (unsigned char)(state->length); in zlib_inflate()
Dinflate.h92 unsigned length; /* literal or length of data to copy */ member
/lib/mpi/
Dmpicoder.c275 buf_len = miter.length; in mpi_write_to_sgl()
287 buf_len = miter.length; in mpi_write_to_sgl()
306 buf_len = miter.length; in mpi_write_to_sgl()
360 len = miter.length; in mpi_read_raw_from_sgl()
400 len = miter.length; in mpi_read_raw_from_sgl()
/lib/zstd/
Dhuf_decompress.c144 U32 const length = (1 << w) >> 1; in HUF_readDTableX2_wksp() local
149 for (u = rankVal[w]; u < rankVal[w] + length; u++) in HUF_readDTableX2_wksp()
151 rankVal[w] += length; in HUF_readDTableX2_wksp()
384 BYTE length; member
408 DElt.length = 1; in HUF_fillDTableX4Level2()
420 const U32 length = 1 << (sizeLog - nbBits); in HUF_fillDTableX4Level2() local
423 const U32 end = start + length; in HUF_fillDTableX4Level2()
427 DElt.length = 2; in HUF_fillDTableX4Level2()
432 rankVal[weight] += length; in HUF_fillDTableX4Level2()
456 const U32 length = 1 << (targetLog - nbBits); in HUF_fillDTableX4() local
[all …]
Dzstd_internal.h135 ZSTD_STATIC void ZSTD_wildcopy(void *dst, const void *src, ptrdiff_t length) in ZSTD_wildcopy() argument
139 BYTE* const oend = op + length; in ZSTD_wildcopy()
145 if (length <= 8) in ZSTD_wildcopy()
Dmem.h138 ZSTD_STATIC U32 ZSTD_readMINMATCH(const void *memPtr, U32 length) in ZSTD_readMINMATCH() argument
140 switch (length) { in ZSTD_readMINMATCH()
Ddecompress.c1497 size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length) in ZSTD_generateNxBytes() argument
1499 if (length > dstCapacity) in ZSTD_generateNxBytes()
1501 memset(dst, byte, length); in ZSTD_generateNxBytes()
1502 return length; in ZSTD_generateNxBytes()
2293 size_t const length = MIN(dstCapacity, srcSize); in ZSTD_limitCopy() local
2294 memcpy(dst, src, length); in ZSTD_limitCopy()
2295 return length; in ZSTD_limitCopy()
Dcompress.c3124 size_t const length = MIN(dstCapacity, srcSize); in ZSTD_limitCopy() local
3125 memcpy(dst, src, length); in ZSTD_limitCopy()
3126 return length; in ZSTD_limitCopy()