Lines Matching refs:id

43 struct bt_keys *bt_keys_get_addr(u8_t id, const bt_addr_le_t *addr)  in bt_keys_get_addr()  argument
54 if (keys->id == id && !bt_addr_le_cmp(&keys->addr, addr)) { in bt_keys_get_addr()
79 bt_unpair(oldest->id, &oldest_addr); in bt_keys_get_addr()
88 keys->id = id; in bt_keys_get_addr()
103 void bt_foreach_bond(u8_t id, void (*func)(const struct bt_bond_info *info, in bt_foreach_bond() argument
112 if (keys->keys && keys->id == id) { in bt_foreach_bond()
133 struct bt_keys *bt_keys_find(int type, u8_t id, const bt_addr_le_t *addr) in bt_keys_find() argument
140 if ((key_pool[i].keys & type) && key_pool[i].id == id && in bt_keys_find()
149 struct bt_keys *bt_keys_get_type(int type, u8_t id, const bt_addr_le_t *addr) in bt_keys_get_type() argument
155 keys = bt_keys_find(type, id, addr); in bt_keys_get_type()
160 keys = bt_keys_get_addr(id, addr); in bt_keys_get_type()
170 struct bt_keys *bt_keys_find_irk(u8_t id, const bt_addr_le_t *addr) in bt_keys_find_irk() argument
185 if (key_pool[i].id == id && in bt_keys_find_irk()
199 if (key_pool[i].id != id) { in bt_keys_find_irk()
219 struct bt_keys *bt_keys_find_addr(u8_t id, const bt_addr_le_t *addr) in bt_keys_find_addr() argument
226 if (key_pool[i].id == id && in bt_keys_find_addr()
252 if (keys->id) { in bt_keys_clear()
253 char id[4]; in bt_keys_clear() local
255 u8_to_dec(id, sizeof(id), keys->id); in bt_keys_clear()
257 &keys->addr, id); in bt_keys_clear()
276 if (keys->id) { in bt_keys_store()
277 char id[4]; in bt_keys_store() local
279 u8_to_dec(id, sizeof(id), keys->id); in bt_keys_store()
281 id); in bt_keys_store()
304 u8_t id; in keys_set() local
333 id = BT_ID_DEFAULT; in keys_set()
335 id = strtol(next, NULL, 10); in keys_set()
339 keys = bt_keys_find(BT_KEYS_ALL, id, &addr); in keys_set()
351 keys = bt_keys_get_addr(id, &addr); in keys_set()
423 void bt_keys_update_usage(u8_t id, const bt_addr_le_t *addr) in bt_keys_update_usage() argument
425 struct bt_keys *keys = bt_keys_find_addr(id, addr); in bt_keys_update_usage()