Home
last modified time | relevance | path

Searched full:result (Results 1 – 25 of 1153) sorted by relevance

12345678910>>...47

/Zephyr-latest/drivers/sensor/tdk/icm42605/
Dicm42605_setup.c21 int result; in icm42605_set_fs() local
23 result = inv_spi_read(&cfg->spi, REG_ACCEL_CONFIG0, &databuf, 1); in icm42605_set_fs()
24 if (result) { in icm42605_set_fs()
25 return result; in icm42605_set_fs()
31 result = inv_spi_single_write(&cfg->spi, REG_ACCEL_CONFIG0, &databuf); in icm42605_set_fs()
33 result = inv_spi_read(&cfg->spi, REG_GYRO_CONFIG0, &databuf, 1); in icm42605_set_fs()
35 if (result) { in icm42605_set_fs()
36 return result; in icm42605_set_fs()
42 result = inv_spi_single_write(&cfg->spi, REG_GYRO_CONFIG0, &databuf); in icm42605_set_fs()
44 if (result) { in icm42605_set_fs()
[all …]
/Zephyr-latest/tests/unit/math_extras/
Dtests.inc13 uint32_t result = 42;
15 zassert_false(u32_add_overflow(2, 3, &result));
16 zassert_equal(result, 5);
18 zassert_false(u32_add_overflow(2, 0, &result));
19 zassert_equal(result, 2);
21 zassert_false(u32_add_overflow(0, 3, &result));
22 zassert_equal(result, 3);
24 zassert_false(u32_add_overflow(0, UINT32_MAX, &result));
25 zassert_equal(result, UINT32_MAX);
26 zassert_true(u32_add_overflow(1, UINT32_MAX, &result));
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dvcp_vol_rend.c173 int result = 0; in cmd_vcp_vol_rend_init() local
223 vcp_register_param.step = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
225 vcp_register_param.mute = shell_strtobool(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
227 vcp_register_param.volume = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
237 if (result != 0) { in cmd_vcp_vol_rend_init()
245 result = bt_vcp_vol_rend_register(&vcp_register_param); in cmd_vcp_vol_rend_init()
246 if (result) { in cmd_vcp_vol_rend_init()
247 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_init()
248 return result; in cmd_vcp_vol_rend_init()
251 result = bt_vcp_vol_rend_included_get(&vcp_included); in cmd_vcp_vol_rend_init()
[all …]
Dmicp_mic_dev.c114 int result; in cmd_micp_mic_dev_param() local
143 result = bt_micp_mic_dev_register(&micp_param); in cmd_micp_mic_dev_param()
144 if (result != 0) { in cmd_micp_mic_dev_param()
145 shell_error(sh, "MICP register failed: %d", result); in cmd_micp_mic_dev_param()
146 return result; in cmd_micp_mic_dev_param()
149 shell_print(sh, "MICP initialized: %d", result); in cmd_micp_mic_dev_param()
152 result = bt_micp_mic_dev_included_get(&micp_included); in cmd_micp_mic_dev_param()
153 if (result != 0) { in cmd_micp_mic_dev_param()
154 shell_error(sh, "MICP get failed: %d", result); in cmd_micp_mic_dev_param()
158 return result; in cmd_micp_mic_dev_param()
[all …]
Dtbs_client.c34 int result = 0; in cmd_tbs_client_discover() local
36 result = bt_tbs_client_discover(default_conn); in cmd_tbs_client_discover()
37 if (result != 0) { in cmd_tbs_client_discover()
38 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_discover()
41 return result; in cmd_tbs_client_discover()
51 int result = 0; in cmd_tbs_client_set_signal_strength_interval() local
60 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
61 if (result != 0) { in cmd_tbs_client_set_signal_strength_interval()
64 result); in cmd_tbs_client_set_signal_strength_interval()
80 interval = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
[all …]
Dvcp_vol_ctlr.c339 int result; in cmd_vcp_vol_ctlr_discover() local
346 result = bt_vcp_vol_ctlr_cb_register(&vcp_cbs); in cmd_vcp_vol_ctlr_discover()
347 if (result != 0) { in cmd_vcp_vol_ctlr_discover()
348 shell_print(sh, "CB register failed: %d", result); in cmd_vcp_vol_ctlr_discover()
349 return result; in cmd_vcp_vol_ctlr_discover()
360 result = bt_vcp_vol_ctlr_discover(default_conn, &vcp_vol_ctlr); in cmd_vcp_vol_ctlr_discover()
361 if (result != 0) { in cmd_vcp_vol_ctlr_discover()
362 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_discover()
365 return result; in cmd_vcp_vol_ctlr_discover()
371 int result; in cmd_vcp_vol_ctlr_state_get() local
[all …]
Dtbs.c126 int result = 0; in cmd_tbs_accept() local
128 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_accept()
129 if (result != 0) { in cmd_tbs_accept()
130 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_accept()
141 result = bt_tbs_accept((uint8_t)call_index); in cmd_tbs_accept()
142 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_accept()
143 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_accept()
149 return result; in cmd_tbs_accept()
156 int result = 0; in cmd_tbs_terminate() local
158 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_terminate()
[all …]
Dmicp_mic_ctlr.c228 int result; in cmd_micp_mic_ctlr_discover() local
234 result = bt_micp_mic_ctlr_cb_register(&micp_cbs); in cmd_micp_mic_ctlr_discover()
235 if (result != 0) { in cmd_micp_mic_ctlr_discover()
236 shell_print(sh, "Failed to register callbacks: %d", result); in cmd_micp_mic_ctlr_discover()
243 result = bt_micp_mic_ctlr_discover(default_conn, &micp_mic_ctlr); in cmd_micp_mic_ctlr_discover()
244 if (result != 0) { in cmd_micp_mic_ctlr_discover()
245 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_discover()
248 return result; in cmd_micp_mic_ctlr_discover()
254 int result; in cmd_micp_mic_ctlr_mute_get() local
260 result = bt_micp_mic_ctlr_mute_get(micp_mic_ctlr); in cmd_micp_mic_ctlr_mute_get()
[all …]
Dmcc.c408 "Command notification error (%d) - opcode: %d, result: %d", in mcc_cmd_ntf_cb()
413 shell_print(ctx_shell, "Command opcode: %d, result: %d", in mcc_cmd_ntf_cb()
448 "Search notification error (%d), result code: %d", in mcc_search_ntf_cb()
453 shell_print(ctx_shell, "Search notification result code: %d", in mcc_search_ntf_cb()
599 int result; in cmd_mcc_init() local
685 result = bt_mcc_init(&cb); in cmd_mcc_init()
687 if (result) { in cmd_mcc_init()
688 shell_error(sh, "Fail: %d", result); in cmd_mcc_init()
690 return result; in cmd_mcc_init()
697 int result = 0; in cmd_mcc_discover_mcs() local
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_senml_cbor_decode.c19 #define log_result(state, result, func) \ argument
21 if (!result) { \
30 static bool decode_repeated_record_bn(zcbor_state_t *state, struct record_bn *result);
31 static bool decode_repeated_record_bt(zcbor_state_t *state, struct record_bt *result);
32 static bool decode_repeated_record_n(zcbor_state_t *state, struct record_n *result);
33 static bool decode_repeated_record_t(zcbor_state_t *state, struct record_t *result);
34 static bool decode_repeated_record_union(zcbor_state_t *state, struct record_union_r *result);
35 static bool decode_value(zcbor_state_t *state, struct value_r *result);
36 static bool decode_key_value_pair(zcbor_state_t *state, struct key_value_pair *result);
38 struct record_key_value_pair_m *result);
[all …]
Dlwm2m_obj_firmware_pull.c21 int result; in set_update_result() local
30 result = RESULT_OUT_OF_MEM; in set_update_result()
33 result = RESULT_NO_STORAGE; in set_update_result()
36 result = RESULT_INTEGRITY_FAILED; in set_update_result()
39 result = RESULT_CONNECTION_LOST; in set_update_result()
42 result = RESULT_INVALID_URI; in set_update_result()
45 result = RESULT_UNSUP_PROTO; in set_update_result()
48 result = RESULT_UPDATE_FAILED; in set_update_result()
52 lwm2m_firmware_set_update_result(result); in set_update_result()
/Zephyr-latest/drivers/sensor/ti/tmp108/
Dtmp108.c25 int result; in tmp108_reg_read() local
27 result = i2c_burst_read_dt(&cfg->i2c_spec, reg, (uint8_t *) val, 2); in tmp108_reg_read()
29 if (result < 0) { in tmp108_reg_read()
30 return result; in tmp108_reg_read()
42 int result; in tmp108_reg_write() local
47 result = i2c_write_dt(&cfg->i2c_spec, tx_buf, sizeof(tx_buf)); in tmp108_reg_write()
49 if (result < 0) { in tmp108_reg_write()
50 return result; in tmp108_reg_write()
59 int result; in tmp108_write_config() local
61 result = tmp108_reg_read(dev, TI_TMP108_REG_CONF, &config); in tmp108_write_config()
[all …]
/Zephyr-latest/drivers/pwm/
Dpwm_max31790.c73 static bool max31790_convert_pwm_frequency_into_hz(uint16_t *result, uint8_t pwm_frequency) in max31790_convert_pwm_frequency_into_hz() argument
77 *result = 25; in max31790_convert_pwm_frequency_into_hz()
80 *result = 30; in max31790_convert_pwm_frequency_into_hz()
83 *result = 35; in max31790_convert_pwm_frequency_into_hz()
86 *result = 100; in max31790_convert_pwm_frequency_into_hz()
89 *result = 125; in max31790_convert_pwm_frequency_into_hz()
92 *result = 150; /* actually 149.7, according to the datasheet */ in max31790_convert_pwm_frequency_into_hz()
95 *result = 1250; in max31790_convert_pwm_frequency_into_hz()
98 *result = 1470; in max31790_convert_pwm_frequency_into_hz()
101 *result = 3570; in max31790_convert_pwm_frequency_into_hz()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_id_scan_random_addr_check/src/
Dmain.c41 bool result; in ZTEST() local
45 result = bt_id_scan_random_addr_check(); in ZTEST()
47 zassert_true(result, "Incorrect result was returned"); in ZTEST()
62 bool result; in ZTEST() local
66 result = bt_id_scan_random_addr_check(); in ZTEST()
68 zassert_true(result, "Incorrect result was returned"); in ZTEST()
86 bool result; in ZTEST() local
93 result = bt_id_scan_random_addr_check(); in ZTEST()
95 zassert_true(result, "Incorrect result was returned"); in ZTEST()
113 bool result; in ZTEST() local
[all …]
/Zephyr-latest/include/zephyr/sys/
Dmath_extras.h29 * These functions compute `a + b` and store the result in `*result`, returning
38 * @param result Pointer to the result.
41 static bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result);
47 * @param result Pointer to the result.
51 static bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result);
57 * @param result Pointer to the result.
60 static bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result);
66 * @param result Pointer to the result.
69 static bool size_add_overflow(size_t a, size_t b, size_t *result);
76 * These functions compute `a * b` and store the result in `*result`, returning
[all …]
Dmath_extras_impl.h32 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 …]
/Zephyr-latest/tests/bluetooth/host/id/bt_id_adv_random_addr_check/src/
Dmain.c41 bool result; in ZTEST() local
46 result = bt_id_adv_random_addr_check(&adv_param); in ZTEST()
48 zassert_true(result, "Incorrect result was returned"); in ZTEST()
62 bool result; in ZTEST() local
67 result = bt_id_adv_random_addr_check(&adv_param); in ZTEST()
69 zassert_true(result, "Incorrect result was returned"); in ZTEST()
86 bool result; in ZTEST() local
95 result = bt_id_adv_random_addr_check(&adv_param); in ZTEST()
97 zassert_true(result, "Incorrect result was returned"); in ZTEST()
114 bool result; in ZTEST() local
[all …]
/Zephyr-latest/drivers/mfd/
Dmfd_tle9104.c163 int result; in tle9104_transceive_frame() local
191 result = spi_transceive_dt(&config->bus, &tx, &rx); in tle9104_transceive_frame()
192 if (result != 0) { in tle9104_transceive_frame()
193 LOG_ERR("spi_write failed with error %i", result); in tle9104_transceive_frame()
194 return result; in tle9104_transceive_frame()
234 int result; in tle9104_write_state_internal() local
265 result = gpio_pin_set_dt(&config->gpio_control[i], current_value); in tle9104_write_state_internal()
266 if (result != 0) { in tle9104_write_state_internal()
268 return result; in tle9104_write_state_internal()
273 result = tle9104_write_register(dev, TLE9104REGISTER_CTRL, register_ctrl); in tle9104_write_state_internal()
[all …]
/Zephyr-latest/drivers/adc/
Dadc_max11102_17.c46 int result; in max11102_17_switch_channel() local
61 result = spi_read_dt(&bus, &rx); in max11102_17_switch_channel()
62 if (result != 0) { in max11102_17_switch_channel()
63 LOG_ERR("read failed with error %i", result); in max11102_17_switch_channel()
64 return result; in max11102_17_switch_channel()
69 result = spi_read_dt(&config->bus, &rx); in max11102_17_switch_channel()
70 if (result != 0) { in max11102_17_switch_channel()
71 LOG_ERR("read failed with error %i", result); in max11102_17_switch_channel()
72 return result; in max11102_17_switch_channel()
193 int result; in max11102_17_adc_start_read() local
[all …]
Dadc_ads114s0x.c483 int result = spi_transceive_dt(&config->bus, &tx, &rx); in ads114s0x_read_register() local
485 if (result != 0) { in ads114s0x_read_register()
486 LOG_ERR("%s: spi_transceive failed with error %i", dev->name, result); in ads114s0x_read_register()
487 return result; in ads114s0x_read_register()
516 int result = spi_write_dt(&config->bus, &tx); in ads114s0x_write_register() local
518 if (result != 0) { in ads114s0x_write_register()
519 LOG_ERR("%s: spi_write failed with error %i", dev->name, result); in ads114s0x_write_register()
520 return result; in ads114s0x_write_register()
564 int result = spi_write_dt(&config->bus, &tx); in ads114s0x_write_multiple_registers() local
566 if (result != 0) { in ads114s0x_write_multiple_registers()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_shell.c90 int result = -ENOTSUP; in cmd_erase() local
97 result = parse_helper(sh, &argc, &argv, &flash_dev, &page_addr); in cmd_erase()
98 if (result) { in cmd_erase()
99 return result; in cmd_erase()
106 result = flash_get_page_info_by_offs(flash_dev, page_addr, in cmd_erase()
109 if (result != 0) { in cmd_erase()
111 "code %d.", result); in cmd_erase()
118 result = flash_erase(flash_dev, page_addr, size); in cmd_erase()
120 if (result) { in cmd_erase()
121 shell_error(sh, "Erase Failed, code %d.", result); in cmd_erase()
[all …]
/Zephyr-latest/tests/cmake/zephyr_get/
DCMakeLists.txt300 zephyr_get(RESULT VAR VARIABLE_1 VARIABLE_2 VARIABLE_3)
301 assert_equal(RESULT "cmake cache 2")
302 zephyr_get(RESULT VAR VARIABLE_3 VARIABLE_1 VARIABLE_2)
303 assert_equal(RESULT "cmake cache 2")
307 zephyr_get(RESULT VAR VARIABLE_1 VARIABLE_2 VARIABLE_3)
308 assert_equal(RESULT "cmake cache 1")
309 zephyr_get(RESULT VAR VARIABLE_2 VARIABLE_3 VARIABLE_1)
310 assert_equal(RESULT "cmake cache 2")
312 unset(ENV{RESULT})
313 unset(RESULT CACHE)
[all …]
/Zephyr-latest/tests/crypto/tinycrypt/src/
Dsha256.c56 uint32_t result = TC_PASS; in ZTEST() local
73 result = check_result(1, expected, sizeof(expected), in ZTEST()
76 /**TESTPOINT: Check result*/ in ZTEST()
77 zassert_false(result, "SHA256 test #1 failed."); in ZTEST()
85 uint32_t result = TC_PASS; in ZTEST() local
104 result = check_result(2, expected, sizeof(expected), in ZTEST()
107 /**TESTPOINT: Check result*/ in ZTEST()
108 zassert_false(result, "SHA256 test #2 failed."); in ZTEST()
113 uint32_t result = TC_PASS; in ZTEST() local
131 result = check_result(3, expected, sizeof(expected), in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/sys_kernel/
DREADME.txt24 TEST RESULT: SUCCESSFUL
35 TEST RESULT: SUCCESSFUL
47 TEST RESULT: SUCCESSFUL
57 TEST RESULT: SUCCESSFUL
69 TEST RESULT: SUCCESSFUL
81 TEST RESULT: SUCCESSFUL
91 TEST RESULT: SUCCESSFUL
103 TEST RESULT: SUCCESSFUL
115 TEST RESULT: SUCCESSFUL
125 TEST RESULT: SUCCESSFUL
[all …]
/Zephyr-latest/tests/subsys/testsuite/fff_fake_contexts/src/
Dcode_under_test.c14 int result = 0; in code_under_test() local
19 result = called_API_open(&called_API); in code_under_test()
20 if (result != 0) { in code_under_test()
24 result = called_API_close(called_API); in code_under_test()
25 if (result != 0) { in code_under_test()
31 return result; in code_under_test()

12345678910>>...47