| /lib/crc/ |
| A D | crc32-main.c | 35 crc32_le_base(u32 crc, const u8 *p, size_t len) in crc32_le_base() 43 crc32_be_base(u32 crc, const u8 *p, size_t len) in crc32_be_base() 51 crc32c_base(u32 crc, const u8 *p, size_t len) in crc32c_base() 72 u32 crc32_le(u32 crc, const void *p, size_t len) in crc32_le() 78 u32 crc32_be(u32 crc, const void *p, size_t len) in crc32_be() 84 u32 crc32c(u32 crc, const void *p, size_t len) in crc32c()
|
| A D | crc64-main.c | 44 crc64_be_generic(u64 crc, const u8 *p, size_t len) in crc64_be_generic() 52 crc64_nvme_generic(u64 crc, const u8 *p, size_t len) in crc64_nvme_generic() 66 u64 crc64_be(u64 crc, const void *p, size_t len) in crc64_be() 72 u64 crc64_nvme(u64 crc, const void *p, size_t len) in crc64_nvme()
|
| A D | crc-t10dif-main.c | 55 crc_t10dif_generic(u16 crc, const u8 *p, size_t len) in crc_t10dif_generic() 68 u16 crc_t10dif_update(u16 crc, const u8 *p, size_t len) in crc_t10dif_update()
|
| /lib/ |
| A D | kfifo.c | 91 unsigned int len, unsigned int off) in kfifo_copy_in() 115 const void *buf, unsigned int len) in __kfifo_in() 130 unsigned int len, unsigned int off) in kfifo_copy_out() 154 void *buf, unsigned int len) in __kfifo_out_peek() 181 void *buf, unsigned int len) in __kfifo_out() 225 unsigned long len, unsigned int *copied) in __kfifo_from_user() 311 unsigned int len, dma_addr_t dma) in setup_sgl_buf() 435 unsigned int len, size_t recsize) in __kfifo_in_r() 461 unsigned int len, size_t recsize) in __kfifo_out_peek_r() 486 unsigned int len, size_t recsize) in __kfifo_out_r() [all …]
|
| A D | seq_buf.c | 38 static bool seq_buf_can_fit(struct seq_buf *s, size_t len) in seq_buf_can_fit() 52 unsigned int len = seq_buf_used(s); in seq_buf_print_seq() local 69 int len; in seq_buf_vprintf() local 124 int len = lf - start + 1; in seq_buf_do_printk() local 156 unsigned int len = seq_buf_buffer_left(s); in seq_buf_bprintf() local 184 size_t len = strlen(str); in seq_buf_puts() local 236 int seq_buf_putmem(struct seq_buf *s, const void *mem, unsigned int len) in seq_buf_putmem() 265 unsigned int len) 357 int len; local 404 const void *buf, size_t len, bool ascii)
|
| A D | find_bit_benchmark.c | 36 static int __init test_find_first_bit(void *bitmap, unsigned long len) in test_find_first_bit() 52 static int __init test_find_first_and_bit(void *bitmap, const void *bitmap2, unsigned long len) in test_find_first_and_bit() 71 static int __init test_find_next_bit(const void *bitmap, unsigned long len) in test_find_next_bit() 85 static int __init test_find_next_zero_bit(const void *bitmap, unsigned long len) in test_find_next_zero_bit() 99 static int __init test_find_last_bit(const void *bitmap, unsigned long len) in test_find_last_bit() 118 static int __init test_find_nth_bit(const unsigned long *bitmap, unsigned long len) in test_find_nth_bit() 135 const void *bitmap2, unsigned long len) in test_find_next_and_bit()
|
| A D | checksum.c | 37 static unsigned int do_csum(const unsigned char *buff, int len) in do_csum() 116 __wsum csum_partial(const void *buff, int len, __wsum wsum) in csum_partial() 133 __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 150 __u32 len, __u8 proto, __wsum sum) in csum_tcpudp_nofold()
|
| A D | siphash.c | 22 #define PREAMBLE(len) \ argument 46 u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key) in __siphash_aligned() 79 u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key) in __siphash_unaligned() 235 #define HPREAMBLE(len) PREAMBLE(len) argument 247 u32 __hsiphash_aligned(const void *data, size_t len, const hsiphash_key_t *key) in __hsiphash_aligned() 279 u32 __hsiphash_unaligned(const void *data, size_t len, in __hsiphash_unaligned() 387 #define HPREAMBLE(len) \ argument 409 u32 __hsiphash_aligned(const void *data, size_t len, const hsiphash_key_t *key) in __hsiphash_aligned() 431 u32 __hsiphash_unaligned(const void *data, size_t len, in __hsiphash_unaligned()
|
| A D | decompress_inflate.c | 36 static long INIT nofill(void *buffer, unsigned long len) in nofill() 42 static int INIT __gunzip(unsigned char *buf, long len, in __gunzip() 200 STATIC int INIT gunzip(unsigned char *buf, long len, in gunzip() 210 STATIC int INIT __decompress(unsigned char *buf, long len, in __decompress()
|
| A D | iov_iter.c | 18 size_t len, void *from, void *priv2) in copy_to_user_iter() 32 size_t len, void *from, void *priv2) in copy_to_user_iter_nofault() 46 size_t len, void *to, void *priv2) in copy_from_user_iter() 71 size_t len, void *to, void *priv2) in memcpy_from_iter() 795 size_t len = iov->iov_len - skip; in iov_iter_aligned_iovec() local 820 size_t len = bvec->bv_len - skip; in iov_iter_aligned_bvec() local 890 size_t len = iov->iov_len - skip; in iov_iter_alignment_iovec() local 1135 size_t skip = i->iov_offset, len; in first_bvec_segment() local 1227 ssize_t len; in iov_iter_get_pages_alloc2() local 1335 compat_ssize_t len; in copy_compat_iovec_from_user() local [all …]
|
| A D | test_hexdump.c | 67 static void __init test_hexdump_prepare_test(size_t len, int rowsize, in test_hexdump_prepare_test() 125 static void __init test_hexdump(size_t len, int rowsize, int groupsize, in test_hexdump() 152 size_t len = get_random_u32_inclusive(1, d); in test_hexdump_set() local 160 static void __init test_hexdump_overflow(size_t buflen, size_t len, in test_hexdump_overflow() 215 size_t len = get_random_u32_below(rs) + gs; in test_hexdump_overflow_set() local
|
| A D | asn1_encoder.c | 191 static int asn1_encode_length(unsigned char **data, int *data_len, int len) in asn1_encode_length() 271 u32 tag, const unsigned char *string, int len) in asn1_encode_tag() 330 const unsigned char *string, u32 len) in asn1_encode_octet_string() 374 const unsigned char *seq, int len) in asn1_encode_sequence()
|
| A D | nlattr.c | 89 static int nla_validate_array(const struct nlattr *head, int len, int maxtype, in nla_validate_array() 604 static int __nla_validate_parse(const struct nlattr *head, int len, int maxtype, in __nla_validate_parse() 673 int __nla_validate(const struct nlattr *head, int len, int maxtype, in __nla_validate() 696 int i, len = 0; in nla_policy_len() local 728 const struct nlattr *head, int len, in __nla_parse() 745 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype) in nla_find() 777 size_t len; in nla_strscpy() local 873 int len = strlen(str); in nla_strcmp() local 993 size_t len; in nla_reserve_64bit() local 1118 size_t len; in nla_put_64bit() local
|
| A D | textsearch.c | 200 unsigned int len; member 233 const void *data, unsigned int len) in textsearch_find_continuous() 264 unsigned int len, gfp_t gfp_mask, int flags) in textsearch_prepare()
|
| /lib/crc/tests/ |
| A D | crc_kunit.c | 66 u64 crc, const u8 *p, size_t len) in crc_ref() 128 size_t len; in generate_random_length() local 151 size_t len, offset; in crc_test() local 191 u64 (*crc_func)(u64 crc, const u8 *p, size_t len)) in crc_benchmark() 196 size_t len, i, j, num_iters; in crc_benchmark() local 229 static u64 crc7_be_wrapper(u64 crc, const u8 *p, size_t len) in crc7_be_wrapper() 256 static u64 crc16_wrapper(u64 crc, const u8 *p, size_t len) in crc16_wrapper() 304 static u64 crc32_le_wrapper(u64 crc, const u8 *p, size_t len) in crc32_le_wrapper() 328 static u64 crc32_be_wrapper(u64 crc, const u8 *p, size_t len) in crc32_be_wrapper() 352 static u64 crc32c_wrapper(u64 crc, const u8 *p, size_t len) in crc32c_wrapper() [all …]
|
| /lib/crc/arm/ |
| A D | crc32.h | 27 static inline u32 crc32_le_scalar(u32 crc, const u8 *p, size_t len) in crc32_le_scalar() 34 static inline u32 crc32_le_arch(u32 crc, const u8 *p, size_t len) in crc32_le_arch() 56 static inline u32 crc32c_scalar(u32 crc, const u8 *p, size_t len) in crc32c_scalar() 63 static inline u32 crc32c_arch(u32 crc, const u8 *p, size_t len) in crc32c_arch()
|
| /lib/crc/riscv/ |
| A D | crc32.h | 13 static inline u32 crc32_le_arch(u32 crc, const u8 *p, size_t len) in crc32_le_arch() 21 static inline u32 crc32_be_arch(u32 crc, const u8 *p, size_t len) in crc32_be_arch() 29 static inline u32 crc32c_arch(u32 crc, const u8 *p, size_t len) in crc32c_arch()
|
| A D | crc64.h | 13 static inline u64 crc64_be_arch(u64 crc, const u8 *p, size_t len) in crc64_be_arch() 21 static inline u64 crc64_nvme_arch(u64 crc, const u8 *p, size_t len) in crc64_nvme_arch()
|
| /lib/crc/arm64/ |
| A D | crc32.h | 21 static inline u32 crc32_le_arch(u32 crc, const u8 *p, size_t len) in crc32_le_arch() 41 static inline u32 crc32c_arch(u32 crc, const u8 *p, size_t len) in crc32c_arch() 61 static inline u32 crc32_be_arch(u32 crc, const u8 *p, size_t len) in crc32_be_arch()
|
| /lib/vdso/ |
| A D | getrandom.c | 23 #define MEMCPY_AND_ZERO_SRC(type, dst, src, len) do { \ argument 33 static void memcpy_and_zero_src(void *dst, void *src, size_t len) in memcpy_and_zero_src() 71 __cvdso_getrandom_data(const struct vdso_rng_data *rng_info, void *buffer, size_t len, in __cvdso_getrandom_data() 260 __cvdso_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_l… in __cvdso_getrandom()
|
| /lib/tests/ |
| A D | checksum_kunit.c | 451 #define full_csum(buff, len, sum) csum_fold(csum_partial(buff, len, sum)) argument 481 int len, align; in test_csum_fixed_random_inputs() local 507 int len, align; in test_csum_all_carry_inputs() local 547 int len, align; in test_csum_no_carry_inputs() local 580 for (int len = IPv4_MIN_WORDS; len < IPv4_MAX_WORDS; len++) { in test_ip_fast_csum() local 596 unsigned int len; in test_csum_ipv6_magic() local
|
| /lib/crc/x86/ |
| A D | crc64.h | 15 static inline u64 crc64_be_arch(u64 crc, const u8 *p, size_t len) in crc64_be_arch() 22 static inline u64 crc64_nvme_arch(u64 crc, const u8 *p, size_t len) in crc64_nvme_arch()
|
| A D | crc32.h | 18 static inline u32 crc32_le_arch(u32 crc, const u8 *p, size_t len) in crc32_le_arch() 39 static inline u32 crc32c_arch(u32 crc, const u8 *p, size_t len) in crc32c_arch()
|
| /lib/crypto/tests/ |
| A D | poly1305_kunit.c | 17 size_t len, u8 out[POLY1305_DIGEST_SIZE]) in poly1305() 31 static void poly1305_withtestkey(const u8 *data, size_t len, in poly1305_withtestkey() 93 for (size_t len = 0; len <= 4096; len += 16) { in test_poly1305_allones_keys_and_message() local
|
| /lib/crypto/ |
| A D | aescfb.c | 42 int len, const u8 iv[AES_BLOCK_SIZE]) in aescfb_encrypt() 71 int len, const u8 iv[AES_BLOCK_SIZE]) in aescfb_decrypt() 115 int len; member
|