Lines Matching refs:sm4
695 else if (p_dev_rec->sm4 & BTM_SM4_CONN_PEND) { in BTM_PINCodeReply()
822 p_dev_rec->sm4, p_dev_rec->hci_handle); in btm_sec_bond_by_transport()
839 BTM_TRACE_DEBUG("sec mode: %d sm4:x%x", btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_bond_by_transport()
841 (p_dev_rec->sm4 == BTM_SM4_KNOWN)) { in btm_sec_bond_by_transport()
846 BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) { in btm_sec_bond_by_transport()
848 if ((p_dev_rec->sm4 & BTM_SM4_CONN_PEND) == 0) { in btm_sec_bond_by_transport()
860 btm_pair_state_descr(btm_cb.pairing_state), p_dev_rec->sm4, in btm_sec_bond_by_transport()
1480 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_check_upgrade()
1537 (BTM_SM4_KNOWN == p_dev_rec->sm4) || in btm_sec_l2cap_access_req_by_requirement()
1538 (BTM_SEC_IS_SM4(p_dev_rec->sm4) && in btm_sec_l2cap_access_req_by_requirement()
1592 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_l2cap_access_req_by_requirement()
1604 } else if (!(BTM_SM4_KNOWN & p_dev_rec->sm4)) { in btm_sec_l2cap_access_req_by_requirement()
1610 p_dev_rec->sm4 |= BTM_SM4_REQ_PEND; in btm_sec_l2cap_access_req_by_requirement()
1617 p_dev_rec->sm4, p_dev_rec->sec_flags, security_required, in btm_sec_l2cap_access_req_by_requirement()
1654 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_l2cap_access_req_by_requirement()
1660 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_l2cap_access_req_by_requirement()
1791 (BTM_SM4_KNOWN == p_dev_rec->sm4) || in btm_sec_mx_access_request()
1792 (BTM_SEC_IS_SM4(p_dev_rec->sm4) && in btm_sec_mx_access_request()
1880 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_mx_access_request()
1886 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_mx_access_request()
1960 p_dev_rec->sm4 |= BTM_SM4_CONN_PEND; in btm_sec_conn_req()
2302 __func__, p_dev_rec->sm4, status); in btm_sec_rmt_name_request_complete()
2316 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) { in btm_sec_rmt_name_request_complete()
2323 p_dev_rec->sm4 |= BTM_SM4_KNOWN; in btm_sec_rmt_name_request_complete()
2327 __func__, p_dev_rec->sm4, in btm_sec_rmt_name_request_complete()
2328 BTM_SEC_IS_SM4_LEGACY(p_dev_rec->sm4), in btm_sec_rmt_name_request_complete()
2329 BTM_SEC_IS_SM4(p_dev_rec->sm4), in btm_sec_rmt_name_request_complete()
2330 BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)); in btm_sec_rmt_name_request_complete()
2337 if ((p_dev_rec->sm4 != BTM_SM4_KNOWN) || in btm_sec_rmt_name_request_complete()
2395 if (p_dev_rec->sm4 & BTM_SM4_REQ_PEND) { in btm_sec_rmt_name_request_complete()
2430 p_dev_rec->sm4, p[0]); in btm_sec_rmt_host_support_feat_evt()
2432 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) { in btm_sec_rmt_host_support_feat_evt()
2433 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_rmt_host_support_feat_evt()
2436 p_dev_rec->sm4 = BTM_SM4_TRUE; in btm_sec_rmt_host_support_feat_evt()
2440 p_dev_rec->sm4, features[0]); in btm_sec_rmt_host_support_feat_evt()
2491 p_dev_rec->sm4 |= BTM_SM4_TRUE; in btm_io_capabilities_req()
2588 if (p_dev_rec->sm4 & BTM_SM4_UPGRADE) { in btm_io_capabilities_req()
2589 p_dev_rec->sm4 &= ~BTM_SM4_UPGRADE; in btm_io_capabilities_req()
3016 uint8_t old_sm4 = p_dev_rec->sm4; in btm_sec_auth_retry()
3017 p_dev_rec->sm4 &= ~BTM_SM4_RETRY; in btm_sec_auth_retry()
3021 BTM_SEC_IS_SM4(p_dev_rec->sm4)) { in btm_sec_auth_retry()
3028 p_dev_rec->sm4 |= BTM_SM4_RETRY; in btm_sec_auth_retry()
3031 p_dev_rec->sm4, p_dev_rec->sec_flags); in btm_sec_auth_retry()
3432 if (p_dev_rec->sm4 & BTM_SM4_CONN_PEND) { in btm_sec_connected()
3446 p_dev_rec->sm4 &= ~BTM_SM4_CONN_PEND; in btm_sec_connected()
3468 p_dev_rec->sm4 &= ~BTM_SM4_CONN_PEND; in btm_sec_connected()
3483 btm_cb.pairing_flags, p_dev_rec->sm4); in btm_sec_connected()
3486 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) { in btm_sec_connected()
3700 p_dev_rec->sm4 &= BTM_SM4_TRUE; in btm_sec_disconnected()
4110 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_pin_code_request()
4890 uint8_t req_pend = (p_dev_rec->sm4 & BTM_SM4_REQ_PEND); in btm_sec_set_peer_sec_caps()
4906 p_dev_rec->sm4 = BTM_SM4_TRUE; in btm_sec_set_peer_sec_caps()
4909 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_set_peer_sec_caps()