Lines Matching refs:irk
6093 memcpy(hdev->irk, cp->irk, sizeof(hdev->irk)); in set_privacy()
6102 memset(hdev->irk, 0, sizeof(hdev->irk)); in set_privacy()
6120 static bool irk_is_valid(struct mgmt_irk_info *irk) in irk_is_valid() argument
6122 switch (irk->addr.type) { in irk_is_valid()
6128 if ((irk->addr.bdaddr.b[5] & 0xc0) != 0xc0) in irk_is_valid()
6183 struct mgmt_irk_info *irk = &cp->irks[i]; in load_irks() local
6184 u8 addr_type = le_addr_type(irk->addr.type); in load_irks()
6188 irk->val)) { in load_irks()
6190 &irk->addr.bdaddr); in load_irks()
6195 if (irk->addr.type == BDADDR_BREDR) in load_irks()
6198 hci_add_irk(hdev, &irk->addr.bdaddr, in load_irks()
6199 addr_type, irk->val, in load_irks()
8757 void mgmt_new_irk(struct hci_dev *hdev, struct smp_irk *irk, bool persistent) in mgmt_new_irk() argument
8765 bacpy(&ev.rpa, &irk->rpa); in mgmt_new_irk()
8766 bacpy(&ev.irk.addr.bdaddr, &irk->bdaddr); in mgmt_new_irk()
8767 ev.irk.addr.type = link_to_bdaddr(irk->link_type, irk->addr_type); in mgmt_new_irk()
8768 memcpy(ev.irk.val, irk->val, sizeof(irk->val)); in mgmt_new_irk()