Lines Matching refs:fcr
182 tout = (UINT32)p_ccb->our_cfg.fcr.mon_tout;
186 tout = (UINT32)p_ccb->our_cfg.fcr.rtrans_tout;
249 if ( (p_ccb->local_cid >= L2CAP_BASE_APPL_CID) && (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) )
265 "max_held_acks:%08u, in_cfg.fcr.tx_win_sz:%08u", p_ccb->fcrb.max_held_acks, p_ccb->peer_cfg.fcr.tx_win_sz );
389 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)
393 || (p_ccb->fcrb.waiting_for_ack_q.count >= p_ccb->peer_cfg.fcr.tx_win_sz) )
414 ** Description This function sets the FCR variables in an I-frame that is
449 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)
507 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)
656 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_STREAM_MODE)
868 p_ccb->local_cid, p_ccb->fcrb.num_tries, p_ccb->peer_cfg.fcr.max_transmit,
875 if ( (p_ccb->peer_cfg.fcr.max_transmit != 0) && (++p_ccb->fcrb.num_tries > p_ccb->peer_cfg.fcr.max_transmit) )
1154 if (num_lost >= p_ccb->our_cfg.fcr.tx_win_sz)
1170 if ( (tx_seq == next_srej) && (p_fcrb->srej_rcv_hold_q.count < p_ccb->our_cfg.fcr.tx_win_sz) )
1200 p_ccb->local_cid, next_srej, p_fcrb->srej_rcv_hold_q.count, p_ccb->our_cfg.fcr.tx_win_sz);
1521 && (p_ccb->peer_cfg.fcr.max_transmit != 0)
1522 && (p_ccb->fcrb.num_tries >= p_ccb->peer_cfg.fcr.max_transmit) )
1525 p_ccb->fcrb.last_rx_ack, p_ccb->local_cid, p_ccb->fcrb.num_tries, p_ccb->peer_cfg.fcr.max_transmit,
1757 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)
1822 ** Description Validates and adjusts if necessary, the FCR options
1826 ** Basic mode is used if FCR Options have not been received
1853 ** Description Validates and sets up the FCR options passed in from
1861 tL2CAP_FCR_OPTS *p_fcr = &p_cfg->fcr;
1877 L2CAP_TRACE_WARNING1 ("l2c_fcr_adj_our_req_options (mode %d): ERROR: No FCR options set using BASIC mode", p_fcr->mode);
1882 /* Process the FCR options if initial channel bring-up (not a reconfig request)
1898 /* We only want to try Basic, so bypass sending the FCR options entirely */
1955 p_ccb->our_cfg.fcr = *p_fcr;
1957 else /* Not sure how to send a reconfiguration(??) should fcr be included? */
1984 if ((p_ccb->our_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)
1985 ||(p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE))
1988 p_ccb->our_cfg.fcr.mon_tout = L2CAP_MIN_MONITOR_TOUT;
1989 p_ccb->our_cfg.fcr.rtrans_tout = L2CAP_MIN_RETRANS_TOUT;
1993 p_ccb->our_cfg.fcr.mon_tout = 0;
1994 p_ccb->our_cfg.fcr.rtrans_tout = 0;
1998 p_ccb->our_cfg.fcr.mon_tout, p_ccb->our_cfg.fcr.rtrans_tout);
2005 ** Description Overrides any neccesary FCR options passed in from
2006 ** L2CA_ConfigRsp based on our FCR options.
2025 if (p_ccb->peer_cfg.fcr.tx_win_sz > p_ccb->our_cfg.fcr.tx_win_sz)
2027 L2CAP_TRACE_DEBUG3 ("%s: adjusting requested tx_win_sz from %i to %i", __FUNCTION__, p_ccb->peer_cfg.fcr.tx_win_sz, p_ccb->our_cfg.fcr.tx_win_sz);
2028 p_ccb->peer_cfg.fcr.tx_win_sz = p_ccb->our_cfg.fcr.tx_win_sz;
2032 p_cfg->fcr.mode = p_ccb->peer_cfg.fcr.mode;
2033 p_cfg->fcr.tx_win_sz = p_ccb->peer_cfg.fcr.tx_win_sz;
2034 p_cfg->fcr.max_transmit = p_ccb->peer_cfg.fcr.max_transmit;
2035 p_cfg->fcr.mps = p_ccb->peer_cfg.fcr.mps;
2036 p_cfg->fcr.rtrans_tout = p_ccb->our_cfg.fcr.rtrans_tout;
2037 p_cfg->fcr.mon_tout = p_ccb->our_cfg.fcr.mon_tout;
2055 UINT8 peer_mode = p_ccb->our_cfg.fcr.mode;
2058 /* Skip if this is a reconfiguration from OPEN STATE or if FCR is not returned */
2065 peer_mode = (p_cfg->fcr_present) ? p_cfg->fcr.mode : L2CAP_FCR_BASIC_MODE;
2067 if (p_ccb->our_cfg.fcr.mode != peer_mode)
2079 switch (p_ccb->our_cfg.fcr.mode)
2087 p_ccb->our_cfg.fcr.mode = L2CAP_FCR_ERTM_MODE;
2099 p_ccb->our_cfg.fcr.mode = L2CAP_FCR_BASIC_MODE;
2113 if (p_ccb->our_cfg.fcr.mode == L2CAP_FCR_BASIC_MODE)
2135 if (p_ccb->our_cfg.fcr.mode != peer_mode)
2138 p_ccb->our_cfg.fcr.mode, peer_mode);
2150 ** Description This function is called to process the FCR options passed
2164 L2CAP_TRACE_EVENT5 ("l2c_fcr_process_peer_cfg_req() CFG fcr_present:%d fcr.mode:%d CCB FCR mode:%d preferred: %u allowed:%u",
2165 p_cfg->fcr_present, p_cfg->fcr.mode, p_ccb->our_cfg.fcr.mode, p_ccb->ertm_info.preferred_mode,
2169 if (p_cfg->fcr.mode == L2CAP_FCR_BASIC_MODE)
2177 else if (p_cfg->fcr.mode != p_ccb->ertm_info.preferred_mode)
2184 if ( (((1 << p_cfg->fcr.mode) & L2CAP_FCR_CHAN_OPT_ALL_MASK) == 0)
2187 p_cfg->fcr.mode = p_ccb->our_cfg.fcr.mode;
2188 p_cfg->fcr.tx_win_sz = p_ccb->our_cfg.fcr.tx_win_sz;
2189 p_cfg->fcr.max_transmit = p_ccb->our_cfg.fcr.max_transmit;
2196 p_cfg->fcr.mode = L2CAP_FCR_BASIC_MODE;
2197 p_cfg->fcr.max_transmit = p_cfg->fcr.tx_win_sz = 0;
2198 p_cfg->fcr.rtrans_tout = p_cfg->fcr.mon_tout = p_cfg->fcr.mps = 0;
2199 p_ccb->our_cfg.fcr.rtrans_tout = p_ccb->our_cfg.fcr.mon_tout = p_ccb->our_cfg.fcr.mps = 0;
2205 else if ( (p_cfg->fcr.mode != L2CAP_FCR_ERTM_MODE)
2212 /* Configuration for FCR channels so make any adjustments and fwd to upper layer */
2219 if (p_cfg->fcr_present && p_cfg->fcr.mode != L2CAP_FCR_BASIC_MODE)
2234 if ( (p_cfg->fcr.mps == 0) || (p_cfg->fcr.mps > p_ccb->peer_cfg.mtu) )
2236 p_cfg->fcr.mps = p_ccb->peer_cfg.mtu;
2241 if (p_cfg->fcr.mps > max_retrans_size)
2243 L2CAP_TRACE_DEBUG2("CFG: Overriding MPS to %d (orig %d)", max_retrans_size, p_cfg->fcr.mps);
2245 p_cfg->fcr.mps = max_retrans_size;
2249 if (p_cfg->fcr.mode == L2CAP_FCR_ERTM_MODE)
2251 /* Always respond with FCR ERTM parameters */
2256 /* Everything ok, so save the peer's adjusted fcr options */
2257 p_ccb->peer_cfg.fcr = p_cfg->fcr;