Home
last modified time | relevance | path

Searched refs:in (Results 1 – 25 of 62) sorted by relevance

123

/lib/tests/
A Dstring_helpers_kunit.c16 char *in, size_t p, in test_string_check_buf() argument
26 const char *in; member
73 memcpy(&in[p], s, len); in test_string_unescape()
84 in[p++] = '\0'; in test_string_unescape()
110 const char *in; member
116 .in = "\f\\ \n\r\t\v",
130 .in = "\\h\\\"\a\e\\",
214 .in = "\f\\ \n\r\t\v",
379 return s2->in; in test_string_find_match()
426 in[p++] = '\0'; in test_string_escape()
[all …]
A Dcmdline_kunit.c44 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_u8(), str); 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_u8()); in cmdline_test_tail_int()
103 cmdline_do_one_test(test, in, rc, offset); in cmdline_test_tail_int()
115 get_options(in, ARRAY_SIZE(r), r); in cmdline_do_one_range_test()
[all …]
A Dsiphash_kunit.c118 u8 in[64] __aligned(SIPHASH_ALIGNMENT); in siphash_test() local
123 in[i] = i; in siphash_test()
125 chk(siphash(in, i, &test_key_siphash), in siphash_test()
131 chk(hsiphash(in, i, &test_key_hsiphash), in siphash_test()
/lib/crypto/
A Daes.c148 static __always_inline u32 subshift(u32 in[], int pos) in subshift() argument
150 return (aes_sbox[in[pos] & 0xff]) ^ in subshift()
158 return (aes_inv_sbox[in[pos] & 0xff]) ^ in inv_subshift()
164 static u32 subw(u32 in) in subw() argument
166 return (aes_sbox[in & 0xff]) ^ in subw()
167 (aes_sbox[(in >> 8) & 0xff] << 8) ^ in subw()
168 (aes_sbox[(in >> 16) & 0xff] << 16) ^ in subw()
169 (aes_sbox[(in >> 24) & 0xff] << 24); in subw()
266 st0[0] = ctx->key_enc[0] ^ get_unaligned_le32(in); in aes_encrypt()
267 st0[1] = ctx->key_enc[1] ^ get_unaligned_le32(in + 4); in aes_encrypt()
[all …]
A Dblake2s.c25 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen) in blake2s_update() argument
32 memcpy(state->buf + state->buflen, in, fill); in blake2s_update()
35 in += fill; in blake2s_update()
40 blake2s_compress(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in blake2s_update()
41 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
44 memcpy(state->buf + state->buflen, in, inlen); in blake2s_update()
A Dcurve25519-selftest.c1287 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()
A Dchacha20poly1305.c21 static void chacha_load_key(u32 *k, const u8 *in) in chacha_load_key() argument
23 k[0] = get_unaligned_le32(in); in chacha_load_key()
24 k[1] = get_unaligned_le32(in + 4); in chacha_load_key()
25 k[2] = get_unaligned_le32(in + 8); in chacha_load_key()
26 k[3] = get_unaligned_le32(in + 12); in chacha_load_key()
27 k[4] = get_unaligned_le32(in + 16); in chacha_load_key()
28 k[5] = get_unaligned_le32(in + 20); in chacha_load_key()
29 k[6] = get_unaligned_le32(in + 24); in chacha_load_key()
30 k[7] = get_unaligned_le32(in + 28); in chacha_load_key()
/lib/zlib_inflate/
A Dinffast.c70 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()
147 hold += (unsigned long)(*in++) << bits; in inflate_fast()
149 hold += (unsigned long)(*in++) << bits; in inflate_fast()
308 } while (in < last && out < end); in inflate_fast()
312 in -= len; in inflate_fast()
317 strm->next_in = in; in inflate_fast()
[all …]
/lib/
A Ddecompress_unzstd.c172 zstd_in_buffer in; in __unzstd() local
223 in.src = in_buf; in __unzstd()
224 in.pos = 0; in __unzstd()
225 in.size = in_len; in __unzstd()
249 ret = zstd_get_frame_header(&header, in.src, in.size); in __unzstd()
290 if (in.pos == in.size) { in __unzstd()
292 *in_pos += in.pos; in __unzstd()
299 in.pos = 0; in __unzstd()
300 in.size = in_len; in __unzstd()
303 ret = zstd_decompress_stream(dstream, &out, &in); in __unzstd()
[all …]
A Dkfifo.c34 fifo->in = 0; in __kfifo_alloc()
59 fifo->in = 0; in __kfifo_free()
75 fifo->in = 0; in __kfifo_init()
124 fifo->in += len; in __kfifo_in()
158 l = fifo->in - fifo->out; in __kfifo_out_peek()
245 fifo->in += len; in __kfifo_from_user()
295 l = fifo->in - fifo->out; in __kfifo_to_user()
370 l = fifo->in - fifo->out; in __kfifo_dma_out_prepare()
443 fifo->in += len + recsize; in __kfifo_in_r()
465 if (fifo->in == fifo->out) in __kfifo_out_peek_r()
[all …]
A Ddecompress_unxz.c258 STATIC int INIT unxz(unsigned char *in, long in_size, in unxz() argument
294 if (in == NULL) { in unxz()
296 in = malloc(XZ_IOBUF_SIZE); in unxz()
297 if (in == NULL) in unxz()
301 b.in = in; in unxz()
316 in_size = fill(in, XZ_IOBUF_SIZE); in unxz()
347 free(in); in unxz()
405 STATIC int INIT __decompress(unsigned char *in, long in_size, in __decompress() argument
412 return unxz(in, in_size, fill, flush, out, in_used, error); in __decompress()
A Ddigsig.c78 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()
A Dsg_split.c20 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()
146 int sg_split(struct scatterlist *in, const int in_mapped_nents, in sg_split() argument
159 ret = sg_calculate_split(in, sg_nents(in), nb_splits, skip, split_sizes, in sg_split()
178 ret = sg_calculate_split(in, in_mapped_nents, nb_splits, skip, in sg_split()
A DKconfig.debug26 in task context) or a caller "processor id" (if not in task context)
56 Setting a default here is equivalent to passing in loglevel=<x> in
491 most likely result in an oops.
494 which results in the code/data being placed in specific sections.
1006 If in doubt, say "N".
1272 in uninterruptible "D" state.
1923 If in doubt, say Y.
1939 If in doubt, say Y.
2224 built-in or modular).
3201 loaded, or it may be built in, in which case it will run
[all …]
A DKconfig39 in the data sheets of the peripherals they are in control of.
41 When in doubt, say N.
50 For more information on KUnit and unit tests in general,
53 When in doubt, say N.
102 bool "Access I/O in non-MMIO mode"
116 When in doubt, say N.
188 Enable s390x hardware support for zlib in the kernel.
309 Constant value for error correction capability in bits 't'.
335 overlapping range in log(n) time and then iterate over all
424 simple text pattern matching. It originated in the ATA code
[all …]
A DKconfig.kcsan53 deadlocks or recursion. If in doubt, say N.
95 specific watchpoint slot as specified in kernel/kcsan/encoding.h.
103 int "Delay in microseconds (for tasks)"
109 int "Delay in microseconds (for interrupts)"
129 watchpoint is set up, i.e. one in KCSAN_SKIP_WATCH per-CPU
131 results in more aggressive race detection, whereas a larger value
152 result in false positives.
155 int "Duration in milliseconds, in which any given race is only reported once"
158 Any given race is only reported once in the defined time window.
200 ability to detect any data races invoving reordered accesses, in
[all …]
A DKconfig.kgdb19 CONFIG_FRAME_POINTER to aid in producing more reliable stack
20 backtraces in the external debugger. Documentation of
22 as well as in Documentation/process/debugging/kgdb.rst. If
50 to break in initially.
70 to pass in a kernel parameter
83 bool "KGDB: Allow debugging with traps in notifiers"
142 kernel is still usable in this situation.
144 No guarantees that the kernel is still usable in this situation.
/lib/zstd/common/
A Dmem.h84 MEM_STATIC U32 MEM_swap32(U32 in);
85 MEM_STATIC U64 MEM_swap64(U64 in);
86 MEM_STATIC size_t MEM_swapST(size_t in);
244 MEM_STATIC U32 MEM_swap32(U32 in) in MEM_swap32() argument
246 return swab32(in); in MEM_swap32()
249 MEM_STATIC U64 MEM_swap64(U64 in) in MEM_swap64() argument
251 return swab64(in); in MEM_swap64()
254 MEM_STATIC size_t MEM_swapST(size_t in) in MEM_swapST() argument
257 return (size_t)MEM_swap32((U32)in); in MEM_swapST()
259 return (size_t)MEM_swap64((U64)in); in MEM_swapST()
/lib/lzo/
A Dlzo1x_compress.c32 LZO_SAFE(lzo1x_1_do_compress)(const unsigned char *in, size_t in_len, in LZO_SAFE()
40 const unsigned char * const in_end = in + in_len; in LZO_SAFE()
41 const unsigned char * const ip_end = in + in_len - 20; in LZO_SAFE()
47 ip = in; in LZO_SAFE()
119 m_pos = in + dict[t]; in LZO_SAFE()
120 dict[t] = (lzo_dict_t) (ip - in); in LZO_SAFE()
336 const unsigned char *in, size_t in_len, in LZO_SAFE()
341 const unsigned char *ip = in; in LZO_SAFE()
381 const unsigned char *ii = in + in_len - t; in LZO_SAFE()
433 in, in_len, out, out_len, wrkmem, 0); in LZO_SAFE()
[all …]
/lib/842/
A D842_decompress.c51 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()
A D842_compress.c89 u8 *in; member
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()
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()
553 p->in += 8; in sw842_compress()
569 p->in += p->ilen; in sw842_compress()
[all …]
/lib/vdso/
A DKconfig20 in 32 bit only architectures.
30 Selected by architectures which support time namespaces in the
38 in the hotpath.
/lib/kunit/
A DKconfig45 purposes by developers interested in testing that KUnit works as
64 in TAP format (http://testanything.org/). Only useful for kernel devs
68 For more information on KUnit and unit tests in general please refer
69 to the KUnit documentation in Documentation/dev-tools/kunit/.
81 In most cases this should be left as Y. Only if additional opt-in
93 In most cases this should be left as Y. Only if additional opt-in
100 Sets the default timeout, in seconds, for Kunit test cases. This value
/lib/crc/arm64/
A Dcrc32-core.S142 in .req x1
162 add x7, in, x3, lsl #4 // x7 := in + 16 * x3
163 add x8, in, x3, lsl #5 // x8 := in + 32 * x3
164 add x9, in, x4, lsl #4 // x9 := in + 16 * x4
180 ldp x10, x11, [in], #16
210 mov in, x9
/lib/xz/
A Dxz_dec_stream.c161 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp()
174 static enum xz_ret dec_vli(struct xz_dec *s, const uint8_t *in, in dec_vli() argument
183 byte = in[*in_pos]; in dec_vli()
284 s->crc32 = xz_crc32(b->in + s->in_start, in_used, s->crc32); in index_update()
300 ret = dec_vli(s, b->in, &b->in_pos, b->in_size); in dec_index()
351 if (((s->crc32 >> s->pos) & 0xFF) != b->in[b->in_pos++]) in crc32_validate()
593 if (b->in[b->in_pos] == 0) { in dec_main()
604 = ((uint32_t)b->in[b->in_pos] + 1) * 4; in dec_main()
645 if (b->in[b->in_pos++] != 0) in dec_main()
687 if (b->in[b->in_pos++] != 0) in dec_main()

Completed in 43 milliseconds

123