Home
last modified time | relevance | path

Searched refs:l (Results 1 – 20 of 20) sorted by relevance

/lib/
Dpercpu_test.c27 long l = 0; in percpu_test_init() local
34 l += -1; in percpu_test_init()
36 CHECK(l, long_counter, -1); in percpu_test_init()
38 l += 1; in percpu_test_init()
40 CHECK(l, long_counter, 0); in percpu_test_init()
65 l += -ui_one; in percpu_test_init()
67 CHECK(l, long_counter, 0xffffffff); in percpu_test_init()
69 l += ui_one; in percpu_test_init()
71 CHECK(l, long_counter, (long)0x100000000LL); in percpu_test_init()
74 l = 0; in percpu_test_init()
[all …]
Dkfifo.c94 unsigned int l; in kfifo_copy_in() local
102 l = min(len, size - off); in kfifo_copy_in()
104 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
105 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
116 unsigned int l; in __kfifo_in() local
118 l = kfifo_unused(fifo); in __kfifo_in()
119 if (len > l) in __kfifo_in()
120 len = l; in __kfifo_in()
133 unsigned int l; in kfifo_copy_out() local
141 l = min(len, size - off); in kfifo_copy_out()
[all …]
Dinflate.c344 int l; /* bits per table (returned in m) */ in huft_build() local
393 l = *m; in huft_build()
398 if ((unsigned)l < j) in huft_build()
399 l = j; in huft_build()
404 if ((unsigned)l > i) in huft_build()
405 l = i; in huft_build()
406 *m = l; in huft_build()
447 w = -l; /* bits decoded == (l * h) */ in huft_build()
463 while (k > w + l) in huft_build()
467 w += l; /* previous table always l bits */ in huft_build()
[all …]
Ddecompress_unlzo.c43 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()
Dbch.c169 const int l = BCH_ECC_WORDS(bch)-1; in bch_encode_unaligned() local
174 p = bch->mod8_tab + (l+1)*(((ecc[0] >> 24)^(tmp)) & 0xff); in bch_encode_unaligned()
176 for (i = 0; i < l; i++) in bch_encode_unaligned()
179 ecc[l] = (ecc[l] << 8)^(*p); in bch_encode_unaligned()
244 const unsigned int l = BCH_ECC_WORDS(bch)-1; in bch_encode() local
250 const uint32_t * const tab1 = tab0 + 256*(l+1); in bch_encode()
251 const uint32_t * const tab2 = tab1 + 256*(l+1); in bch_encode()
252 const uint32_t * const tab3 = tab2 + 256*(l+1); in bch_encode()
301 p0 = tab0 + (l+1)*((w >> 0) & 0xff); in bch_encode()
302 p1 = tab1 + (l+1)*((w >> 8) & 0xff); in bch_encode()
[all …]
Dtest_hexdump.c73 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 strncpy(p, data_a, l); in test_hexdump_prepare_test()
117 p += l; in test_hexdump_prepare_test()
Dfind_bit_benchmark.c82 unsigned long l, cnt = 0; in test_find_last_bit() local
88 l = find_last_bit(bitmap, len); in test_find_last_bit()
89 if (l >= len) in test_find_last_bit()
91 len = l; in test_find_last_bit()
Ddigsig.c74 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()
Ddecompress_inflate.c160 long l = strm->next_out - out_buf; in __gunzip() local
161 if (l != flush(out_buf, l)) { in __gunzip()
Dlogic_iomem.c190 MAKE_FALLBACK(l, 32);
249 MAKE_OP(l, 32);
Dlogic_pio.c314 BUILD_LOGIC_IO(l, u32)
/lib/math/
Dreciprocal_div.c21 int l; in reciprocal_value() local
23 l = fls(d - 1); in reciprocal_value()
24 m = ((1ULL << 32) * ((1ULL << l) - d)); 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()
[all …]
Dlcm.c19 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/
Dblake2s-selftest.c555 int i, l; in blake2s_selftest() local
564 for (i = l = 0; i < ARRAY_SIZE(blake2s_testvecs); l = (l + 37) % ++i) { in blake2s_selftest()
582 blake2s_update(&state, buf, l); in blake2s_selftest()
583 blake2s_update(&state, buf + l, i - l); in blake2s_selftest()
617 for (l = 1; l < TEST_ALIGNMENT; ++l) { in blake2s_selftest()
618 memcpy(unaligned_block + l, blocks, in blake2s_selftest()
621 blake2s_compress(&state2, unaligned_block + l, 1, in blake2s_selftest()
625 l, i + 1); in blake2s_selftest()
Dchacha20poly1305.c266 size_t l = min(length, CHACHA_BLOCK_SIZE - partial); in chacha20poly1305_crypt_sg_inplace() local
268 crypto_xor(addr, b.chacha_stream + partial, l); in chacha20poly1305_crypt_sg_inplace()
269 partial = (partial + l) & (CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace()
271 addr += l; in chacha20poly1305_crypt_sg_inplace()
272 length -= l; in chacha20poly1305_crypt_sg_inplace()
276 size_t l = length; in chacha20poly1305_crypt_sg_inplace() local
279 l &= ~(CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace()
280 chacha20_crypt(chacha_state, addr, addr, l); in chacha20poly1305_crypt_sg_inplace()
281 addr += l; in chacha20poly1305_crypt_sg_inplace()
282 length -= l; in chacha20poly1305_crypt_sg_inplace()
Dcurve25519-fiat32.c612 fe_loose l; in fe_invert() local
613 fe_copy_lt(&l, z); in fe_invert()
614 fe_loose_invert(out, &l); in fe_invert()
/lib/lzo/
Dlzo1x_compress.c311 size_t l = in_len; in lzogeneric1x_1_compress() local
328 while (l > 20) { in lzogeneric1x_1_compress()
329 size_t ll = l <= (m4_max_offset + 1) ? l : (m4_max_offset + 1); in lzogeneric1x_1_compress()
339 l -= ll; in lzogeneric1x_1_compress()
341 t += l; in lzogeneric1x_1_compress()
/lib/xz/
Dxz_dec_lzma2.c651 static void lzma_len(struct xz_dec_lzma2 *s, struct lzma_len_dec *l, in lzma_len() argument
657 if (!rc_bit(&s->rc, &l->choice)) { in lzma_len()
658 probs = l->low[pos_state]; in lzma_len()
662 if (!rc_bit(&s->rc, &l->choice2)) { in lzma_len()
663 probs = l->mid[pos_state]; in lzma_len()
667 probs = l->high; in lzma_len()
/lib/mpi/
Dlonglong.h440 #define rshift_rhlc(r, h, l, c) \ argument
443 "=r" (r) : "r" (h), "r" (l), "rn" (c))
499 #define rshift_rhlc(r, h, l, c) \ argument
504 __nn.__i.__h = (h); __nn.__i.__l = (l); \
/lib/lz4/
Dlz4_decompress.c47 #define DEBUGLOG(l, ...) {} /* disabled */ argument