• Home
  • Raw
  • Download

Lines Matching refs:p_scb

759 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()
792 } else if (num_st_streams > 1 && !p_scb->curr_stream && in avdt_scb_event()
795 avdt_scb_free_pkt(p_scb, p_data); in avdt_scb_event()
800 p_scb->curr_evt = event; in avdt_scb_event()
803 state_table = avdt_scb_st_tbl[p_scb->state]; in avdt_scb_event()
806 if (p_scb->state != state_table[event][AVDT_SCB_NEXT_STATE]) { in avdt_scb_event()
807 p_scb->state = state_table[event][AVDT_SCB_NEXT_STATE]; in avdt_scb_event()
814 (*avdtp_cb.p_scb_act[action])(p_scb, p_data); in avdt_scb_event()
856 AvdtpScb* p_scb = &avdtp_cb.ccb[peer_id].scb[0]; in avdt_scb_alloc() local
857 for (int i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) { in avdt_scb_alloc()
858 if (!p_scb->allocated) { in avdt_scb_alloc()
859 p_scb->Allocate(&avdtp_cb.ccb[peer_id], avdtp_stream_config); in avdt_scb_alloc()
861 p_scb->ScbHandle(), avdtp_stream_config.cfg.psc_mask); in avdt_scb_alloc()
862 return p_scb; in avdt_scb_alloc()
891 void avdt_scb_dealloc(AvdtpScb* p_scb, UNUSED_ATTR tAVDT_SCB_EVT* p_data) { in avdt_scb_dealloc() argument
892 AVDT_TRACE_DEBUG("%s: hdl=%d", __func__, avdt_scb_to_hdl(p_scb)); in avdt_scb_dealloc()
893 p_scb->Recycle(); in avdt_scb_dealloc()
906 uint8_t avdt_scb_to_hdl(AvdtpScb* p_scb) { return p_scb->ScbHandle(); } in avdt_scb_to_hdl() argument
930 AvdtpScb* p_scb = &avdtp_cb.ccb[i].scb[j]; in avdt_scb_by_hdl() local
932 if (!p_scb->allocated) { in avdt_scb_by_hdl()
938 __func__, hdl, p_scb, p_scb->stream_config.scb_index); in avdt_scb_by_hdl()
939 return p_scb; in avdt_scb_by_hdl()
965 AvdtpScb* p_scb = avdt_scb_by_hdl(p_seid[i]); in avdt_scb_verify() local
966 if (p_scb == NULL) { in avdt_scb_verify()
971 if (p_scb->p_ccb != p_ccb) { in avdt_scb_verify()
976 if (p_scb->stream_config.nsc_mask & nsc_mask) { in avdt_scb_verify()
984 if (p_scb->state != AVDT_SCB_OPEN_ST && in avdt_scb_verify()
985 p_scb->state != AVDT_SCB_STREAM_ST) { in avdt_scb_verify()
993 if (p_scb->state != AVDT_SCB_STREAM_ST) { in avdt_scb_verify()
1017 AvdtpScb* p_scb; in avdt_scb_peer_seid_list() local
1020 p_scb = avdt_scb_by_hdl(p_multi->seid_list[i]); in avdt_scb_peer_seid_list()
1021 if (p_scb != NULL) { in avdt_scb_peer_seid_list()
1022 p_multi->seid_list[i] = p_scb->peer_seid; in avdt_scb_peer_seid_list()