/lib/ |
D | test-string_helpers.c | 15 char *in, size_t p, in test_string_check_buf() argument 25 in, p, true); in test_string_check_buf() 35 const char *in; member 42 .in = "\\f\\ \\n\\r\\t\\v", 47 .in = "\\40\\1\\387\\0064\\05\\040\\8a\\110\\777", 52 .in = "\\xv\\xa\\x2c\\xD\\x6f2", 57 .in = "\\h\\\\\\\"\\a\\e\\", 67 char *in = kmalloc(q_real, GFP_KERNEL); in test_string_unescape() local 72 if (!in || !out_test || !out_real) in test_string_unescape() 76 const char *s = strings[i].in; in test_string_unescape() [all …]
|
D | cmdline_kunit.c | 41 static void cmdline_do_one_test(struct kunit *test, const char *in, int rc, int offset) in cmdline_do_one_test() argument 44 const char *out = in; in cmdline_do_one_test() 50 KUNIT_EXPECT_EQ_MSG(test, ret, rc, fmt, in); in cmdline_do_one_test() 51 KUNIT_EXPECT_PTR_EQ_MSG(test, out, in + offset, fmt, in); in cmdline_do_one_test() 72 char in[32]; in cmdline_test_lead_int() local 79 sprintf(in, "%u%s", get_random_int() % 256, str); in cmdline_test_lead_int() 81 offset = strlen(in) - strlen(str) + !!(rc == 2); in cmdline_test_lead_int() 82 cmdline_do_one_test(test, in, rc, offset); in cmdline_test_lead_int() 89 char in[32]; in cmdline_test_tail_int() local 97 sprintf(in, "%s%u", str, get_random_int() % 256); in cmdline_test_tail_int() [all …]
|
D | decompress_unzstd.c | 170 ZSTD_inBuffer in; in __unzstd() local 221 in.src = in_buf; in __unzstd() 222 in.pos = 0; in __unzstd() 223 in.size = in_len; in __unzstd() 247 ret = ZSTD_getFrameParams(¶ms, in.src, in.size); in __unzstd() 288 if (in.pos == in.size) { in __unzstd() 290 *in_pos += in.pos; in __unzstd() 297 in.pos = 0; in __unzstd() 298 in.size = in_len; in __unzstd() 301 ret = ZSTD_decompressStream(dstream, &out, &in); in __unzstd() [all …]
|
D | kfifo.c | 21 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused() 33 fifo->in = 0; in __kfifo_alloc() 58 fifo->in = 0; in __kfifo_free() 74 fifo->in = 0; in __kfifo_init() 122 kfifo_copy_in(fifo, buf, len, fifo->in); in __kfifo_in() 123 fifo->in += len; in __kfifo_in() 157 l = fifo->in - fifo->out; in __kfifo_out_peek() 225 ret = kfifo_copy_from_user(fifo, from, len, fifo->in, copied); in __kfifo_from_user() 231 fifo->in += len; in __kfifo_from_user() 281 l = fifo->in - fifo->out; in __kfifo_to_user() [all …]
|
D | decompress_unxz.c | 251 STATIC int INIT unxz(unsigned char *in, long in_size, in unxz() argument 287 if (in == NULL) { in unxz() 289 in = malloc(XZ_IOBUF_SIZE); in unxz() 290 if (in == NULL) in unxz() 294 b.in = in; in unxz() 309 in_size = fill(in, XZ_IOBUF_SIZE); in unxz() 340 free(in); in unxz()
|
D | digsig.c | 78 MPI in = NULL, res = NULL, pkey[2]; in digsig_verify_rsa() local 135 in = mpi_read_from_buffer(sig, &nret); in digsig_verify_rsa() 136 if (IS_ERR(in)) { in digsig_verify_rsa() 137 err = PTR_ERR(in); in digsig_verify_rsa() 141 res = mpi_alloc(mpi_get_nlimbs(in) * 2); in digsig_verify_rsa() 145 err = mpi_powm(res, in, pkey[1], pkey[0]); in digsig_verify_rsa() 173 mpi_free(in); in digsig_verify_rsa()
|
D | test_bitmap.c | 322 const char *in; member 424 err = bitmap_parselist(ptest.in, bmap, ptest.nbits); in test_bitmap_parselist() 429 i, ptest.in, err, ptest.errno); in test_bitmap_parselist() 436 i, ptest.in, bmap[0], in test_bitmap_parselist() 443 i, ptest.in, time); in test_bitmap_parselist() 498 size_t len = test.flags & NO_LEN ? UINT_MAX : strlen(test.in); in test_bitmap_parse() 501 err = bitmap_parse(test.in, len, bmap, test.nbits); in test_bitmap_parse() 506 i, test.in, err, test.errno); in test_bitmap_parse() 513 i, test.in, bmap[0], in test_bitmap_parse() 520 i, test.in, time); in test_bitmap_parse() [all …]
|
D | sg_split.c | 20 static int sg_calculate_split(struct scatterlist *in, int nents, int nb_splits, in sg_calculate_split() argument 35 for_each_sg(in, sg, nents, i) { in sg_calculate_split() 148 int sg_split(struct scatterlist *in, const int in_mapped_nents, in sg_split() argument 161 ret = sg_calculate_split(in, sg_nents(in), nb_splits, skip, split_sizes, in sg_split() 180 ret = sg_calculate_split(in, in_mapped_nents, nb_splits, skip, in sg_split()
|
D | test_siphash.c | 115 u8 in[64] __aligned(SIPHASH_ALIGNMENT); in siphash_test_init() local 121 in[i] = i; in siphash_test_init() 123 if (siphash(in, i, &test_key_siphash) != in siphash_test_init() 133 if (hsiphash(in, i, &test_key_hsiphash) != in siphash_test_init()
|
D | Kconfig.debug | 26 in task context) or a caller "processor id" (if not in task context) 39 bool "Show build ID information in stacktraces" 42 Selecting this option adds build ID information for symbols in 56 Setting a default here is equivalent to passing in loglevel=<x> in 61 usage in the kernel. That is controlled by the MESSAGE_LOGLEVEL_DEFAULT 87 by default. To change that, use loglevel=<x> in the kernel bootargs, 96 specified in milliseconds on the kernel command line, 120 implicitly compiles in all pr_debug() and dev_dbg() calls, which 124 pr_debug() calls in it are enabled by default, but can be 131 which is contained in the 'debugfs' filesystem or procfs. [all …]
|
D | Kconfig.kcsan | 21 in newer releases. 63 deadlocks or recursion. If in doubt, say N. 105 specific watchpoint slot as specified in kernel/kcsan/encoding.h. 113 int "Delay in microseconds (for tasks)" 119 int "Delay in microseconds (for interrupts)" 139 watchpoint is set up, i.e. one in KCSAN_WATCH_SKIP per-CPU 141 results in more aggressive race detection, whereas a larger value 162 result in false positives. 165 int "Duration in milliseconds, in which any given race is only reported once" 168 Any given race is only reported once in the defined time window. [all …]
|
D | Kconfig | 38 in the data sheets of the peripherals they are in control of. 40 When in doubt, say N. 95 bool "Access I/O in non-MMIO mode" 99 hosts which can not be accessed in MMIO mode. Using the logical PIO 108 When in doubt, say N. 139 This option is provided for the case where no in-kernel-tree 147 This option is provided for the case where no in-kernel-tree 157 This option is only needed if a module that's not in the 164 This option is provided for the case where no in-kernel-tree 174 This option is provided for the case where no in-kernel-tree [all …]
|
D | Kconfig.kgdb | 19 CONFIG_FRAME_POINTER to aid in producing more reliable stack 20 backtraces in the external debugger. Documentation of 22 as well as in Documentation/dev-tools/kgdb.rst. If 50 to break in initially. 70 to pass in a kernel parameter 83 bool "KGDB: Allow debugging with traps in notifiers" 141 kernel is still usable in this situation. 143 No guarantees that the kernel is still usable in this situation.
|
/lib/crypto/ |
D | aes.c | 148 static __always_inline u32 subshift(u32 in[], int pos) in subshift() argument 150 return (aes_sbox[in[pos] & 0xff]) ^ in subshift() 151 (aes_sbox[(in[(pos + 1) % 4] >> 8) & 0xff] << 8) ^ in subshift() 152 (aes_sbox[(in[(pos + 2) % 4] >> 16) & 0xff] << 16) ^ in subshift() 153 (aes_sbox[(in[(pos + 3) % 4] >> 24) & 0xff] << 24); in subshift() 156 static __always_inline u32 inv_subshift(u32 in[], int pos) in inv_subshift() argument 158 return (aes_inv_sbox[in[pos] & 0xff]) ^ in inv_subshift() 159 (aes_inv_sbox[(in[(pos + 3) % 4] >> 8) & 0xff] << 8) ^ in inv_subshift() 160 (aes_inv_sbox[(in[(pos + 2) % 4] >> 16) & 0xff] << 16) ^ in inv_subshift() 161 (aes_inv_sbox[(in[(pos + 1) % 4] >> 24) & 0xff] << 24); in inv_subshift() [all …]
|
D | blake2s.c | 24 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen) in blake2s_update() argument 31 memcpy(state->buf + state->buflen, in, fill); in blake2s_update() 34 in += fill; in blake2s_update() 39 blake2s_compress(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in blake2s_update() 40 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update() 43 memcpy(state->buf + state->buflen, in, inlen); in blake2s_update()
|
D | curve25519-selftest.c | 1287 u8 in[CURVE25519_KEY_SIZE]; in curve25519_selftest() local 1304 get_random_bytes(in, sizeof(in)); in curve25519_selftest() 1305 ret = curve25519_generate_public(out, in); in curve25519_selftest() 1306 ret2 = curve25519(out2, in, (u8[CURVE25519_KEY_SIZE]){ 9 }); in curve25519_selftest() 1307 curve25519_generic(out3, in, (u8[CURVE25519_KEY_SIZE]){ 9 }); in curve25519_selftest() 1314 printk(KERN_CONT "%02x", in[j]); in curve25519_selftest()
|
D | sm4.c | 152 void sm4_crypt_block(const u32 *rk, u8 *out, const u8 *in) in sm4_crypt_block() argument 156 x[0] = get_unaligned_be32(in + 0 * 4); in sm4_crypt_block() 157 x[1] = get_unaligned_be32(in + 1 * 4); in sm4_crypt_block() 158 x[2] = get_unaligned_be32(in + 2 * 4); in sm4_crypt_block() 159 x[3] = get_unaligned_be32(in + 3 * 4); in sm4_crypt_block()
|
D | chacha20poly1305.c | 24 static void chacha_load_key(u32 *k, const u8 *in) in chacha_load_key() argument 26 k[0] = get_unaligned_le32(in); in chacha_load_key() 27 k[1] = get_unaligned_le32(in + 4); in chacha_load_key() 28 k[2] = get_unaligned_le32(in + 8); in chacha_load_key() 29 k[3] = get_unaligned_le32(in + 12); in chacha_load_key() 30 k[4] = get_unaligned_le32(in + 16); in chacha_load_key() 31 k[5] = get_unaligned_le32(in + 20); in chacha_load_key() 32 k[6] = get_unaligned_le32(in + 24); in chacha_load_key() 33 k[7] = get_unaligned_le32(in + 28); in chacha_load_key()
|
/lib/zlib_inflate/ |
D | inffast.c | 70 const unsigned char *in; /* local strm->next_in */ in inflate_fast() local 97 in = strm->next_in; in inflate_fast() 98 last = in + (strm->avail_in - 5); in inflate_fast() 120 hold += (unsigned long)(*in++) << bits; in inflate_fast() 122 hold += (unsigned long)(*in++) << bits; in inflate_fast() 139 hold += (unsigned long)(*in++) << bits; in inflate_fast() 147 hold += (unsigned long)(*in++) << bits; in inflate_fast() 149 hold += (unsigned long)(*in++) << bits; in inflate_fast() 162 hold += (unsigned long)(*in++) << bits; in inflate_fast() 165 hold += (unsigned long)(*in++) << bits; in inflate_fast() [all …]
|
/lib/lzo/ |
D | lzo1x_compress.c | 22 lzo1x_1_do_compress(const unsigned char *in, size_t in_len, in lzo1x_1_do_compress() argument 29 const unsigned char * const in_end = in + in_len; in lzo1x_1_do_compress() 30 const unsigned char * const ip_end = in + in_len - 20; in lzo1x_1_do_compress() 35 ip = in; in lzo1x_1_do_compress() 109 m_pos = in + dict[t]; in lzo1x_1_do_compress() 110 dict[t] = (lzo_dict_t) (ip - in); in lzo1x_1_do_compress() 304 static int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len, in lzogeneric1x_1_compress() argument 308 const unsigned char *ip = in; in lzogeneric1x_1_compress() 344 const unsigned char *ii = in + in_len - t; in lzogeneric1x_1_compress() 381 int lzo1x_1_compress(const unsigned char *in, size_t in_len, in lzo1x_1_compress() argument [all …]
|
/lib/842/ |
D | 842_decompress.c | 51 u8 *in; member 89 u8 *in = p->in, b = p->bit, bits = b + n; in next_bits() local 110 *d = *in >> (8 - bits); in next_bits() 112 *d = be16_to_cpu(get_unaligned((__be16 *)in)) >> (16 - bits); in next_bits() 114 *d = be32_to_cpu(get_unaligned((__be32 *)in)) >> (32 - bits); in next_bits() 116 *d = be64_to_cpu(get_unaligned((__be64 *)in)) >> (64 - bits); in next_bits() 123 p->in += p->bit / 8; in next_bits() 277 int sw842_decompress(const u8 *in, unsigned int ilen, in sw842_decompress() argument 285 p.in = (u8 *)in; in sw842_decompress()
|
D | 842_compress.c | 89 u8 *in; member 110 be##b##_to_cpu(get_unaligned((__be##b *)((p)->in + (o)))) 145 (unsigned int)((p)->in - (p)->instart), \ 343 ret = add_bits(p, p->in[i], 8); in add_short_data_template() 425 u64 pos = p->in - p->instart; in update_hashtables() 477 int sw842_compress(const u8 *in, unsigned int ilen, in sw842_compress() argument 492 p->in = (u8 *)in; in sw842_compress() 493 p->instart = p->in; in sw842_compress() 514 last = ~get_unaligned((u64 *)p->in); in sw842_compress() 517 next = get_unaligned((u64 *)p->in); in sw842_compress() [all …]
|
/lib/xz/ |
D | xz_dec_stream.c | 162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 175 static enum xz_ret dec_vli(struct xz_dec *s, const uint8_t *in, in dec_vli() argument 184 byte = in[*in_pos]; in dec_vli() 285 s->crc32 = xz_crc32(b->in + s->in_start, in_used, s->crc32); in index_update() 301 ret = dec_vli(s, b->in, &b->in_pos, b->in_size); in dec_index() 352 if (((s->crc32 >> s->pos) & 0xFF) != b->in[b->in_pos++]) in crc32_validate() 594 if (b->in[b->in_pos] == 0) { in dec_main() 605 = ((uint32_t)b->in[b->in_pos] + 1) * 4; in dec_main() 646 if (b->in[b->in_pos++] != 0) in dec_main() 688 if (b->in[b->in_pos++] != 0) in dec_main()
|
D | xz_dec_lzma2.c | 109 const uint8_t *in; member 401 memmove(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed() 415 memmove(b->out + b->out_pos, b->in + b->in_pos, in dict_uncompressed() 487 rc->code = (rc->code << 8) + b->in[b->in_pos++]; in rc_read_init() 514 rc->code = (rc->code << RC_SHIFT_BITS) + rc->in[rc->in_pos++]; in rc_normalize() 892 memcpy(s->temp.buf + s->temp.size, b->in + b->in_pos, tmp); in lzma2_lzma() 907 s->rc.in = s->temp.buf; in lzma2_lzma() 928 s->rc.in = b->in; in lzma2_lzma() 952 memcpy(s->temp.buf, b->in + b->in_pos, in_avail); in lzma2_lzma() 1003 tmp = b->in[b->in_pos++]; in xz_dec_lzma2_run() [all …]
|
/lib/vdso/ |
D | Kconfig | 20 in 32 bit only architectures. 30 Selected by architectures which support time namespaces in the
|