/Zephyr-Core-2.7.6/tests/crypto/tinycrypt_hmac_prng/src/ |
D | hmac_prng.c | 73 unsigned int result = TC_PASS; in do_hmac_prng_pr_false_test() local 101 result = check_result(testnum, vec->returnedbits, vec->returnedbitslen, in do_hmac_prng_pr_false_test() 103 return result; in do_hmac_prng_pr_false_test() 108 unsigned int result = TC_PASS; in test_1() local 163 result = do_hmac_prng_pr_false_test(1, &vec); in test_1() 164 TC_END_RESULT(result); in test_1() 165 return result; in test_1() 170 unsigned int result = TC_PASS; in test_2() local 225 result = do_hmac_prng_pr_false_test(2, &vec); in test_2() 226 TC_END_RESULT(result); in test_2() [all …]
|
/Zephyr-Core-2.7.6/drivers/sensor/icm42605/ |
D | icm42605_setup.c | 20 int result; in icm42605_set_fs() local 22 result = inv_spi_read(REG_ACCEL_CONFIG0, &databuf, 1); in icm42605_set_fs() 23 if (result) { in icm42605_set_fs() 24 return result; in icm42605_set_fs() 30 result = inv_spi_single_write(REG_ACCEL_CONFIG0, &databuf); in icm42605_set_fs() 32 result = inv_spi_read(REG_GYRO_CONFIG0, &databuf, 1); in icm42605_set_fs() 34 if (result) { in icm42605_set_fs() 35 return result; in icm42605_set_fs() 41 result = inv_spi_single_write(REG_GYRO_CONFIG0, &databuf); in icm42605_set_fs() 43 if (result) { in icm42605_set_fs() [all …]
|
D | icm42605_spi.c | 19 int result; in inv_spi_single_write() local 36 result = spi_write(spi_dev, spi_cfg, &tx); in inv_spi_single_write() 38 if (result) { in inv_spi_single_write() 39 return result; in inv_spi_single_write() 47 int result; in inv_spi_read() local 77 result = spi_transceive(spi_dev, spi_cfg, &tx, &rx); in inv_spi_read() 79 if (result) { in inv_spi_read() 80 return result; in inv_spi_read()
|
/Zephyr-Core-2.7.6/tests/unit/math_extras/ |
D | tests.inc | 13 uint32_t result = 42; 15 zassert_false(u32_add_overflow(2, 3, &result), NULL); 16 zassert_equal(result, 5, NULL); 18 zassert_false(u32_add_overflow(2, 0, &result), NULL); 19 zassert_equal(result, 2, NULL); 21 zassert_false(u32_add_overflow(0, 3, &result), NULL); 22 zassert_equal(result, 3, NULL); 24 zassert_false(u32_add_overflow(0, UINT32_MAX, &result), NULL); 25 zassert_equal(result, UINT32_MAX, NULL); 26 zassert_true(u32_add_overflow(1, UINT32_MAX, &result), NULL); [all …]
|
/Zephyr-Core-2.7.6/subsys/bluetooth/shell/ |
D | mics.c | 106 int result; in cmd_mics_param() local 132 result = bt_mics_register(&mics_param, &mics); in cmd_mics_param() 133 if (result != 0) { in cmd_mics_param() 134 shell_error(sh, "MICS register failed: %d", result); in cmd_mics_param() 135 return result; in cmd_mics_param() 138 shell_print(sh, "MICS initialized", result); in cmd_mics_param() 140 result = bt_mics_included_get(NULL, &mics_included); in cmd_mics_param() 141 if (result != 0) { in cmd_mics_param() 142 shell_error(sh, "MICS get failed: %d", result); in cmd_mics_param() 145 return result; in cmd_mics_param() [all …]
|
D | vcs.c | 162 int result; in cmd_vcs_init() local 202 result = bt_vcs_register(&vcs_param, &vcs); in cmd_vcs_init() 203 if (result) { in cmd_vcs_init() 204 shell_print(sh, "Fail: %d", result); in cmd_vcs_init() 205 return result; in cmd_vcs_init() 208 result = bt_vcs_included_get(vcs, &vcs_included); in cmd_vcs_init() 209 if (result != 0) { in cmd_vcs_init() 210 shell_error(sh, "Failed to get included services: %d", result); in cmd_vcs_init() 211 return result; in cmd_vcs_init() 214 return result; in cmd_vcs_init() [all …]
|
D | vcs_client.c | 328 int result; in cmd_vcs_client_discover() local 334 result = bt_vcs_client_cb_register(&vcs_cbs); in cmd_vcs_client_discover() 335 if (result != 0) { in cmd_vcs_client_discover() 336 shell_print(sh, "CB register failed: %d", result); in cmd_vcs_client_discover() 337 return result; in cmd_vcs_client_discover() 345 result = bt_vcs_discover(default_conn, &vcs); in cmd_vcs_client_discover() 346 if (result != 0) { in cmd_vcs_client_discover() 347 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_discover() 350 return result; in cmd_vcs_client_discover() 356 int result; in cmd_vcs_client_state_get() local [all …]
|
D | mics_client.c | 206 int result; in cmd_mics_client_discover() local 212 result = bt_mics_client_cb_register(&mics_cbs); in cmd_mics_client_discover() 213 if (result != 0) { in cmd_mics_client_discover() 214 shell_print(sh, "Failed to register callbacks: %d", result); in cmd_mics_client_discover() 221 result = bt_mics_discover(default_conn, &mics); in cmd_mics_client_discover() 222 if (result != 0) { in cmd_mics_client_discover() 223 shell_print(sh, "Fail: %d", result); in cmd_mics_client_discover() 226 return result; in cmd_mics_client_discover() 232 int result; in cmd_mics_client_mute_get() local 238 result = bt_mics_mute_get(mics); in cmd_mics_client_mute_get() [all …]
|
/Zephyr-Core-2.7.6/include/sys/ |
D | math_extras_impl.h | 32 static inline bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result) in u16_add_overflow() argument 34 return __builtin_add_overflow(a, b, result); in u16_add_overflow() 37 static inline bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_add_overflow() argument 39 return __builtin_add_overflow(a, b, result); in u32_add_overflow() 42 static inline bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_add_overflow() argument 44 return __builtin_add_overflow(a, b, result); in u64_add_overflow() 47 static inline bool size_add_overflow(size_t a, size_t b, size_t *result) in size_add_overflow() argument 49 return __builtin_add_overflow(a, b, result); in size_add_overflow() 52 static inline bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result) in u16_add_overflow() argument 56 *result = c; in u16_add_overflow() [all …]
|
D | math_extras.h | 31 static bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result); 32 static bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result); 33 static bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result); 34 static bool size_add_overflow(size_t a, size_t b, size_t *result); 44 static bool u16_mul_overflow(uint16_t a, uint16_t b, uint16_t *result); 45 static bool u32_mul_overflow(uint32_t a, uint32_t b, uint32_t *result); 46 static bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result); 47 static bool size_mul_overflow(size_t a, size_t b, size_t *result);
|
/Zephyr-Core-2.7.6/tests/crypto/tinycrypt/src/ |
D | sha256.c | 57 uint32_t result = TC_PASS; in test_sha256_1() local 74 result = check_result(1, expected, sizeof(expected), in test_sha256_1() 78 zassert_false(result, "SHA256 test #1 failed."); in test_sha256_1() 86 uint32_t result = TC_PASS; in test_sha256_2() local 105 result = check_result(2, expected, sizeof(expected), in test_sha256_2() 109 zassert_false(result, "SHA256 test #2 failed."); in test_sha256_2() 114 uint32_t result = TC_PASS; in test_sha256_3() local 132 result = check_result(3, expected, sizeof(expected), in test_sha256_3() 136 zassert_false(result, "SHA256 test #3 failed."); in test_sha256_3() 142 uint32_t result = TC_PASS; in test_sha256_4() local [all …]
|
D | ccm_mode.c | 78 uint32_t result = TC_PASS; in do_test() local 86 result = tc_ccm_config(&c, &sched, nonce, nlen, mlen); in do_test() 89 zassert_true(result, "CCM config failed"); in do_test() 91 result = tc_ccm_generation_encryption(ciphertext, sizeof(ciphertext), in do_test() 95 zassert_true(result, "ccm_encrypt failed"); in do_test() 106 result = tc_ccm_decryption_verification(decrypted, sizeof(decrypted), in do_test() 111 if (result == 0U) { in do_test() 119 result = TC_PASS; in do_test() 120 return result; in do_test() 125 uint32_t result = TC_PASS; in test_ccm_vector_1() local [all …]
|
D | aes.c | 73 uint32_t result = TC_PASS; in test_aes_key_chain() local 99 result = check_result(1, expected.words, in test_aes_key_chain() 104 zassert_false(result, in test_aes_key_chain() 113 int result = TC_PASS; in test_aes_vectors() local 137 result = check_result(2, expected, sizeof(expected), in test_aes_vectors() 141 zassert_false(result, in test_aes_vectors() 150 uint32_t result = TC_PASS; in var_text_test() local 153 result = check_result(r, out, NUM_OF_NIST_KEYS, in var_text_test() 155 if (result != TC_FAIL) { in var_text_test() 158 result = TC_FAIL; in var_text_test() [all …]
|
D | hmac.c | 50 uint32_t result = TC_PASS; in do_hmac_test() local 55 result = check_result(testnum, expected, expectedlen, in do_hmac_test() 57 return result; in do_hmac_test() 65 uint32_t result = TC_PASS; in test_hmac_1() local 90 result = do_hmac_test(&h, 1, data, sizeof(data), in test_hmac_1() 94 zassert_false(result, "HMAC test #7 failed"); in test_hmac_1() 99 uint32_t result = TC_PASS; in test_hmac_2() local 124 result = do_hmac_test(&h, 2, data, sizeof(data), in test_hmac_2() 128 zassert_false(result, "HMAC test #7 failed"); in test_hmac_2() 133 uint32_t result = TC_PASS; in test_hmac_3() local [all …]
|
D | ecc_dh.c | 78 unsigned int result = TC_PASS; in ecdh_vectors() local 106 result = check_ecc_result(i, "Z", exp_z, z, NUM_ECC_WORDS, verbose); in ecdh_vectors() 109 zassert_false(result, "ECDH test failed"); in ecdh_vectors() 111 return result; in ecdh_vectors() 116 unsigned int result = TC_PASS; in cavp_ecdh() local 235 result = ecdh_vectors(x, y, d, Z, 25, verbose); in cavp_ecdh() 238 zassert_false(result, "ECDH test failed"); in cavp_ecdh() 239 return result; in cavp_ecdh() 244 unsigned int result = TC_PASS; in cavp_keygen() local 290 result = keygen_vectors(d, x, y, 10, verbose); in cavp_keygen() [all …]
|
D | cmac_mode.c | 70 uint32_t result = TC_PASS; in verify_gf_2_128_double() local 114 TC_END_RESULT(result); in verify_gf_2_128_double() 115 return result; in verify_gf_2_128_double() 120 uint32_t result = TC_PASS; in verify_cmac_null_msg() local 141 TC_END_RESULT(result); in verify_cmac_null_msg() 142 return result; in verify_cmac_null_msg() 147 uint32_t result = TC_PASS; in verify_cmac_1_block_msg() local 173 TC_END_RESULT(result); in verify_cmac_1_block_msg() 174 return result; in verify_cmac_1_block_msg() 179 uint32_t result = TC_PASS; in verify_cmac_320_bit_msg() local [all …]
|
/Zephyr-Core-2.7.6/subsys/testsuite/include/ |
D | tc_util.h | 81 static inline const char *TC_RESULT_TO_STR(int result) in TC_RESULT_TO_STR() argument 83 switch (result) { in TC_RESULT_TO_STR() 137 #define TC_END(result, fmt, ...) PRINT_DATA(fmt, ##__VA_ARGS__) argument 142 #define Z_TC_END_RESULT(result, func) \ argument 145 TC_END(result, " %s - %s in %u.%u seconds\n", \ 146 TC_RESULT_TO_STR(result), func, tc_spend_time/1000, \ 153 #define TC_END_RESULT(result) \ argument 154 Z_TC_END_RESULT((result), __func__) 166 #define TC_SUITE_END(name, result) \ argument 168 if (result == TC_PASS) { \ [all …]
|
/Zephyr-Core-2.7.6/include/arch/arm/aarch32/cortex_a_r/ |
D | cmsis_ext.h | 45 uint32_t result; in __get_DFAR() local 46 __get_CP(15, 0, result, 6, 0, 0); in __get_DFAR() 47 return result; in __get_DFAR() 52 uint32_t result; in __get_IFAR() local 53 __get_CP(15, 0, result, 6, 0, 2); in __get_IFAR() 54 return result; in __get_IFAR() 59 uint32_t result; in __get_DBGDSCR() local 60 __get_CP(14, 0, result, 0, 1, 0); in __get_DBGDSCR() 61 return result; in __get_DBGDSCR()
|
/Zephyr-Core-2.7.6/samples/net/mqtt_publisher/ |
D | docker-test.sh | 19 result=$? 21 if [ $result -ne 0 ]; then 22 return $result 36 result=$? 38 if [ $result -ne 0 ]; then 39 return $result 43 return $result 55 result=$?
|
/Zephyr-Core-2.7.6/samples/net/sockets/dumb_http_server_mt/ |
D | docker-test.sh | 21 result=1 25 result=$? 31 if [ $result -ne 0 ] || [ $docker_result -ne 0 ]; then 32 return $result 52 result=1 56 result=$? 62 if [ $result -ne 0 ] || [ $docker_result -ne 0 ]; then 63 return $result
|
/Zephyr-Core-2.7.6/drivers/flash/ |
D | flash_shell.c | 59 int result; in cmd_erase() local 62 result = parse_helper(shell, &argc, &argv, &flash_dev, &page_addr); in cmd_erase() 63 if (result) { in cmd_erase() 64 return result; in cmd_erase() 71 result = flash_get_page_info_by_offs(flash_dev, page_addr, in cmd_erase() 74 if (result != 0) { in cmd_erase() 76 "code %d.", result); in cmd_erase() 83 result = flash_erase(flash_dev, page_addr, size); in cmd_erase() 85 if (result) { in cmd_erase() 86 shell_error(shell, "Erase Failed, code %d.", result); in cmd_erase() [all …]
|
/Zephyr-Core-2.7.6/tests/net/socket/register/src/ |
D | main.c | 26 int result; member 34 .result = 0, 41 .result = 0, 49 .result = -1, 57 .result = 0, 64 .result = 0, 71 .result = 0, 78 .result = 0, 85 .result = 0, 92 .result = 0, [all …]
|
/Zephyr-Core-2.7.6/samples/net/syslog_net/ |
D | docker-test.sh | 21 result=$? 23 if [ $result -ne 0 ] || [ $docker_result -ne 0 ]; then 24 return ${result}${docker_result} 34 result=$? 36 if [ $result -ne 0 ] || [ $docker_result -ne 0 ]; then 37 return ${result}${docker_result}
|
/Zephyr-Core-2.7.6/lib/libc/minimal/source/time/ |
D | gmtime.c | 81 struct tm *_MLIBC_RESTRICT result) in gmtime_r() argument 87 *result = (struct tm){ 0 }; in gmtime_r() 89 time_civil_from_days(days, result); in gmtime_r() 91 result->tm_hour = rem / 60U / 60U; in gmtime_r() 92 rem -= result->tm_hour * 60 * 60; in gmtime_r() 93 result->tm_min = rem / 60; in gmtime_r() 94 result->tm_sec = rem - result->tm_min * 60; in gmtime_r() 96 return result; in gmtime_r()
|
/Zephyr-Core-2.7.6/doc/_static/js/ |
D | scorer.js | 17 score: function(result) { argument 18 if (result[0].search("reference/kconfig/")>=0) { 21 else if (result[0].search("boards/")>=0) { 24 else if (result[0].search("samples/")>=0) { 28 return result[4];
|