Home
last modified time | relevance | path

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

12

/lib/lz4/
A Dlz4_decompress.c121 size_t length; in LZ4_decompress_generic() local
147 if ((endOnInput ? length != RUN_MASK : length <= 8) in LZ4_decompress_generic()
156 op += length; ip += length; in LZ4_decompress_generic()
200 length += s; in LZ4_decompress_generic()
270 ip += length; in LZ4_decompress_generic()
271 op += length; in LZ4_decompress_generic()
283 ip += length; in LZ4_decompress_generic()
322 length += s; in LZ4_decompress_generic()
341 length = min(length, (size_t)(oend - op)); in LZ4_decompress_generic()
350 length); in LZ4_decompress_generic()
[all …]
A Dlz4hc_compress.c270 int length; in LZ4HC_encodeSequence() local
278 && ((*op + (length>>8) in LZ4HC_encodeSequence()
287 len = length - RUN_MASK; in LZ4HC_encodeSequence()
296 *op += length; in LZ4HC_encodeSequence()
306 && (*op + (length>>8) in LZ4HC_encodeSequence()
314 length -= ML_MASK; in LZ4HC_encodeSequence()
316 for (; length > 509 ; length -= 510) { in LZ4HC_encodeSequence()
321 if (length > 254) { in LZ4HC_encodeSequence()
322 length -= 255; in LZ4HC_encodeSequence()
326 *(*op)++ = (BYTE)length; in LZ4HC_encodeSequence()
[all …]
/lib/
A Dfw_table.c53 return entry->hdr->common.length; in acpi_get_entry_length()
55 return entry->hdr->hmat.length; in acpi_get_entry_length()
57 return entry->hdr->prmt.length; in acpi_get_entry_length()
59 return entry->hdr->cedt.length; in acpi_get_entry_length()
61 __le16 length = (__force __le16)entry->hdr->cdat.length; in acpi_get_entry_length() local
63 return le16_to_cpu(length); in acpi_get_entry_length()
106 __le32 length = (__force __le32)header->cdat.length; in acpi_table_get_length() local
108 return le32_to_cpu(length); in acpi_table_get_length()
111 return header->acpi.length; in acpi_table_get_length()
216 unsigned long length) in cdat_table_parse() argument
[all …]
A 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()
A Dscatterlist.c58 total += sg->length; in sg_nents_for_len()
460 prv_len = sgt_append->prv->length; in sg_alloc_append_table_from_pages()
467 sgt_append->prv->length += PAGE_SIZE; in sg_alloc_append_table_from_pages()
512 sgt_append->prv->length = prv_len; in sg_alloc_append_table_from_pages()
616 while (length) { in sgl_alloc_order()
625 length -= elem_len; in sgl_alloc_order()
628 WARN_ONCE(length, "length = %lld\n", length); in sgl_alloc_order()
905 WARN_ON(miter->consumed > miter->length); in sg_miter_stop()
925 miter->length = 0; in sg_miter_stop()
964 len = min(miter.length, buflen - offset); in sg_copy_buffer()
[all …]
A Dcheck_signature.c17 const unsigned char *signature, int length) in check_signature() argument
19 while (length--) { in check_signature()
A Ddecompress_bunzip2.c235 unsigned char length[MAX_SYMBOLS]; in get_next_block() local
270 length[i] = t+1; in get_next_block()
273 minLen = maxLen = length[0]; in get_next_block()
276 if (length[i] > maxLen) in get_next_block()
277 maxLen = length[i]; in get_next_block()
278 else if (length[i] < minLen) in get_next_block()
279 minLen = length[i]; in get_next_block()
312 if (length[t] == i) in get_next_block()
317 temp[length[i]]++; in get_next_block()
A 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()
96 out_sg[-1].length = split->length_last_sg; in sg_split_phys()
A Dkobject.c108 int length = 1; in get_kobj_path_length() local
118 length += strlen(kobject_name(parent)) + 1; in get_kobj_path_length()
121 return length; in get_kobj_path_length()
124 static int fill_kobj_path(const struct kobject *kobj, char *path, int length) in fill_kobj_path() argument
128 --length; in fill_kobj_path()
132 length -= cur; in fill_kobj_path()
133 if (length <= 0) in fill_kobj_path()
135 memcpy(path + length, kobject_name(parent), cur); in fill_kobj_path()
136 *(path + --length) = '/'; in fill_kobj_path()
A Ddynamic_debug.c616 for (bi = 0; bi < map->length; bi++) { in ddebug_apply_class_bitmap()
668 cls_id = match_string(map->class_names, map->length, cl_str); in param_set_dyndbg_classnames()
750 if (inrep & ~CLASSMAP_BITMASK(map->length)) { in param_set_dyndbg_classes()
752 KP_NAME(kp), inrep, CLASSMAP_BITMASK(map->length)); in param_set_dyndbg_classes()
753 inrep &= CLASSMAP_BITMASK(map->length); in param_set_dyndbg_classes()
761 if (inrep > map->length) { in param_set_dyndbg_classes()
763 KP_NAME(kp), inrep, map->length); in param_set_dyndbg_classes()
764 inrep = map->length; in param_set_dyndbg_classes()
1113 (class_id >= map->base && class_id < map->base + map->length)
1215 cm->mod_name, cm->base, cm->length, cm->map_type); in ddebug_attach_module_classes()
[all …]
/lib/crc/arm64/
A Dcrc-t10dif.h24 static inline u16 crc_t10dif_arch(u16 crc, const u8 *data, size_t length) in crc_t10dif_arch() argument
26 if (length >= CRC_T10DIF_PMULL_CHUNK_SIZE) { in crc_t10dif_arch()
30 crc = crc_t10dif_pmull_p64(crc, data, length); in crc_t10dif_arch()
34 } else if (length > CRC_T10DIF_PMULL_CHUNK_SIZE && in crc_t10dif_arch()
40 crc_t10dif_pmull_p8(crc, data, length, buf); in crc_t10dif_arch()
46 return crc_t10dif_generic(crc, data, length); in crc_t10dif_arch()
/lib/crc/arm/
A Dcrc-t10dif.h22 static inline u16 crc_t10dif_arch(u16 crc, const u8 *data, size_t length) in crc_t10dif_arch() argument
24 if (length >= CRC_T10DIF_PMULL_CHUNK_SIZE) { in crc_t10dif_arch()
28 crc = crc_t10dif_pmull64(crc, data, length); in crc_t10dif_arch()
32 } else if (length > CRC_T10DIF_PMULL_CHUNK_SIZE && in crc_t10dif_arch()
38 crc_t10dif_pmull8(crc, data, length, buf); in crc_t10dif_arch()
44 return crc_t10dif_generic(crc, data, length); in crc_t10dif_arch()
/lib/zlib_deflate/
A Ddefutil.h366 int length /* number of bits */ in send_bits() argument
369 Tracevv((stderr," l %2d v %4x ", length, value)); in send_bits()
370 Assert(length > 0 && length <= 15, "invalid length"); in send_bits()
371 s->bits_sent += (ulg)length; in send_bits()
377 if (s->bi_valid > (int)Buf_size - length) { in send_bits()
381 s->bi_valid += length - Buf_size; in send_bits()
384 s->bi_valid += length; in send_bits()
389 #define send_bits(s, value, length) \ argument
390 { int len = length;\
407 int length in zlib_tr_send_bits() argument
[all …]
A Ddeflate.c83 int length);
709 int length in check_match() argument
713 if (memcmp((char *)s->window + match, (char *)s->window + start, length)) { in check_match()
715 start, match, length); in check_match()
718 } while (--length != 0); in check_match()
722 fprintf(stderr,"\\[%d,%d]", start-match, length); in check_match()
723 do { putc(s->window[start++], stderr); } while (--length != 0); in check_match()
727 # define check_match(s, start, match, length) argument
A Ddeftree.c176 int length; /* length value */ in tr_static_init() local
185 length = 0; in tr_static_init()
187 base_length[code] = length; in tr_static_init()
189 length_code[length++] = (uch)code; in tr_static_init()
192 Assert (length == 256, "tr_static_init: length != 256"); in tr_static_init()
197 length_code[length-1] = (uch)code; in tr_static_init()
/lib/crypto/
A Dchacha20poly1305.c262 size_t length = min_t(size_t, sl, miter.length); in chacha20poly1305_crypt_sg_inplace() local
274 length -= l; in chacha20poly1305_crypt_sg_inplace()
277 if (likely(length >= CHACHA_BLOCK_SIZE || length == sl)) { in chacha20poly1305_crypt_sg_inplace()
278 size_t l = length; in chacha20poly1305_crypt_sg_inplace()
280 if (unlikely(length < sl)) in chacha20poly1305_crypt_sg_inplace()
284 length -= l; in chacha20poly1305_crypt_sg_inplace()
287 if (unlikely(length > 0)) { in chacha20poly1305_crypt_sg_inplace()
291 partial = length; in chacha20poly1305_crypt_sg_inplace()
296 min_t(size_t, sl, miter.length)); in chacha20poly1305_crypt_sg_inplace()
309 miter.addr + miter.length + sl); in chacha20poly1305_crypt_sg_inplace()
[all …]
/lib/zstd/common/
A Dzstd_internal.h210 void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e const ovtype) in ZSTD_wildcopy() argument
215 BYTE* const oend = op + length; in ZSTD_wildcopy()
231 if (16 >= length) return; in ZSTD_wildcopy()
244 size_t const length = MIN(dstCapacity, srcSize); in ZSTD_limitCopy() local
245 if (length > 0) { in ZSTD_limitCopy()
246 ZSTD_memcpy(dst, src, length); in ZSTD_limitCopy()
248 return length; in ZSTD_limitCopy()
/lib/zlib_inflate/
A Dinflate.c446 state->length = (unsigned)hold & 0xffff; in zlib_inflate()
451 copy = state->length; in zlib_inflate()
461 state->length -= copy; in zlib_inflate()
602 state->length = (unsigned)this.val; in zlib_inflate()
622 state->length += BITS(state->extra); in zlib_inflate()
684 if (copy > state->length) copy = state->length; in zlib_inflate()
688 copy = state->length; in zlib_inflate()
692 state->length -= copy; in zlib_inflate()
696 if (state->length == 0) state->mode = LEN; in zlib_inflate()
700 *put++ = (unsigned char)(state->length); in zlib_inflate()
A Dinflate.h94 unsigned length; /* literal or length of data to copy */ member
/lib/crypto/mpi/
A Dmpicoder.c276 buf_len = miter.length; in mpi_write_to_sgl()
288 buf_len = miter.length; in mpi_write_to_sgl()
307 buf_len = miter.length; in mpi_write_to_sgl()
361 len = miter.length; in mpi_read_raw_from_sgl()
401 len = min_t(unsigned, miter.length, nbytes); in mpi_read_raw_from_sgl()
/lib/kunit/
A Dstring-stream.c83 stream->length += result_len; in string_stream_vadd()
113 stream->length = 0; in string_stream_clear()
120 size_t buf_len = stream->length + 1; /* +1 for null byte. */ in string_stream_get_string()
A Dstring-stream.h22 size_t length; member
/lib/zstd/decompress/
A Dhuf_decompress.c457 int const length = (1 << w) >> 1; in HUF_readDTableX1_wksp() local
462 switch (length) { in HUF_readDTableX1_wksp()
506 assert(u == length); in HUF_readDTableX1_wksp()
507 uStart += length; in HUF_readDTableX1_wksp()
1016 switch (length) { in HUF_fillDTableX2ForWeight()
1079 assert(length > 1); in HUF_fillDTableX2Level2()
1080 assert((U32)skipSize < length); in HUF_fillDTableX2Level2()
1081 switch (length) { in HUF_fillDTableX2Level2()
1154 start += length; in HUF_fillDTableX2()
1268 return dt[val].length; in HUF_decodeSymbolX2()
[all …]
A Dzstd_decompress_block.c838 static void ZSTD_safecopy(BYTE* op, const BYTE* const oend_w, BYTE const* ip, ptrdiff_t length, ZST… in ZSTD_safecopy() argument
840 BYTE* const oend = op + length; in ZSTD_safecopy()
845 if (length < 8) { in ZSTD_safecopy()
852 assert(length >= 8); in ZSTD_safecopy()
854 length -= 8; in ZSTD_safecopy()
861 ZSTD_wildcopy(op, ip, length, ovtype); in ZSTD_safecopy()
878 static void ZSTD_safecopyDstBeforeSrc(BYTE* op, const BYTE* ip, ptrdiff_t length) { in ZSTD_safecopyDstBeforeSrc() argument
880 BYTE* const oend = op + length; in ZSTD_safecopyDstBeforeSrc()
882 if (length < 8 || diff > -8) { in ZSTD_safecopyDstBeforeSrc()
/lib/pldmfw/
A Dpldmfw.c65 pldm_check_fw_space(struct pldmfw_priv *data, size_t offset, size_t length) in pldm_check_fw_space() argument
67 size_t expected_size = offset + length; in pldm_check_fw_space()
526 size_t length; in pldm_verify_header_crc() local
532 length = data->offset - sizeof(data->header_crc); in pldm_verify_header_crc()
533 calculated_crc = crc32_le(~0, data->fw->data, length) ^ ~0; in pldm_verify_header_crc()

Completed in 73 milliseconds

12