Home
last modified time | relevance | path

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

12

/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/
Drfc_l2cap_if.c53 static void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
54 static void RFCOMM_ConnectCnf (UINT16 lcid, UINT16 err);
55 static void RFCOMM_ConfigInd (UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
56 static void RFCOMM_ConfigCnf (UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
57 static void RFCOMM_DisconnectInd (UINT16 lcid, BOOLEAN is_clear);
59 static void RFCOMM_BufDataInd (UINT16 lcid, BT_HDR *p_buf);
60 static void RFCOMM_CongestionStatusInd (UINT16 lcid, BOOLEAN is_congested);
101 void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) in RFCOMM_ConnectInd() argument
109 p_mcb->pending_lcid = lcid; in RFCOMM_ConnectInd()
116 p_mcb->lcid, p_mcb->pending_lcid); in RFCOMM_ConnectInd()
[all …]
Drfc_mx_fsm.c150 p_mcb->lcid = L2CA_ErtmConnectReq (BT_PSM_RFCOMM, p_mcb->bd_addr, ertm_opt); in rfc_mx_sm_state_idle()
152 if (p_mcb->lcid == 0) { in rfc_mx_sm_state_idle()
157 rfc_save_lcid_mcb (p_mcb, p_mcb->lcid); in rfc_mx_sm_state_idle()
173 … L2CA_ErtmConnectRsp (p_mcb->bd_addr, *((UINT8 *)p_data), p_mcb->lcid, L2CAP_CONN_OK, 0, ertm_opt); in rfc_mx_sm_state_idle()
241 L2CA_DisconnectReq (p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
250 rfc_save_lcid_mcb (NULL, p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
251 p_mcb->lcid = p_mcb->pending_lcid; in rfc_mx_sm_state_wait_conn_cnf()
252 rfc_save_lcid_mcb (p_mcb, p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
311 L2CA_DisconnectReq (p_mcb->lcid); in rfc_mx_sm_state_configure()
374 L2CA_DisconnectReq (p_mcb->lcid); in rfc_mx_sm_sabme_wait_ua()
[all …]
Drfc_utils.c492 __func__, p_mcb, p_mcb->lcid, in rfc_check_send_cmd()
493 rfc_find_lcid_mcb(p_mcb->lcid)); in rfc_check_send_cmd()
505 L2CA_DataWrite (p_mcb->lcid, p); in rfc_check_send_cmd()
Dport_utils.c296 i, &rfc_cb.port.rfc_mcb[i], rfc_cb.port.rfc_mcb[i].lcid); in port_find_mcb()
Drfc_ts_frames.c223 L2CA_DataWrite (p_mcb->lcid, p_buf); in rfc_send_buf_uih()
/hal_espressif-latest/components/bt/host/bluedroid/stack/avct/
Davct_l2c.c42 void avct_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
43 void avct_l2c_connect_cfm_cback(UINT16 lcid, UINT16 result);
44 void avct_l2c_config_cfm_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
45 void avct_l2c_config_ind_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
46 void avct_l2c_disconnect_ind_cback(UINT16 lcid, BOOLEAN ack_needed);
47 void avct_l2c_disconnect_cfm_cback(UINT16 lcid, UINT16 result);
48 void avct_l2c_congestion_ind_cback(UINT16 lcid, BOOLEAN is_congested);
49 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
133 lcid, result, p_lcb->ch_state); in avct_l2c_connect_ind_cback()
[all …]
Davct_lcb.c375 tAVCT_LCB *avct_lcb_by_lcid(UINT16 lcid) in avct_lcb_by_lcid() argument
381 if (p_lcb->allocated && ((p_lcb->ch_lcid == lcid) || (p_lcb->conflict_lcid == lcid))) { in avct_lcb_by_lcid()
389 AVCT_TRACE_WARNING("No lcb for lcid %x", lcid); in avct_lcb_by_lcid()
/hal_espressif-latest/components/bt/host/bluedroid/stack/avdt/
Davdt_l2c.c41 void avdt_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
42 void avdt_l2c_connect_cfm_cback(UINT16 lcid, UINT16 result);
43 void avdt_l2c_config_cfm_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
44 void avdt_l2c_config_ind_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg);
45 void avdt_l2c_disconnect_ind_cback(UINT16 lcid, BOOLEAN ack_needed);
46 void avdt_l2c_disconnect_cfm_cback(UINT16 lcid, UINT16 result);
47 void avdt_l2c_congestion_ind_cback(UINT16 lcid, BOOLEAN is_congested);
48 void avdt_l2c_data_ind_cback(UINT16 lcid, BT_HDR *p_buf);
98 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK); in avdt_sec_check_complete_term()
101 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.c186 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_lcid(UINT16 lcid) in avdt_ad_tc_tbl_by_lcid() argument
190 idx = avdt_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID]; in avdt_ad_tc_tbl_by_lcid()
359 …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()
378 open.lcid = avdt_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].lcid; in avdt_ad_tc_open_ind()
482 return L2CA_DataWrite(avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, p_buf); in avdt_ad_write_req()
505 UINT16 lcid; in avdt_ad_open_req() local
542 if ((lcid = L2CA_ConnectReq(AVDT_PSM, p_ccb->peer_addr)) != 0) { in avdt_ad_open_req()
544 avdt_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_ad_open_req()
546 (lcid - L2CAP_BASE_APPL_CID), avdt_ad_tc_tbl_to_idx(p_tbl)); in avdt_ad_open_req()
548 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = lcid; in avdt_ad_open_req()
[all …]
Davdt_api.c1041 UINT16 lcid = 0; in AVDT_GetL2CapChannel() local
1049 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid; in AVDT_GetL2CapChannel()
1052 return (lcid); in AVDT_GetL2CapChannel()
1069 UINT16 lcid = 0; in AVDT_GetSignalChannel() local
1074 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid; in AVDT_GetSignalChannel()
1076 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid; in AVDT_GetSignalChannel()
1079 return (lcid); in AVDT_GetSignalChannel()
Davdt_scb_act.c1935 UINT16 lcid; in avdt_scb_clr_pkt() local
1946 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid; in avdt_scb_clr_pkt()
1947 L2CA_FlushChannel (lcid, L2CAP_FLUSH_CHANS_ALL); in avdt_scb_clr_pkt()
2015 …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()
2104 UINT16 lcid; in avdt_scb_queue_frags() local
2117 lcid = avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_scb->p_ccb)][tcid].lcid; in avdt_scb_queue_frags()
2127 num_frag = L2CA_FlushChannel(lcid, L2CAP_FLUSH_CHANS_GET); in avdt_scb_queue_frags()
2128 AVDT_TRACE_DEBUG("num_q=%d lcid=%d\n", num_frag, lcid); in avdt_scb_queue_frags()
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/
Dgatt_main.c611 static void gatt_l2cif_connect_ind_cback (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) in gatt_l2cif_connect_ind_cback() argument
619 GATT_TRACE_ERROR("Connection indication cid = %d", lcid); in gatt_l2cif_connect_ind_cback()
627 p_tcb->att_lcid = lcid; in gatt_l2cif_connect_ind_cback()
635 L2CA_ConnectRsp(bd_addr, id, lcid, result, 0); in gatt_l2cif_connect_ind_cback()
647 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_ind_cback()
662 static void gatt_l2cif_connect_cfm_cback(UINT16 lcid, UINT16 result) in gatt_l2cif_connect_cfm_cback() argument
668 if ((p_tcb = gatt_find_tcb_by_cid(lcid)) != NULL) { in gatt_l2cif_connect_cfm_cback()
682 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_cfm_cback()
691 L2CA_DisconnectReq(lcid); in gatt_l2cif_connect_cfm_cback()
707 void gatt_l2cif_config_cfm_cback(UINT16 lcid, tL2CAP_CFG_INFO *p_cfg) in gatt_l2cif_config_cfm_cback() argument
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/l2cap/
Dl2c_main.c364 UINT16 rej_reason, rej_mtu, lcid, rcid, info_type; in process_l2cap_cmd() local
435 STREAM_TO_UINT16 (lcid, p); in process_l2cap_cmd()
437 … L2CAP_TRACE_WARNING ("L2CAP - rej with CID invalid, LCID: 0x%04x RCID: 0x%04x", lcid, rcid); in process_l2cap_cmd()
440 if (((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL) in process_l2cap_cmd()
496 STREAM_TO_UINT16 (lcid, p); in process_l2cap_cmd()
500 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) == NULL) { in process_l2cap_cmd()
502 lcid, con_info.remote_cid); in process_l2cap_cmd()
526 STREAM_TO_UINT16 (lcid, p); in process_l2cap_cmd()
603 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL) { in process_l2cap_cmd()
618 STREAM_TO_UINT16 (lcid, p); in process_l2cap_cmd()
[all …]
Dl2c_api.c369 BOOLEAN L2CA_ConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, in L2CA_ConnectRsp() argument
372 return L2CA_ErtmConnectRsp (p_bd_addr, id, lcid, result, status, NULL); in L2CA_ConnectRsp()
387 BOOLEAN L2CA_ErtmConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, UINT16 result, in L2CA_ErtmConnectRsp() argument
395 lcid, result, status, in L2CA_ErtmConnectRsp()
406 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) == NULL) { in L2CA_ErtmConnectRsp()
730 bool L2CA_GetIdentifiers(uint16_t lcid, uint16_t *rcid, uint16_t *handle) in L2CA_GetIdentifiers() argument
732 tL2C_CCB *control_block = l2cu_find_ccb_by_cid(NULL, lcid); in L2CA_GetIdentifiers()
1285 UINT8 L2CA_GetChnlFcrMode (UINT16 lcid) in L2CA_GetChnlFcrMode() argument
1287 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid (NULL, lcid); in L2CA_GetChnlFcrMode()
1532 BOOLEAN L2CA_ConnectLECocRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, UINT16 result, in L2CA_ConnectLECocRsp() argument
[all …]
Dl2c_ble.c848 UINT16 lcid; in l2cble_process_sig_cmd() local
850 STREAM_TO_UINT16(lcid, p); in l2cble_process_sig_cmd()
853 p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in l2cble_process_sig_cmd()
859 l2cu_send_peer_disc_rsp(p_lcb, id, lcid, rcid); in l2cble_process_sig_cmd()
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Dl2c_api.h415 extern BOOLEAN L2CA_ConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid,
453 extern BOOLEAN L2CA_ErtmConnectRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid,
558 extern BOOLEAN L2CA_ConnectLECocRsp (BD_ADDR p_bd_addr, UINT8 id, UINT16 lcid, UINT16 result,
570 extern BOOLEAN L2CA_GetPeerLECocConfig (UINT16 lcid, tL2CAP_LE_CFG_INFO* peer_cfg);
618 bool L2CA_GetIdentifiers(uint16_t lcid, uint16_t *rcid, uint16_t *handle);
718 extern UINT16 L2CA_FlushChannel (UINT16 lcid, UINT16 num_to_flush);
891 extern UINT8 L2CA_GetChnlFcrMode (UINT16 lcid);
1160 extern BOOLEAN L2CA_GetCurrentConfig (UINT16 lcid,
Davdt_api.h313 UINT16 lcid; /* L2CAP LCID for media channel */ member
/hal_espressif-latest/components/bt/host/bluedroid/stack/avct/include/
Davct_int.h152 extern tAVCT_BCB *avct_bcb_by_lcid(UINT16 lcid);
157 extern tAVCT_LCB *avct_lcb_by_lcid(UINT16 lcid);
/hal_espressif-latest/components/bt/host/bluedroid/stack/gap/
Dgap_conn.c42 static void gap_congestion_ind (UINT16 lcid, BOOLEAN is_congested);
1015 static void gap_congestion_ind (UINT16 lcid, BOOLEAN is_congested) in gap_congestion_ind() argument
1023 is_congested, lcid); in gap_congestion_ind()
1026 if ((p_ccb = gap_find_ccb_by_cid (lcid)) == NULL) { in gap_congestion_ind()
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_client/
Dbta_hf_client_act.c269 UINT16 lcid; in bta_hf_client_rfc_acp_open() local
280 …PORT_SUCCESS != (status = PORT_CheckConnection(p_data->rfc.port_handle, FALSE, dev_addr, &lcid))) { in bta_hf_client_rfc_acp_open()
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/include/
Dport_int.h96 UINT16 lcid; /* Local cid used for this channel */ member
Drfc_int.h306 tRFC_MCB *rfc_find_lcid_mcb (UINT16 lcid);
307 extern void rfc_save_lcid_mcb (tRFC_MCB *p_rfc_mcb, UINT16 lcid);
/hal_espressif-latest/components/bt/host/bluedroid/stack/avdt/include/
Davdt_int.h529 UINT16 lcid; member
539 UINT16 lcid; /* L2CAP LCID of the associated transport channel */ member
703 extern tAVDT_TC_TBL *avdt_ad_tc_tbl_by_lcid(UINT16 lcid);
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_ag/
Dbta_ag_act.c487 UINT16 lcid; in bta_ag_rfc_acp_open() local
497 …PORT_SUCCESS != (status = PORT_CheckConnection(p_data->rfc.port_handle, FALSE, dev_addr, &lcid))) { in bta_ag_rfc_acp_open()
/hal_espressif-latest/components/bt/host/bluedroid/bta/jv/
Dbta_jv_act.c1728 UINT16 lcid; in bta_jv_port_mgmt_cl_cback() local
1741 PORT_CheckConnection(port_handle, FALSE, rem_bda, &lcid); in bta_jv_port_mgmt_cl_cback()
2002 UINT16 lcid; in bta_jv_port_mgmt_sr_cback() local
2020 …f ((status = PORT_CheckConnection(port_handle, p_mgmt_cb_arg->ignore_rfc_state, rem_bda, &lcid)) != in bta_jv_port_mgmt_sr_cback()
2025 PORT_CheckConnection(port_handle, FALSE, rem_bda, &lcid); in bta_jv_port_mgmt_sr_cback()

12