Lines Matching refs:p_ccb
143 AvdtpTransportChannel* avdt_ad_tc_tbl_by_st(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_st() argument
149 if (p_ccb == NULL) { in avdt_ad_tc_tbl_by_st()
158 ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_st()
215 AvdtpTransportChannel* avdt_ad_tc_tbl_by_type(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_type() argument
220 uint8_t ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_type()
246 AvdtpTransportChannel* avdt_ad_tc_tbl_alloc(AvdtpCcb* p_ccb) { in avdt_ad_tc_tbl_alloc() argument
263 p_tbl->ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_alloc()
299 AvdtpCcb* p_ccb; in avdt_ad_tc_close_ind() local
313 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_close_ind()
314 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CLOSE_EVT, NULL); in avdt_ad_tc_close_ind()
345 AvdtpCcb* p_ccb; in avdt_ad_tc_open_ind() local
362 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_open_ind()
371 avdt_ccb_event(p_ccb, AVDT_CCB_LL_OPEN_EVT, &avdt_ccb_evt); in avdt_ad_tc_open_ind()
406 AvdtpCcb* p_ccb; in avdt_ad_tc_cong_ind() local
411 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_cong_ind()
414 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CONG_EVT, &avdt_ccb_evt); in avdt_ad_tc_cong_ind()
443 AvdtpCcb* p_ccb; in avdt_ad_tc_data_ind() local
451 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_data_ind()
452 avdt_msg_ind(p_ccb, p_buf); in avdt_ad_tc_data_ind()
483 uint8_t avdt_ad_write_req(uint8_t type, AvdtpCcb* p_ccb, AvdtpScb* p_scb, in avdt_ad_write_req() argument
490 return L2CA_DataWrite(avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, in avdt_ad_write_req()
510 void avdt_ad_open_req(uint8_t type, AvdtpCcb* p_ccb, AvdtpScb* p_scb, in avdt_ad_open_req() argument
515 p_tbl = avdt_ad_tc_tbl_alloc(p_ccb); in avdt_ad_open_req()
533 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].scb_hdl = in avdt_ad_open_req()
536 avdt_ccb_to_idx(p_ccb), p_tbl->tcid, in avdt_ad_open_req()
550 L2CA_ConnectReq2(AVDT_PSM, p_ccb->peer_addr, BTM_SEC_OUT_AUTHENTICATE); in avdt_ad_open_req()
557 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = lcid; in avdt_ad_open_req()
559 avdt_ccb_to_idx(p_ccb), p_tbl->tcid, lcid); in avdt_ad_open_req()
579 void avdt_ad_close_req(uint8_t type, AvdtpCcb* p_ccb, AvdtpScb* p_scb) { in avdt_ad_close_req() argument
583 p_tbl = avdt_ad_tc_tbl_by_type(type, p_ccb, p_scb); in avdt_ad_close_req()
600 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid); in avdt_ad_close_req()