• Home
  • Raw
  • Download

Lines Matching refs:k

2148 	struct smp_ltk *k;  in hci_smp_ltks_clear()  local
2150 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) { in hci_smp_ltks_clear()
2151 list_del_rcu(&k->list); in hci_smp_ltks_clear()
2152 kfree_rcu(k, rcu); in hci_smp_ltks_clear()
2158 struct smp_irk *k; in hci_smp_irks_clear() local
2160 list_for_each_entry_rcu(k, &hdev->identity_resolving_keys, list) { in hci_smp_irks_clear()
2161 list_del_rcu(&k->list); in hci_smp_irks_clear()
2162 kfree_rcu(k, rcu); in hci_smp_irks_clear()
2168 struct link_key *k; in hci_find_link_key() local
2171 list_for_each_entry_rcu(k, &hdev->link_keys, list) { in hci_find_link_key()
2172 if (bacmp(bdaddr, &k->bdaddr) == 0) { in hci_find_link_key()
2174 return k; in hci_find_link_key()
2233 struct smp_ltk *k; in hci_find_ltk() local
2236 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) { in hci_find_ltk()
2237 if (addr_type != k->bdaddr_type || bacmp(bdaddr, &k->bdaddr)) in hci_find_ltk()
2240 if (smp_ltk_is_sc(k) || ltk_role(k->type) == role) { in hci_find_ltk()
2242 return k; in hci_find_ltk()
2413 struct smp_ltk *k; in hci_remove_ltk() local
2416 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) { in hci_remove_ltk()
2417 if (bacmp(bdaddr, &k->bdaddr) || k->bdaddr_type != bdaddr_type) in hci_remove_ltk()
2422 list_del_rcu(&k->list); in hci_remove_ltk()
2423 kfree_rcu(k, rcu); in hci_remove_ltk()
2432 struct smp_irk *k; in hci_remove_irk() local
2434 list_for_each_entry_rcu(k, &hdev->identity_resolving_keys, list) { in hci_remove_irk()
2435 if (bacmp(bdaddr, &k->bdaddr) || k->addr_type != addr_type) in hci_remove_irk()
2440 list_del_rcu(&k->list); in hci_remove_irk()
2441 kfree_rcu(k, rcu); in hci_remove_irk()
2447 struct smp_ltk *k; in hci_bdaddr_is_paired() local
2470 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) { in hci_bdaddr_is_paired()
2471 if (k->bdaddr_type == addr_type && !bacmp(bdaddr, &k->bdaddr)) { in hci_bdaddr_is_paired()