| /lib/ |
| A D | percpu_test.c | 30 long l = 0; in percpu_test_init() local 36 l += -1; in percpu_test_init() 40 l += 1; in percpu_test_init() 67 l += -ui_one; in percpu_test_init() 71 l += ui_one; in percpu_test_init() 76 l = 0; in percpu_test_init() 79 l -= ui_one; in percpu_test_init() 83 l = 0; in percpu_test_init() 86 l += ui_one; in percpu_test_init() 94 l = 0; in percpu_test_init() [all …]
|
| A D | kfifo.c | 106 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in() 121 len = l; in __kfifo_in() 145 memcpy(dst + l, fifo->data, len - l); in kfifo_copy_out() 160 len = l; in __kfifo_out_peek() 210 ret = copy_from_user(fifo->data, from + l, len - l); in kfifo_copy_from_user() 237 len = l; in __kfifo_from_user() 270 ret = copy_to_user(to + l, fifo->data, len - l); in kfifo_copy_to_user() 297 len = l; in __kfifo_to_user() 358 len = l; in __kfifo_dma_in_prepare() 372 len = l; in __kfifo_dma_out_prepare() [all …]
|
| A D | inflate.c | 393 l = *m; in huft_build() 399 l = j; in huft_build() 405 l = i; in huft_build() 406 *m = l; in huft_build() 779 l = malloc(sizeof(*l) * 288); in inflate_fixed() 794 free(l); in inflate_fixed() 805 free(l); in inflate_fixed() 814 free(l); in inflate_fixed() 819 free(l); in inflate_fixed() 914 i = l = 0; in inflate_dynamic() [all …]
|
| A D | decompress_unlzo.c | 43 int l; in parse_header() local 57 for (l = 0; l < 9; l++) { in parse_header() 58 if (*parse++ != lzop_magic[l]) in parse_header() 87 l = *parse++; in parse_header() 89 if (end - parse < l + 4) in parse_header() 91 parse += l + 4; in parse_header()
|
| A D | find_bit_benchmark.c | 101 unsigned long l, cnt = 0; in test_find_last_bit() local 107 l = find_last_bit(bitmap, len); in test_find_last_bit() 108 if (l >= len) in test_find_last_bit() 110 len = l; in test_find_last_bit() 120 unsigned long l, n, w = bitmap_weight(bitmap, len); in test_find_nth_bit() local 125 l = find_nth_bit(bitmap, len, n); in test_find_nth_bit() 126 WARN_ON(l >= len); in test_find_nth_bit()
|
| A D | bch.c | 135 const int l = BCH_ECC_WORDS(bch)-1; in bch_encode_unaligned() local 142 for (i = 0; i < l; i++) in bch_encode_unaligned() 145 ecc[l] = (ecc[l] << 8)^(*p); in bch_encode_unaligned() 272 for (i = 0; i < l; i++) in bch_encode() 275 r[l] = p0[l]^p1[l]^p2[l]^p3[l]; in bch_encode() 437 l = a_log(bch, pelp->c[j]); in compute_error_locator_polynomial() 668 int i, l, n = 0; in find_poly_deg4_roots() local 687 l = a_log(bch, f); in find_poly_deg4_roots() 688 l += (l & 1) ? GF_N(bch) : 0; in find_poly_deg4_roots() 689 e = a_pow(bch, l/2); in find_poly_deg4_roots() [all …]
|
| A D | lwq.c | 103 struct llist_node *l, **t1, *t2; in lwq_test() local 137 l = lwq_dequeue_all(&q); in lwq_test() 139 lwq_for_each_safe(t, t1, t2, &l, n) { in lwq_test() 146 if (l) in lwq_test() 147 lwq_enqueue_batch(l, &q); in lwq_test()
|
| A D | test_hexdump.c | 73 size_t l = len; in test_hexdump_prepare_test() local 81 if (l > rs) in test_hexdump_prepare_test() 82 l = rs; in test_hexdump_prepare_test() 98 for (i = 0; i < l / gs; i++) { in test_hexdump_prepare_test() 116 memcpy(p, data_a, l); in test_hexdump_prepare_test() 117 p += l; in test_hexdump_prepare_test()
|
| A D | digsig.c | 74 unsigned nret, l; in digsig_verify_rsa() local 154 p = mpi_get_buffer(res, &l, NULL); in digsig_verify_rsa() 161 head = len - l; in digsig_verify_rsa() 163 memcpy(out1 + head, p, l); in digsig_verify_rsa()
|
| A D | decompress_inflate.c | 160 long l = strm->next_out - out_buf; in __gunzip() local 161 if (l != flush(out_buf, l)) { in __gunzip()
|
| A D | maple_tree.c | 2261 mast->l->offset += end; in mast_rebalance_prev() 2465 *l = *r; in mte_mid_split_check() 2489 if (mas_is_none(mast->l)) in mast_set_split_parents() 2495 slot = mast->l->offset; in mast_set_split_parents() 2498 mas_set_split_parent(mast->l, l, r, &slot, split); in mast_set_split_parents() 2849 mast->l = &l_mas; in mas_spanning_rebalance() 3155 mas_set_parent(mas, mast->l->node, ancestor, mast->l->offset); in mas_split_final_node() 3190 mab_set_b_end(mast->bn, mast->l, mast->l->node); in mast_fill_bnode() 3288 *mast->l = tmp_mas; in mas_push_data() 3342 mast.l = &l_mas; in mas_split() [all …]
|
| A D | group_cpus.c | 109 static int ncpus_cmp_func(const void *l, const void *r) in ncpus_cmp_func() argument 111 const struct node_groups *ln = l; in ncpus_cmp_func()
|
| /lib/math/ |
| A D | reciprocal_div.c | 21 int l; in reciprocal_value() local 23 l = fls(d - 1); in reciprocal_value() 28 R.sh1 = min(l, 1); in reciprocal_value() 29 R.sh2 = max(l - 1, 0); in reciprocal_value() 38 u32 l, post_shift; in reciprocal_value_adv() local 42 l = fls(d - 1); in reciprocal_value_adv() 47 WARN(l == 32, in reciprocal_value_adv() 50 post_shift = l; in reciprocal_value_adv() 51 mlow = 1ULL << (32 + l); in reciprocal_value_adv() 53 mhigh = (1ULL << (32 + l)) + (1ULL << (32 + l - prec)); in reciprocal_value_adv() [all …]
|
| A D | lcm.c | 19 unsigned long l = lcm(a, b); in lcm_not_zero() local 21 if (l) in lcm_not_zero() 22 return l; in lcm_not_zero()
|
| /lib/crypto/ |
| A D | blake2s-selftest.c | 555 int i, l; in blake2s_digest_test() local 564 for (i = l = 0; i < ARRAY_SIZE(blake2s_testvecs); l = (l + 37) % ++i) { in blake2s_digest_test() 582 blake2s_update(&state, buf, l); in blake2s_digest_test() 583 blake2s_update(&state, buf + l, i - l); in blake2s_digest_test() 599 int i, l; in blake2s_random_test() local 626 for (l = 1; l < TEST_ALIGNMENT; ++l) { in blake2s_random_test() 627 memcpy(unaligned_block + l, blocks, in blake2s_random_test() 630 blake2s_compress(&state2, unaligned_block + l, 1, in blake2s_random_test() 634 l, i + 1); in blake2s_random_test()
|
| A D | utils.c | 44 u64 l = get_unaligned((u64 *)src1) ^ in __crypto_xor() local 46 put_unaligned(l, (u64 *)dst); in __crypto_xor() 58 u32 l = get_unaligned((u32 *)src1) ^ in __crypto_xor() local 60 put_unaligned(l, (u32 *)dst); in __crypto_xor() 72 u16 l = get_unaligned((u16 *)src1) ^ in __crypto_xor() local 74 put_unaligned(l, (u16 *)dst); in __crypto_xor()
|
| A D | chacha20poly1305.c | 268 size_t l = min(length, CHACHA_BLOCK_SIZE - partial); in chacha20poly1305_crypt_sg_inplace() local 270 crypto_xor(addr, b.chacha_stream + partial, l); in chacha20poly1305_crypt_sg_inplace() 271 partial = (partial + l) & (CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace() 273 addr += l; in chacha20poly1305_crypt_sg_inplace() 274 length -= l; in chacha20poly1305_crypt_sg_inplace() 278 size_t l = length; in chacha20poly1305_crypt_sg_inplace() local 281 l &= ~(CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace() 282 chacha20_crypt(&chacha_state, addr, addr, l); in chacha20poly1305_crypt_sg_inplace() 283 addr += l; in chacha20poly1305_crypt_sg_inplace() 284 length -= l; in chacha20poly1305_crypt_sg_inplace()
|
| A D | sha1.c | 179 size_t l = SHA1_BLOCK_SIZE - partial; in sha1_update() local 181 memcpy(&ctx->buf[partial], data, l); in sha1_update() 182 data += l; in sha1_update() 183 len -= l; in sha1_update()
|
| A D | sha256.c | 187 size_t l = SHA256_BLOCK_SIZE - partial; in __sha256_update() local 189 memcpy(&ctx->buf[partial], data, l); in __sha256_update() 190 data += l; in __sha256_update() 191 len -= l; in __sha256_update()
|
| A D | sha512.c | 173 size_t l = SHA512_BLOCK_SIZE - partial; in __sha512_update() local 175 memcpy(&ctx->buf[partial], data, l); in __sha512_update() 176 data += l; in __sha512_update() 177 len -= l; in __sha512_update()
|
| /lib/crypto/arm64/ |
| A D | chacha-neon-glue.c | 45 int l = min(bytes, CHACHA_BLOCK_SIZE * 5); in chacha_doneon() local 47 if (l <= CHACHA_BLOCK_SIZE) { in chacha_doneon() 50 memcpy(buf, src, l); in chacha_doneon() 52 memcpy(dst, buf, l); in chacha_doneon() 56 chacha_4block_xor_neon(state, dst, src, nrounds, l); in chacha_doneon() 57 bytes -= l; in chacha_doneon() 58 src += l; in chacha_doneon() 59 dst += l; in chacha_doneon() 60 state->x[12] += DIV_ROUND_UP(l, CHACHA_BLOCK_SIZE); in chacha_doneon()
|
| /lib/zstd/common/ |
| A D | debug.h | 85 # define RAWLOG(l, ...) \ argument 87 if (l<=g_debuglevel) { \ 96 # define DEBUGLOG(l, ...) \ argument 98 if (l<=g_debuglevel) { \ 104 # define RAWLOG(l, ...) do { } while (0) /* disabled */ argument 105 # define DEBUGLOG(l, ...) do { } while (0) /* disabled */ argument
|
| /lib/crypto/powerpc/ |
| A D | chacha-p10-glue.c | 37 unsigned int l = bytes & ~0x0FF; in chacha_p10_do_8x() local 39 if (l > 0) { in chacha_p10_do_8x() 40 chacha_p10le_8x(state, dst, src, l, nrounds); in chacha_p10_do_8x() 41 bytes -= l; in chacha_p10_do_8x() 42 src += l; in chacha_p10_do_8x() 43 dst += l; in chacha_p10_do_8x() 44 state->x[12] += l / CHACHA_BLOCK_SIZE; in chacha_p10_do_8x()
|
| /lib/crypto/arm/ |
| A D | chacha-glue.c | 46 unsigned int l = min(bytes, CHACHA_BLOCK_SIZE * 4U); in chacha_doneon() local 48 chacha_4block_xor_neon(state, dst, src, nrounds, l); in chacha_doneon() 49 bytes -= l; in chacha_doneon() 50 src += l; in chacha_doneon() 51 dst += l; in chacha_doneon() 52 state->x[12] += DIV_ROUND_UP(l, CHACHA_BLOCK_SIZE); in chacha_doneon()
|
| /lib/lzo/ |
| A D | lzo1x_compress.c | 344 size_t l = in_len; in LZO_SAFE() local 361 while (l > 20) { in LZO_SAFE() 362 size_t ll = min_t(size_t, l, m4_max_offset + 1); in LZO_SAFE() 376 l -= ll; in LZO_SAFE() 378 t += l; in LZO_SAFE()
|