Lines Matching refs:p_ccb
142 AvdtpTransportChannel* avdt_ad_tc_tbl_by_st(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_st() argument
148 if (p_ccb == NULL) { in avdt_ad_tc_tbl_by_st()
157 ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_st()
217 AvdtpTransportChannel* avdt_ad_tc_tbl_by_type(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_type() argument
222 uint8_t ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_type()
248 AvdtpTransportChannel* avdt_ad_tc_tbl_alloc(AvdtpCcb* p_ccb) { in avdt_ad_tc_tbl_alloc() argument
265 p_tbl->ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_alloc()
302 AvdtpCcb* p_ccb; in avdt_ad_tc_close_ind() local
316 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_close_ind()
317 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CLOSE_EVT, NULL); in avdt_ad_tc_close_ind()
348 AvdtpCcb* p_ccb; in avdt_ad_tc_open_ind() local
365 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_open_ind()
374 avdt_ccb_event(p_ccb, AVDT_CCB_LL_OPEN_EVT, &avdt_ccb_evt); in avdt_ad_tc_open_ind()
409 AvdtpCcb* p_ccb; in avdt_ad_tc_cong_ind() local
414 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_cong_ind()
417 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CONG_EVT, &avdt_ccb_evt); in avdt_ad_tc_cong_ind()
446 AvdtpCcb* p_ccb; in avdt_ad_tc_data_ind() local
454 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_data_ind()
455 avdt_msg_ind(p_ccb, p_buf); in avdt_ad_tc_data_ind()
486 uint8_t avdt_ad_write_req(uint8_t type, AvdtpCcb* p_ccb, AvdtpScb* p_scb, in avdt_ad_write_req() argument
493 return L2CA_DataWrite(avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, in avdt_ad_write_req()
513 void avdt_ad_open_req(uint8_t type, AvdtpCcb* p_ccb, AvdtpScb* p_scb, in avdt_ad_open_req() argument
518 p_tbl = avdt_ad_tc_tbl_alloc(p_ccb); in avdt_ad_open_req()
538 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].scb_hdl = in avdt_ad_open_req()
541 avdt_ccb_to_idx(p_ccb), p_tbl->tcid, in avdt_ad_open_req()
554 lcid = L2CA_ConnectReq(AVDT_PSM, p_ccb->peer_addr); in avdt_ad_open_req()
563 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = lcid; in avdt_ad_open_req()
565 avdt_ccb_to_idx(p_ccb), p_tbl->tcid, lcid); in avdt_ad_open_req()
585 void avdt_ad_close_req(uint8_t type, AvdtpCcb* p_ccb, AvdtpScb* p_scb) { in avdt_ad_close_req() argument
589 p_tbl = avdt_ad_tc_tbl_by_type(type, p_ccb, p_scb); in avdt_ad_close_req()
605 L2CA_DisconnectReq(avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid); in avdt_ad_close_req()