• Home
  • Raw
  • Download

Lines Matching refs:p_scb

524 void avdt_scb_event(tAVDT_SCB *p_scb, UINT8 event, tAVDT_SCB_EVT *p_data)  in avdt_scb_event()  argument
531 …hdl=%d event=%d/%s state=%s", avdt_scb_to_hdl(p_scb), event, avdt_scb_evt_str[event], avdt_scb_st_… in avdt_scb_event()
533 BTTRC_AVDT_SCB_EVENT(event, p_scb->state); in avdt_scb_event()
536 p_scb->curr_evt = event; in avdt_scb_event()
539 state_table = avdt_scb_st_tbl[p_scb->state]; in avdt_scb_event()
542 if (p_scb->state != state_table[event][AVDT_SCB_NEXT_STATE]) in avdt_scb_event()
544 p_scb->state = state_table[event][AVDT_SCB_NEXT_STATE]; in avdt_scb_event()
553 (*avdt_cb.p_scb_act[action])(p_scb, p_data); in avdt_scb_event()
592 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_scb_alloc() local
596 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) in avdt_scb_alloc()
598 if (!p_scb->allocated) in avdt_scb_alloc()
600 memset(p_scb,0,sizeof(tAVDT_SCB)); in avdt_scb_alloc()
601 p_scb->allocated = TRUE; in avdt_scb_alloc()
602 p_scb->p_ccb = NULL; in avdt_scb_alloc()
603 memcpy(&p_scb->cs, p_cs, sizeof(tAVDT_CS)); in avdt_scb_alloc()
606 GKI_init_q(&p_scb->frag_q); in avdt_scb_alloc()
610 p_scb->cs.cfg.mux_tcid_media = avdt_ad_type_to_tcid(AVDT_CHAN_MEDIA, p_scb); in avdt_scb_alloc()
614 p_scb->cs.cfg.mux_tcid_report = avdt_ad_type_to_tcid(AVDT_CHAN_REPORT, p_scb); in avdt_scb_alloc()
619 p_scb->timer_entry.param = (UINT32) p_scb; in avdt_scb_alloc()
628 p_scb = NULL; in avdt_scb_alloc()
632 return p_scb; in avdt_scb_alloc()
645 void avdt_scb_dealloc(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_dealloc() argument
651 AVDT_TRACE_DEBUG1("avdt_scb_dealloc hdl=%d", avdt_scb_to_hdl(p_scb)); in avdt_scb_dealloc()
652 btu_stop_timer(&p_scb->timer_entry); in avdt_scb_dealloc()
656 while ((p_buf = GKI_dequeue (&p_scb->frag_q)) != NULL) in avdt_scb_dealloc()
660 memset(p_scb, 0, sizeof(tAVDT_SCB)); in avdt_scb_dealloc()
673 UINT8 avdt_scb_to_hdl(tAVDT_SCB *p_scb) in avdt_scb_to_hdl() argument
675 return (UINT8) (p_scb - avdt_cb.scb + 1); in avdt_scb_to_hdl()
691 tAVDT_SCB *p_scb; in avdt_scb_by_hdl() local
696 p_scb = &avdt_cb.scb[hdl - 1]; in avdt_scb_by_hdl()
699 if (!p_scb->allocated) in avdt_scb_by_hdl()
701 p_scb = NULL; in avdt_scb_by_hdl()
707 p_scb = NULL; in avdt_scb_by_hdl()
710 return p_scb; in avdt_scb_by_hdl()
726 tAVDT_SCB *p_scb; in avdt_scb_verify() local
750 if ((p_scb = avdt_scb_by_hdl(p_seid[i])) == NULL) in avdt_scb_verify()
755 else if ((p_scb->state != chk_state) || (p_scb->p_ccb != p_ccb)) in avdt_scb_verify()
760 else if (p_scb->cs.nsc_mask & nsc_mask) in avdt_scb_verify()
790 tAVDT_SCB *p_scb; in avdt_scb_peer_seid_list() local
794 if ((p_scb = avdt_scb_by_hdl(p_multi->seid_list[i])) != NULL) in avdt_scb_peer_seid_list()
796 p_multi->seid_list[i] = p_scb->peer_seid; in avdt_scb_peer_seid_list()