• Home
  • Raw
  • Download

Lines Matching refs:p_cfg

512                               tL2CAP_LE_CFG_INFO* p_cfg) {  in L2CA_ConnectLECocReq()  argument
554 if (p_cfg) { in L2CA_ConnectLECocReq()
555 memcpy(&p_ccb->local_conn_cfg, p_cfg, sizeof(tL2CAP_LE_CFG_INFO)); in L2CA_ConnectLECocReq()
556 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectLECocReq()
600 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectLECocRsp() argument
627 if (p_cfg) { in L2CA_ConnectLECocRsp()
628 memcpy(&p_ccb->local_conn_cfg, p_cfg, sizeof(tL2CAP_LE_CFG_INFO)); in L2CA_ConnectLECocRsp()
629 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectLECocRsp()
819 bool L2CA_ConfigReq(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in L2CA_ConfigReq() argument
825 cid, p_cfg->fcr_present, p_cfg->fcr.mode, p_cfg->mtu_present, p_cfg->mtu); in L2CA_ConfigReq()
835 if (!l2c_fcr_adj_our_req_options(p_ccb, p_cfg)) return (false); in L2CA_ConfigReq()
838 if ((!p_cfg->fcr_present) || (p_cfg->fcr.mode == L2CAP_FCR_BASIC_MODE)) { in L2CA_ConfigReq()
840 p_cfg->fcs_present = false; in L2CA_ConfigReq()
841 p_cfg->ext_flow_spec_present = false; in L2CA_ConfigReq()
843 if ((p_cfg->mtu_present) && (p_cfg->mtu > L2CAP_MTU_SIZE)) { in L2CA_ConfigReq()
844 L2CAP_TRACE_WARNING("L2CAP - adjust MTU: %u too large", p_cfg->mtu); in L2CA_ConfigReq()
845 p_cfg->mtu = L2CAP_MTU_SIZE; in L2CA_ConfigReq()
851 p_ccb->our_cfg = *p_cfg; in L2CA_ConfigReq()
853 l2c_csm_execute(p_ccb, L2CEVT_L2CA_CONFIG_REQ, p_cfg); in L2CA_ConfigReq()
868 bool L2CA_ConfigRsp(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in L2CA_ConfigRsp() argument
874 cid, p_cfg->result, p_cfg->mtu_present, p_cfg->flush_to_present, in L2CA_ConfigRsp()
875 p_cfg->fcr_present, p_cfg->fcs_present); in L2CA_ConfigRsp()
884 if ((p_cfg->result == L2CAP_CFG_OK) || (p_cfg->result == L2CAP_CFG_PENDING)) in L2CA_ConfigRsp()
885 l2c_csm_execute(p_ccb, L2CEVT_L2CA_CONFIG_RSP, p_cfg); in L2CA_ConfigRsp()
887 p_cfg->fcr_present = in L2CA_ConfigRsp()
892 if (p_cfg->mtu_present) p_ccb->peer_cfg.mtu_present = false; in L2CA_ConfigRsp()
893 if (p_cfg->flush_to_present) p_ccb->peer_cfg.flush_to_present = false; in L2CA_ConfigRsp()
894 if (p_cfg->qos_present) p_ccb->peer_cfg.qos_present = false; in L2CA_ConfigRsp()
896 l2c_csm_execute(p_ccb, L2CEVT_L2CA_CONFIG_RSP_NEG, p_cfg); in L2CA_ConfigRsp()