Home
last modified time | relevance | path

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

12

/Zephyr-latest/subsys/bluetooth/host/
Dkeys.h65 struct bt_keys { struct
87 #define BT_KEYS_STORAGE_LEN (sizeof(struct bt_keys) - \ argument
88 offsetof(struct bt_keys, storage_start))
103 void bt_keys_foreach_type(enum bt_keys_type type, void (*func)(struct bt_keys *keys, void *data),
124 struct bt_keys *bt_keys_get_addr(uint8_t id, const bt_addr_le_t *addr);
141 struct bt_keys *bt_keys_get_type(enum bt_keys_type type, uint8_t id, const bt_addr_le_t *addr);
153 struct bt_keys *bt_keys_find(enum bt_keys_type type, uint8_t id, const bt_addr_le_t *addr);
163 struct bt_keys *bt_keys_find_irk(uint8_t id, const bt_addr_le_t *addr);
173 struct bt_keys *bt_keys_find_addr(uint8_t id, const bt_addr_le_t *addr);
181 void bt_keys_add_type(struct bt_keys *keys, enum bt_keys_type type);
[all …]
Dkeys.c35 LOG_MODULE_REGISTER(bt_keys);
37 static struct bt_keys key_pool[CONFIG_BT_MAX_PAIRED];
43 static struct bt_keys *last_keys_updated;
53 struct bt_keys *key; in find_key_in_use()
88 struct bt_keys *bt_keys_get_addr(uint8_t id, const bt_addr_le_t *addr) in bt_keys_get_addr()
90 struct bt_keys *keys; in bt_keys_get_addr()
112 struct bt_keys *oldest = NULL; in bt_keys_get_addr()
116 struct bt_keys *current = &key_pool[i]; in bt_keys_get_addr()
168 struct bt_keys *keys = &key_pool[i]; in bt_foreach_bond()
183 void bt_keys_foreach_type(enum bt_keys_type type, void (*func)(struct bt_keys *keys, void *data), in bt_keys_foreach_type()
[all …]
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_clear/src/
Dtest_suite_bt_settings.c48 struct bt_keys empty_key; in ZTEST()
49 struct bt_keys *returned_key, *find_returned_ref; in ZTEST()
53 memset(&empty_key, 0x00, sizeof(struct bt_keys)); in ZTEST()
63 zassert_mem_equal(returned_key, &empty_key, sizeof(struct bt_keys), in ZTEST()
86 struct bt_keys empty_key; in ZTEST()
87 struct bt_keys *returned_key, *find_returned_ref; in ZTEST()
91 memset(&empty_key, 0x00, sizeof(struct bt_keys)); in ZTEST()
101 zassert_mem_equal(returned_key, &empty_key, sizeof(struct bt_keys), in ZTEST()
Dmain.c43 struct bt_keys empty_key; in ZTEST()
44 struct bt_keys *key_ref_to_clear, *find_returned_ref; in ZTEST()
52 memset(&empty_key, 0x00, sizeof(struct bt_keys)); in ZTEST()
67 zassert_mem_equal(key_ref_to_clear, &empty_key, sizeof(struct bt_keys), in ZTEST()
89 struct bt_keys empty_key; in ZTEST()
90 struct bt_keys *key_ref_to_clear, *find_returned_ref; in ZTEST()
98 memset(&empty_key, 0x00, sizeof(struct bt_keys)); in ZTEST()
115 zassert_mem_equal(key_ref_to_clear, &empty_key, sizeof(struct bt_keys), in ZTEST()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_add_type/src/
Dmain.c34 struct bt_keys key_ref; in ZTEST()
37 memset(&key_ref, 0x00, sizeof(struct bt_keys)); in ZTEST()
59 struct bt_keys key_ref; in ZTEST()
62 memset(&key_ref, 0x00, sizeof(struct bt_keys)); in ZTEST()
83 struct bt_keys key_ref; in ZTEST()
86 memset(&key_ref, 0x00, sizeof(struct bt_keys)); in ZTEST()
/Zephyr-latest/tests/bluetooth/host/keys/mocks/
Dkeys_help_utils.h23 struct bt_keys *bt_keys_get_key_pool(void);
26 struct bt_keys *bt_keys_get_last_keys_updated(void);
31 int fill_key_pool_by_id_addr(const struct id_addr_pair src[], int size, struct bt_keys *refs[]);
33 struct bt_keys *refs[]);
Dkeys_help_utils.c14 struct bt_keys *key_pool; in clear_key_pool()
17 memset(key_pool, 0x00, sizeof(struct bt_keys) * CONFIG_BT_MAX_PAIRED); in clear_key_pool()
20 int fill_key_pool_by_id_addr(const struct id_addr_pair src[], int size, struct bt_keys *refs[]) in fill_key_pool_by_id_addr()
45 int fill_key_pool_by_id_addr_type(const struct id_addr_type src[], int size, struct bt_keys *refs[]) in fill_key_pool_by_id_addr_type()
75 struct bt_keys *keys, *key_pool; in check_key_pool_is_empty()
Did.c10 DEFINE_FAKE_VOID_FUNC(bt_id_del, struct bt_keys *);
Did_expects.h15 void expect_single_call_bt_id_del(struct bt_keys *keys);
Did.h16 DECLARE_FAKE_VOID_FUNC(bt_id_del, struct bt_keys *);
Dhci_core.c11 DEFINE_FAKE_VOID_FUNC(bt_id_add, struct bt_keys *);
/Zephyr-latest/tests/bluetooth/host/id/mocks/
Dkeys.h13 typedef void (*bt_keys_foreach_type_cb)(struct bt_keys *keys, void *data);
20 DECLARE_FAKE_VALUE_FUNC(struct bt_keys *, bt_keys_find_irk, uint8_t, const bt_addr_le_t *);
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_store/src/
Dmain.c52 struct bt_keys *returned_key; in ZTEST()
86 struct bt_keys *returned_key; in ZTEST()
119 struct bt_keys *returned_key; in ZTEST()
153 struct bt_keys *returned_key; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_get_addr/src/
Dmain.c28 struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
73 struct bt_keys *returned_key; in ZTEST()
107 struct bt_keys *keys_pool = bt_keys_get_key_pool(); in ZTEST()
110 struct bt_keys *returned_ref = returned_keys_refs[i]; in ZTEST()
144 struct bt_keys *returned_key, *expected_key_ref; in ZTEST()
Dtest_suite_full_list_no_overwrite.c18 extern struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
49 struct bt_keys *returned_key; in ZTEST()
Dtest_suite_full_list_overwrite_oldest.c20 extern struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
27 struct bt_keys *keys = NULL; in bt_unpair_custom_fake()
133 struct bt_keys *returned_key; in ZTEST()
160 struct bt_keys *returned_key; in ZTEST()
194 struct bt_keys *returned_key; in ZTEST()
228 struct bt_keys *returned_key; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_del/src/
Dmain.c57 struct bt_keys keys = {0}; in ZTEST()
86 struct bt_keys keys = {0}; in ZTEST()
117 struct bt_keys keys = {0}; in ZTEST()
169 struct bt_keys keys = {0}; in ZTEST()
214 struct bt_keys keys = {0}; in ZTEST()
266 struct bt_keys keys = {0}; in ZTEST()
319 struct bt_keys keys = {0}; in ZTEST()
369 struct bt_keys keys = {0}; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_add/src/
Dmain.c54 struct bt_keys keys = {0}; in ZTEST()
81 struct bt_keys keys = {0}; in ZTEST()
111 struct bt_keys keys = {0}; in ZTEST()
163 struct bt_keys keys = {0}; in ZTEST()
206 struct bt_keys keys = {0}; in ZTEST()
248 struct bt_keys keys = {0}; in ZTEST()
307 struct bt_keys keys = {0}; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_lookup_id_addr/src/
Dmain.c21 static struct bt_keys resolving_key;
26 memset(&resolving_key, 0x00, sizeof(struct bt_keys)); in fff_reset_rule_before()
91 static struct bt_keys *bt_keys_find_irk_custom_fake(uint8_t id, const bt_addr_le_t *addr) in bt_keys_find_irk_custom_fake()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_get_type/src/
Dmain.c33 static struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
76 struct bt_keys *returned_key; in ZTEST()
115 struct bt_keys *returned_key; in ZTEST()
138 struct bt_keys *returned_key, *expected_key_ref; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find_addr/src/
Dmain.c35 static struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
61 struct bt_keys *returned_ref; in ZTEST()
97 struct bt_keys *returned_ref, *expected_key_ref; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_update_usage/src/
Dmain.c35 struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
38 static struct bt_keys *last_keys_updated;
114 struct bt_keys *expected_updated_keys; in ZTEST()
Dtest_suite_save_aging_counter.c25 extern struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
57 struct bt_keys *expected_updated_keys; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find/src/
Dmain.c31 static struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
57 struct bt_keys *returned_ref; in ZTEST()
96 struct bt_keys *returned_ref, *expected_key_ref; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_foreach_type/src/
Dmain.c40 static struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
62 static void bt_keys_foreach_type_unreachable_cb(struct bt_keys *keys, void *data) in bt_keys_foreach_type_unreachable_cb()
105 void bt_keys_foreach_type_expected_cb(struct bt_keys *keys, void *data) in bt_keys_foreach_type_expected_cb()

12