Home
last modified time | relevance | path

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

/Zephyr-latest/tests/bluetooth/host/id/bt_id_reset/src/
Dmain.c69 int id_count, returned_id; in ZTEST() local
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()
83 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST()
106 int id_count, returned_id; in ZTEST() local
108 bt_dev.id_count = 2; in ZTEST()
111 input_id = bt_dev.id_count - 1; /* ID must not equal BT_ID_DEFAULT */ in ZTEST()
112 id_count = bt_dev.id_count; in ZTEST()
122 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); 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()
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()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_create/src/
Dmain.c63 int id_count, new_id; in ZTEST() local
65 id_count = bt_dev.id_count; 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()
97 int id_count, new_id; in ZTEST() local
99 bt_dev.id_count = 1; in ZTEST()
102 id_count = bt_dev.id_count; in ZTEST()
111 zassert_true(bt_dev.id_count == (id_count + 1), "Incorrect ID count %d was set", in ZTEST()
112 bt_dev.id_count); in ZTEST()
135 int id_count, new_id; in ZTEST() local
[all …]
Dtest_suite_privacy_enabled.c59 int id_count, new_id; in ZTEST() local
62 id_count = bt_dev.id_count; 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()
100 int id_count, new_id; in ZTEST() local
104 id_count = bt_dev.id_count; in ZTEST()
116 zassert_true(bt_dev.id_count == (id_count + 1), "Incorrect ID count %d was set", in ZTEST()
117 bt_dev.id_count); in ZTEST()
143 int id_count, new_id; in ZTEST() local
146 id_count = bt_dev.id_count; in ZTEST()
[all …]
Dtest_suite_invalid_inputs.c74 bt_dev.id_count = ARRAY_SIZE(bt_dev.id_addr); in ZTEST()
141 bt_dev.id_count = 1; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_delete/src/
Dtest_suite_bt_settings.c43 int id_count; in ZTEST() local
50 bt_dev.id_count = 3; in ZTEST()
52 id_count = bt_dev.id_count; in ZTEST()
66 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST()
98 int id_count; in ZTEST() local
105 bt_dev.id_count = 2; in ZTEST()
106 id = bt_dev.id_count - 1; in ZTEST()
107 id_count = bt_dev.id_count; in ZTEST()
120 zassert_true(bt_dev.id_count == (id_count - 1), "Incorrect ID count %d was set", in ZTEST()
121 bt_dev.id_count); in ZTEST()
Dmain.c50 int id_count; in ZTEST() local
55 bt_dev.id_count = 3; in ZTEST()
57 id_count = bt_dev.id_count; in ZTEST()
71 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST()
97 int id_count; in ZTEST() local
102 bt_dev.id_count = 2; in ZTEST()
103 id = bt_dev.id_count - 1; in ZTEST()
104 id_count = bt_dev.id_count; in ZTEST()
118 zassert_true(bt_dev.id_count == (id_count - 1), "Incorrect ID count %d was set", in ZTEST()
119 bt_dev.id_count); in ZTEST()
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()
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()
131 err = bt_id_delete(bt_dev.id_count - 1); in ZTEST()
155 bt_dev.id_count = 2; in ZTEST()
156 id = bt_dev.id_count - 1; in ZTEST()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disable/src/
Dmain_disable.c49 size_t id_count; in test_disable_set_default_id() local
64 bt_id_get(NULL, &id_count); in test_disable_set_default_id()
65 if (id_count != 1) { in test_disable_set_default_id()
66 FAIL("Expected only one ID, but got: %u\n", id_count); in test_disable_set_default_id()
69 id_count = 1; in test_disable_set_default_id()
70 bt_id_get(&stored_id, &id_count); in test_disable_set_default_id()
71 if (id_count != 1) { in test_disable_set_default_id()
72 FAIL("Expected only one ID, but got: %u\n", id_count); in test_disable_set_default_id()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_init/src/
Dmain.c51 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()
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()
Dtest_suite_setup_public_identity.c80 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
81 bt_dev.id_count); in ZTEST()
Dtest_suite_setup_static_random_identity.c111 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
112 bt_dev.id_count); in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_public_id_addr/src/
Dtest_suite_bt_settings_enabled.c66 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()
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()
157 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
158 bt_dev.id_count); in ZTEST()
Dmain.c56 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()
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-latest/tests/bluetooth/host/id/bt_setup_random_id_addr/src/
Dtest_suite_bt_settings_enabled.c70 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()
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()
183 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
184 bt_dev.id_count); in ZTEST()
Dmain.c114 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()
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()
223 zassert_true(bt_dev.id_count == 2, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST()
224 bt_dev.id_count); in ZTEST()
Dtest_suite_invalid_cases.c57 bt_dev.id_count = 0; in ZTEST()
244 bt_dev.id_count = 1; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_get/src/
Dmain.c34 bt_addr_le_t *dst = &bt_dev.id_addr[bt_dev.id_count++]; in fff_reset_rule_before()
77 size_t stored_count = bt_dev.id_count; in ZTEST()
78 size_t testing_counts[] = {0, 1, bt_dev.id_count, bt_dev.id_count + 2}; in ZTEST()
/Zephyr-latest/samples/bluetooth/peripheral_identity/src/
Dperipheral_identity.c42 size_t id_count = 0xFF; in adv_start() local
45 bt_id_get(NULL, &id_count); in adv_start()
46 if (id_current == id_count) { in adv_start()
247 size_t id_count; in init_peripheral() local
284 id_count = 0xFF; in init_peripheral()
285 bt_id_get(NULL, &id_count); in init_peripheral()
286 } while (id_count != conn_count_max); in init_peripheral()
/Zephyr-latest/subsys/bluetooth/host/
Did.c230 if (adv->id >= bt_dev.id_count) { in adv_rpa_expired()
259 if (adv->id >= bt_dev.id_count) { in adv_rpa_clear_data()
283 if (bt_dev.id_count == 0) { in le_rpa_invalidate()
286 bool rpa_expired_data[bt_dev.id_count]; in le_rpa_invalidate()
1252 size_t to_copy = MIN(*count, bt_dev.id_count); in bt_id_get()
1257 *count = bt_dev.id_count; in bt_id_get()
1265 for (id = 0U; id < bt_dev.id_count; id++) { in id_find()
1350 if (bt_dev.id_count != 0) { in bt_id_create()
1354 bt_dev.id_count++; in bt_id_create()
1362 if (bt_dev.id_count == ARRAY_SIZE(bt_dev.id_addr)) { in bt_id_create()
[all …]
Dsettings.c160 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()
252 if (!bt_dev.id_count) { in commit_settings()
260 if (!bt_dev.id_count) { in commit_settings()
Dsettings.h23 #define ID_DATA_LEN(array) (bt_dev.id_count * sizeof(array[0]))
Dhci_core.h332 uint8_t id_count; member
Dhci_core.c3817 LOG_INF("Identity%s: %s", bt_dev.id_count > 1 ? "[0]" : "", in bt_dev_show_info()
3825 LOG_INF("IRK%s: 0x%s", bt_dev.id_count > 1 ? "[0]" : "", bt_hex(irk, 16)); in bt_dev_show_info()
3829 for (i = 1; i < bt_dev.id_count; i++) { in bt_dev_show_info()
4003 if (bt_dev.id_count > 0 && bt_dev.id_addr[BT_ID_DEFAULT].type == BT_ADDR_LE_PUBLIC) { in hci_init()
4215 if (!bt_dev.id_count) { in bt_init()
4432 bt_dev.id_count = 0; in bt_disable()
Dadv.c441 if (param->id >= bt_dev.id_count || in valid_adv_ext_param()