Lines Matching refs:test_bit

762 	complete = test_bit(SMP_FLAG_COMPLETE, &smp->flags);  in smp_chan_destroy()
853 if (test_bit(SMP_FLAG_SC, &smp->flags)) in get_auth_method()
886 if (smp->method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, in tk_request()
904 if (test_bit(SMP_FLAG_SC, &smp->flags)) in tk_request()
1052 persistent = !test_bit(HCI_CONN_FLUSH_KEY, in smp_notify_keys()
1105 if (test_bit(SMP_FLAG_DEBUG_KEY, &smp->flags)) in smp_notify_keys()
1134 if (test_bit(SMP_FLAG_DEBUG_KEY, &smp->flags)) in sc_add_ltk()
1245 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_distribute_keys()
1529 if (test_bit(SMP_FLAG_WAIT_USER, &smp->flags)) { in sc_passkey_round()
1628 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_user_confirm_reply()
1657 if (test_bit(SMP_FLAG_CFM_PENDING, &smp->flags)) { in smp_user_confirm_reply()
1757 if (!test_bit(HCI_CONN_AES_CCM, &conn->hcon->flags) && in smp_cmd_pairing_req()
1823 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_cmd_pairing_req()
1845 if (test_bit(SMP_FLAG_LOCAL_OOB, &smp->flags)) { in sc_send_public_key()
1968 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_cmd_pairing_rsp()
1984 if (test_bit(SMP_FLAG_TK_VALID, &smp->flags)) in smp_cmd_pairing_rsp()
2062 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_cmd_pairing_confirm()
2066 if (test_bit(SMP_FLAG_REMOTE_PK, &smp->flags)) in smp_cmd_pairing_confirm()
2083 if (test_bit(SMP_FLAG_TK_VALID, &smp->flags)) in smp_cmd_pairing_confirm()
2108 if (!test_bit(SMP_FLAG_SC, &smp->flags)) in smp_cmd_pairing_random()
2216 test_bit(HCI_CONN_STK_ENCRYPT, &hcon->flags) && in smp_sufficient_security()
2384 if (test_bit(SMP_FLAG_COMPLETE, &smp->flags)) in smp_cancel_pairing()
2563 if (test_bit(SMP_FLAG_REMOTE_OOB, &smp->flags) || in sc_select_method()
2564 test_bit(SMP_FLAG_LOCAL_OOB, &smp->flags)) in sc_select_method()
2595 if (method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, &smp->flags)) in sc_select_method()
2618 if (test_bit(SMP_FLAG_REMOTE_OOB, &smp->flags)) { in smp_cmd_public_key()
2760 if (test_bit(SMP_FLAG_WAIT_USER, &smp->flags)) { in smp_cmd_dhkey_check()
2926 if (!test_bit(HCI_CONN_NEW_LINK_KEY, &hcon->flags)) in bredr_pairing()
2930 if (!test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) in bredr_pairing()
2942 if (!test_bit(HCI_CONN_AES_CCM, &hcon->flags) && in bredr_pairing()
2999 if (!test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) in smp_resume_cb()
3022 if (hcon->type == ACL_LINK && test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) in smp_ready_cb()