Home
last modified time | relevance | path

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

12345678910>>...37

/Zephyr-Core-3.5.0/drivers/sensor/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-Core-3.5.0/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-Core-3.5.0/subsys/bluetooth/audio/shell/
Dvcp_vol_rend.c162 int result = 0; in cmd_vcp_vol_rend_init() local
212 vcp_register_param.step = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
214 vcp_register_param.mute = shell_strtobool(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
216 vcp_register_param.volume = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
226 if (result != 0) { in cmd_vcp_vol_rend_init()
234 result = bt_vcp_vol_rend_register(&vcp_register_param); in cmd_vcp_vol_rend_init()
235 if (result) { in cmd_vcp_vol_rend_init()
236 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_init()
237 return result; in cmd_vcp_vol_rend_init()
240 result = bt_vcp_vol_rend_included_get(&vcp_included); in cmd_vcp_vol_rend_init()
[all …]
Dtbs.c66 int result = 0; in cmd_tbs_accept() local
68 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_accept()
69 if (result != 0) { in cmd_tbs_accept()
70 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_accept()
81 result = bt_tbs_accept((uint8_t)call_index); in cmd_tbs_accept()
82 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_accept()
83 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_accept()
89 return result; in cmd_tbs_accept()
96 int result = 0; in cmd_tbs_terminate() local
98 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_terminate()
[all …]
Dmicp_mic_dev.c105 int result; in cmd_micp_mic_dev_param() local
134 result = bt_micp_mic_dev_register(&micp_param); in cmd_micp_mic_dev_param()
135 if (result != 0) { in cmd_micp_mic_dev_param()
136 shell_error(sh, "MICP register failed: %d", result); in cmd_micp_mic_dev_param()
137 return result; in cmd_micp_mic_dev_param()
140 shell_print(sh, "MICP initialized: %d", result); in cmd_micp_mic_dev_param()
143 result = bt_micp_mic_dev_included_get(&micp_included); in cmd_micp_mic_dev_param()
144 if (result != 0) { in cmd_micp_mic_dev_param()
145 shell_error(sh, "MICP get failed: %d", result); in cmd_micp_mic_dev_param()
149 return result; in cmd_micp_mic_dev_param()
[all …]
Dtbs_client.c30 int result = 0; in cmd_tbs_client_discover() local
32 result = bt_tbs_client_discover(default_conn); in cmd_tbs_client_discover()
33 if (result != 0) { in cmd_tbs_client_discover()
34 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_discover()
37 return result; in cmd_tbs_client_discover()
47 int result = 0; in cmd_tbs_client_set_signal_strength_interval() local
56 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
57 if (result != 0) { in cmd_tbs_client_set_signal_strength_interval()
60 result); in cmd_tbs_client_set_signal_strength_interval()
76 interval = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
[all …]
Dvcp_vol_ctlr.c329 int result; in cmd_vcp_vol_ctlr_discover() local
335 result = bt_vcp_vol_ctlr_cb_register(&vcp_cbs); in cmd_vcp_vol_ctlr_discover()
336 if (result != 0) { in cmd_vcp_vol_ctlr_discover()
337 shell_print(sh, "CB register failed: %d", result); in cmd_vcp_vol_ctlr_discover()
338 return result; in cmd_vcp_vol_ctlr_discover()
346 result = bt_vcp_vol_ctlr_discover(default_conn, &vcp_vol_ctlr); in cmd_vcp_vol_ctlr_discover()
347 if (result != 0) { in cmd_vcp_vol_ctlr_discover()
348 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_discover()
351 return result; in cmd_vcp_vol_ctlr_discover()
357 int result; in cmd_vcp_vol_ctlr_state_get() local
[all …]
Dmicp_mic_ctlr.c221 int result; in cmd_micp_mic_ctlr_discover() local
227 result = bt_micp_mic_ctlr_cb_register(&micp_cbs); in cmd_micp_mic_ctlr_discover()
228 if (result != 0) { in cmd_micp_mic_ctlr_discover()
229 shell_print(sh, "Failed to register callbacks: %d", result); in cmd_micp_mic_ctlr_discover()
236 result = bt_micp_mic_ctlr_discover(default_conn, &micp_mic_ctlr); in cmd_micp_mic_ctlr_discover()
237 if (result != 0) { in cmd_micp_mic_ctlr_discover()
238 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_discover()
241 return result; in cmd_micp_mic_ctlr_discover()
247 int result; in cmd_micp_mic_ctlr_mute_get() local
253 result = bt_micp_mic_ctlr_mute_get(micp_mic_ctlr); in cmd_micp_mic_ctlr_mute_get()
[all …]
Dmcc.c373 "Command notification error (%d) - opcode: %d, result: %d", in mcc_cmd_ntf_cb()
378 shell_print(ctx_shell, "Command opcode: %d, result: %d", in mcc_cmd_ntf_cb()
411 "Search notification error (%d), result code: %d", in mcc_search_ntf_cb()
416 shell_print(ctx_shell, "Search notification result code: %d", in mcc_search_ntf_cb()
560 int result; in cmd_mcc_init() local
616 result = bt_mcc_init(&cb); in cmd_mcc_init()
618 if (result) { in cmd_mcc_init()
619 shell_error(sh, "Fail: %d", result); in cmd_mcc_init()
621 return result; in cmd_mcc_init()
628 int result = 0; in cmd_mcc_discover_mcs() local
[all …]
/Zephyr-Core-3.5.0/drivers/pwm/
Dpwm_max31790.c116 int result; in max31790_read_register() local
118 result = i2c_reg_read_byte_dt(&config->i2c, address, value); in max31790_read_register()
119 if (result != 0) { in max31790_read_register()
120 LOG_ERR("unable to read register 0x%02X, error %i", address, result); in max31790_read_register()
125 return result; in max31790_read_register()
131 int result; in max31790_write_register_uint8() local
134 result = i2c_reg_write_byte_dt(&config->i2c, address, value); in max31790_write_register_uint8()
135 if (result != 0) { in max31790_write_register_uint8()
136 LOG_ERR("unable to write register 0x%02X, error %i", address, result); in max31790_write_register_uint8()
139 return result; in max31790_write_register_uint8()
[all …]
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/
Dlwm2m_senml_cbor_decode.c18 static bool decode_repeated_record_bn(zcbor_state_t *state, struct record_bn *result);
19 static bool decode_repeated_record_bt(zcbor_state_t *state, struct record_bt *result);
20 static bool decode_repeated_record_n(zcbor_state_t *state, struct record_n *result);
21 static bool decode_repeated_record_t(zcbor_state_t *state, struct record_t *result);
22 static bool decode_repeated_record_union(zcbor_state_t *state, struct record_union_ *result);
23 static bool decode_value(zcbor_state_t *state, struct value_ *result);
24 static bool decode_key_value_pair(zcbor_state_t *state, struct key_value_pair *result);
26 struct record__key_value_pair *result);
27 static bool decode_record(zcbor_state_t *state, struct record *result);
28 static bool decode_lwm2m_senml(zcbor_state_t *state, struct lwm2m_senml *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-Core-3.5.0/drivers/sensor/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-Core-3.5.0/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-Core-3.5.0/include/zephyr/sys/
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 …]
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 …]
/Zephyr-Core-3.5.0/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-Core-3.5.0/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.c471 int result = spi_transceive_dt(bus, &tx, &rx); in ads114s0x_read_register() local
473 if (result != 0) { in ads114s0x_read_register()
474 LOG_ERR("spi_transceive failed with error %i", result); in ads114s0x_read_register()
475 return result; in ads114s0x_read_register()
503 int result = spi_write_dt(bus, &tx); in ads114s0x_write_register() local
505 if (result != 0) { in ads114s0x_write_register()
506 LOG_ERR("spi_write failed with error %i", result); in ads114s0x_write_register()
507 return result; in ads114s0x_write_register()
550 int result = spi_write_dt(bus, &tx); in ads114s0x_write_multiple_registers() local
552 if (result != 0) { in ads114s0x_write_multiple_registers()
[all …]
/Zephyr-Core-3.5.0/drivers/flash/
Dflash_shell.c78 int result; in cmd_erase() local
81 result = parse_helper(sh, &argc, &argv, &flash_dev, &page_addr); in cmd_erase()
82 if (result) { in cmd_erase()
83 return result; in cmd_erase()
90 result = flash_get_page_info_by_offs(flash_dev, page_addr, in cmd_erase()
93 if (result != 0) { in cmd_erase()
95 "code %d.", result); in cmd_erase()
102 result = flash_erase(flash_dev, page_addr, size); in cmd_erase()
104 if (result) { in cmd_erase()
105 shell_error(sh, "Erase Failed, code %d.", result); in cmd_erase()
[all …]
/Zephyr-Core-3.5.0/tests/cmake/zephyr_get/
DCMakeLists.txt289 zephyr_get(RESULT VAR VARIABLE_1 VARIABLE_2 VARIABLE_3)
290 assert_equal(RESULT "cmake cache 2")
291 zephyr_get(RESULT VAR VARIABLE_3 VARIABLE_1 VARIABLE_2)
292 assert_equal(RESULT "cmake cache 2")
296 zephyr_get(RESULT VAR VARIABLE_1 VARIABLE_2 VARIABLE_3)
297 assert_equal(RESULT "cmake cache 1")
298 zephyr_get(RESULT VAR VARIABLE_2 VARIABLE_3 VARIABLE_1)
299 assert_equal(RESULT "cmake cache 2")
301 unset(ENV{RESULT})
302 unset(RESULT CACHE)
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/ecc/bt_dh_key_gen/src/
Dtest_suite_invalid_inputs.c71 int result; in ZTEST() local
86 result = bt_dh_key_gen(remote_pk, bt_dh_key_unreachable_cb); in ZTEST()
88 zassert_true(result == -EALREADY, "Unexpected error code '%d' was returned", result); in ZTEST()
109 int result; in ZTEST() local
124 result = bt_dh_key_gen(remote_pk, bt_dh_key_unreachable_2nd_trial_cb); in ZTEST()
126 zassert_true(result == -EBUSY, "Unexpected error code '%d' was returned", result); in ZTEST()
141 int result; in ZTEST() local
146 result = bt_dh_key_gen(remote_pk, bt_dh_key_unreachable_cb); in ZTEST()
148 zassert_true(result == -EBUSY, "Unexpected error code '%d' was returned", result); in ZTEST()
163 int result; in ZTEST() local
[all …]
/Zephyr-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/subsys/net/pkt_filter/
Dbase.c84 bool result; in apply_tests() local
88 result = test->fn(test, pkt); in apply_tests()
89 NET_DBG("test %p result %d", test, result); in apply_tests()
90 if (result == false) { in apply_tests()
99 * We return the specified result for the first rule whose tests are all true.
114 return rule->result; in evaluate()
125 enum net_verdict result = evaluate(&rules->rule_head, pkt); in lock_evaluate() local
128 return result; in lock_evaluate()
133 enum net_verdict result = lock_evaluate(&npf_send_rules, pkt); in net_pkt_filter_send_ok() local
135 return result == NET_OK; in net_pkt_filter_send_ok()
[all …]

12345678910>>...37