Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 27) sorted by relevance

12

/system/bt/btif/co/
Dbta_pan_co.c80 btpan_conn_t* conn = btpan_find_conn_addr(peer_addr); in bta_pan_co_open() local
81 if(conn == NULL) in bta_pan_co_open()
82 conn = btpan_new_conn(handle, peer_addr, local_role, peer_role); in bta_pan_co_open()
83 if(conn) in bta_pan_co_open()
87 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, handle, in bta_pan_co_open()
88 conn->local_role, conn->remote_role); in bta_pan_co_open()
92 conn->handle = handle; in bta_pan_co_open()
103 conn->state = PAN_STATE_OPEN; in bta_pan_co_open()
123 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_close() local
124 if(conn && conn->state == PAN_STATE_OPEN) in bta_pan_co_close()
[all …]
/system/bt/stack/hid/
Dhidh_conn.c114 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg()
131 tHID_CONN *p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect()
172 if( res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY ) in hidh_sec_check_complete_term()
174 …p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset disc_reason (from HID_ERR_… in hidh_sec_check_complete_term()
176 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidh_sec_check_complete_term()
179 …L2CA_ConnectRsp (p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, L2CAP_CONN_OK, L2CAP_CONN… in hidh_sec_check_complete_term()
182 L2CA_ConfigReq (p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_term()
188 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; /* Save reason for disconnecting */ in hidh_sec_check_complete_term()
189 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_sec_check_complete_term()
190 …L2CA_ConnectRsp (p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, L2CAP_CONN_SECURITY_BLOCK… in hidh_sec_check_complete_term()
[all …]
Dhidh_api.c398 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev()
399 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev()
493 btu_stop_timer( &(hh_cb.devices[dev_handle].conn.timer_entry) ) ; in HID_HostCloseDev()
Dhidh_int.h47 tHID_CONN conn; /* L2CAP channel info */ member
/system/bt/btif/src/
Dbtif_pan.c99 static void btpan_cleanup_conn(btpan_conn_t* conn);
252 btpan_conn_t* conn = btpan_find_conn_addr(bd_addr->address); in btif_in_pan_generic_evt() local
255 asrt(conn != NULL); in btif_in_pan_generic_evt()
256 if (conn) { in btif_in_pan_generic_evt()
257 btpan_conn_local_role = bta_role_to_btpan(conn->local_role); in btif_in_pan_generic_evt()
258 btpan_remote_role = bta_role_to_btpan(conn->remote_role); in btif_in_pan_generic_evt()
260 (const bt_bdaddr_t*)conn->peer, btpan_conn_local_role, btpan_remote_role); in btif_in_pan_generic_evt()
273 btpan_conn_t* conn = btpan_find_conn_addr(bd_addr->address); in btpan_disconnect() local
274 if (conn && conn->handle >= 0) in btpan_disconnect()
276 BTA_PanClose(conn->handle); in btpan_disconnect()
[all …]
Dbtif_hh.c768 …%s: BTA_HH_OPN_EVT: handle=%d, status =%d",__FUNCTION__, p_data->conn.handle, p_data->conn.status); in btif_hh_upstreams_evt()
769 if (p_data->conn.status == BTA_HH_OK) { in btif_hh_upstreams_evt()
770 p_dev = btif_hh_find_connected_dev_by_handle(p_data->conn.handle); in btif_hh_upstreams_evt()
772 …IF_TRACE_WARNING("BTA_HH_OPEN_EVT: Error, cannot find device with handle %d", p_data->conn.handle); in btif_hh_upstreams_evt()
776 BTA_HhClose(p_data->conn.handle); in btif_hh_upstreams_evt()
777 …HAL_CBACK(bt_hh_callbacks, connection_state_cb, (bt_bdaddr_t*) &p_data->conn.bda,BTHH_CONN_STATE_D… in btif_hh_upstreams_evt()
781 memcpy(&(p_dev->bd_addr), p_data->conn.bda, BD_ADDR_LEN); in btif_hh_upstreams_evt()
784 BTA_HhClose(p_data->conn.handle); in btif_hh_upstreams_evt()
787 …WARNING("BTA_HH_OPEN_EVT: Found device...Getting dscp info for handle ... %d",p_data->conn.handle); in btif_hh_upstreams_evt()
788 memcpy(&(p_dev->bd_addr), p_data->conn.bda, BD_ADDR_LEN); in btif_hh_upstreams_evt()
[all …]
Dbtif_gatt_server.c195 bdcpy(bda.address, p_data->conn.remote_bda); in btapp_gatts_handle_cback()
197 btif_gatt_check_encrypted_link(p_data->conn.remote_bda, p_data->conn.transport); in btapp_gatts_handle_cback()
200 p_data->conn.conn_id, p_data->conn.server_if, TRUE, &bda); in btapp_gatts_handle_cback()
207 bdcpy(bda.address, p_data->conn.remote_bda); in btapp_gatts_handle_cback()
210 p_data->conn.conn_id, p_data->conn.server_if, FALSE, &bda); in btapp_gatts_handle_cback()
Dbtif_hf_client.c782 btif_hf_client_cb.peer_feat = p_data->conn.peer_feat; in btif_hf_client_upstreams_evt()
783 btif_hf_client_cb.chld_feat = p_data->conn.chld_feat; in btif_hf_client_upstreams_evt()
/system/bt/stack/gap/
Dgap_conn.c58 gap_cb.conn.reg_info.pAMP_ConnectInd_Cb = gap_connect_ind; in gap_conn_init()
59 gap_cb.conn.reg_info.pAMP_ConnectCfm_Cb = gap_connect_cfm; in gap_conn_init()
60 gap_cb.conn.reg_info.pAMP_ConnectPnd_Cb = NULL; in gap_conn_init()
61 gap_cb.conn.reg_info.pAMP_ConfigInd_Cb = gap_config_ind; in gap_conn_init()
62 gap_cb.conn.reg_info.pAMP_ConfigCfm_Cb = gap_config_cfm; in gap_conn_init()
63 gap_cb.conn.reg_info.pAMP_DisconnectInd_Cb = gap_disconnect_ind; in gap_conn_init()
64 gap_cb.conn.reg_info.pAMP_DisconnectCfm_Cb = NULL; in gap_conn_init()
65 gap_cb.conn.reg_info.pAMP_QoSViolationInd_Cb = NULL; in gap_conn_init()
66 gap_cb.conn.reg_info.pAMP_DataInd_Cb = gap_data_ind; in gap_conn_init()
67 gap_cb.conn.reg_info.pAMP_CongestionStatus_Cb = gap_congestion_ind; in gap_conn_init()
[all …]
Dgap_int.h142 tGAP_CONN conn; member
/system/bt/bta/hh/
Dbta_hh_act.c555 tBTA_HH_CONN conn ; in bta_hh_open_cmpl_act() local
559 memset((void *)&conn, 0, sizeof (tBTA_HH_CONN)); in bta_hh_open_cmpl_act()
560 conn.handle = dev_handle; in bta_hh_open_cmpl_act()
561 bdcpy(conn.bda, p_cb->addr); in bta_hh_open_cmpl_act()
571 conn.status = p_cb->status; in bta_hh_open_cmpl_act()
572 conn.le_hid = p_cb->is_le_device; in bta_hh_open_cmpl_act()
573 conn.scps_supported = p_cb->scps_supported; in bta_hh_open_cmpl_act()
594 conn.status = BTA_HH_ERR_PROTO; in bta_hh_open_cmpl_act()
595 (* bta_hh_cb.p_cback)(BTA_HH_OPEN_EVT, (tBTA_HH *)&conn); in bta_hh_open_cmpl_act()
599 conn.status = BTA_HH_OK; in bta_hh_open_cmpl_act()
[all …]
Dbta_hh_main.c300 bdcpy(cback_data.conn.bda, ((tBTA_HH_API_CONN *)p_data)->bd_addr); in bta_hh_sm_execute()
301 cback_data.conn.status = BTA_HH_ERR_DB_FULL; in bta_hh_sm_execute()
302 cback_data.conn.handle = BTA_HH_INVALID_HANDLE; in bta_hh_sm_execute()
/system/bt/bta/gatt/
Dbta_gatts_act.c947 cb_data.conn.conn_id = conn_id; in bta_gatts_conn_cback()
948 cb_data.conn.server_if = gatt_if; in bta_gatts_conn_cback()
949 cb_data.conn.reason = reason; in bta_gatts_conn_cback()
950 cb_data.conn.transport = transport; in bta_gatts_conn_cback()
951 memcpy(cb_data.conn.remote_bda, bda, BD_ADDR_LEN); in bta_gatts_conn_cback()
/system/bt/stack/btm/
Dbtm_acl.c1226 evt_data.conn.p_bda = p_acl_cb->remote_addr; in btm_establish_continue()
1227 evt_data.conn.p_bdn = p_acl_cb->remote_name; in btm_establish_continue()
1228 evt_data.conn.p_dc = p_acl_cb->remote_dc; in btm_establish_continue()
1229 evt_data.conn.p_features = p_acl_cb->peer_lmp_features[HCI_EXT_FEATURES_PAGE_0]; in btm_establish_continue()
1231 evt_data.conn.handle = p_acl_cb->hci_handle; in btm_establish_continue()
1232 evt_data.conn.transport = p_acl_cb->transport; in btm_establish_continue()
2506 evt_data.conn.p_bda = bda; in btm_acl_notif_conn_collision()
2509 evt_data.conn.transport = BT_TRANSPORT_BR_EDR; in btm_acl_notif_conn_collision()
2510 evt_data.conn.handle = BTM_INVALID_HCI_HANDLE; in btm_acl_notif_conn_collision()
/system/bt/bta/pan/
Dbta_pan_int.h134 tBTA_PAN_CONN conn; member
Dbta_pan_act.c547 APPL_TRACE_DEBUG("%s pan connection result: %d", __func__, p_data->conn.result); in bta_pan_conn_open()
554 if(p_data->conn.result == PAN_SUCCESS) in bta_pan_conn_open()
/system/bt/bta/dm/
Dbta_dm_act.c3096 bdcpy(p_msg->bd_addr, p_data->conn.p_bda); in bta_dm_bl_change_cback()
3098 p_msg->transport = p_data->conn.transport; in bta_dm_bl_change_cback()
3099 p_msg->handle = p_data->conn.handle; in bta_dm_bl_change_cback()
3119 bdcpy(p_msg->bd_addr, p_data->conn.p_bda); in bta_dm_bl_change_cback()
3263 tBTA_DM_SEC conn; in bta_dm_acl_change() local
3270 memset(&conn, 0, sizeof(tBTA_DM_SEC)); in bta_dm_acl_change()
3277 conn.busy_level.level = p_data->acl_change.busy_level; in bta_dm_acl_change()
3278 conn.busy_level.level_flags = p_data->acl_change.busy_level_flags; in bta_dm_acl_change()
3279 bta_dm_cb.p_sec_cback(BTA_DM_BUSY_LEVEL_EVT, &conn); in bta_dm_acl_change()
3319 bdcpy(conn.role_chg.bd_addr, p_bda); in bta_dm_acl_change()
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_act.c553 evt.conn.peer_feat = bta_hf_client_cb.scb.peer_features; in bta_hf_client_svc_conn_open()
554 evt.conn.chld_feat = bta_hf_client_cb.scb.chld_features; in bta_hf_client_svc_conn_open()
/system/bt/bta/include/
Dbta_hf_client_api.h236 tBTA_HF_CLIENT_CONN conn; member
Dbta_ag_api.h317 tBTA_AG_CONN conn; member
Dbta_hh_api.h296 tBTA_HH_CONN conn; /* BTA_HH_OPEN_EVT */ member
Dbta_gatt_api.h616 tBTA_GATTS_CONN conn; /* BTA_GATTS_CONN_EVT */ member
/system/bt/stack/include/
Davrc_api.h161 UINT8 conn; /* Connection role (Initiator/acceptor) */ member
/system/bt/bta/av/
Dbta_av_act.c329 ccb.conn = role; in bta_av_rc_create()
1812 BOOLEAN conn = FALSE; in bta_av_rc_closed() local
1876 conn = TRUE; in bta_av_rc_closed()
1880 if(!conn) in bta_av_rc_closed()
/system/bt/stack/avrc/
Davrc_api.c925 cc.role = p_ccb->conn; /* Initiator/acceptor role */ in AVRC_Open()

12