• Home
  • Raw
  • Download

Lines Matching refs:p_cfg

1654 void l2c_fcr_adj_our_rsp_options(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {  in l2c_fcr_adj_our_rsp_options()  argument
1656 CHECK(p_cfg != NULL); in l2c_fcr_adj_our_rsp_options()
1661 p_cfg->fcr_present = p_ccb->out_cfg_fcr_present; in l2c_fcr_adj_our_rsp_options()
1663 if (p_cfg->fcr_present) { in l2c_fcr_adj_our_rsp_options()
1675 p_cfg->fcr.mode = p_ccb->peer_cfg.fcr.mode; in l2c_fcr_adj_our_rsp_options()
1676 p_cfg->fcr.tx_win_sz = p_ccb->peer_cfg.fcr.tx_win_sz; in l2c_fcr_adj_our_rsp_options()
1677 p_cfg->fcr.max_transmit = p_ccb->peer_cfg.fcr.max_transmit; in l2c_fcr_adj_our_rsp_options()
1678 p_cfg->fcr.mps = p_ccb->peer_cfg.fcr.mps; in l2c_fcr_adj_our_rsp_options()
1679 p_cfg->fcr.rtrans_tout = p_ccb->our_cfg.fcr.rtrans_tout; in l2c_fcr_adj_our_rsp_options()
1680 p_cfg->fcr.mon_tout = p_ccb->our_cfg.fcr.mon_tout; in l2c_fcr_adj_our_rsp_options()
1696 bool l2c_fcr_renegotiate_chan(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2c_fcr_renegotiate_chan() argument
1698 CHECK(p_cfg != NULL); in l2c_fcr_renegotiate_chan()
1705 if (!p_cfg->fcr_present || (p_ccb->config_done & RECONFIG_FLAG)) in l2c_fcr_renegotiate_chan()
1709 if (p_cfg->result == L2CAP_CFG_UNACCEPTABLE_PARAMS) { in l2c_fcr_renegotiate_chan()
1710 peer_mode = (p_cfg->fcr_present) ? p_cfg->fcr.mode : L2CAP_FCR_BASIC_MODE; in l2c_fcr_renegotiate_chan()
1714 p_cfg->result = L2CAP_CFG_FAILED_NO_REASON; in l2c_fcr_renegotiate_chan()
1745 if ((p_cfg->mtu_present) && (p_cfg->mtu > L2CAP_MTU_SIZE)) { in l2c_fcr_renegotiate_chan()
1746 L2CAP_TRACE_WARNING("L2CAP - adjust MTU: %u too large", p_cfg->mtu); in l2c_fcr_renegotiate_chan()
1747 p_cfg->mtu = L2CAP_MTU_SIZE; in l2c_fcr_renegotiate_chan()
1781 uint8_t l2c_fcr_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2c_fcr_process_peer_cfg_req() argument
1783 CHECK(p_cfg != NULL); in l2c_fcr_process_peer_cfg_req()
1794 p_cfg->fcr_present, p_cfg->fcr.mode, p_ccb->our_cfg.fcr.mode, in l2c_fcr_process_peer_cfg_req()
1798 if (p_cfg->fcr.mode == L2CAP_FCR_BASIC_MODE) { in l2c_fcr_process_peer_cfg_req()
1805 else if (p_cfg->fcr.mode != p_ccb->p_rcb->ertm_info.preferred_mode) { in l2c_fcr_process_peer_cfg_req()
1812 if ((((1 << p_cfg->fcr.mode) & L2CAP_FCR_CHAN_OPT_ALL_MASK) == 0) || in l2c_fcr_process_peer_cfg_req()
1814 p_cfg->fcr.mode = p_ccb->our_cfg.fcr.mode; in l2c_fcr_process_peer_cfg_req()
1815 p_cfg->fcr.tx_win_sz = p_ccb->our_cfg.fcr.tx_win_sz; in l2c_fcr_process_peer_cfg_req()
1816 p_cfg->fcr.max_transmit = p_ccb->our_cfg.fcr.max_transmit; in l2c_fcr_process_peer_cfg_req()
1822 p_cfg->fcr.mode = L2CAP_FCR_BASIC_MODE; in l2c_fcr_process_peer_cfg_req()
1823 p_cfg->fcr.max_transmit = p_cfg->fcr.tx_win_sz = 0; in l2c_fcr_process_peer_cfg_req()
1824 p_cfg->fcr.rtrans_tout = p_cfg->fcr.mon_tout = p_cfg->fcr.mps = 0; in l2c_fcr_process_peer_cfg_req()
1838 if (p_cfg->fcr_present && p_cfg->fcr.mode != L2CAP_FCR_BASIC_MODE) { in l2c_fcr_process_peer_cfg_req()
1840 if (p_cfg->fcs_present) { in l2c_fcr_process_peer_cfg_req()
1841 p_ccb->peer_cfg.fcs = p_cfg->fcs; in l2c_fcr_process_peer_cfg_req()
1849 if ((p_cfg->fcr.mps == 0) || (p_cfg->fcr.mps > p_ccb->peer_cfg.mtu)) { in l2c_fcr_process_peer_cfg_req()
1850 p_cfg->fcr.mps = p_ccb->peer_cfg.mtu; in l2c_fcr_process_peer_cfg_req()
1855 if (p_cfg->fcr.mps > max_retrans_size) { in l2c_fcr_process_peer_cfg_req()
1857 max_retrans_size, p_cfg->fcr.mps); in l2c_fcr_process_peer_cfg_req()
1859 p_cfg->fcr.mps = max_retrans_size; in l2c_fcr_process_peer_cfg_req()
1863 if (p_cfg->fcr.mode == L2CAP_FCR_ERTM_MODE) { in l2c_fcr_process_peer_cfg_req()
1870 p_ccb->peer_cfg.fcr = p_cfg->fcr; in l2c_fcr_process_peer_cfg_req()