/linux/net/bluetooth/ |
H A D | smp.h | 193 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa);
|
H A D | smp.c | 516 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa) in smp_generate_rpa() argument 524 get_random_bytes(&rpa->b[3], 3); in smp_generate_rpa() 526 rpa->b[5] &= 0x3f; /* Clear two most significant bits */ in smp_generate_rpa() 527 rpa->b[5] |= 0x40; /* Set second most significant bit */ in smp_generate_rpa() 529 err = smp_ah(irk, &rpa->b[3], rpa->b); in smp_generate_rpa() 533 bt_dev_dbg(hdev, "RPA %pMR", rpa); in smp_generate_rpa() 2605 bdaddr_t rpa; in smp_cmd_ident_addr_info() local 2653 bacpy(&rpa, &hcon->dst); in smp_cmd_ident_addr_info() 2655 bacpy(&rpa, BDADDR_ANY); in smp_cmd_ident_addr_info() 2658 smp->id_addr_type, smp->irk, &rpa); in smp_cmd_ident_addr_info()
|
H A D | hci_core.c | 1192 struct smp_irk *hci_find_irk_by_rpa(struct hci_dev *hdev, bdaddr_t *rpa) in hci_find_irk_by_rpa() argument 1199 if (!bacmp(&irk->rpa, rpa)) { in hci_find_irk_by_rpa() 1206 if (smp_irk_matches(hdev, irk->val, rpa)) { in hci_find_irk_by_rpa() 1207 bacpy(&irk->rpa, rpa); in hci_find_irk_by_rpa() 1336 u8 addr_type, u8 val[16], bdaddr_t *rpa) in hci_add_irk() argument 1353 bacpy(&irk->rpa, rpa); in hci_add_irk()
|
H A D | hci_sync.c | 1032 static int hci_set_random_addr_sync(struct hci_dev *hdev, bdaddr_t *rpa) in hci_set_random_addr_sync() argument 1052 6, rpa, HCI_CMD_TIMEOUT); in hci_set_random_addr_sync() 1056 bool rpa, u8 *own_addr_type) in hci_update_random_address_sync() argument 1064 if (rpa) { in hci_update_random_address_sync() 1077 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address_sync() 1083 err = hci_set_random_addr_sync(hdev, &hdev->rpa); in hci_update_random_address_sync() 6681 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_get_random_address() 6687 bacpy(rand_addr, &hdev->rpa); in hci_get_random_address()
|
H A D | hci_debugfs.c | 681 16, hdev->irk, &hdev->rpa); in identity_show() 829 16, irk->val, &irk->rpa); in identity_resolving_keys_show()
|
H A D | hci_conn.c | 1345 if (irk && bacmp(&irk->rpa, BDADDR_ANY)) { in hci_connect_le() 1346 dst = &irk->rpa; in hci_connect_le()
|
H A D | hci_event.c | 1354 if (!bacmp(&hdev->rpa, sent)) { in hci_cc_le_set_random_addr() 1415 if (!bacmp(&hdev->rpa, &cp->bdaddr)) { in hci_cc_le_set_adv_set_random_addr() 5569 bacpy(&conn->init_addr, &conn->hdev->rpa); in le_conn_update_addr() 5653 bacpy(&conn->init_addr, &hdev->rpa); in le_conn_complete_evt()
|
H A D | mgmt.c | 9595 bacpy(&ev.rpa, &irk->rpa); in mgmt_new_irk()
|
/linux/drivers/scsi/libfc/ |
H A D | fc_encode.h | 37 struct fc_fdmi_rpa rpa; member 491 &ct->payload.rpa.port.portname); in fc_ct_ms_fill() 495 &ct->payload.rpa.hba_attrs.numattrs); in fc_ct_ms_fill() 497 hba_attrs = &ct->payload.rpa.hba_attrs; in fc_ct_ms_fill()
|
/linux/include/net/bluetooth/ |
H A D | hci_sync.h | 104 bool rpa, u8 *own_addr_type);
|
H A D | hci_core.h | 209 bdaddr_t rpa; member 594 bdaddr_t rpa; member 1725 struct smp_irk *hci_find_irk_by_rpa(struct hci_dev *hdev, bdaddr_t *rpa); 1729 u8 addr_type, u8 val[16], bdaddr_t *rpa); 1828 #define rpa_valid(dev) (bacmp(&dev->rpa, BDADDR_ANY) && \
|
H A D | mgmt.h | 1026 bdaddr_t rpa; member
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_gs.c | 2392 memcpy(ct_req->req.rpa.port_name, vha->port_name, in qla2x00_fdmi_rpa() 2393 sizeof(ct_req->req.rpa.port_name)); in qla2x00_fdmi_rpa() 2394 size += sizeof(ct_req->req.rpa.port_name); in qla2x00_fdmi_rpa() 2397 ct_req->req.rpa.attrs.count = cpu_to_be32(count); in qla2x00_fdmi_rpa() 2398 size += sizeof(ct_req->req.rpa.attrs.count); in qla2x00_fdmi_rpa() 2401 entries = ct_req->req.rpa.attrs.entry; in qla2x00_fdmi_rpa() 2409 "RPA %016llx.\n", wwn_to_u64(ct_req->req.rpa.port_name)); in qla2x00_fdmi_rpa()
|
H A D | qla_def.h | 3133 } rpa; member
|
/linux/drivers/scsi/bfa/ |
H A D | bfa_fcs_lport.c | 2538 struct fdmi_rpa_s *rpa = (struct fdmi_rpa_s *) pyld; in bfa_fcs_lport_fdmi_build_rpa_pyld() local 2541 rpa->port_name = bfa_fcs_lport_get_pwwn(port); in bfa_fcs_lport_fdmi_build_rpa_pyld() 2544 (u8 *) &rpa->port_attr_blk); in bfa_fcs_lport_fdmi_build_rpa_pyld() 2546 len += sizeof(rpa->port_name); in bfa_fcs_lport_fdmi_build_rpa_pyld()
|