Home
last modified time | relevance | path

Searched refs:p_tbl (Results 1 – 11 of 11) sorted by relevance

/external/bluetooth/bluedroid/stack/avdt/
Davdt_ad.c109 tAVDT_TC_TBL *p_tbl = avdt_cb.ad.tc_tbl; in avdt_ad_init() local
113 for (i = 0; i < AVDT_NUM_TC_TBL; i++, p_tbl++) in avdt_ad_init()
115 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_init()
136 tAVDT_TC_TBL *p_tbl = avdt_cb.ad.tc_tbl; in avdt_ad_tc_tbl_by_st() local
142 for (i = 0; i < AVDT_NUM_TC_TBL; i++, p_tbl++) in avdt_ad_tc_tbl_by_st()
145 if ((p_tbl->tcid == 0) && in avdt_ad_tc_tbl_by_st()
146 (p_tbl->state == state)) in avdt_ad_tc_tbl_by_st()
156 for (i = 0; i < AVDT_NUM_TC_TBL; i++, p_tbl++) in avdt_ad_tc_tbl_by_st()
161 if ((p_tbl->tcid == 0) && in avdt_ad_tc_tbl_by_st()
162 (p_tbl->ccb_idx == ccb_idx) && in avdt_ad_tc_tbl_by_st()
[all …]
Davdt_l2c.c76 tAVDT_TC_TBL *p_tbl; in avdt_sec_check_complete_term() local
87 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP); in avdt_sec_check_complete_term()
88 if (p_tbl == NULL) in avdt_sec_check_complete_term()
94 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK); in avdt_sec_check_complete_term()
97 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()
98 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; in avdt_sec_check_complete_term()
101 p_tbl->state = AVDT_AD_ST_CFG; in avdt_sec_check_complete_term()
106 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_term()
108 cfg.flush_to = p_tbl->my_flush_to; in avdt_sec_check_complete_term()
109 L2CA_ConfigReq(p_tbl->lcid, &cfg); in avdt_sec_check_complete_term()
[all …]
Davdt_msg.c1191 tAVDT_TC_TBL *p_tbl; in avdt_msg_send() local
1200 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_SIG, p_ccb, NULL); in avdt_msg_send()
1220 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) in avdt_msg_send()
1228 (p_ccb->p_curr_msg->len > p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) in avdt_msg_send()
1232 nosp = (p_ccb->p_curr_msg->len + AVDT_LEN_TYPE_START - p_tbl->peer_mtu) / in avdt_msg_send()
1233 (p_tbl->peer_mtu - 1) + 2; in avdt_msg_send()
1245 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
1251 (p_ccb->p_curr_msg->len > (p_tbl->peer_mtu - AVDT_LEN_TYPE_CONT))) in avdt_msg_send()
1266 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
Davdt_int.h691 extern UINT8 avdt_ad_tc_tbl_to_idx(tAVDT_TC_TBL *p_tbl);
692 extern void avdt_ad_tc_close_ind(tAVDT_TC_TBL *p_tbl, UINT16 reason);
693 extern void avdt_ad_tc_open_ind(tAVDT_TC_TBL *p_tbl);
694 extern void avdt_ad_tc_cong_ind(tAVDT_TC_TBL *p_tbl, BOOLEAN is_congested);
695 extern void avdt_ad_tc_data_ind(tAVDT_TC_TBL *p_tbl, BT_HDR *p_buf);
Davdt_api.c1290 tAVDT_TC_TBL *p_tbl; in AVDT_SendReport() local
1310 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb); in AVDT_SendReport()
1311 if((p_tbl->state == AVDT_AD_ST_OPEN) && in AVDT_SendReport()
1312 (p_pkt = (BT_HDR *)GKI_getbuf(p_tbl->peer_mtu)) != NULL) in AVDT_SendReport()
Davdt_scb_act.c2044 tAVDT_TC_TBL *p_tbl; in avdt_scb_queue_frags() local
2077 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_MEDIA, p_scb->p_ccb, p_scb); in avdt_scb_queue_frags()
2078 buf_size = p_tbl->peer_mtu + BT_HDR_SIZE; in avdt_scb_queue_frags()
2080 p_tbl->peer_mtu, buf_size, num_frag); in avdt_scb_queue_frags()
/external/bluetooth/bluedroid/stack/mcap/
Dmca_l2c.c74 tMCA_TC_TBL *p_tbl = (tMCA_TC_TBL *)p_ref_data; in mca_sec_check_complete_term() local
82 MCA_TRACE_DEBUG2 ("lcid:x%x id:x%x", p_tbl->lcid, p_tbl->id); in mca_sec_check_complete_term()
91 … L2CA_ErtmConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK, &ertm_info); in mca_sec_check_complete_term()
94 p_tbl->state = MCA_TC_ST_CFG; in mca_sec_check_complete_term()
97 mca_set_cfg_by_tbl (&cfg, p_tbl); in mca_sec_check_complete_term()
98 L2CA_ConfigReq(p_tbl->lcid, &cfg); in mca_sec_check_complete_term()
102 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK); in mca_sec_check_complete_term()
103 mca_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK); in mca_sec_check_complete_term()
119 tMCA_TC_TBL *p_tbl = (tMCA_TC_TBL *)p_ref_data; in mca_sec_check_complete_orig() local
127 p_tbl->state = MCA_TC_ST_CFG; in mca_sec_check_complete_orig()
[all …]
Dmca_main.c124 tMCA_TC_TBL *p_tbl = mca_cb.tc.tc_tbl; in mca_tc_tbl_calloc() local
128 for (i = 0; i < MCA_NUM_TC_TBL; i++, p_tbl++) in mca_tc_tbl_calloc()
130 if (p_tbl->state == MCA_TC_ST_UNUSED) in mca_tc_tbl_calloc()
140 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in mca_tc_tbl_calloc()
141 p_tbl->cfg_flags= 0; in mca_tc_tbl_calloc()
142 p_tbl->cb_idx = mca_ccb_to_hdl(p_ccb); in mca_tc_tbl_calloc()
143 p_tbl->tcid = MCA_CTRL_TCID; in mca_tc_tbl_calloc()
144 p_tbl->my_mtu = MCA_CTRL_MTU; in mca_tc_tbl_calloc()
145 p_tbl->state = MCA_TC_ST_IDLE; in mca_tc_tbl_calloc()
146 p_tbl->lcid = p_ccb->lcid; in mca_tc_tbl_calloc()
[all …]
Dmca_int.h310 extern void mca_set_cfg_by_tbl(tL2CAP_CFG_INFO *p_cfg, tMCA_TC_TBL *p_tbl);
311 extern void mca_tc_close_ind(tMCA_TC_TBL *p_tbl, UINT16 reason);
312 extern void mca_tc_open_ind(tMCA_TC_TBL *p_tbl);
313 extern void mca_tc_cong_ind(tMCA_TC_TBL *p_tbl, BOOLEAN is_congested);
314 extern void mca_tc_data_ind(tMCA_TC_TBL *p_tbl, BT_HDR *p_buf);
Dmca_api.c340 tMCA_TC_TBL *p_tbl; in MCA_ConnectReq() local
362 p_tbl = mca_tc_tbl_calloc(p_ccb); in MCA_ConnectReq()
363 if (p_tbl) in MCA_ConnectReq()
365 p_tbl->state = MCA_TC_ST_CONN; in MCA_ConnectReq()
739 tMCA_TC_TBL *p_tbl; in MCA_DataChnlCfg() local
759 p_tbl = mca_tc_tbl_dalloc(p_dcb); in MCA_DataChnlCfg()
760 if (p_tbl) in MCA_DataChnlCfg()
762 p_tbl->state = MCA_TC_ST_CONN; in MCA_DataChnlCfg()
Dmca_cact.c462 tMCA_TC_TBL *p_tbl; in mca_ccb_hdl_rsp() local
508 p_tbl = mca_tc_tbl_dalloc(p_dcb); in mca_ccb_hdl_rsp()
509 if (p_tbl) in mca_ccb_hdl_rsp()
511 p_tbl->state = MCA_TC_ST_CONN; in mca_ccb_hdl_rsp()