Lines Matching refs:role
72 __func__, p_cb->role, recv, p_cb->local_i_key, p_cb->local_r_key); in smp_update_key_mask()
81 } else if (p_cb->role == HCI_ROLE_SLAVE) { in smp_update_key_mask()
518 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) in smp_proc_pair_cmd()
548 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_proc_pair_cmd()
786 if (!p_dev_rec->new_encryption_key_is_p256 && p_cb->role == HCI_ROLE_SLAVE) { in smp_br_process_pairing_command()
794 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) in smp_br_process_pairing_command()
826 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_br_process_pairing_command()
873 if (p_cb->role == HCI_ROLE_MASTER) { in smp_br_check_authorization_request()
894 if (p_cb->role == HCI_ROLE_MASTER && p_cb->local_r_key == 0) in smp_br_check_authorization_request()
910 p_cb->role, p_cb->local_r_key, p_cb->local_i_key); in smp_br_select_next_key()
912 if (p_cb->role == HCI_ROLE_SLAVE || in smp_br_select_next_key()
913 (!p_cb->local_r_key && p_cb->role == HCI_ROLE_MASTER)) { in smp_br_select_next_key()
1076 if (p_cb->role == HCI_ROLE_SLAVE) in smp_proc_compare()
1183 if (p_cb->role == HCI_ROLE_MASTER) { in smp_check_auth_req()
1212 else if (p_cb->role == HCI_ROLE_MASTER) { in smp_check_auth_req()
1224 (p_cb->role == HCI_ROLE_SLAVE) ? p_cb->local_r_key : p_cb->local_i_key; in smp_key_pick_key()
1245 p_cb->role, p_cb->local_r_key, p_cb->local_i_key); in smp_key_distribution()
1247 if (p_cb->role == HCI_ROLE_SLAVE || in smp_key_distribution()
1248 (!p_cb->local_r_key && p_cb->role == HCI_ROLE_MASTER)) { in smp_key_distribution()
1296 if (p_cb->role == HCI_ROLE_MASTER && in smp_decide_association_model()
1486 if (p_cb->role == HCI_ROLE_SLAVE) smp_send_pair_public_key(p_cb, NULL); in smp_both_have_public_keys()
1550 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_process_local_nonce()
1575 if (p_cb->role == HCI_ROLE_MASTER) { in smp_process_local_nonce()
1587 if (p_cb->role == HCI_ROLE_MASTER) { in smp_process_local_nonce()
1623 (p_cb->role == HCI_ROLE_SLAVE)) { in smp_process_peer_nonce()
1636 if (p_cb->role == HCI_ROLE_MASTER) { in smp_process_peer_nonce()
1669 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_process_peer_nonce()
1683 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_process_peer_nonce()
1723 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_match_dhkey_checks()
1776 if ((p_cb->role == HCI_ROLE_SLAVE) && in smp_wait_for_both_public_keys()