Home
last modified time | relevance | path

Searched refs:lcid (Results 1 – 25 of 38) sorted by relevance

12

/system/bt/stack/rfcomm/
Drfc_l2cap_if.c43 static void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
44 static void RFCOMM_ConnectCnf (UINT16 lcid, UINT16 err);
45 static void RFCOMM_ConfigInd (UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
46 static void RFCOMM_ConfigCnf (UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
47 static void RFCOMM_DisconnectInd (UINT16 lcid, BOOLEAN is_clear);
49 static void RFCOMM_BufDataInd (UINT16 lcid, BT_HDR *p_buf);
50 static void RFCOMM_CongestionStatusInd (UINT16 lcid, BOOLEAN is_congested);
91 void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) in RFCOMM_ConnectInd() argument
101 p_mcb->pending_lcid = lcid; in RFCOMM_ConnectInd()
108 p_mcb->lcid, p_mcb->pending_lcid); in RFCOMM_ConnectInd()
[all …]
Drfc_mx_fsm.c124 UINT16 lcid = L2CA_ConnectReq(BT_PSM_RFCOMM, p_mcb->bd_addr); in rfc_mx_sm_state_idle() local
125 if (lcid == 0) { in rfc_mx_sm_state_idle()
126 rfc_save_lcid_mcb(NULL, p_mcb->lcid); in rfc_mx_sm_state_idle()
127 p_mcb->lcid = 0; in rfc_mx_sm_state_idle()
131 p_mcb->lcid = lcid; in rfc_mx_sm_state_idle()
133 rfc_save_lcid_mcb (p_mcb, p_mcb->lcid); in rfc_mx_sm_state_idle()
148 L2CA_ConnectRsp (p_mcb->bd_addr, *((UINT8 *)p_data), p_mcb->lcid, L2CAP_CONN_OK, 0); in rfc_mx_sm_state_idle()
218 L2CA_DisconnectReq (p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
228 rfc_save_lcid_mcb (NULL, p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
229 p_mcb->lcid = p_mcb->pending_lcid; in rfc_mx_sm_state_wait_conn_cnf()
[all …]
Drfc_utils.c207 rfc_save_lcid_mcb(NULL, p_mcb->lcid); in rfc_release_multiplexer_channel()
461 __func__, p_mcb, p_mcb->lcid, in rfc_check_send_cmd()
462 rfc_find_lcid_mcb(p_mcb->lcid)); in rfc_check_send_cmd()
472 L2CA_DataWrite(p_mcb->lcid, p); in rfc_check_send_cmd()
Drfc_int.h312 tRFC_MCB *rfc_find_lcid_mcb (UINT16 lcid);
313 extern void rfc_save_lcid_mcb (tRFC_MCB *p_rfc_mcb, UINT16 lcid);
/system/bt/stack/avct/
Davct_l2c.c39 void avct_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
40 void avct_l2c_connect_cfm_cback(UINT16 lcid, UINT16 result);
41 void avct_l2c_config_cfm_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
42 void avct_l2c_config_ind_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
43 void avct_l2c_disconnect_ind_cback(UINT16 lcid, BOOLEAN ack_needed);
44 void avct_l2c_disconnect_cfm_cback(UINT16 lcid, UINT16 result);
45 void avct_l2c_congestion_ind_cback(UINT16 lcid, BOOLEAN is_congested);
46 void avct_l2c_data_ind_cback(UINT16 lcid, BT_HDR *p_buf);
104 void avct_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) in avct_l2c_connect_ind_cback() argument
140 lcid, result, p_lcb->ch_state); in avct_l2c_connect_ind_cback()
[all …]
Davct_lcb.c387 tAVCT_LCB *avct_lcb_by_lcid(UINT16 lcid) in avct_lcb_by_lcid() argument
394 if (p_lcb->allocated && ((p_lcb->ch_lcid == lcid) || (p_lcb->conflict_lcid == lcid))) in avct_lcb_by_lcid()
404 AVCT_TRACE_WARNING("No lcb for lcid %x", lcid); in avct_lcb_by_lcid()
Davct_int.h153 extern tAVCT_BCB *avct_bcb_by_lcid(UINT16 lcid);
158 extern tAVCT_LCB *avct_lcb_by_lcid(UINT16 lcid);
/system/bt/stack/avdt/
Davdt_l2c.c39 void avdt_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
40 void avdt_l2c_connect_cfm_cback(UINT16 lcid, UINT16 result);
41 void avdt_l2c_config_cfm_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
42 void avdt_l2c_config_ind_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
43 void avdt_l2c_disconnect_ind_cback(UINT16 lcid, BOOLEAN ack_needed);
44 void avdt_l2c_disconnect_cfm_cback(UINT16 lcid, UINT16 result);
45 void avdt_l2c_congestion_ind_cback(UINT16 lcid, BOOLEAN is_congested);
46 void avdt_l2c_data_ind_cback(UINT16 lcid, BT_HDR *p_buf);
97 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK); in avdt_sec_check_complete_term()
100 avdt_cb.ad.lcid_tbl[p_tbl->lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_sec_check_complete_term()
[all …]
Davdt_ad.c203 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_lcid(UINT16 lcid) in avdt_ad_tc_tbl_by_lcid() argument
207 idx = avdt_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID]; in avdt_ad_tc_tbl_by_lcid()
383 …L2CA_SetTxPriority(avdt_cb.ad.rt_tbl[p_tbl->ccb_idx][AVDT_CHAN_SIG].lcid, L2CAP_CHNL_PRIORITY_HIGH… in avdt_ad_tc_open_ind()
405 open.lcid = avdt_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].lcid; in avdt_ad_tc_open_ind()
517 return L2CA_DataWrite(avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, p_buf); in avdt_ad_write_req()
540 UINT16 lcid; in avdt_ad_open_req() local
583 if ((lcid = L2CA_ConnectReq(AVDT_PSM, p_ccb->peer_addr)) != 0) in avdt_ad_open_req()
586 avdt_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_ad_open_req()
588 (lcid - L2CAP_BASE_APPL_CID), avdt_ad_tc_tbl_to_idx(p_tbl)); in avdt_ad_open_req()
590 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = lcid; in avdt_ad_open_req()
[all …]
Davdt_api.c1085 UINT16 lcid = 0; in AVDT_GetL2CapChannel() local
1094 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid; in AVDT_GetL2CapChannel()
1097 return (lcid); in AVDT_GetL2CapChannel()
1114 UINT16 lcid = 0; in AVDT_GetSignalChannel() local
1120 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid; in AVDT_GetSignalChannel()
1124 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid; in AVDT_GetSignalChannel()
1127 return (lcid); in AVDT_GetSignalChannel()
Davdt_scb_act.c1898 UINT16 lcid; in avdt_scb_clr_pkt() local
1910 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid; in avdt_scb_clr_pkt()
1911 L2CA_FlushChannel (lcid, L2CAP_FLUSH_CHANS_ALL); in avdt_scb_clr_pkt()
1982 …dt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_scb->p_ccb)][avdt_ad_type_to_tcid(AVDT_CHAN_MEDIA, p_scb)].lcid), in avdt_scb_chk_snd_pkt()
2076 UINT16 lcid; in avdt_scb_queue_frags() local
2088 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_scb->p_ccb)][tcid].lcid; in avdt_scb_queue_frags()
2101 num_frag = L2CA_FlushChannel(lcid, L2CAP_FLUSH_CHANS_GET); in avdt_scb_queue_frags()
2102 AVDT_TRACE_DEBUG("num_q=%d lcid=%d", num_frag, lcid); in avdt_scb_queue_frags()
/system/bt/stack/mcap/
Dmca_l2c.c85 MCA_TRACE_DEBUG ("lcid:x%x id:x%x", p_tbl->lcid, p_tbl->id); in mca_sec_check_complete_term()
94 … L2CA_ErtmConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK, &ertm_info); in mca_sec_check_complete_term()
101 L2CA_ConfigReq(p_tbl->lcid, &cfg); in mca_sec_check_complete_term()
105 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK); in mca_sec_check_complete_term()
136 L2CA_ConfigReq(p_tbl->lcid, &cfg); in mca_sec_check_complete_orig()
140 L2CA_DisconnectReq (p_tbl->lcid); in mca_sec_check_complete_orig()
153 void mca_l2c_cconn_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) in mca_l2c_cconn_ind_cback() argument
163 MCA_TRACE_EVENT ("mca_l2c_cconn_ind_cback: lcid:x%x psm:x%x id:x%x", lcid, psm, id); in mca_l2c_cconn_ind_cback()
172 p_ccb->lcid = lcid; in mca_l2c_cconn_ind_cback()
203 L2CA_ErtmConnectRsp (bd_addr, id, lcid, result, L2CAP_CONN_OK, p_ertm_info); in mca_l2c_cconn_ind_cback()
[all …]
Dmca_int.h59 UINT16 lcid; /* L2CAP LCID */ member
66 UINT16 lcid; /* L2CAP LCID */ member
170 UINT16 lcid; /* L2CAP LCID */ member
215 UINT16 lcid; /* L2CAP lcid for this control channel */ member
247 UINT16 lcid; /* L2CAP lcid */ member
309 extern tMCA_TC_TBL * mca_tc_tbl_by_lcid(UINT16 lcid);
310 extern void mca_free_tc_tbl_by_lcid(UINT16 lcid);
328 extern void mca_l2c_cconn_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
329 extern void mca_l2c_dconn_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
330 extern void mca_l2c_connect_cfm_cback(UINT16 lcid, UINT16 result);
[all …]
Dmca_main.c146 p_tbl->lcid = p_ccb->lcid; in mca_tc_tbl_calloc()
147 mca_cb.tc.lcid_tbl[p_ccb->lcid - L2CAP_BASE_APPL_CID] = i; in mca_tc_tbl_calloc()
187 p_tbl->lcid = p_dcb->lcid; in mca_tc_tbl_dalloc()
188 mca_cb.tc.lcid_tbl[p_dcb->lcid - L2CAP_BASE_APPL_CID] = i; in mca_tc_tbl_dalloc()
204 tMCA_TC_TBL *mca_tc_tbl_by_lcid(UINT16 lcid) in mca_tc_tbl_by_lcid() argument
208 if (lcid) in mca_tc_tbl_by_lcid()
210 idx = mca_cb.tc.lcid_tbl[lcid - L2CAP_BASE_APPL_CID]; in mca_tc_tbl_by_lcid()
230 void mca_free_tc_tbl_by_lcid(UINT16 lcid) in mca_free_tc_tbl_by_lcid() argument
234 if (lcid) in mca_free_tc_tbl_by_lcid()
236 idx = mca_cb.tc.lcid_tbl[lcid - L2CAP_BASE_APPL_CID]; in mca_free_tc_tbl_by_lcid()
[all …]
Dmca_dact.c123 if ((p_dcb->lcid == 0) || (L2CA_DisconnectReq(p_dcb->lcid) == FALSE)) in mca_dcb_do_disconn()
127 close.lcid = 0; in mca_dcb_do_disconn()
146 status = L2CA_DataWrite (p_dcb->lcid, p_data->p_pkt); in mca_dcb_snd_data()
Dmca_api.c357 p_ccb->lcid = mca_l2c_open_req(bd_addr, p_ccb->ctrl_vpsm, NULL); in MCA_ConnectReq()
358 if (p_ccb->lcid) in MCA_ConnectReq()
747 p_dcb->lcid = mca_l2c_open_req(p_ccb->peer_addr, p_ccb->data_vpsm, p_dcb->p_chnl_cfg); in MCA_DataChnlCfg()
748 if (p_dcb->lcid) in MCA_DataChnlCfg()
898 UINT16 lcid = 0; in MCA_GetL2CapChannel() local
903 lcid = p_dcb->lcid; in MCA_GetL2CapChannel()
904 return lcid; in MCA_GetL2CapChannel()
Dmca_cact.c137 L2CA_DataWrite (p_ccb->lcid, p_pkt); in mca_ccb_snd_req()
200 L2CA_DataWrite(p_ccb->lcid, p_pkt); in mca_ccb_snd_rsp()
217 L2CA_DisconnectReq(p_ccb->lcid); in mca_ccb_do_disconn()
421 L2CA_DataWrite (p_ccb->lcid, p_buf); in mca_ccb_hdl_req()
503 … p_dcb->lcid = mca_l2c_open_req(p_ccb->peer_addr, p_ccb->data_vpsm, p_dcb->p_chnl_cfg); in mca_ccb_hdl_rsp()
504 if (p_dcb->lcid) in mca_ccb_hdl_rsp()
Dmca_dsm.c272 if (p_data->close.lcid) in mca_dcb_dealloc()
275 mca_free_tc_tbl_by_lcid (p_dcb->lcid); in mca_dcb_dealloc()
/system/bt/stack/gatt/
Dgatt_main.c614 static void gatt_l2cif_connect_ind_cback (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) in gatt_l2cif_connect_ind_cback() argument
622 GATT_TRACE_ERROR("Connection indication cid = %d", lcid); in gatt_l2cif_connect_ind_cback()
633 p_tcb->att_lcid = lcid; in gatt_l2cif_connect_ind_cback()
642 L2CA_ConnectRsp(bd_addr, id, lcid, result, 0); in gatt_l2cif_connect_ind_cback()
655 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_ind_cback()
669 static void gatt_l2cif_connect_cfm_cback(UINT16 lcid, UINT16 result) in gatt_l2cif_connect_cfm_cback() argument
675 if ((p_tcb = gatt_find_tcb_by_cid(lcid)) != NULL) in gatt_l2cif_connect_cfm_cback()
692 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_cfm_cback()
705 L2CA_DisconnectReq(lcid); in gatt_l2cif_connect_cfm_cback()
721 void gatt_l2cif_config_cfm_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg) in gatt_l2cif_config_cfm_cback() argument
[all …]
/system/bt/stack/l2cap/
Dl2c_api.c559 BOOLEAN L2CA_ConnectLECocRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, UINT16 result, in L2CA_ConnectLECocRsp() argument
563 __func__, lcid, result, status, in L2CA_ConnectLECocRsp()
577 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in L2CA_ConnectLECocRsp()
620 BOOLEAN L2CA_GetPeerLECocConfig (UINT16 lcid, tL2CAP_LE_CFG_INFO* peer_cfg) in L2CA_GetPeerLECocConfig() argument
622 L2CAP_TRACE_API ("%s CID: 0x%04x", __func__, lcid); in L2CA_GetPeerLECocConfig()
624 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid(NULL, lcid); in L2CA_GetPeerLECocConfig()
627 L2CAP_TRACE_ERROR("%s No CCB for CID:0x%04x", __func__, lcid); in L2CA_GetPeerLECocConfig()
683 BOOLEAN L2CA_ConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, in L2CA_ConnectRsp() argument
686 return L2CA_ErtmConnectRsp (p_bd_addr, id, lcid, result, status, NULL); in L2CA_ConnectRsp()
700 BOOLEAN L2CA_ErtmConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, UINT16 result, in L2CA_ErtmConnectRsp() argument
[all …]
Dl2c_main.c277 UINT16 rej_reason, rej_mtu, lcid, rcid, info_type; in process_l2cap_cmd() local
353 STREAM_TO_UINT16 (lcid, p); in process_l2cap_cmd()
355 … L2CAP_TRACE_WARNING ("L2CAP - rej with CID invalid, LCID: 0x%04x RCID: 0x%04x", lcid, rcid); in process_l2cap_cmd()
358 if (((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL) in process_l2cap_cmd()
416 STREAM_TO_UINT16 (lcid, p); in process_l2cap_cmd()
420 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) == NULL) in process_l2cap_cmd()
423 lcid, con_info.remote_cid); in process_l2cap_cmd()
447 STREAM_TO_UINT16 (lcid, p); in process_l2cap_cmd()
529 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL) in process_l2cap_cmd()
550 STREAM_TO_UINT16 (lcid, p); in process_l2cap_cmd()
[all …]
Dl2c_ble.c626 UINT16 lcid = 0, rcid = 0, mtu = 0, mps = 0, initial_credit = 0; in l2cble_process_sig_cmd() local
819 STREAM_TO_UINT16(lcid, p); in l2cble_process_sig_cmd()
820 if((p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, lcid)) == NULL) in l2cble_process_sig_cmd()
822 L2CAP_TRACE_DEBUG ("%s Credit received for unknown channel id %d", __func__, lcid); in l2cble_process_sig_cmd()
832 STREAM_TO_UINT16 (lcid, p); in l2cble_process_sig_cmd()
835 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL) in l2cble_process_sig_cmd()
844 l2cu_send_peer_disc_rsp (p_lcb, id, lcid, rcid); in l2cble_process_sig_cmd()
850 STREAM_TO_UINT16 (lcid, p); in l2cble_process_sig_cmd()
852 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL) in l2cble_process_sig_cmd()
/system/bt/stack/include/
Dl2c_api.h420 extern BOOLEAN L2CA_ConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid,
492 extern BOOLEAN L2CA_ConnectLECocRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, UINT16 result,
504 extern BOOLEAN L2CA_GetPeerLECocConfig (UINT16 lcid, tL2CAP_LE_CFG_INFO* peer_cfg);
525 extern BOOLEAN L2CA_ErtmConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid,
615 bool L2CA_GetIdentifiers(uint16_t lcid, uint16_t *rcid, uint16_t *handle);
712 extern UINT16 L2CA_FlushChannel (UINT16 lcid, UINT16 num_to_flush);
882 extern UINT8 L2CA_GetChnlFcrMode (UINT16 lcid);
1150 extern BOOLEAN L2CA_GetCurrentConfig (UINT16 lcid,
1164 extern BOOLEAN L2CA_GetConnectionConfig(UINT16 lcid, UINT16 *mtu, UINT16 *rcid, UINT16 *handle);
/system/bt/bta/hf_client/
Dbta_hf_client_act.c266 UINT16 lcid; in bta_hf_client_rfc_acp_open() local
277 if (PORT_SUCCESS != (status=PORT_CheckConnection(p_data->rfc.port_handle, dev_addr, &lcid))) in bta_hf_client_rfc_acp_open()
/system/bt/stack/gap/
Dgap_conn.c40 static void gap_congestion_ind (UINT16 lcid, BOOLEAN is_congested);
1063 static void gap_congestion_ind (UINT16 lcid, BOOLEAN is_congested) in gap_congestion_ind() argument
1071 is_congested, lcid); in gap_congestion_ind()
1074 if ((p_ccb = gap_find_ccb_by_cid (lcid)) == NULL) in gap_congestion_ind()

12