• Home
  • Raw
  • Download

Lines Matching refs:sec_id

68   uint8_t sec_id;  member
112 if (0 == bta_jv_cb.sec_id[i]) { in bta_jv_alloc_sec_id()
113 bta_jv_cb.sec_id[i] = BTA_JV_FIRST_SERVICE_ID + i; in bta_jv_alloc_sec_id()
114 ret = bta_jv_cb.sec_id[i]; in bta_jv_alloc_sec_id()
124 if (bta_jv_cb.sec_id[i]) used++; in get_sec_id_used()
153 uint8_t sec_id = *p_sec_id; in bta_jv_free_sec_id() local
155 if (sec_id >= BTA_JV_FIRST_SERVICE_ID && sec_id <= BTA_JV_LAST_SERVICE_ID) { in bta_jv_free_sec_id()
156 BTM_SecClrService(sec_id); in bta_jv_free_sec_id()
157 bta_jv_cb.sec_id[sec_id - BTA_JV_FIRST_SERVICE_ID] = 0; in bta_jv_free_sec_id()
332 bta_jv_free_sec_id(&p_cb->sec_id); in bta_jv_free_rfc_cb()
338 bta_jv_free_sec_id(&p_cb->sec_id); in bta_jv_free_rfc_cb()
363 bta_jv_free_sec_id(&p_cb->sec_id); in bta_jv_free_l2c_cb()
873 bta_jv_free_sec_id(&p_cb->sec_id); in bta_jv_l2cap_client_cback()
933 uint8_t sec_id = bta_jv_alloc_sec_id(); in bta_jv_l2cap_connect() local
935 evt_data.sec_id = sec_id; in bta_jv_l2cap_connect()
938 if (sec_id) { in bta_jv_l2cap_connect()
944 handle = GAP_ConnOpen("", sec_id, 0, &peer_bd_addr, remote_psm, max_mps, in bta_jv_l2cap_connect()
960 p_cb->sec_id = sec_id; in bta_jv_l2cap_connect()
963 bta_jv_free_sec_id(&sec_id); in bta_jv_l2cap_connect()
1090 uint8_t sec_id = bta_jv_alloc_sec_id(); in bta_jv_l2cap_start_server() local
1093 if (0 == sec_id || in bta_jv_l2cap_start_server()
1095 (handle = GAP_ConnOpen("JV L2CAP", sec_id, 1, nullptr, local_psm, max_mps, in bta_jv_l2cap_start_server()
1099 bta_jv_free_sec_id(&sec_id); in bta_jv_l2cap_start_server()
1105 evt_data.sec_id = sec_id; in bta_jv_l2cap_start_server()
1109 p_cb->sec_id = sec_id; in bta_jv_l2cap_start_server()
1340 uint8_t sec_id = bta_jv_alloc_sec_id(); in bta_jv_rfcomm_connect() local
1344 evt_data.sec_id = sec_id; in bta_jv_rfcomm_connect()
1346 if (0 == sec_id || in bta_jv_rfcomm_connect()
1347 !BTM_SetSecurityLevel(true, "", sec_id, sec_mask, BT_PSM_RFCOMM, in bta_jv_rfcomm_connect()
1350 LOG(ERROR) << __func__ << ": sec_id=" << +sec_id in bta_jv_rfcomm_connect()
1367 p_cb->sec_id = sec_id; in bta_jv_rfcomm_connect()
1393 if (sec_id) bta_jv_free_sec_id(&sec_id); in bta_jv_rfcomm_connect()
1601 if (RFCOMM_CreateConnection(p_cb->sec_id, p_cb->scn, true, in bta_jv_add_rfc_port()
1642 uint8_t sec_id = 0; in bta_jv_rfcomm_start_server() local
1656 sec_id = bta_jv_alloc_sec_id(); in bta_jv_rfcomm_start_server()
1658 if (0 == sec_id || in bta_jv_rfcomm_start_server()
1659 !BTM_SetSecurityLevel(false, "JV PORT", sec_id, sec_mask, BT_PSM_RFCOMM, in bta_jv_rfcomm_start_server()
1665 if (RFCOMM_CreateConnection(sec_id, local_scn, true, BTA_JV_DEF_RFC_MTU, in bta_jv_rfcomm_start_server()
1680 p_cb->sec_id = sec_id; in bta_jv_rfcomm_start_server()
1686 evt_data.sec_id = sec_id; in bta_jv_rfcomm_start_server()
1705 if (sec_id) bta_jv_free_sec_id(&sec_id); in bta_jv_rfcomm_start_server()
1952 uint8_t sec_id; in fcclient_alloc() local
1960 sec_id = *sec_id_to_use; in fcclient_alloc()
1962 sec_id = bta_jv_alloc_sec_id(); in fcclient_alloc()
1975 t->sec_id = sec_id; in fcclient_alloc()
2021 bta_jv_free_sec_id(&fc->sec_id); in fcclient_free()
2052 new_conn = fcclient_alloc(chan, false, &t->sec_id); in fcchan_conn_chng_cbk()
2077 init_evt.l2c_cl_init.sec_id = t->sec_id; in fcchan_conn_chng_cbk()
2224 evt_data.sec_id = t->sec_id; in bta_jv_l2cap_start_server_le()