Lines Matching refs:sm4

765     else if (p_dev_rec->sm4 & BTM_SM4_CONN_PEND) {  in BTM_PINCodeReply()
907 p_dev_rec->sm4, p_dev_rec->hci_handle); in btm_sec_bond_by_transport()
924 BTM_TRACE_DEBUG("sec mode: %d sm4:x%x", btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_bond_by_transport()
926 (p_dev_rec->sm4 == BTM_SM4_KNOWN)) { in btm_sec_bond_by_transport()
932 BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) { in btm_sec_bond_by_transport()
934 if ((p_dev_rec->sm4 & BTM_SM4_CONN_PEND) == 0) { in btm_sec_bond_by_transport()
946 btm_pair_state_descr(btm_cb.pairing_state), p_dev_rec->sm4, in btm_sec_bond_by_transport()
1644 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_check_upgrade()
1751 btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_l2cap_access_req()
1759 (BTM_SM4_KNOWN == p_dev_rec->sm4) || in btm_sec_l2cap_access_req()
1760 (BTM_SEC_IS_SM4(p_dev_rec->sm4) && in btm_sec_l2cap_access_req()
1834 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_l2cap_access_req()
1846 } else if (!(BTM_SM4_KNOWN & p_dev_rec->sm4)) { in btm_sec_l2cap_access_req()
1852 p_dev_rec->sm4 |= BTM_SM4_REQ_PEND; in btm_sec_l2cap_access_req()
1859 p_dev_rec->sm4, p_dev_rec->sec_flags, security_required, in btm_sec_l2cap_access_req()
1871 BTM_TRACE_DEBUG("no next_serv sm4:0x%x, chk:%d", p_dev_rec->sm4, in btm_sec_l2cap_access_req()
1873 if (!BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_l2cap_access_req()
1897 !BTM_SEC_IS_SM4(p_dev_rec->sm4)) && in btm_sec_l2cap_access_req()
1951 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_l2cap_access_req()
1957 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_l2cap_access_req()
2069 (BTM_SM4_KNOWN == p_dev_rec->sm4) || in btm_sec_mx_access_request()
2070 (BTM_SEC_IS_SM4(p_dev_rec->sm4) && in btm_sec_mx_access_request()
2185 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_mx_access_request()
2191 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_mx_access_request()
2302 p_dev_rec->sm4 |= BTM_SM4_CONN_PEND; in btm_sec_conn_req()
2696 __func__, p_dev_rec->sm4, status); in btm_sec_rmt_name_request_complete()
2714 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) { in btm_sec_rmt_name_request_complete()
2721 p_dev_rec->sm4 |= BTM_SM4_KNOWN; in btm_sec_rmt_name_request_complete()
2725 __func__, p_dev_rec->sm4, in btm_sec_rmt_name_request_complete()
2726 BTM_SEC_IS_SM4_LEGACY(p_dev_rec->sm4), in btm_sec_rmt_name_request_complete()
2727 BTM_SEC_IS_SM4(p_dev_rec->sm4), in btm_sec_rmt_name_request_complete()
2728 BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)); in btm_sec_rmt_name_request_complete()
2735 if ((p_dev_rec->sm4 != BTM_SM4_KNOWN) || in btm_sec_rmt_name_request_complete()
2812 if (p_dev_rec->sm4 & BTM_SM4_REQ_PEND) { in btm_sec_rmt_name_request_complete()
2847 p_dev_rec->sm4, p[0]); in btm_sec_rmt_host_support_feat_evt()
2849 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) { in btm_sec_rmt_host_support_feat_evt()
2850 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_rmt_host_support_feat_evt()
2853 p_dev_rec->sm4 = BTM_SM4_TRUE; in btm_sec_rmt_host_support_feat_evt()
2857 p_dev_rec->sm4, features[0]); in btm_sec_rmt_host_support_feat_evt()
2905 p_dev_rec->sm4 |= BTM_SM4_TRUE; in btm_io_capabilities_req()
3006 if (p_dev_rec->sm4 & BTM_SM4_UPGRADE) { in btm_io_capabilities_req()
3007 p_dev_rec->sm4 &= ~BTM_SM4_UPGRADE; in btm_io_capabilities_req()
3477 uint8_t old_sm4 = p_dev_rec->sm4; in btm_sec_auth_retry()
3478 p_dev_rec->sm4 &= ~BTM_SM4_RETRY; in btm_sec_auth_retry()
3482 BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_auth_retry()
3489 p_dev_rec->sm4 |= BTM_SM4_RETRY; in btm_sec_auth_retry()
3492 p_dev_rec->sm4, p_dev_rec->sec_flags); in btm_sec_auth_retry()
3907 if (p_dev_rec->sm4 & BTM_SM4_CONN_PEND) { in btm_sec_connected()
3921 p_dev_rec->sm4 &= ~BTM_SM4_CONN_PEND; in btm_sec_connected()
3946 p_dev_rec->sm4 &= ~BTM_SM4_CONN_PEND; in btm_sec_connected()
3967 btm_cb.pairing_flags, p_dev_rec->sm4); in btm_sec_connected()
3970 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) { in btm_sec_connected()
4235 p_dev_rec->sm4 &= BTM_SM4_TRUE; in btm_sec_disconnected()
4639 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_pin_code_request()
5489 p_dev_rec->sm4 = BTM_SM4_TRUE; in btm_sec_set_peer_sec_caps()
5493 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_set_peer_sec_caps()
5498 __func__, p_dev_rec->sm4, in btm_sec_set_peer_sec_caps()