Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 33) sorted by relevance

12

/lib/crypto/
Dcurve25519-selftest.c11 u8 result[CURVE25519_KEY_SIZE]; member
24 .result = { 0x4a, 0x5d, 0x9d, 0x5b, 0xa4, 0xce, 0x2d, 0xe1,
39 .result = { 0x4a, 0x5d, 0x9d, 0x5b, 0xa4, 0xce, 0x2d, 0xe1,
51 .result = { 0x3c, 0x77, 0x77, 0xca, 0xf9, 0x97, 0xb2, 0x64,
63 .result = { 0xb3, 0x2d, 0x13, 0x62, 0xc2, 0x48, 0xd6, 0x2f,
78 .result = { 0xc3, 0xda, 0x55, 0x37, 0x9d, 0xe9, 0xc6, 0x90,
87 .result = { 0 },
96 .result = { 0 },
108 .result = { 0x77, 0x52, 0xb6, 0x18, 0xc1, 0x2d, 0x48, 0xd2,
123 .result = { 0x5a, 0xdf, 0xaa, 0x25, 0x86, 0x8e, 0x32, 0x3d,
[all …]
/lib/
Dchecksum.c49 unsigned int result = 0; in do_csum() local
56 result += (*buff << 8); in do_csum()
58 result = *buff; in do_csum()
65 result += *(unsigned short *) buff; in do_csum()
75 result += carry; in do_csum()
76 result += w; in do_csum()
77 carry = (w > result); in do_csum()
79 result += carry; in do_csum()
80 result = (result & 0xffff) + (result >> 16); in do_csum()
83 result += *(unsigned short *) buff; in do_csum()
[all …]
Dparser.c138 static int match_number(substring_t *s, int *result, int base) in match_number() argument
154 *result = (int) val; in match_number()
170 static int match_u64int(substring_t *s, u64 *result, int base) in match_u64int() argument
180 *result = val; in match_u64int()
194 int match_int(substring_t *s, int *result) in match_int() argument
196 return match_number(s, result, 0); in match_int()
210 int match_uint(substring_t *s, unsigned int *result) in match_uint() argument
217 return kstrtouint(buf, 10, result); in match_uint()
233 int match_u64(substring_t *s, u64 *result) in match_u64() argument
235 return match_u64int(s, result, 0); in match_u64()
[all …]
Dchecksum_kunit.c483 __sum16 result, expec; in test_csum_fixed_random_inputs() local
495 result = full_csum(&tmp_buf[align], len, sum); in test_csum_fixed_random_inputs()
497 CHECK_EQ(result, expec); in test_csum_fixed_random_inputs()
509 __sum16 result, expec; in test_csum_all_carry_inputs() local
520 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
522 CHECK_EQ(result, expec); in test_csum_all_carry_inputs()
528 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
535 CHECK_EQ(result, expec); in test_csum_all_carry_inputs()
549 __sum16 result, expec; in test_csum_no_carry_inputs() local
560 result = full_csum(&tmp_buf[align], len, sum); in test_csum_no_carry_inputs()
[all …]
Dfault-inject.c276 int result; in fault_uint_attr_store() local
278 result = kstrtouint(page, 0, &tmp); in fault_uint_attr_store()
279 if (result < 0) in fault_uint_attr_store()
280 return result; in fault_uint_attr_store()
288 int result; in fault_ulong_attr_store() local
291 result = kstrtoul(page, 0, &tmp); in fault_ulong_attr_store()
292 if (result < 0) in fault_ulong_attr_store()
293 return result; in fault_ulong_attr_store()
302 int result; in fault_bool_attr_store() local
304 result = kstrtobool(page, &tmp); in fault_bool_attr_store()
[all …]
Dstring_kunit.c111 char *result; in string_test_strchr() local
115 result = strchr(test_string, test_string[i]); in string_test_strchr()
116 KUNIT_ASSERT_EQ_MSG(test, result - test_string, i, in string_test_strchr()
120 result = strchr(empty_string, '\0'); in string_test_strchr()
121 KUNIT_ASSERT_PTR_EQ(test, result, empty_string); in string_test_strchr()
123 result = strchr(empty_string, 'a'); in string_test_strchr()
124 KUNIT_ASSERT_NULL(test, result); in string_test_strchr()
126 result = strchr(test_string, 'z'); in string_test_strchr()
127 KUNIT_ASSERT_NULL(test, result); in string_test_strchr()
134 char *result; in string_test_strnchr() local
[all …]
Dassoc_array.c173 struct assoc_array_walk_result *result) in assoc_array_walk() argument
218 result->terminal_node.node = node; in assoc_array_walk()
219 result->terminal_node.level = level; in assoc_array_walk()
220 result->terminal_node.slot = slot; in assoc_array_walk()
270 result->wrong_shortcut.shortcut = shortcut; in assoc_array_walk()
271 result->wrong_shortcut.level = level; in assoc_array_walk()
272 result->wrong_shortcut.sc_level = sc_level; in assoc_array_walk()
273 result->wrong_shortcut.sc_segments = sc_segments; in assoc_array_walk()
274 result->wrong_shortcut.dissimilarity = dissimilarity; in assoc_array_walk()
308 struct assoc_array_walk_result result; in assoc_array_find() local
[all …]
Dtest_hexdump.c72 const char * const *result; in test_hexdump_prepare_test() local
88 result = is_be ? test_data_8_be : test_data_8_le; in test_hexdump_prepare_test()
90 result = is_be ? test_data_4_be : test_data_4_le; in test_hexdump_prepare_test()
92 result = is_be ? test_data_2_be : test_data_2_le; in test_hexdump_prepare_test()
94 result = test_data_1; in test_hexdump_prepare_test()
99 const char *q = *result++; in test_hexdump_prepare_test()
Drandom32.c132 u32 result; member
143 u32 result; member
268 if (test1[i].result != prandom_u32_state(&state)) in prandom_state_selftest()
286 if (test2[i].result != prandom_u32_state(&state)) in prandom_state_selftest()
Dbitmap.c234 unsigned long result = 0; in __bitmap_and() local
237 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and()
239 result |= (dst[k] = bitmap1[k] & bitmap2[k] & in __bitmap_and()
241 return result != 0; in __bitmap_and()
272 unsigned long result = 0; in __bitmap_andnot() local
275 result |= (dst[k] = bitmap1[k] & ~bitmap2[k]); in __bitmap_andnot()
277 result |= (dst[k] = bitmap1[k] & ~bitmap2[k] & in __bitmap_andnot()
279 return result != 0; in __bitmap_andnot()
Dtest_scanf.c196 T result = ~expect_val; /* should be overwritten */ \
199 _test(fn, &expect_val, test_buffer, "%" scan_fmt, 1, &result); \
355 T expect[8], result[8]; \
369 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \
383 T expect[8], result[8]; \
398 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \
609 T result[2] = { (T)~expect[0], (T)~expect[1] }; \
611 _test(fn, &expect, str, scan_fmt, n_args, &result[0], &result[1]); \
DKconfig.kmsan45 Disabling KMSAN_CHECK_PARAM_RETVAL will result in tracking shadow for
Dtest_bitmap.c177 int result = 0; \
182 result = 1; \
184 result; \
/lib/lz4/
Dlz4_decompress.c592 int result; in LZ4_decompress_safe_continue() local
597 result = LZ4_decompress_safe(source, dest, in LZ4_decompress_safe_continue()
599 if (result <= 0) in LZ4_decompress_safe_continue()
600 return result; in LZ4_decompress_safe_continue()
601 lz4sd->prefixSize = result; in LZ4_decompress_safe_continue()
602 lz4sd->prefixEnd = (BYTE *)dest + result; in LZ4_decompress_safe_continue()
606 result = LZ4_decompress_safe_withPrefix64k(source, dest, in LZ4_decompress_safe_continue()
609 result = LZ4_decompress_safe_withSmallPrefix(source, in LZ4_decompress_safe_continue()
613 result = LZ4_decompress_safe_doubleDict(source, dest, in LZ4_decompress_safe_continue()
617 if (result <= 0) in LZ4_decompress_safe_continue()
[all …]
Dlz4_compress.c896 int result; in LZ4_compress_fast_continue() local
900 result = LZ4_compress_generic( in LZ4_compress_fast_continue()
905 result = LZ4_compress_generic( in LZ4_compress_fast_continue()
912 return result; in LZ4_compress_fast_continue()
917 int result; in LZ4_compress_fast_continue() local
921 result = LZ4_compress_generic( in LZ4_compress_fast_continue()
926 result = LZ4_compress_generic( in LZ4_compress_fast_continue()
934 return result; in LZ4_compress_fast_continue()
/lib/math/
Dtest_mul_u64_u64_div_u64.c13 typedef struct { u64 a; u64 b; u64 c; u64 result; } test_params; member
76 u64 expected_result = test_values[i].result; in test_init()
77 u64 result = mul_u64_u64_div_u64(a, b, c); in test_init() local
79 if (result != expected_result) { in test_init()
82 pr_err("ERROR: obtained result: %016llx\n", result); in test_init()
Dint_pow.c21 u64 result = 1; in int_pow() local
25 result *= base; in int_pow()
30 return result; in int_pow()
Dtest_div64.c164 bool result = true; \
176 result = false; \
178 result; \
Dprime_numbers.c222 bool result; in is_prime_number() local
235 result = test_bit(x, p->primes); in is_prime_number()
238 return result; in is_prime_number()
/lib/zlib_dfltcc/
Ddfltcc_deflate.c122 block_state *result in dfltcc_deflate() argument
165 *result = no_flush ? need_more : block_done; in dfltcc_deflate()
200 *result = need_more; in dfltcc_deflate()
298 *result = finish_done; in dfltcc_deflate()
303 *result = flush == Z_NO_FLUSH ? need_more : block_done; in dfltcc_deflate()
307 *result = need_more; in dfltcc_deflate()
Ddfltcc_deflate.h11 block_state *result);
/lib/kunit/
Dattributes.c404 bool suite_result, test_result, default_result, result; in kunit_filter_attr_tests() local
445 result = false; in kunit_filter_attr_tests()
448 result = true; in kunit_filter_attr_tests()
451 result = true; in kunit_filter_attr_tests()
453 result = true; in kunit_filter_attr_tests()
456 if (result) { in kunit_filter_attr_tests()
Dstring-stream.c93 int result; in string_stream_add() local
96 result = string_stream_vadd(stream, fmt, args); in string_stream_add()
99 return result; in string_stream_add()
/lib/zstd/common/
Dbitstream.h425 BIT_DStream_status result = BIT_DStream_unfinished; in BIT_reloadDStream() local
428 result = BIT_DStream_endOfBuffer; in BIT_reloadDStream()
433 return result; in BIT_reloadDStream()
/lib/raid6/
Ds390vx.uc27 * vector register y left by 1 bit and stores the result in
35 * or 0x00 if the high bit is 0. The result is stored in vector

12