Lines Matching defs:p_ccb
125 tL2C_CCB *p_ccb = NULL;
197 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, rcv_cid)) == NULL)
279 p_ccb = p_lcb->p_fixed_ccbs[rcv_cid - L2CAP_FIRST_FIXED_CHNL];
281 if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE)
282 l2c_fcr_proc_pdu (p_ccb, p_msg);
293 if (p_ccb == NULL)
298 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_BASIC_MODE)
299 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_DATA, p_msg);
303 if ((p_ccb->chnl_state == CST_OPEN) || (p_ccb->chnl_state == CST_CONFIG))
304 l2c_fcr_proc_pdu (p_ccb, p_msg);
329 tL2C_CCB *p_ccb;
409 if (((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
410 && (p_ccb->remote_cid == rcid))
413 l2c_csm_execute (p_ccb, L2CEVT_LP_DISCONNECT_IND, NULL);
427 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb)
429 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_INFO_RSP, &ci);
452 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL)
458 p_ccb->remote_id = id;
459 p_ccb->p_rcb = p_rcb;
460 p_ccb->remote_cid = rcid;
462 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_REQ, &con_info);
471 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) == NULL)
477 if (p_ccb->local_id != id)
480 p_ccb->local_id, id);
485 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP, &con_info);
487 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_PND, &con_info);
489 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_NEG, &con_info);
580 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
582 p_ccb->remote_id = id;
585 l2cu_send_peer_config_rej (p_ccb, p_cfg_start, (UINT16) (cmd_len - L2CAP_CONFIG_REQ_LEN), cfg_rej_len);
589 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_CONFIG_REQ, &cfg_info);
663 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
665 if (p_ccb->local_id != id)
668 p_ccb->local_id, id);
672 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_CONFIG_RSP, &cfg_info);
674 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_CONFIG_RSP_NEG, &cfg_info);
687 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
689 if (p_ccb->remote_cid == rcid)
691 p_ccb->remote_id = id;
692 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_DISCONNECT_REQ, &con_info);
704 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
706 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id))
708 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_DISCONNECT_RSP, &con_info);
789 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb)
791 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_INFO_RSP, &ci);
960 tL2C_CCB *p_ccb;
963 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
972 if (p_data->len > p_ccb->peer_cfg.mtu)
984 if (p_ccb->cong_sent)
987 p_ccb->local_cid, p_ccb->xmit_hold_q.count, p_ccb->buff_quota);
993 l2c_csm_execute (p_ccb, L2CEVT_L2CA_DATA_WRITE, p_data);
995 if (p_ccb->cong_sent)