Home
last modified time | relevance | path

Searched refs:bt_dev (Results 1 – 25 of 82) sorted by relevance

1234

/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_reset/src/
Dmain.c24 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
71 bt_dev.id_count = 2; in ZTEST()
72 input_id = bt_dev.id_count - 1; /* ID must not equal BT_ID_DEFAULT */ in ZTEST()
73 id_count = bt_dev.id_count; in ZTEST()
74 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST()
83 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST()
84 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_1, in ZTEST()
108 bt_dev.id_count = 2; in ZTEST()
109 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
111 input_id = bt_dev.id_count - 1; /* ID must not equal BT_ID_DEFAULT */ in ZTEST()
[all …]
Dtest_suite_invalid_inputs.c58 bt_dev.id_count = 1; in ZTEST()
60 err = bt_id_reset(bt_dev.id_count, NULL, NULL); in ZTEST()
146 bt_dev.id_count = 1; in ZTEST()
147 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
166 adv_params.id = bt_dev.id_count - 1; in bt_le_ext_adv_foreach_custom_fake()
169 adv_params.id = bt_dev.id_count - 1; in bt_le_ext_adv_foreach_custom_fake()
194 bt_dev.id_count = 2; in ZTEST()
201 err = bt_id_reset(bt_dev.id_count - 1, BT_STATIC_RANDOM_LE_ADDR_1, NULL); in ZTEST()
228 bt_dev.id_count = 2; in ZTEST()
229 id = bt_dev.id_count - 1; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_delete/src/
Dmain.c24 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
55 bt_dev.id_count = 3; in ZTEST()
57 id_count = bt_dev.id_count; in ZTEST()
59 bt_addr_le_copy(&bt_dev.id_addr[0], BT_RPA_LE_ADDR); in ZTEST()
60 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
61 bt_addr_le_copy(&bt_dev.id_addr[2], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST()
63 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
71 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST()
73 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST()
76 zassert_mem_equal(bt_dev.irk[id], zero_irk, sizeof(zero_irk), in ZTEST()
[all …]
Dtest_suite_bt_settings.c50 bt_dev.id_count = 3; in ZTEST()
52 id_count = bt_dev.id_count; in ZTEST()
54 bt_addr_le_copy(&bt_dev.id_addr[0], BT_RPA_LE_ADDR); in ZTEST()
55 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
56 bt_addr_le_copy(&bt_dev.id_addr[2], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST()
58 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
66 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST()
68 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST()
71 zassert_mem_equal(bt_dev.irk[id], zero_irk, sizeof(zero_irk), in ZTEST()
105 bt_dev.id_count = 2; in ZTEST()
[all …]
Dtest_suite_invalid_inputs.c54 bt_dev.id_count = 1; in ZTEST()
56 err = bt_id_delete(bt_dev.id_count); in ZTEST()
75 bt_dev.id_count = 2; in ZTEST()
76 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
77 bt_addr_le_copy(&bt_dev.id_addr[1], BT_ADDR_LE_ANY); in ZTEST()
96 adv_params.id = bt_dev.id_count - 1; in bt_le_ext_adv_foreach_custom_fake()
99 adv_params.id = bt_dev.id_count - 1; in bt_le_ext_adv_foreach_custom_fake()
122 bt_dev.id_count = 2; in ZTEST()
123 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
124 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_create/src/
Dmain.c22 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
65 id_count = bt_dev.id_count; in ZTEST()
66 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST()
74 zassert_true(bt_dev.id_count == (id_count + 1), "Incorrect ID count %d was set", in ZTEST()
75 bt_dev.id_count); in ZTEST()
76 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
99 bt_dev.id_count = 1; in ZTEST()
100 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
102 id_count = bt_dev.id_count; in ZTEST()
103 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST()
[all …]
Dtest_suite_privacy_enabled.c62 id_count = bt_dev.id_count; in ZTEST()
63 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST()
71 expect_single_call_bt_rand(&bt_dev.irk[new_id], 16); in ZTEST()
74 zassert_true(bt_dev.id_count == (id_count + 1), "Incorrect ID count %d was set", in ZTEST()
75 bt_dev.id_count); in ZTEST()
76 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
78 zassert_mem_equal(&bt_dev.irk[new_id], testing_irk_value, sizeof(testing_irk_value), in ZTEST()
104 id_count = bt_dev.id_count; in ZTEST()
105 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST()
113 expect_single_call_bt_rand(&bt_dev.irk[new_id], 16); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_del/src/
Dmain.c32 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
60 bt_dev.le.rl_size = 0; in ZTEST()
61 bt_dev.le.rl_entries = 1; in ZTEST()
62 expected_rl_entries = bt_dev.le.rl_entries - 1; in ZTEST()
69 zassert_equal(expected_rl_entries, bt_dev.le.rl_entries, "Incorrect entries count"); in ZTEST()
89 bt_dev.le.rl_size = 1; in ZTEST()
90 bt_dev.le.rl_entries = 3; in ZTEST()
91 expected_rl_entries = bt_dev.le.rl_entries - 1; in ZTEST()
98 zassert_equal(expected_rl_entries, bt_dev.le.rl_entries, "Incorrect entries count"); in ZTEST()
121 bt_dev.le.rl_size = 1; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_add/src/
Dmain.c31 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
57 bt_dev.le.rl_size = 0; in ZTEST()
58 bt_dev.le.rl_entries = 0; in ZTEST()
59 expected_rl_entries = bt_dev.le.rl_entries + 1; in ZTEST()
65 zassert_equal(expected_rl_entries, bt_dev.le.rl_entries, "Incorrect entries count"); in ZTEST()
84 bt_dev.le.rl_size = 1; in ZTEST()
85 bt_dev.le.rl_entries = 2; in ZTEST()
86 expected_rl_entries = bt_dev.le.rl_entries + 1; in ZTEST()
92 zassert_equal(expected_rl_entries, bt_dev.le.rl_entries, "Incorrect entries count"); in ZTEST()
115 bt_dev.le.rl_size = 1; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/ecc/bt_pub_key_gen/src/
Dmain.c24 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
66 bt_dev.supported_commands[34] |= BIT(1); in ZTEST()
68 bt_dev.supported_commands[34] |= BIT(2); in ZTEST()
70 bt_dev.supported_commands[41] |= BIT(2); in ZTEST()
72 atomic_clear_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in ZTEST()
81 flags_check = atomic_test_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in ZTEST()
110 bt_dev.supported_commands[34] |= BIT(1); in ZTEST()
112 bt_dev.supported_commands[34] |= BIT(2); in ZTEST()
114 atomic_set_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in ZTEST()
123 flags_check = atomic_test_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in ZTEST()
[all …]
Dtest_suite_invalid_inputs.c57 bt_dev.supported_commands[34] |= BIT(1); in ZTEST()
59 bt_dev.supported_commands[34] |= BIT(2); in ZTEST()
61 bt_dev.supported_commands[41] |= BIT(2); in ZTEST()
83 bt_dev.supported_commands[34] &= ~BIT(1); in ZTEST()
85 bt_dev.supported_commands[34] |= BIT(2); in ZTEST()
108 bt_dev.supported_commands[34] |= BIT(1); in ZTEST()
110 bt_dev.supported_commands[34] &= ~BIT(2); in ZTEST()
134 bt_dev.supported_commands[34] |= BIT(1); in ZTEST()
136 bt_dev.supported_commands[34] |= BIT(2); in ZTEST()
172 bt_dev.supported_commands[34] |= BIT(1); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_init/src/
Dmain.c25 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
51 bt_dev.id_count = 1; in ZTEST()
56 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
57 bt_dev.id_count); in ZTEST()
60 expect_single_call_k_work_init_delayable(&bt_dev.rpa_update); in ZTEST()
84 zassert_true(bt_dev.id_count == 0, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
85 bt_dev.id_count); in ZTEST()
88 expect_single_call_k_work_init_delayable(&bt_dev.rpa_update); in ZTEST()
/Zephyr-Core-3.5.0/subsys/bluetooth/host/
Did.c131 if (bt_addr_eq(addr, &bt_dev.random_addr.a)) { in set_random_address()
147 bt_addr_copy(&bt_dev.random_addr.a, addr); in set_random_address()
148 bt_dev.random_addr.type = BT_ADDR_LE_RANDOM; in set_random_address()
164 BT_DEV_FEAT_LE_EXT_ADV(bt_dev.le.features))) { in bt_id_set_adv_random_addr()
211 bt_addr_copy(&bt_dev.rpa[adv->id], BT_ADDR_NONE); in adv_rpa_expired()
235 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_LIMITED))) { in le_rpa_invalidate()
236 atomic_clear_bit(bt_dev.flags, BT_DEV_RPA_VALID); in le_rpa_invalidate()
251 if (atomic_test_and_clear_bit(bt_dev.flags, BT_DEV_RPA_TIMEOUT_CHANGED)) { in le_rpa_timeout_update()
264 cp->rpa_timeout = sys_cpu_to_le16(bt_dev.rpa_timeout); in le_rpa_timeout_update()
274 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_TIMEOUT_CHANGED); in le_rpa_timeout_update()
[all …]
Dsettings.c125 if (!atomic_test_bit(bt_dev.flags, BT_DEV_ENABLE)) { in set_setting()
144 if (atomic_test_bit(bt_dev.flags, BT_DEV_PRESET_ID)) { in set_setting()
149 len = read_cb(cb_arg, &bt_dev.id_addr, sizeof(bt_dev.id_addr)); in set_setting()
150 if (len < sizeof(bt_dev.id_addr[0])) { in set_setting()
156 LOG_HEXDUMP_DBG(&bt_dev.id_addr, len, "data read"); in set_setting()
158 (void)memset(bt_dev.id_addr, 0, in set_setting()
159 sizeof(bt_dev.id_addr)); in set_setting()
160 bt_dev.id_count = 0U; in set_setting()
164 bt_dev.id_count = len / sizeof(bt_dev.id_addr[0]); in set_setting()
165 for (i = 0; i < bt_dev.id_count; i++) { in set_setting()
[all …]
Decc.c53 if (!BT_CMD_TEST(bt_dev.supported_commands, 34, 1) || in bt_pub_key_gen()
54 !BT_CMD_TEST(bt_dev.supported_commands, 34, 2)) { in bt_pub_key_gen()
60 if (!BT_CMD_TEST(bt_dev.supported_commands, 41, 2)) { in bt_pub_key_gen()
63 atomic_set_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in bt_pub_key_gen()
83 if (atomic_test_and_set_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY)) { in bt_pub_key_gen()
87 atomic_clear_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in bt_pub_key_gen()
93 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in bt_pub_key_gen()
112 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in bt_pub_key_hci_disrupted()
126 BT_CMD_TEST(bt_dev.supported_commands, 41, 2)) { in bt_pub_key_get()
130 if (atomic_test_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY)) { in bt_pub_key_get()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_setup_random_id_addr/src/
Dmain.c34 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
44 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup()
92 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST()
114 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
115 bt_dev.id_count); in ZTEST()
117 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
146 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST()
169 zassert_true(bt_dev.id_count == 2, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
170 bt_dev.id_count); in ZTEST()
172 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
[all …]
Dtest_suite_bt_settings_enabled.c35 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup()
70 zassert_true(bt_dev.id_count == 0, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
71 bt_dev.id_count); in ZTEST()
110 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST()
125 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
132 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
134 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
135 bt_dev.id_count); in ZTEST()
158 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST()
173 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_adv_random_addr_check/src/
Dmain.c21 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
92 atomic_clear_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
93 atomic_clear_bit(bt_dev.flags, BT_DEV_SCANNING); in ZTEST()
121 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
122 atomic_set_bit(bt_dev.flags, BT_DEV_SCANNING); in ZTEST()
125 bt_dev.id_addr[adv_param.id].type = BT_ADDR_LE_RANDOM; in ZTEST()
155 atomic_set_bit(bt_dev.flags, BT_DEV_SCANNING); in ZTEST()
159 bt_dev.id_addr[BT_ID_DEFAULT].type = BT_ADDR_LE_RANDOM; in ZTEST()
189 atomic_set_bit(bt_dev.flags, BT_DEV_SCANNING); in ZTEST()
192 bt_dev.id_addr[adv_param.id].type = BT_ADDR_LE_RANDOM; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_setup_public_id_addr/src/
Dtest_suite_bt_settings_enabled.c31 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup()
66 zassert_true(bt_dev.id_count == 0, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
67 bt_dev.id_count); in ZTEST()
111 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
118 zassert_mem_equal(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST()
120 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
121 bt_dev.id_count); in ZTEST()
148 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
155 zassert_mem_equal(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST()
157 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
[all …]
Dmain.c28 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup()
56 zassert_true(bt_dev.id_count == 0, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
57 bt_dev.id_count); in ZTEST()
100 zassert_mem_equal(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST()
102 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
103 bt_dev.id_count); in ZTEST()
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_le_oob_get_local/src/
Dtest_suite_invalid_inputs.c56 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
79 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
109 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
110 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
149 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
150 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
194 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
195 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
200 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST()
246 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
[all …]
Dmain.c26 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
54 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
62 memset(bt_dev.id_addr, 0x00, sizeof(bt_dev.id_addr)); in ZTEST()
63 bt_addr_le_copy(&bt_dev.id_addr[i], BT_RPA_LE_ADDR); in ZTEST()
97 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
98 bt_addr_le_copy(&bt_dev.random_addr, BT_RPA_LE_ADDR); in ZTEST()
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_set_create_conn_own_addr/src/
Dmain.c22 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
52 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR); in ZTEST()
82 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST()
85 bt_addr_copy(&bt_dev.random_addr.a, &BT_RPA_LE_ADDR->a); in ZTEST()
117 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_VALID); in ZTEST()
149 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_VALID); in ZTEST()
151 bt_dev.le.features[(BT_LE_FEAT_BIT_PRIVACY) >> 3] |= BIT((BT_LE_FEAT_BIT_PRIVACY)&7); in ZTEST()
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_set_private_addr/src/
Dmain.c25 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before()
26 bt_addr_le_copy(&bt_dev.random_addr, &bt_addr_le_none); in fff_reset_rule_before()
44 bt_addr_copy(&bt_dev.random_addr.a, BT_ADDR); in bt_rand_custom_fake()
56 bt_addr_copy(&bt_dev.random_addr.a, &BT_RPA_LE_ADDR->a); in bt_rpa_create_custom_fake()
87 expect_single_call_bt_rpa_create(bt_dev.irk[id]); in ZTEST()
89 zassert_true(atomic_test_bit(bt_dev.flags, BT_DEV_RPA_VALID), in ZTEST()
113 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_VALID); in ZTEST()
/Zephyr-Core-3.5.0/tests/bluetooth/host/ecc/bt_dh_key_gen/src/
Dtest_suite_invalid_inputs.c76 atomic_set_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in ZTEST()
77 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in ZTEST()
114 atomic_set_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in ZTEST()
115 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in ZTEST()
144 atomic_set_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in ZTEST()
166 atomic_clear_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in ZTEST()
167 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in ZTEST()
191 atomic_set_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in ZTEST()
192 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in ZTEST()
196 bt_dev.supported_commands[41] |= BIT(2); in ZTEST()

1234