Lines Matching refs:p_scb
758 void avdt_scb_event(AvdtpScb* p_scb, uint8_t event, tAVDT_SCB_EVT* p_data) { in avdt_scb_event() argument
766 __func__, avdt_scb_to_hdl(p_scb), event, avdt_scb_evt_str[event], in avdt_scb_event()
767 avdt_scb_st_str[p_scb->state], p_scb, p_scb->stream_config.scb_index); in avdt_scb_event()
770 p_scb->curr_evt = event; in avdt_scb_event()
773 state_table = avdt_scb_st_tbl[p_scb->state]; in avdt_scb_event()
776 if (p_scb->state != state_table[event][AVDT_SCB_NEXT_STATE]) { in avdt_scb_event()
777 p_scb->state = state_table[event][AVDT_SCB_NEXT_STATE]; in avdt_scb_event()
784 (*avdtp_cb.p_scb_act[action])(p_scb, p_data); in avdt_scb_event()
826 AvdtpScb* p_scb = &avdtp_cb.ccb[peer_id].scb[0]; in avdt_scb_alloc() local
827 for (int i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) { in avdt_scb_alloc()
828 if (!p_scb->allocated) { in avdt_scb_alloc()
829 p_scb->Allocate(&avdtp_cb.ccb[peer_id], avdtp_stream_config); in avdt_scb_alloc()
831 p_scb->ScbHandle(), avdtp_stream_config.cfg.psc_mask); in avdt_scb_alloc()
832 return p_scb; in avdt_scb_alloc()
861 void avdt_scb_dealloc(AvdtpScb* p_scb, UNUSED_ATTR tAVDT_SCB_EVT* p_data) { in avdt_scb_dealloc() argument
862 AVDT_TRACE_DEBUG("%s: hdl=%d", __func__, avdt_scb_to_hdl(p_scb)); in avdt_scb_dealloc()
863 p_scb->Recycle(); in avdt_scb_dealloc()
876 uint8_t avdt_scb_to_hdl(AvdtpScb* p_scb) { return p_scb->ScbHandle(); } in avdt_scb_to_hdl() argument
900 AvdtpScb* p_scb = &avdtp_cb.ccb[i].scb[j]; in avdt_scb_by_hdl() local
902 if (!p_scb->allocated) { in avdt_scb_by_hdl()
908 __func__, hdl, p_scb, p_scb->stream_config.scb_index); in avdt_scb_by_hdl()
909 return p_scb; in avdt_scb_by_hdl()
925 AvdtpScb* p_scb; in avdt_scb_verify() local
940 p_scb = avdt_scb_by_hdl(p_seid[i]); in avdt_scb_verify()
941 if (p_scb == NULL) in avdt_scb_verify()
943 else if (p_scb->p_ccb != p_ccb) in avdt_scb_verify()
945 else if (p_scb->stream_config.nsc_mask & nsc_mask) in avdt_scb_verify()
951 if (p_scb->state != AVDT_SCB_OPEN_ST && in avdt_scb_verify()
952 p_scb->state != AVDT_SCB_STREAM_ST) in avdt_scb_verify()
958 if (p_scb->state != AVDT_SCB_STREAM_ST) in avdt_scb_verify()
984 AvdtpScb* p_scb; in avdt_scb_peer_seid_list() local
987 p_scb = avdt_scb_by_hdl(p_multi->seid_list[i]); in avdt_scb_peer_seid_list()
988 if (p_scb != NULL) { in avdt_scb_peer_seid_list()
989 p_multi->seid_list[i] = p_scb->peer_seid; in avdt_scb_peer_seid_list()