Lines Matching refs:p_cfg
552 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectLECocReq() argument
554 return bluetooth::shim::L2CA_ConnectLECocReq(psm, p_bd_addr, p_cfg); in L2CA_ConnectLECocReq()
598 if (p_cfg) { in L2CA_ConnectLECocReq()
599 memcpy(&p_ccb->local_conn_cfg, p_cfg, sizeof(tL2CAP_LE_CFG_INFO)); in L2CA_ConnectLECocReq()
600 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectLECocReq()
644 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectLECocRsp() argument
647 status, p_cfg); in L2CA_ConnectLECocRsp()
676 if (p_cfg) { in L2CA_ConnectLECocRsp()
677 memcpy(&p_ccb->local_conn_cfg, p_cfg, sizeof(tL2CAP_LE_CFG_INFO)); in L2CA_ConnectLECocRsp()
678 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectLECocRsp()
844 bool L2CA_ConfigReq(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in L2CA_ConfigReq() argument
846 return bluetooth::shim::L2CA_ConfigReq(cid, p_cfg); in L2CA_ConfigReq()
854 cid, p_cfg->fcr_present, p_cfg->fcr.mode, p_cfg->mtu_present, p_cfg->mtu); in L2CA_ConfigReq()
864 if (!l2c_fcr_adj_our_req_options(p_ccb, p_cfg)) return (false); in L2CA_ConfigReq()
867 if ((!p_cfg->fcr_present) || (p_cfg->fcr.mode == L2CAP_FCR_BASIC_MODE)) { in L2CA_ConfigReq()
869 p_cfg->fcs_present = false; in L2CA_ConfigReq()
870 p_cfg->ext_flow_spec_present = false; in L2CA_ConfigReq()
872 if ((p_cfg->mtu_present) && (p_cfg->mtu > L2CAP_MTU_SIZE)) { in L2CA_ConfigReq()
873 L2CAP_TRACE_WARNING("L2CAP - adjust MTU: %u too large", p_cfg->mtu); in L2CA_ConfigReq()
874 p_cfg->mtu = L2CAP_MTU_SIZE; in L2CA_ConfigReq()
880 p_ccb->our_cfg = *p_cfg; in L2CA_ConfigReq()
882 l2c_csm_execute(p_ccb, L2CEVT_L2CA_CONFIG_REQ, p_cfg); in L2CA_ConfigReq()
897 bool L2CA_ConfigRsp(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in L2CA_ConfigRsp() argument
899 return bluetooth::shim::L2CA_ConfigRsp(cid, p_cfg); in L2CA_ConfigRsp()
907 cid, p_cfg->result, p_cfg->mtu_present, p_cfg->flush_to_present, in L2CA_ConfigRsp()
908 p_cfg->fcr_present, p_cfg->fcs_present); in L2CA_ConfigRsp()
917 if ((p_cfg->result == L2CAP_CFG_OK) || (p_cfg->result == L2CAP_CFG_PENDING)) in L2CA_ConfigRsp()
918 l2c_csm_execute(p_ccb, L2CEVT_L2CA_CONFIG_RSP, p_cfg); in L2CA_ConfigRsp()
920 p_cfg->fcr_present = in L2CA_ConfigRsp()
925 if (p_cfg->mtu_present) p_ccb->peer_cfg.mtu_present = false; in L2CA_ConfigRsp()
926 if (p_cfg->flush_to_present) p_ccb->peer_cfg.flush_to_present = false; in L2CA_ConfigRsp()
927 if (p_cfg->qos_present) p_ccb->peer_cfg.qos_present = false; in L2CA_ConfigRsp()
929 l2c_csm_execute(p_ccb, L2CEVT_L2CA_CONFIG_RSP_NEG, p_cfg); in L2CA_ConfigRsp()