/Zephyr-latest/tests/bluetooth/host/id/bt_id_delete/src/ |
D | test_suite_bt_settings.c | 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() 68 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST() 109 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 110 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST() 123 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST()
|
D | main.c | 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() 73 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST() 106 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 107 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST() 121 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST()
|
D | test_suite_invalid_inputs.c | 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() 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() 158 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 159 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_filter.c | 122 !memcmp(list[i].id_addr.val, addr, BDADDR_SIZE)) 127 static uint32_t fal_add(bt_addr_le_t *id_addr); 128 static uint32_t fal_remove(bt_addr_le_t *id_addr); 176 !memcmp(pal[i].id_addr.val, addr, BDADDR_SIZE)) 193 static uint32_t pal_add(const bt_addr_le_t *const id_addr, const uint8_t sid); 194 static uint32_t pal_remove(const bt_addr_le_t *const id_addr, 278 void ll_rl_id_addr_get(uint8_t rl_idx, uint8_t *id_addr_type, uint8_t *id_addr) in ll_rl_id_addr_get() argument 284 (void)memcpy(id_addr, rl[rl_idx].id_addr.val, BDADDR_SIZE); in ll_rl_id_addr_get() 303 uint8_t ll_rl_add(bt_addr_le_t *id_addr, const uint8_t pirk[IRK_SIZE], in ll_rl_add() argument 312 i = ull_filter_rl_find(id_addr->type, id_addr->a.val, &j); in ll_rl_add() [all …]
|
D | lll_filter.h | 42 bt_addr_t id_addr; member 47 bt_addr_t id_addr; member 67 bt_addr_t id_addr; member 113 const uint8_t *id_addr, 116 const uint8_t *id_addr,
|
D | ull_filter.h | 21 uint8_t ull_filter_rl_find(uint8_t id_addr_type, uint8_t const *const id_addr,
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_create/src/ |
D | main.c | 76 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 100 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 113 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_2, sizeof(bt_addr_le_t), in ZTEST() 149 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 215 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 252 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST()
|
D | test_suite_privacy_enabled.c | 76 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 118 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 160 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
|
D | test_suite_invalid_inputs.c | 74 bt_dev.id_count = ARRAY_SIZE(bt_dev.id_addr); in ZTEST() 142 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_random_id_addr/src/ |
D | main.c | 117 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 172 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 174 zassert_mem_equal(&bt_dev.id_addr[1].a, BT_ADDR, sizeof(bt_addr_t), in ZTEST() 176 zassert_equal(bt_dev.id_addr[1].type, BT_ADDR_LE_RANDOM, "Incorrect address was set"); in ZTEST() 226 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 228 zassert_mem_equal(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_2, sizeof(bt_addr_le_t), in ZTEST()
|
D | test_suite_bt_settings_enabled.c | 132 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 181 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_le_oob_get_local/src/ |
D | main.c | 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()
|
D | test_suite_invalid_inputs.c | 202 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST() 255 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST() 308 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST() 361 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR); in ZTEST() 403 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST() 476 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_adv_random_addr_check/src/ |
D | main.c | 125 bt_dev.id_addr[adv_param.id].type = BT_ADDR_LE_RANDOM; in ZTEST() 159 bt_dev.id_addr[BT_ID_DEFAULT].type = BT_ADDR_LE_RANDOM; in ZTEST() 192 bt_dev.id_addr[adv_param.id].type = BT_ADDR_LE_RANDOM; in ZTEST() 193 bt_dev.id_addr[BT_ID_DEFAULT].type = BT_ADDR_LE_RANDOM; in ZTEST()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | settings.c | 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() 164 bt_dev.id_count = len / sizeof(bt_dev.id_addr[0]); in set_setting() 166 LOG_DBG("ID[%d] %s", i, bt_addr_le_str(&bt_dev.id_addr[i])); in set_setting() 428 int err = bt_settings_store("id", 0, NULL, &bt_dev.id_addr, ID_DATA_LEN(bt_dev.id_addr)); in do_store_id()
|
D | id.c | 739 bt_dev.id_addr[adv->id].type == BT_ADDR_LE_RANDOM) || in bt_id_scan_random_addr_check() 784 bt_dev.id_addr[param->id].type == BT_ADDR_LE_RANDOM) || in bt_id_adv_random_addr_check() 790 bt_dev.id_addr[BT_ID_DEFAULT].type == BT_ADDR_LE_RANDOM) { in bt_id_adv_random_addr_check() 802 } else if (bt_dev.id_addr[param->id].type == in bt_id_adv_random_addr_check() 840 bt_addr_le_copy(&cp.id_addr, addr); in le_set_privacy_mode() 1254 memcpy(addrs, bt_dev.id_addr, to_copy * sizeof(bt_addr_le_t)); in bt_id_get() 1266 if (bt_addr_le_eq(addr, &bt_dev.id_addr[id])) { in id_find() 1277 bt_addr_le_copy(&bt_dev.id_addr[id], addr); in id_create() 1291 bt_addr_le_copy(&bt_dev.id_addr[id], &new_addr); in id_create() 1294 bt_addr_le_copy(addr, &bt_dev.id_addr[id]); in id_create() [all …]
|
D | scan.c | 534 static void check_pending_conn(const bt_addr_le_t *id_addr, in check_pending_conn() argument 553 conn = bt_conn_lookup_state_le(BT_ID_DEFAULT, id_addr, in check_pending_conn() 626 bt_addr_le_t id_addr; in le_adv_recv() local 639 bt_addr_le_copy_resolved(&id_addr, addr); in le_adv_recv() 641 bt_addr_le_copy(&id_addr, BT_ADDR_LE_ANY); in le_adv_recv() 643 bt_addr_le_copy(&id_addr, in le_adv_recv() 651 scan_dev_found_cb(&id_addr, info->rssi, info->adv_type, buf); in le_adv_recv() 656 info->addr = &id_addr; in le_adv_recv() 673 check_pending_conn(&id_addr, addr, info->adv_props); in le_adv_recv() 1180 bt_addr_le_t id_addr; in bt_hci_le_per_adv_sync_established_common() local [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_reset/src/ |
D | main.c | 84 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_1, in ZTEST() 109 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 123 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_2, in ZTEST() 163 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_1, in ZTEST() 235 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_1, in ZTEST()
|
D | test_suite_invalid_inputs.c | 147 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 231 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 232 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_create_conn_own_addr/src/ |
D | main.c | 53 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR); in ZTEST() 83 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST()
|
D | test_suite_invalid_inputs.c | 59 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/ |
D | ull_filter.c | 32 uint8_t ull_filter_rl_find(uint8_t id_addr_type, uint8_t const *const id_addr, in ull_filter_rl_find() argument
|
/Zephyr-latest/tests/bluetooth/host/id/bt_br_oob_get_local/src/ |
D | main.c | 41 bt_addr_le_copy(&bt_dev.id_addr[0], BT_RPA_LE_ADDR); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_adv_own_addr/src/ |
D | test_suite_invalid_inputs.c | 143 bt_addr_le_copy(&bt_dev.id_addr[adv.id], BT_RPA_LE_ADDR); in ZTEST() 182 bt_addr_le_copy(&bt_dev.id_addr[adv.id], BT_RPA_LE_ADDR); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_public_id_addr/src/ |
D | test_suite_bt_settings_enabled.c | 118 zassert_mem_equal(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST() 155 zassert_mem_equal(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST()
|