• Home
  • Raw
  • Download

Lines Matching refs:p_ccb

236   tL2C_CCB* p_ccb;  in l2cble_notify_le_connection()  local
248 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2cble_notify_le_connection()
249 p_ccb = p_ccb->p_next_ccb) { in l2cble_notify_le_connection()
250 if (p_ccb->chnl_state == CST_CLOSED) in l2cble_notify_le_connection()
251 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, NULL); in l2cble_notify_le_connection()
476 tL2C_CCB *p_ccb = NULL, *temp_p_ccb = NULL; in l2cble_process_sig_cmd() local
578 p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, rcid); in l2cble_process_sig_cmd()
579 if (p_ccb) { in l2cble_process_sig_cmd()
604 p_ccb = l2cu_allocate_ccb(p_lcb, 0); in l2cble_process_sig_cmd()
605 if (p_ccb == NULL) { in l2cble_process_sig_cmd()
619 p_ccb->remote_id = id; in l2cble_process_sig_cmd()
620 p_ccb->p_rcb = p_rcb; in l2cble_process_sig_cmd()
621 p_ccb->remote_cid = rcid; in l2cble_process_sig_cmd()
623 p_ccb->peer_conn_cfg.mtu = mtu; in l2cble_process_sig_cmd()
624 p_ccb->peer_conn_cfg.mps = mps; in l2cble_process_sig_cmd()
625 p_ccb->peer_conn_cfg.credits = initial_credit; in l2cble_process_sig_cmd()
627 p_ccb->tx_mps = mps; in l2cble_process_sig_cmd()
628 p_ccb->ble_sdu = NULL; in l2cble_process_sig_cmd()
629 p_ccb->ble_sdu_length = 0; in l2cble_process_sig_cmd()
630 p_ccb->is_first_seg = true; in l2cble_process_sig_cmd()
631 p_ccb->peer_cfg.fcr.mode = L2CAP_FCR_LE_COC_MODE; in l2cble_process_sig_cmd()
633 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_REQ, &con_info); in l2cble_process_sig_cmd()
642 p_ccb = temp_p_ccb; in l2cble_process_sig_cmd()
646 if (p_ccb) { in l2cble_process_sig_cmd()
654 STREAM_TO_UINT16(p_ccb->remote_cid, p); in l2cble_process_sig_cmd()
655 STREAM_TO_UINT16(p_ccb->peer_conn_cfg.mtu, p); in l2cble_process_sig_cmd()
656 STREAM_TO_UINT16(p_ccb->peer_conn_cfg.mps, p); in l2cble_process_sig_cmd()
657 STREAM_TO_UINT16(p_ccb->peer_conn_cfg.credits, p); in l2cble_process_sig_cmd()
659 con_info.remote_cid = p_ccb->remote_cid; in l2cble_process_sig_cmd()
667 p_ccb->remote_cid, p_ccb->peer_conn_cfg.mtu, in l2cble_process_sig_cmd()
668 p_ccb->peer_conn_cfg.mps, p_ccb->peer_conn_cfg.credits, in l2cble_process_sig_cmd()
672 if (p_ccb->peer_conn_cfg.mtu < L2CAP_LE_MIN_MTU || in l2cble_process_sig_cmd()
673 p_ccb->peer_conn_cfg.mps < L2CAP_LE_MIN_MPS || in l2cble_process_sig_cmd()
674 p_ccb->peer_conn_cfg.mps > L2CAP_LE_MAX_MPS) { in l2cble_process_sig_cmd()
677 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_NEG, &con_info); in l2cble_process_sig_cmd()
681 p_ccb->tx_mps = p_ccb->peer_conn_cfg.mps; in l2cble_process_sig_cmd()
682 p_ccb->ble_sdu = NULL; in l2cble_process_sig_cmd()
683 p_ccb->ble_sdu_length = 0; in l2cble_process_sig_cmd()
684 p_ccb->is_first_seg = true; in l2cble_process_sig_cmd()
685 p_ccb->peer_cfg.fcr.mode = L2CAP_FCR_LE_COC_MODE; in l2cble_process_sig_cmd()
688 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP, &con_info); in l2cble_process_sig_cmd()
690 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_NEG, &con_info); in l2cble_process_sig_cmd()
694 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_NEG, &con_info); in l2cble_process_sig_cmd()
706 p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, lcid); in l2cble_process_sig_cmd()
707 if (p_ccb == NULL) { in l2cble_process_sig_cmd()
714 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_RECV_FLOW_CONTROL_CREDIT, &credit); in l2cble_process_sig_cmd()
726 p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in l2cble_process_sig_cmd()
727 if (p_ccb != NULL) { in l2cble_process_sig_cmd()
728 if (p_ccb->remote_cid == rcid) { in l2cble_process_sig_cmd()
729 p_ccb->remote_id = id; in l2cble_process_sig_cmd()
730 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_DISCONNECT_REQ, NULL); in l2cble_process_sig_cmd()
746 p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in l2cble_process_sig_cmd()
747 if (p_ccb != NULL) { in l2cble_process_sig_cmd()
748 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id)) in l2cble_process_sig_cmd()
749 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_DISCONNECT_RSP, NULL); in l2cble_process_sig_cmd()
1054 void l2cble_credit_based_conn_req(tL2C_CCB* p_ccb) { in l2cble_credit_based_conn_req() argument
1055 if (!p_ccb) return; in l2cble_credit_based_conn_req()
1057 if (p_ccb->p_lcb && p_ccb->p_lcb->transport != BT_TRANSPORT_LE) { in l2cble_credit_based_conn_req()
1062 l2cu_send_peer_ble_credit_based_conn_req(p_ccb); in l2cble_credit_based_conn_req()
1076 void l2cble_credit_based_conn_res(tL2C_CCB* p_ccb, uint16_t result) { in l2cble_credit_based_conn_res() argument
1077 if (!p_ccb) return; in l2cble_credit_based_conn_res()
1079 if (p_ccb->p_lcb && p_ccb->p_lcb->transport != BT_TRANSPORT_LE) { in l2cble_credit_based_conn_res()
1084 l2cu_send_peer_ble_credit_based_conn_res(p_ccb, result); in l2cble_credit_based_conn_res()
1098 void l2cble_send_flow_control_credit(tL2C_CCB* p_ccb, uint16_t credit_value) { in l2cble_send_flow_control_credit() argument
1099 if (!p_ccb) return; in l2cble_send_flow_control_credit()
1101 if (p_ccb->p_lcb && p_ccb->p_lcb->transport != BT_TRANSPORT_LE) { in l2cble_send_flow_control_credit()
1106 l2cu_send_peer_ble_flow_control_credit(p_ccb, credit_value); in l2cble_send_flow_control_credit()
1120 void l2cble_send_peer_disc_req(tL2C_CCB* p_ccb) { in l2cble_send_peer_disc_req() argument
1122 if (!p_ccb) return; in l2cble_send_peer_disc_req()
1124 if (p_ccb->p_lcb && p_ccb->p_lcb->transport != BT_TRANSPORT_LE) { in l2cble_send_peer_disc_req()
1129 l2cu_send_peer_ble_credit_based_disconn_req(p_ccb); in l2cble_send_peer_disc_req()