Lines Matching refs:k

1062 	struct smp_ltk *k, *tmp;  in hci_smp_ltks_clear()  local
1064 list_for_each_entry_safe(k, tmp, &hdev->long_term_keys, list) { in hci_smp_ltks_clear()
1065 list_del_rcu(&k->list); in hci_smp_ltks_clear()
1066 kfree_rcu(k, rcu); in hci_smp_ltks_clear()
1072 struct smp_irk *k, *tmp; in hci_smp_irks_clear() local
1074 list_for_each_entry_safe(k, tmp, &hdev->identity_resolving_keys, list) { in hci_smp_irks_clear()
1075 list_del_rcu(&k->list); in hci_smp_irks_clear()
1076 kfree_rcu(k, rcu); in hci_smp_irks_clear()
1109 struct link_key *k; in hci_find_link_key() local
1112 list_for_each_entry_rcu(k, &hdev->link_keys, list) { in hci_find_link_key()
1113 if (bacmp(bdaddr, &k->bdaddr) == 0) { in hci_find_link_key()
1118 k->val)) { in hci_find_link_key()
1121 &k->bdaddr); in hci_find_link_key()
1125 return k; in hci_find_link_key()
1184 struct smp_ltk *k; in hci_find_ltk() local
1187 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) { in hci_find_ltk()
1188 if (addr_type != k->bdaddr_type || bacmp(bdaddr, &k->bdaddr)) in hci_find_ltk()
1191 if (smp_ltk_is_sc(k) || ltk_role(k->type) == role) { in hci_find_ltk()
1195 k->val)) { in hci_find_ltk()
1198 &k->bdaddr); in hci_find_ltk()
1202 return k; in hci_find_ltk()
1392 struct smp_ltk *k, *tmp; in hci_remove_ltk() local
1395 list_for_each_entry_safe(k, tmp, &hdev->long_term_keys, list) { in hci_remove_ltk()
1396 if (bacmp(bdaddr, &k->bdaddr) || k->bdaddr_type != bdaddr_type) in hci_remove_ltk()
1401 list_del_rcu(&k->list); in hci_remove_ltk()
1402 kfree_rcu(k, rcu); in hci_remove_ltk()
1411 struct smp_irk *k, *tmp; in hci_remove_irk() local
1413 list_for_each_entry_safe(k, tmp, &hdev->identity_resolving_keys, list) { in hci_remove_irk()
1414 if (bacmp(bdaddr, &k->bdaddr) || k->addr_type != addr_type) in hci_remove_irk()
1419 list_del_rcu(&k->list); in hci_remove_irk()
1420 kfree_rcu(k, rcu); in hci_remove_irk()
1426 struct smp_ltk *k; in hci_bdaddr_is_paired() local
1449 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) { in hci_bdaddr_is_paired()
1450 if (k->bdaddr_type == addr_type && !bacmp(bdaddr, &k->bdaddr)) { in hci_bdaddr_is_paired()