• Home
  • Raw
  • Download

Lines Matching refs:p_cfg

1986 BOOLEAN l2c_fcr_adj_our_req_options (tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg)  in l2c_fcr_adj_our_req_options()  argument
1989 assert(p_cfg != NULL); in l2c_fcr_adj_our_req_options()
1991 tL2CAP_FCR_OPTS *p_fcr = &p_cfg->fcr; in l2c_fcr_adj_our_req_options()
2005 if (p_cfg->fcr_present && p_fcr->mode != L2CAP_FCR_BASIC_MODE) in l2c_fcr_adj_our_req_options()
2015 if (p_cfg->fcr_present && !(p_ccb->config_done & RECONFIG_FLAG)) in l2c_fcr_adj_our_req_options()
2029 p_cfg->fcr_present = FALSE; in l2c_fcr_adj_our_req_options()
2030 p_cfg->fcs_present = FALSE; /* Illegal to use FCS option in basic mode */ in l2c_fcr_adj_our_req_options()
2031p_cfg->ext_flow_spec_present = FALSE; /* Illegal to use extended flow spec in basic mode */ in l2c_fcr_adj_our_req_options()
2057 if ( (p_cfg->mtu_present) && (p_cfg->mtu > p_ccb->max_rx_mtu) ) in l2c_fcr_adj_our_req_options()
2059 … L2CAP_TRACE_WARNING ("L2CAP - MTU: %u larger than buf size: %u", p_cfg->mtu, p_ccb->max_rx_mtu); in l2c_fcr_adj_our_req_options()
2081 p_cfg->fcs_present = FALSE; /* Illegal to use FCS option in basic mode */ in l2c_fcr_adj_our_req_options()
2082p_cfg->ext_flow_spec_present = FALSE; /* Illegal to use extended flow spec in basic mode */ in l2c_fcr_adj_our_req_options()
2144 void l2c_fcr_adj_our_rsp_options (tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) in l2c_fcr_adj_our_rsp_options() argument
2147 assert(p_cfg != NULL); in l2c_fcr_adj_our_rsp_options()
2152 p_cfg->fcr_present = p_ccb->out_cfg_fcr_present; in l2c_fcr_adj_our_rsp_options()
2154 if (p_cfg->fcr_present) in l2c_fcr_adj_our_rsp_options()
2165 p_cfg->fcr.mode = p_ccb->peer_cfg.fcr.mode; in l2c_fcr_adj_our_rsp_options()
2166 p_cfg->fcr.tx_win_sz = p_ccb->peer_cfg.fcr.tx_win_sz; in l2c_fcr_adj_our_rsp_options()
2167 p_cfg->fcr.max_transmit = p_ccb->peer_cfg.fcr.max_transmit; in l2c_fcr_adj_our_rsp_options()
2168 p_cfg->fcr.mps = p_ccb->peer_cfg.fcr.mps; in l2c_fcr_adj_our_rsp_options()
2169 p_cfg->fcr.rtrans_tout = p_ccb->our_cfg.fcr.rtrans_tout; in l2c_fcr_adj_our_rsp_options()
2170 p_cfg->fcr.mon_tout = p_ccb->our_cfg.fcr.mon_tout; in l2c_fcr_adj_our_rsp_options()
2186 BOOLEAN l2c_fcr_renegotiate_chan(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) in l2c_fcr_renegotiate_chan() argument
2189 assert(p_cfg != NULL); in l2c_fcr_renegotiate_chan()
2195 if (!p_cfg->fcr_present || (p_ccb->config_done & RECONFIG_FLAG)) in l2c_fcr_renegotiate_chan()
2199 if (p_cfg->result == L2CAP_CFG_UNACCEPTABLE_PARAMS) in l2c_fcr_renegotiate_chan()
2201 peer_mode = (p_cfg->fcr_present) ? p_cfg->fcr.mode : L2CAP_FCR_BASIC_MODE; in l2c_fcr_renegotiate_chan()
2208 p_cfg->result = L2CAP_CFG_FAILED_NO_REASON; in l2c_fcr_renegotiate_chan()
2255 if ( (p_cfg->mtu_present) && (p_cfg->mtu > L2CAP_MTU_SIZE) ) in l2c_fcr_renegotiate_chan()
2257 L2CAP_TRACE_WARNING ("L2CAP - adjust MTU: %u too large", p_cfg->mtu); in l2c_fcr_renegotiate_chan()
2258 p_cfg->mtu = L2CAP_MTU_SIZE; in l2c_fcr_renegotiate_chan()
2296 UINT8 l2c_fcr_process_peer_cfg_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) in l2c_fcr_process_peer_cfg_req() argument
2299 assert(p_cfg != NULL); in l2c_fcr_process_peer_cfg_req()
2307p_cfg->fcr_present, p_cfg->fcr.mode, p_ccb->our_cfg.fcr.mode, p_ccb->ertm_info.preferred_mode, in l2c_fcr_process_peer_cfg_req()
2311 if (p_cfg->fcr.mode == L2CAP_FCR_BASIC_MODE) in l2c_fcr_process_peer_cfg_req()
2319 else if (p_cfg->fcr.mode != p_ccb->ertm_info.preferred_mode) in l2c_fcr_process_peer_cfg_req()
2326 if ( (((1 << p_cfg->fcr.mode) & L2CAP_FCR_CHAN_OPT_ALL_MASK) == 0) in l2c_fcr_process_peer_cfg_req()
2329 p_cfg->fcr.mode = p_ccb->our_cfg.fcr.mode; in l2c_fcr_process_peer_cfg_req()
2330 p_cfg->fcr.tx_win_sz = p_ccb->our_cfg.fcr.tx_win_sz; in l2c_fcr_process_peer_cfg_req()
2331 p_cfg->fcr.max_transmit = p_ccb->our_cfg.fcr.max_transmit; in l2c_fcr_process_peer_cfg_req()
2338 p_cfg->fcr.mode = L2CAP_FCR_BASIC_MODE; in l2c_fcr_process_peer_cfg_req()
2339 p_cfg->fcr.max_transmit = p_cfg->fcr.tx_win_sz = 0; in l2c_fcr_process_peer_cfg_req()
2340 p_cfg->fcr.rtrans_tout = p_cfg->fcr.mon_tout = p_cfg->fcr.mps = 0; in l2c_fcr_process_peer_cfg_req()
2347 else if ( (p_cfg->fcr.mode != L2CAP_FCR_ERTM_MODE) in l2c_fcr_process_peer_cfg_req()
2361 if (p_cfg->fcr_present && p_cfg->fcr.mode != L2CAP_FCR_BASIC_MODE) in l2c_fcr_process_peer_cfg_req()
2364 if (p_cfg->fcs_present) in l2c_fcr_process_peer_cfg_req()
2366 p_ccb->peer_cfg.fcs = p_cfg->fcs; in l2c_fcr_process_peer_cfg_req()
2368 if( p_cfg->fcs == L2CAP_CFG_FCS_BYPASS) in l2c_fcr_process_peer_cfg_req()
2376 if ( (p_cfg->fcr.mps == 0) || (p_cfg->fcr.mps > p_ccb->peer_cfg.mtu) ) in l2c_fcr_process_peer_cfg_req()
2378 p_cfg->fcr.mps = p_ccb->peer_cfg.mtu; in l2c_fcr_process_peer_cfg_req()
2383 if (p_cfg->fcr.mps > max_retrans_size) in l2c_fcr_process_peer_cfg_req()
2385 … L2CAP_TRACE_DEBUG("CFG: Overriding MPS to %d (orig %d)", max_retrans_size, p_cfg->fcr.mps); in l2c_fcr_process_peer_cfg_req()
2387 p_cfg->fcr.mps = max_retrans_size; in l2c_fcr_process_peer_cfg_req()
2391 if (p_cfg->fcr.mode == L2CAP_FCR_ERTM_MODE || p_cfg->fcr.mode == L2CAP_FCR_STREAM_MODE) in l2c_fcr_process_peer_cfg_req()
2399 p_ccb->peer_cfg.fcr = p_cfg->fcr; in l2c_fcr_process_peer_cfg_req()
2401 if (p_cfg->fcr_present) in l2c_fcr_process_peer_cfg_req()