Lines Matching refs:tcid

45   if (tc.tcid >= AVDT_NUM_RT_TBL) {  in LookupAvdtpScb()
47 tc.tcid); in LookupAvdtpScb()
50 const AvdtpRoutingEntry& re = rt_tbl[tc.ccb_idx][tc.tcid]; in LookupAvdtpScb()
52 tc.tcid, re.scb_hdl); in LookupAvdtpScb()
76 uint8_t tcid = (scb_idx * (AVDT_CHAN_NUM_TYPES - 1)) + type; in avdt_ad_type_to_tcid() local
77 AVDT_TRACE_DEBUG("%s: type:%d, tcid: %d", __func__, type, tcid); in avdt_ad_type_to_tcid()
78 return tcid; in avdt_ad_type_to_tcid()
91 static uint8_t avdt_ad_tcid_to_type(uint8_t tcid) { in avdt_ad_tcid_to_type() argument
94 if (tcid == 0) { in avdt_ad_tcid_to_type()
102 type = ((tcid + AVDT_CHAN_NUM_TYPES - 2) % (AVDT_CHAN_NUM_TYPES - 1)) + 1; in avdt_ad_tcid_to_type()
104 AVDT_TRACE_DEBUG("tcid: %d, type: %d", tcid, type); in avdt_ad_tcid_to_type()
152 if ((p_tbl->tcid == 0) && (p_tbl->state == state)) { in avdt_ad_tc_tbl_by_st()
162 if ((p_tbl->tcid == 0) && (p_tbl->ccb_idx == ccb_idx) && in avdt_ad_tc_tbl_by_st()
168 if ((p_tbl->tcid > 0) && (p_tbl->ccb_idx == ccb_idx) && in avdt_ad_tc_tbl_by_st()
219 uint8_t tcid; in avdt_ad_tc_tbl_by_type() local
225 tcid = avdt_ad_type_to_tcid(type, p_scb); in avdt_ad_tc_tbl_by_type()
228 if ((p_tbl->tcid == tcid) && (p_tbl->ccb_idx == ccb_idx)) { in avdt_ad_tc_tbl_by_type()
312 AVDT_TRACE_DEBUG("%s: tcid: %d, old: %d", __func__, p_tbl->tcid, in avdt_ad_tc_close_ind()
315 if (p_tbl->tcid == 0) { in avdt_ad_tc_close_ind()
325 __func__, p_tbl->ccb_idx, p_tbl->tcid); in avdt_ad_tc_close_ind()
328 close.tcid = p_tbl->tcid; in avdt_ad_tc_close_ind()
329 close.type = avdt_ad_tcid_to_type(p_tbl->tcid); in avdt_ad_tc_close_ind()
354 __func__, p_tbl, p_tbl->state, p_tbl->ccb_idx, p_tbl->tcid, in avdt_ad_tc_open_ind()
355 avdtp_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].scb_hdl); in avdt_ad_tc_open_ind()
360 if (p_tbl->tcid == 0) { in avdt_ad_tc_open_ind()
382 __func__, p_tbl->ccb_idx, p_tbl->tcid); in avdt_ad_tc_open_ind()
387 open.lcid = avdtp_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].lcid; in avdt_ad_tc_open_ind()
388 open.hdr.err_code = avdt_ad_tcid_to_type(p_tbl->tcid); in avdt_ad_tc_open_ind()
413 if (p_tbl->tcid == 0) { in avdt_ad_tc_cong_ind()
425 __func__, p_tbl->ccb_idx, p_tbl->tcid); in avdt_ad_tc_cong_ind()
450 p_buf->layer_specific = avdt_ad_tcid_to_type(p_tbl->tcid); in avdt_ad_tc_data_ind()
453 if (p_tbl->tcid == 0) { in avdt_ad_tc_data_ind()
462 __func__, p_tbl->ccb_idx, p_tbl->tcid); in avdt_ad_tc_data_ind()
488 uint8_t tcid; in avdt_ad_write_req() local
491 tcid = avdt_ad_type_to_tcid(type, p_scb); in avdt_ad_write_req()
493 return L2CA_DataWrite(avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, in avdt_ad_write_req()
524 p_tbl->tcid = avdt_ad_type_to_tcid(type, p_scb); in avdt_ad_open_req()
526 p_tbl->tcid); 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()
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()
586 uint8_t tcid; in avdt_ad_close_req() local
602 tcid = avdt_ad_type_to_tcid(type, 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()