Lines Matching full:p_ccb
43 tAVCT_CCB* p_ccb = &avct_cb.ccb[0];
46 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) {
47 if (!p_ccb->allocated) {
48 p_ccb->allocated = AVCT_ALOC_LCB;
49 memcpy(&p_ccb->cc, p_cc, sizeof(tAVCT_CC));
57 p_ccb = NULL;
60 return p_ccb;
74 void avct_ccb_dealloc(tAVCT_CCB* p_ccb, uint8_t event, uint16_t result,
76 tAVCT_CTRL_CBACK* p_cback = p_ccb->cc.p_ctrl_cback;
78 AVCT_TRACE_DEBUG("avct_ccb_dealloc %d", avct_ccb_to_idx(p_ccb));
80 if (p_ccb->p_bcb == NULL) {
81 memset(p_ccb, 0, sizeof(tAVCT_CCB));
85 avct_bcb_event(p_ccb->p_bcb, AVCT_LCB_UL_UNBIND_EVT,
86 (tAVCT_LCB_EVT*)&p_ccb);
87 p_ccb->p_lcb = NULL;
91 (*p_cback)(avct_ccb_to_idx(p_ccb), event, result, bd_addr);
105 uint8_t avct_ccb_to_idx(tAVCT_CCB* p_ccb) {
107 return (uint8_t)(p_ccb - avct_cb.ccb);
121 tAVCT_CCB* p_ccb;
125 p_ccb = &avct_cb.ccb[idx];
128 if (!p_ccb->allocated) {
129 p_ccb = NULL;
133 p_ccb = NULL;
136 return p_ccb;