• Home
  • Raw
  • Download

Lines Matching refs:p_ccb

202   for (tL2C_CCB* p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;  in l2cble_notify_le_connection()  local
203 p_ccb = p_ccb->p_next_ccb) { in l2cble_notify_le_connection()
204 if (p_ccb->chnl_state == CST_CLOSED) in l2cble_notify_le_connection()
205 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, NULL); in l2cble_notify_le_connection()
421 tL2C_CCB *p_ccb = NULL, *temp_p_ccb = NULL; in l2cble_process_sig_cmd() local
602 p_ccb = temp_p_ccb; in l2cble_process_sig_cmd()
603 p_ccb->local_conn_cfg.mtu = L2CAP_SDU_LENGTH_LE_MAX; in l2cble_process_sig_cmd()
604 p_ccb->local_conn_cfg.mps = in l2cble_process_sig_cmd()
606 p_lcb->pending_lead_cid = p_ccb->local_cid; in l2cble_process_sig_cmd()
620 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CREDIT_BASED_CONNECT_REQ, NULL); in l2cble_process_sig_cmd()
634 p_ccb = temp_p_ccb; in l2cble_process_sig_cmd()
639 if (!p_ccb) { in l2cble_process_sig_cmd()
642 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_NEG, &con_info); in l2cble_process_sig_cmd()
661 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CREDIT_BASED_CONNECT_RSP_NEG, in l2cble_process_sig_cmd()
671 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CREDIT_BASED_CONNECT_RSP_NEG, in l2cble_process_sig_cmd()
764 p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, rcid); in l2cble_process_sig_cmd()
765 if (!p_ccb) { in l2cble_process_sig_cmd()
772 if (p_ccb->peer_conn_cfg.mtu > mtu) { in l2cble_process_sig_cmd()
775 mtu, p_ccb->peer_conn_cfg.mtu); in l2cble_process_sig_cmd()
781 if (p_ccb->peer_conn_cfg.mps > mps) { in l2cble_process_sig_cmd()
784 mtu, p_ccb->peer_conn_cfg.mtu); in l2cble_process_sig_cmd()
795 p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, rcid); in l2cble_process_sig_cmd()
796 p_ccb->peer_conn_cfg.mtu = mtu; in l2cble_process_sig_cmd()
797 p_ccb->peer_conn_cfg.mps = mps; in l2cble_process_sig_cmd()
798 p_ccb->tx_mps = mps; in l2cble_process_sig_cmd()
804 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CREDIT_BASED_RECONFIG_REQ, &le_cfg); in l2cble_process_sig_cmd()
862 p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, rcid); in l2cble_process_sig_cmd()
863 if (p_ccb) { in l2cble_process_sig_cmd()
888 p_ccb = l2cu_allocate_ccb(p_lcb, 0); in l2cble_process_sig_cmd()
889 if (p_ccb == NULL) { in l2cble_process_sig_cmd()
891 l2cu_reject_ble_connection(p_ccb, id, L2CAP_CONN_NO_RESOURCES); in l2cble_process_sig_cmd()
899 l2cu_reject_ble_connection(p_ccb, id, L2CAP_CONN_NO_RESOURCES); in l2cble_process_sig_cmd()
903 p_ccb->remote_id = id; in l2cble_process_sig_cmd()
904 p_ccb->p_rcb = p_rcb; in l2cble_process_sig_cmd()
905 p_ccb->remote_cid = rcid; in l2cble_process_sig_cmd()
907 p_ccb->local_conn_cfg.mtu = L2CAP_SDU_LENGTH_LE_MAX; in l2cble_process_sig_cmd()
908 p_ccb->local_conn_cfg.mps = in l2cble_process_sig_cmd()
910 p_ccb->local_conn_cfg.credits = L2CAP_LE_CREDIT_DEFAULT, in l2cble_process_sig_cmd()
912 p_ccb->peer_conn_cfg.mtu = mtu; in l2cble_process_sig_cmd()
913 p_ccb->peer_conn_cfg.mps = mps; in l2cble_process_sig_cmd()
914 p_ccb->peer_conn_cfg.credits = initial_credit; in l2cble_process_sig_cmd()
916 p_ccb->tx_mps = mps; in l2cble_process_sig_cmd()
917 p_ccb->ble_sdu = NULL; in l2cble_process_sig_cmd()
918 p_ccb->ble_sdu_length = 0; in l2cble_process_sig_cmd()
919 p_ccb->is_first_seg = true; in l2cble_process_sig_cmd()
920 p_ccb->peer_cfg.fcr.mode = L2CAP_FCR_LE_COC_MODE; in l2cble_process_sig_cmd()
922 p_ccb->connection_initiator = L2CAP_INITIATOR_REMOTE; in l2cble_process_sig_cmd()
924 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_REQ, &con_info); in l2cble_process_sig_cmd()
933 p_ccb = temp_p_ccb; in l2cble_process_sig_cmd()
937 if (p_ccb) { in l2cble_process_sig_cmd()
945 STREAM_TO_UINT16(p_ccb->remote_cid, p); in l2cble_process_sig_cmd()
946 STREAM_TO_UINT16(p_ccb->peer_conn_cfg.mtu, p); in l2cble_process_sig_cmd()
947 STREAM_TO_UINT16(p_ccb->peer_conn_cfg.mps, p); in l2cble_process_sig_cmd()
948 STREAM_TO_UINT16(p_ccb->peer_conn_cfg.credits, p); in l2cble_process_sig_cmd()
950 con_info.remote_cid = p_ccb->remote_cid; in l2cble_process_sig_cmd()
958 p_ccb->remote_cid, p_ccb->peer_conn_cfg.mtu, in l2cble_process_sig_cmd()
959 p_ccb->peer_conn_cfg.mps, p_ccb->peer_conn_cfg.credits, in l2cble_process_sig_cmd()
963 if (p_ccb->peer_conn_cfg.mtu < L2CAP_LE_MIN_MTU || in l2cble_process_sig_cmd()
964 p_ccb->peer_conn_cfg.mps < L2CAP_LE_MIN_MPS || in l2cble_process_sig_cmd()
965 p_ccb->peer_conn_cfg.mps > L2CAP_LE_MAX_MPS) { in l2cble_process_sig_cmd()
968 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_NEG, &con_info); in l2cble_process_sig_cmd()
972 p_ccb->tx_mps = p_ccb->peer_conn_cfg.mps; in l2cble_process_sig_cmd()
973 p_ccb->ble_sdu = NULL; in l2cble_process_sig_cmd()
974 p_ccb->ble_sdu_length = 0; in l2cble_process_sig_cmd()
975 p_ccb->is_first_seg = true; in l2cble_process_sig_cmd()
976 p_ccb->peer_cfg.fcr.mode = L2CAP_FCR_LE_COC_MODE; in l2cble_process_sig_cmd()
979 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP, &con_info); in l2cble_process_sig_cmd()
981 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_NEG, &con_info); in l2cble_process_sig_cmd()
985 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONNECT_RSP_NEG, &con_info); in l2cble_process_sig_cmd()
997 p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, lcid); in l2cble_process_sig_cmd()
998 if (p_ccb == NULL) { in l2cble_process_sig_cmd()
1005 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_RECV_FLOW_CONTROL_CREDIT, &credit); in l2cble_process_sig_cmd()
1017 p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in l2cble_process_sig_cmd()
1018 if (p_ccb != NULL) { in l2cble_process_sig_cmd()
1019 if (p_ccb->remote_cid == rcid) { in l2cble_process_sig_cmd()
1020 p_ccb->remote_id = id; in l2cble_process_sig_cmd()
1021 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_DISCONNECT_REQ, NULL); in l2cble_process_sig_cmd()
1037 p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in l2cble_process_sig_cmd()
1038 if (p_ccb != NULL) { in l2cble_process_sig_cmd()
1039 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id)) in l2cble_process_sig_cmd()
1040 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_DISCONNECT_RSP, NULL); in l2cble_process_sig_cmd()
1313 void l2cble_credit_based_conn_req(tL2C_CCB* p_ccb) { in l2cble_credit_based_conn_req() argument
1314 if (!p_ccb) return; in l2cble_credit_based_conn_req()
1316 if (p_ccb->p_lcb && p_ccb->p_lcb->transport != BT_TRANSPORT_LE) { in l2cble_credit_based_conn_req()
1321 if (p_ccb->ecoc) { in l2cble_credit_based_conn_req()
1322 l2cu_send_peer_credit_based_conn_req(p_ccb); in l2cble_credit_based_conn_req()
1324 l2cu_send_peer_ble_credit_based_conn_req(p_ccb); in l2cble_credit_based_conn_req()
1339 void l2cble_credit_based_conn_res(tL2C_CCB* p_ccb, uint16_t result) { in l2cble_credit_based_conn_res() argument
1340 if (!p_ccb) return; in l2cble_credit_based_conn_res()
1342 if (p_ccb->p_lcb && p_ccb->p_lcb->transport != BT_TRANSPORT_LE) { in l2cble_credit_based_conn_res()
1347 l2cu_send_peer_ble_credit_based_conn_res(p_ccb, result); in l2cble_credit_based_conn_res()
1361 void l2cble_send_flow_control_credit(tL2C_CCB* p_ccb, uint16_t credit_value) { in l2cble_send_flow_control_credit() argument
1362 if (!p_ccb) return; in l2cble_send_flow_control_credit()
1364 if (p_ccb->p_lcb && p_ccb->p_lcb->transport != BT_TRANSPORT_LE) { in l2cble_send_flow_control_credit()
1369 l2cu_send_peer_ble_flow_control_credit(p_ccb, credit_value); in l2cble_send_flow_control_credit()
1383 void l2cble_send_peer_disc_req(tL2C_CCB* p_ccb) { in l2cble_send_peer_disc_req() argument
1385 if (!p_ccb) return; in l2cble_send_peer_disc_req()
1387 if (p_ccb->p_lcb && p_ccb->p_lcb->transport != BT_TRANSPORT_LE) { in l2cble_send_peer_disc_req()
1392 l2cu_send_peer_ble_credit_based_disconn_req(p_ccb); in l2cble_send_peer_disc_req()