Lines Matching refs:p_ccb
122 tAVCT_CCB* p_ccb; in AVCT_CreateConn() local
128 p_ccb = avct_ccb_alloc(p_cc); in AVCT_CreateConn()
129 if (p_ccb == NULL) { in AVCT_CreateConn()
133 *p_handle = avct_ccb_to_idx(p_ccb); in AVCT_CreateConn()
143 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn()
149 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn()
155 p_ccb->p_lcb = p_lcb; in AVCT_CreateConn()
158 avct_lcb_evt.p_ccb = p_ccb; in AVCT_CreateConn()
181 tAVCT_CCB* p_ccb; in AVCT_RemoveConn() local
186 p_ccb = avct_ccb_by_idx(handle); in AVCT_RemoveConn()
187 if (p_ccb == NULL) { in AVCT_RemoveConn()
191 else if (p_ccb->p_lcb == NULL) { in AVCT_RemoveConn()
192 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_RemoveConn()
197 avct_lcb_evt.p_ccb = p_ccb; in AVCT_RemoveConn()
198 avct_lcb_event(p_ccb->p_lcb, AVCT_LCB_UL_UNBIND_EVT, &avct_lcb_evt); in AVCT_RemoveConn()
222 tAVCT_CCB* p_ccb; in AVCT_CreateBrowse() local
229 p_ccb = avct_ccb_by_idx(handle); in AVCT_CreateBrowse()
230 if (p_ccb == NULL) { in AVCT_CreateBrowse()
234 if ((p_ccb->allocated & AVCT_ALOC_BCB) == 0) { in AVCT_CreateBrowse()
235 p_ccb->allocated |= AVCT_ALOC_BCB; in AVCT_CreateBrowse()
243 if ((p_ccb->p_lcb == NULL) || (p_ccb->p_lcb->allocated == 0)) { in AVCT_CreateBrowse()
247 index = p_ccb->p_lcb->allocated; in AVCT_CreateBrowse()
258 p_ccb->p_bcb = p_bcb; in AVCT_CreateBrowse()
259 p_bcb->peer_addr = p_ccb->p_lcb->peer_addr; in AVCT_CreateBrowse()
262 avct_lcb_evt.p_ccb = p_ccb; in AVCT_CreateBrowse()
285 tAVCT_CCB* p_ccb; in AVCT_RemoveBrowse() local
290 p_ccb = avct_ccb_by_idx(handle); in AVCT_RemoveBrowse()
291 if (p_ccb == NULL) { in AVCT_RemoveBrowse()
293 } else if (p_ccb->p_bcb != NULL) in AVCT_RemoveBrowse()
297 avct_lcb_evt.p_ccb = p_ccb; in AVCT_RemoveBrowse()
298 avct_bcb_event(p_ccb->p_bcb, AVCT_LCB_UL_UNBIND_EVT, &avct_lcb_evt); in AVCT_RemoveBrowse()
317 tAVCT_CCB* p_ccb = avct_ccb_by_idx(handle); in AVCT_GetBrowseMtu() local
319 if (p_ccb != NULL && p_ccb->p_bcb != NULL) { in AVCT_GetBrowseMtu()
320 peer_mtu = p_ccb->p_bcb->peer_mtu; in AVCT_GetBrowseMtu()
338 tAVCT_CCB* p_ccb; in AVCT_GetPeerMtu() local
341 p_ccb = avct_ccb_by_idx(handle); in AVCT_GetPeerMtu()
342 if (p_ccb != NULL) { in AVCT_GetPeerMtu()
343 if (p_ccb->p_lcb) { in AVCT_GetPeerMtu()
344 peer_mtu = p_ccb->p_lcb->peer_mtu; in AVCT_GetPeerMtu()
375 tAVCT_CCB* p_ccb; in AVCT_MsgReq() local
388 p_ccb = avct_ccb_by_idx(handle); in AVCT_MsgReq()
389 if (p_ccb == NULL) { in AVCT_MsgReq()
394 else if (p_ccb->p_lcb == NULL) { in AVCT_MsgReq()
401 ul_msg.p_ccb = p_ccb; in AVCT_MsgReq()
407 if (p_ccb->p_bcb == NULL && (p_ccb->allocated & AVCT_ALOC_BCB) == 0) { in AVCT_MsgReq()
412 p_ccb->p_bcb = avct_bcb_by_lcb(p_ccb->p_lcb); in AVCT_MsgReq()
415 avct_bcb_event(p_ccb->p_bcb, AVCT_LCB_UL_MSG_EVT, &avct_lcb_evt); in AVCT_MsgReq()
422 avct_lcb_event(p_ccb->p_lcb, AVCT_LCB_UL_MSG_EVT, &avct_lcb_evt); in AVCT_MsgReq()