Lines Matching refs:bdaddr
604 bacpy(&cp.bdaddr, BDADDR_ANY); in hci_init3_req()
769 bdaddr_t *bdaddr) in hci_inquiry_cache_lookup() argument
774 BT_DBG("cache %p, %pMR", cache, bdaddr); in hci_inquiry_cache_lookup()
777 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup()
785 bdaddr_t *bdaddr) in hci_inquiry_cache_lookup_unknown() argument
790 BT_DBG("cache %p, %pMR", cache, bdaddr); in hci_inquiry_cache_lookup_unknown()
793 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup_unknown()
801 bdaddr_t *bdaddr, in hci_inquiry_cache_lookup_resolve() argument
807 BT_DBG("cache %p bdaddr %pMR state %d", cache, bdaddr, state); in hci_inquiry_cache_lookup_resolve()
810 if (!bacmp(bdaddr, BDADDR_ANY) && e->name_state == state) in hci_inquiry_cache_lookup_resolve()
812 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup_resolve()
844 BT_DBG("cache %p, %pMR", cache, &data->bdaddr); in hci_inquiry_cache_update()
846 hci_remove_remote_oob_data(hdev, &data->bdaddr); in hci_inquiry_cache_update()
851 ie = hci_inquiry_cache_lookup(hdev, &data->bdaddr); in hci_inquiry_cache_update()
909 bacpy(&info->bdaddr, &data->bdaddr); in inquiry_cache_dump()
1511 di.bdaddr = hdev->bdaddr; in hci_get_dev_info()
1649 struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_find_link_key() argument
1654 if (bacmp(bdaddr, &k->bdaddr) == 0) in hci_find_link_key()
1711 struct smp_ltk *hci_find_ltk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr, in hci_find_ltk_by_addr() argument
1718 bacmp(bdaddr, &k->bdaddr) == 0) in hci_find_ltk_by_addr()
1725 bdaddr_t *bdaddr, u8 *val, u8 type, u8 pin_len) in hci_add_link_key() argument
1731 old_key = hci_find_link_key(hdev, bdaddr); in hci_add_link_key()
1743 BT_DBG("%s key for %pMR type %u", hdev->name, bdaddr, type); in hci_add_link_key()
1755 bacpy(&key->bdaddr, bdaddr); in hci_add_link_key()
1777 int hci_add_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type, u8 type, in hci_add_ltk() argument
1786 old_key = hci_find_ltk_by_addr(hdev, bdaddr, addr_type); in hci_add_ltk()
1796 bacpy(&key->bdaddr, bdaddr); in hci_add_ltk()
1814 int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_remove_link_key() argument
1818 key = hci_find_link_key(hdev, bdaddr); in hci_remove_link_key()
1822 BT_DBG("%s removing %pMR", hdev->name, bdaddr); in hci_remove_link_key()
1830 int hci_remove_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_remove_ltk() argument
1835 if (bacmp(bdaddr, &k->bdaddr)) in hci_remove_ltk()
1838 BT_DBG("%s removing %pMR", hdev->name, bdaddr); in hci_remove_ltk()
1866 bdaddr_t *bdaddr) in hci_find_remote_oob_data() argument
1871 if (bacmp(bdaddr, &data->bdaddr) == 0) in hci_find_remote_oob_data()
1877 int hci_remove_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_remove_remote_oob_data() argument
1881 data = hci_find_remote_oob_data(hdev, bdaddr); in hci_remove_remote_oob_data()
1885 BT_DBG("%s removing %pMR", hdev->name, bdaddr); in hci_remove_remote_oob_data()
1905 int hci_add_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 *hash, in hci_add_remote_oob_data() argument
1910 data = hci_find_remote_oob_data(hdev, bdaddr); in hci_add_remote_oob_data()
1917 bacpy(&data->bdaddr, bdaddr); in hci_add_remote_oob_data()
1924 BT_DBG("%s for %pMR", hdev->name, bdaddr); in hci_add_remote_oob_data()
1929 struct bdaddr_list *hci_blacklist_lookup(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_blacklist_lookup() argument
1934 if (bacmp(bdaddr, &b->bdaddr) == 0) in hci_blacklist_lookup()
1956 int hci_blacklist_add(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type) in hci_blacklist_add() argument
1960 if (bacmp(bdaddr, BDADDR_ANY) == 0) in hci_blacklist_add()
1963 if (hci_blacklist_lookup(hdev, bdaddr)) in hci_blacklist_add()
1970 bacpy(&entry->bdaddr, bdaddr); in hci_blacklist_add()
1974 return mgmt_device_blocked(hdev, bdaddr, type); in hci_blacklist_add()
1977 int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type) in hci_blacklist_del() argument
1981 if (bacmp(bdaddr, BDADDR_ANY) == 0) in hci_blacklist_del()
1984 entry = hci_blacklist_lookup(hdev, bdaddr); in hci_blacklist_del()
1991 return mgmt_device_unblocked(hdev, bdaddr, type); in hci_blacklist_del()