Home | History | Annotate | Download | only in avct

Lines Matching full:p_ccb

44     tAVCT_CCB   *p_ccb = &avct_cb.ccb[0];
47 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++)
49 if (!p_ccb->allocated)
51 p_ccb->allocated = AVCT_ALOC_LCB;
52 memcpy(&p_ccb->cc, p_cc, sizeof(tAVCT_CC));
61 p_ccb = NULL;
64 return p_ccb;
78 void avct_ccb_dealloc(tAVCT_CCB *p_ccb, UINT8 event, UINT16 result, BD_ADDR bd_addr)
80 tAVCT_CTRL_CBACK *p_cback = p_ccb->cc.p_ctrl_cback;
82 AVCT_TRACE_DEBUG("avct_ccb_dealloc %d", avct_ccb_to_idx(p_ccb));
84 if(p_ccb->p_bcb == NULL)
85 memset(p_ccb, 0, sizeof(tAVCT_CCB));
89 avct_bcb_event(p_ccb->p_bcb, AVCT_LCB_UL_UNBIND_EVT, (tAVCT_LCB_EVT *) &p_ccb);
90 p_ccb->p_lcb = NULL;
93 memset(p_ccb, 0, sizeof(tAVCT_CCB));
98 (*p_cback)(avct_ccb_to_idx(p_ccb), event, result, bd_addr);
112 UINT8 avct_ccb_to_idx(tAVCT_CCB *p_ccb)
115 return (UINT8) (p_ccb - avct_cb.ccb);
130 tAVCT_CCB *p_ccb;
135 p_ccb = &avct_cb.ccb[idx];
138 if (!p_ccb->allocated)
140 p_ccb = NULL;
146 p_ccb = NULL;
149 return p_ccb;