Lines Matching refs:irk
5827 memcpy(hdev->irk, cp->irk, sizeof(hdev->irk)); in set_privacy()
5836 memset(hdev->irk, 0, sizeof(hdev->irk)); in set_privacy()
5854 static bool irk_is_valid(struct mgmt_irk_info *irk) in irk_is_valid() argument
5856 switch (irk->addr.type) { in irk_is_valid()
5862 if ((irk->addr.bdaddr.b[5] & 0xc0) != 0xc0) in irk_is_valid()
5917 struct mgmt_irk_info *irk = &cp->irks[i]; in load_irks() local
5918 u8 addr_type = le_addr_type(irk->addr.type); in load_irks()
5922 irk->val)) { in load_irks()
5924 &irk->addr.bdaddr); in load_irks()
5929 if (irk->addr.type == BDADDR_BREDR) in load_irks()
5932 hci_add_irk(hdev, &irk->addr.bdaddr, in load_irks()
5933 addr_type, irk->val, in load_irks()
8127 void mgmt_new_irk(struct hci_dev *hdev, struct smp_irk *irk, bool persistent) in mgmt_new_irk() argument
8135 bacpy(&ev.rpa, &irk->rpa); in mgmt_new_irk()
8136 bacpy(&ev.irk.addr.bdaddr, &irk->bdaddr); in mgmt_new_irk()
8137 ev.irk.addr.type = link_to_bdaddr(irk->link_type, irk->addr_type); in mgmt_new_irk()
8138 memcpy(ev.irk.val, irk->val, sizeof(irk->val)); in mgmt_new_irk()