Lines Matching full:p_ccb
139 p_data->p_ccb->p_bcb = NULL;
140 (*p_data->p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_data->p_ccb),
159 tAVCT_CCB* p_ccb = &avct_cb.ccb[0];
164 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) {
166 if (p_ccb->allocated) {
168 if (p_ccb->p_bcb == p_bcb) {
170 p_ccb_bind = p_ccb;
171 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_BROWSE_CONN_CFM_EVT,
172 0, &p_ccb->p_lcb->peer_addr);
176 else if ((p_ccb->p_bcb == NULL) && (p_ccb->cc.role == AVCT_ACP) &&
177 (p_ccb->p_lcb != NULL) &&
178 p_bcb->peer_addr == p_ccb->p_lcb->peer_addr) {
181 p_ccb_bind = p_ccb;
182 p_ccb->p_bcb = p_bcb;
183 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_BROWSE_CONN_IND_EVT,
184 0, &p_ccb->p_lcb->peer_addr);
200 ul_msg.p_ccb = p_ccb_bind;
224 tAVCT_CCB* p_ccb = &avct_cb.ccb[0];
226 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) {
227 if (p_ccb->allocated && (p_ccb->p_bcb == p_bcb)) {
228 p_ccb->p_bcb = NULL;
245 tAVCT_CCB* p_ccb = &avct_cb.ccb[0];
248 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) {
249 if (p_ccb->allocated && (p_ccb->p_bcb == p_bcb)) {
250 if (p_ccb->cc.role == AVCT_INT) {
251 (*p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_ccb),
255 (*p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_ccb),
258 p_ccb->p_bcb = NULL;
275 tAVCT_CCB* p_ccb = &avct_cb.ccb[0];
283 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) {
284 if (p_ccb->allocated && (p_ccb->p_bcb == p_bcb)) {
292 p_cback = p_ccb->cc.p_ctrl_cback;
293 p_ccb->p_bcb = NULL;
294 if (p_ccb->p_lcb == NULL) avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL);
295 (*p_cback)(avct_ccb_to_idx(p_ccb), event, p_data->result,
313 p_data->p_ccb->p_bcb = p_bcb;
314 (*p_data->p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_data->p_ccb),
332 p_bcb->ch_close = avct_bcb_get_last_ccb_index(p_bcb, p_data->p_ccb);
367 p_data->p_ccb->p_bcb = NULL;
368 (*p_data->p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_data->p_ccb),
384 tAVCT_CCB* p_ccb = &avct_cb.ccb[0];
393 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) {
394 if (p_ccb->allocated && (p_ccb->p_bcb == p_bcb)) {
395 (*p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_ccb), event, 0,
415 if (p_data->ul_msg.p_ccb->p_lcb == NULL) {
427 p_bcb->allocated, p_data->ul_msg.p_ccb->p_lcb->allocated);
428 p_bcb->allocated = p_data->ul_msg.p_ccb->p_lcb->allocated;
430 (tAVCT_LCB_EVT*)p_data->ul_msg.p_ccb);
473 UINT16_TO_BE_STREAM(p, p_data->ul_msg.p_ccb->cc.pid);
510 tAVCT_CCB* p_ccb;
552 p_ccb = avct_lcb_has_pid(p_lcb, pid);
553 if (p_ccb) {
557 (*p_ccb->cc.p_msg_cback)(avct_ccb_to_idx(p_ccb), label, cr_ipid,
590 tAVCT_CCB* p_ccb = &avct_cb.ccb[0];
594 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) {
596 if ((p_ccb->allocated) && (p_ccb->p_bcb == p_bcb)) {
597 p_ccb->p_bcb = NULL;
662 tAVCT_CCB* p_ccb = &avct_cb.ccb[0];
665 for (int i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) {
666 if (p_ccb->allocated && (p_ccb->p_bcb == p_bcb)) {
667 if (p_ccb != p_ccb_last) return 0;