/lib/kunit/ |
D | attributes.c | 40 int (*filter)(void *attr, const char *input, int *err); 80 static int int_filter(long val, const char *op, int input, int *err) in int_filter() argument 83 return (val <= input); in int_filter() 85 return (val >= input); in int_filter() 87 return (val != input); in int_filter() 89 return (val > input); in int_filter() 91 return (val < input); in int_filter() 93 return (val == input); in int_filter() 104 static int attr_enum_filter(void *attr, const char *input, int *err, in attr_enum_filter() argument 111 for (i = 0; input[i]; i++) { in attr_enum_filter() [all …]
|
D | executor_test.c | 136 KUNIT_EXPECT_STREQ(test, parsed_filters[0].input, ">slow"); in parse_filter_attr_test() 139 KUNIT_EXPECT_STREQ(test, parsed_filters[1].input, "!=example"); in parse_filter_attr_test()
|
/lib/crypto/ |
D | curve25519-hacl64.c | 51 static __always_inline void fproduct_copy_from_wide_(u64 *output, u128 *input) in fproduct_copy_from_wide_() argument 54 u128 xi = input[0]; in fproduct_copy_from_wide_() 58 u128 xi = input[1]; in fproduct_copy_from_wide_() 62 u128 xi = input[2]; in fproduct_copy_from_wide_() 66 u128 xi = input[3]; in fproduct_copy_from_wide_() 70 u128 xi = input[4]; in fproduct_copy_from_wide_() 76 fproduct_sum_scalar_multiplication_(u128 *output, u64 *input, u64 s) in fproduct_sum_scalar_multiplication_() argument 78 output[0] += (u128)input[0] * s; in fproduct_sum_scalar_multiplication_() 79 output[1] += (u128)input[1] * s; in fproduct_sum_scalar_multiplication_() 80 output[2] += (u128)input[2] * s; in fproduct_sum_scalar_multiplication_() [all …]
|
D | sha256.c | 55 static inline void LOAD_OP(int I, u32 *W, const u8 *input) in LOAD_OP() argument 57 W[I] = get_unaligned_be32((__u32 *)input + I); in LOAD_OP() 73 static void sha256_transform(u32 *state, const u8 *input, u32 *W) in sha256_transform() argument 80 LOAD_OP(i + 0, W, input); in sha256_transform() 81 LOAD_OP(i + 1, W, input); in sha256_transform() 82 LOAD_OP(i + 2, W, input); in sha256_transform() 83 LOAD_OP(i + 3, W, input); in sha256_transform() 84 LOAD_OP(i + 4, W, input); in sha256_transform() 85 LOAD_OP(i + 5, W, input); in sha256_transform() 86 LOAD_OP(i + 6, W, input); in sha256_transform() [all …]
|
D | poly1305-donna32.c | 35 const u8 *input = src; in poly1305_core_blocks() local 66 h0 += (get_unaligned_le32(&input[0])) & 0x3ffffff; in poly1305_core_blocks() 67 h1 += (get_unaligned_le32(&input[3]) >> 2) & 0x3ffffff; in poly1305_core_blocks() 68 h2 += (get_unaligned_le32(&input[6]) >> 4) & 0x3ffffff; in poly1305_core_blocks() 69 h3 += (get_unaligned_le32(&input[9]) >> 6) & 0x3ffffff; in poly1305_core_blocks() 70 h4 += (get_unaligned_le32(&input[12]) >> 8) | hibit; in poly1305_core_blocks() 109 input += POLY1305_BLOCK_SIZE; in poly1305_core_blocks()
|
D | poly1305-donna64.c | 36 const u8 *input = src; in poly1305_core_blocks() local 64 t0 = get_unaligned_le64(&input[0]); in poly1305_core_blocks() 65 t1 = get_unaligned_le64(&input[8]); in poly1305_core_blocks() 102 input += POLY1305_BLOCK_SIZE; in poly1305_core_blocks()
|
D | chacha20poly1305-selftest.c | 18 const u8 *input, *output, *assoc, *nonce, *key; member 8889 u8 *computed_output = NULL, *input = NULL; in chacha20poly1305_selftest() local 8894 input = kmalloc(MAXIMUM_TEST_BUFFER_LEN, GFP_KERNEL); in chacha20poly1305_selftest() 8895 if (!computed_output || !input) { in chacha20poly1305_selftest() 8904 chacha20poly1305_enc_vectors[i].input, in chacha20poly1305_selftest() 8924 memcpy(computed_output, chacha20poly1305_enc_vectors[i].input, in chacha20poly1305_selftest() 8947 chacha20poly1305_dec_vectors[i].input, in chacha20poly1305_selftest() 8966 memcpy(computed_output, chacha20poly1305_dec_vectors[i].input, in chacha20poly1305_selftest() 8990 xchacha20poly1305_enc_vectors[i].input, in chacha20poly1305_selftest() 9009 xchacha20poly1305_dec_vectors[i].input, in chacha20poly1305_selftest() [all …]
|
D | sha1.c | 57 #define SHA_ROUND(t, input, fn, constant, A, B, C, D, E) do { \ argument 58 __u32 TEMP = input(t); setW(t, TEMP); \
|
/lib/ |
D | decompress_unlzo.c | 41 STATIC inline long INIT parse_header(u8 *input, long *skip, long in_len) in parse_header() argument 44 u8 *parse = input; in parse_header() 45 u8 *end = input + in_len; in parse_header() 93 *skip = parse - input; in parse_header() 97 STATIC int INIT unlzo(u8 *input, long in_len, in unlzo() argument 123 if (input && fill) { in unlzo() 126 } else if (input) { in unlzo() 127 in_buf = input; in unlzo() 267 if (!input) in unlzo()
|
D | xxhash.c | 94 static uint32_t xxh32_round(uint32_t seed, const uint32_t input) in xxh32_round() argument 96 seed += input * PRIME32_2; in xxh32_round() 102 uint32_t xxh32(const void *input, const size_t len, const uint32_t seed) in xxh32() argument 104 const uint8_t *p = (const uint8_t *)input; in xxh32() 156 static uint64_t xxh64_round(uint64_t acc, const uint64_t input) in xxh64_round() argument 158 acc += input * PRIME64_2; in xxh64_round() 172 uint64_t xxh64(const void *input, const size_t len, const uint64_t seed) in xxh64() argument 174 const uint8_t *p = (const uint8_t *)input; in xxh64() 270 int xxh32_update(struct xxh32_state *state, const void *input, const size_t len) in xxh32_update() argument 272 const uint8_t *p = (const uint8_t *)input; in xxh32_update() [all …]
|
D | decompress_unlz4.c | 31 STATIC inline int INIT unlz4(u8 *input, long in_len, in unlz4() argument 45 size_t out_len = get_unaligned_le32(input + in_len); in unlz4() 63 if (input && fill) { in unlz4() 66 } else if (input) { in unlz4() 67 inp = input; in unlz4() 197 if (!input) in unlz4()
|
D | memcpy_kunit.c | 501 static const char input[sizeof(unsigned long)] = "hi"; in strtomem_test() local 516 strtomem(wrap.output, input); in strtomem_test() 518 KUNIT_EXPECT_EQ(test, wrap.output[0], input[0]); in strtomem_test() 519 KUNIT_EXPECT_EQ(test, wrap.output[1], input[1]); in strtomem_test() 534 strtomem_pad(wrap.output, input, 0xAA); in strtomem_test() 536 KUNIT_EXPECT_EQ(test, wrap.output[0], input[0]); in strtomem_test() 537 KUNIT_EXPECT_EQ(test, wrap.output[1], input[1]); in strtomem_test()
|
D | Kconfig.kgdb | 123 bool "KGDB_KDB: keyboard as input device" 127 KDB can use a PS/2 type keyboard for an input device
|
D | kobject_uevent.c | 777 .input = uevent_net_rcv, in uevent_net_init()
|
/lib/zstd/ |
D | zstd_decompress_module.c | 85 zstd_in_buffer *input) in zstd_decompress_stream() argument 87 return ZSTD_decompressStream(dstream, output, input); in zstd_decompress_stream()
|
D | zstd_compress_module.c | 145 zstd_in_buffer *input) in zstd_compress_stream() argument 147 return ZSTD_compressStream(cstream, output, input); in zstd_compress_stream()
|
/lib/zstd/decompress/ |
D | zstd_decompress.c | 1878 size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input) in ZSTD_decompressStream() argument 1880 const char* const src = (const char*)input->src; in ZSTD_decompressStream() 1881 const char* const istart = input->pos != 0 ? src + input->pos : src; in ZSTD_decompressStream() 1882 const char* const iend = input->size != 0 ? src + input->size : src; in ZSTD_decompressStream() 1892 input->pos > input->size, in ZSTD_decompressStream() 1895 (U32)input->pos, (U32)input->size); in ZSTD_decompressStream() 1901 DEBUGLOG(5, "input size : %u", (U32)(input->size - input->pos)); in ZSTD_decompressStream() 1934 input->pos = input->size; in ZSTD_decompressStream() 2096 input->pos = (size_t)(ip - (const char*)(input->src)); in ZSTD_decompressStream() 2116 if (input->pos >= input->size) { in ZSTD_decompressStream() [all …]
|
/lib/zstd/compress/ |
D | zstd_compress.c | 5211 ZSTD_inBuffer* input, in ZSTD_compressStream_generic() argument 5214 const char* const istart = (const char*)input->src; in ZSTD_compressStream_generic() 5215 const char* const iend = input->size != 0 ? istart + input->size : istart; in ZSTD_compressStream_generic() 5216 const char* ip = input->pos != 0 ? istart + input->pos : istart; in ZSTD_compressStream_generic() 5233 assert(input->pos <= input->size); in ZSTD_compressStream_generic() 5370 input->pos = ip - istart; in ZSTD_compressStream_generic() 5382 size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input) in ZSTD_compressStream() argument 5384 FORWARD_IF_ERROR( ZSTD_compressStream2(zcs, output, input, ZSTD_e_continue) , ""); in ZSTD_compressStream() 5391 …TD_setBufferExpectations(ZSTD_CCtx* cctx, ZSTD_outBuffer const* output, ZSTD_inBuffer const* input) in ZSTD_setBufferExpectations() argument 5394 cctx->expectedInBuffer = *input; in ZSTD_setBufferExpectations() [all …]
|