Lines Matching refs:fcr
169 tout = (uint32_t)p_ccb->our_cfg.fcr.mon_tout; in l2c_fcr_start_timer()
171 tout = (uint32_t)p_ccb->our_cfg.fcr.rtrans_tout; in l2c_fcr_start_timer()
267 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) { in l2c_fcr_is_flow_controlled()
271 p_ccb->peer_cfg.fcr.tx_win_sz)) { in l2c_fcr_is_flow_controlled()
317 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) { in prepare_I_frame()
372 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in prepare_I_frame()
787 p_ccb->local_cid, p_ccb->fcrb.num_tries, p_ccb->peer_cfg.fcr.max_transmit, in l2c_fcr_proc_tout()
790 if ((p_ccb->peer_cfg.fcr.max_transmit != 0) && in l2c_fcr_proc_tout()
791 (++p_ccb->fcrb.num_tries > p_ccb->peer_cfg.fcr.max_transmit)) { in l2c_fcr_proc_tout()
1024 if (num_lost >= p_ccb->our_cfg.fcr.tx_win_sz) { in process_i_frame()
1049 p_ccb->our_cfg.fcr.tx_win_sz)) { in process_i_frame()
1063 p_ccb->our_cfg.fcr.tx_win_sz); in process_i_frame()
1278 (p_ccb->peer_cfg.fcr.max_transmit != 0) && in retransmit_i_frames()
1279 (p_ccb->fcrb.num_tries >= p_ccb->peer_cfg.fcr.max_transmit)) { in retransmit_i_frames()
1284 p_ccb->peer_cfg.fcr.max_transmit, in retransmit_i_frames()
1493 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) { in l2c_fcr_get_next_xmit_sdu_seg()
1630 if ((p_ccb->our_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) || in l2c_fcr_adj_monitor_retran_timeout()
1631 (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)) { in l2c_fcr_adj_monitor_retran_timeout()
1633 p_ccb->our_cfg.fcr.mon_tout = L2CAP_MIN_MONITOR_TOUT; in l2c_fcr_adj_monitor_retran_timeout()
1634 p_ccb->our_cfg.fcr.rtrans_tout = L2CAP_MIN_RETRANS_TOUT; in l2c_fcr_adj_monitor_retran_timeout()
1636 p_ccb->our_cfg.fcr.mon_tout = 0; in l2c_fcr_adj_monitor_retran_timeout()
1637 p_ccb->our_cfg.fcr.rtrans_tout = 0; in l2c_fcr_adj_monitor_retran_timeout()
1642 p_ccb->our_cfg.fcr.mon_tout, p_ccb->our_cfg.fcr.rtrans_tout); in l2c_fcr_adj_monitor_retran_timeout()
1670 if (p_ccb->peer_cfg.fcr.tx_win_sz > p_ccb->our_cfg.fcr.tx_win_sz) { in l2c_fcr_adj_our_rsp_options()
1672 p_ccb->peer_cfg.fcr.tx_win_sz, p_ccb->our_cfg.fcr.tx_win_sz); in l2c_fcr_adj_our_rsp_options()
1673 p_ccb->peer_cfg.fcr.tx_win_sz = p_ccb->our_cfg.fcr.tx_win_sz; in l2c_fcr_adj_our_rsp_options()
1676 p_cfg->fcr.mode = p_ccb->peer_cfg.fcr.mode; in l2c_fcr_adj_our_rsp_options()
1677 p_cfg->fcr.tx_win_sz = p_ccb->peer_cfg.fcr.tx_win_sz; in l2c_fcr_adj_our_rsp_options()
1678 p_cfg->fcr.max_transmit = p_ccb->peer_cfg.fcr.max_transmit; in l2c_fcr_adj_our_rsp_options()
1679 p_cfg->fcr.mps = p_ccb->peer_cfg.fcr.mps; in l2c_fcr_adj_our_rsp_options()
1680 p_cfg->fcr.rtrans_tout = p_ccb->our_cfg.fcr.rtrans_tout; in l2c_fcr_adj_our_rsp_options()
1681 p_cfg->fcr.mon_tout = p_ccb->our_cfg.fcr.mon_tout; in l2c_fcr_adj_our_rsp_options()
1701 uint8_t peer_mode = p_ccb->our_cfg.fcr.mode; in l2c_fcr_renegotiate_chan()
1711 peer_mode = (p_cfg->fcr_present) ? p_cfg->fcr.mode : L2CAP_FCR_BASIC_MODE; in l2c_fcr_renegotiate_chan()
1713 if (p_ccb->our_cfg.fcr.mode != peer_mode) { in l2c_fcr_renegotiate_chan()
1723 switch (p_ccb->our_cfg.fcr.mode) { in l2c_fcr_renegotiate_chan()
1729 p_ccb->our_cfg.fcr.mode = L2CAP_FCR_BASIC_MODE; in l2c_fcr_renegotiate_chan()
1740 if (p_ccb->our_cfg.fcr.mode == L2CAP_FCR_BASIC_MODE) { in l2c_fcr_renegotiate_chan()
1761 if (p_ccb->our_cfg.fcr.mode != peer_mode) { in l2c_fcr_renegotiate_chan()
1763 p_ccb->our_cfg.fcr.mode, peer_mode); in l2c_fcr_renegotiate_chan()
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 != p_ccb->p_rcb->ertm_info.preferred_mode) { in l2c_fcr_process_peer_cfg_req()
1805 if ((((1 << p_cfg->fcr.mode) & L2CAP_FCR_CHAN_OPT_ALL_MASK) == 0) || in l2c_fcr_process_peer_cfg_req()
1807 (p_cfg->fcr.mode != L2CAP_FCR_BASIC_MODE))) { in l2c_fcr_process_peer_cfg_req()
1808 p_cfg->fcr.mode = p_ccb->our_cfg.fcr.mode; in l2c_fcr_process_peer_cfg_req()
1809 p_cfg->fcr.tx_win_sz = p_ccb->our_cfg.fcr.tx_win_sz; in l2c_fcr_process_peer_cfg_req()
1810 p_cfg->fcr.max_transmit = p_ccb->our_cfg.fcr.max_transmit; in l2c_fcr_process_peer_cfg_req()
1816 p_cfg->fcr.mode = L2CAP_FCR_BASIC_MODE; in l2c_fcr_process_peer_cfg_req()
1817 p_cfg->fcr.max_transmit = p_cfg->fcr.tx_win_sz = 0; in l2c_fcr_process_peer_cfg_req()
1818 p_cfg->fcr.rtrans_tout = p_cfg->fcr.mon_tout = p_cfg->fcr.mps = 0; in l2c_fcr_process_peer_cfg_req()
1819 p_ccb->our_cfg.fcr.rtrans_tout = p_ccb->our_cfg.fcr.mon_tout = in l2c_fcr_process_peer_cfg_req()
1820 p_ccb->our_cfg.fcr.mps = 0; in l2c_fcr_process_peer_cfg_req()
1832 if (p_cfg->fcr_present && p_cfg->fcr.mode != L2CAP_FCR_BASIC_MODE) { in l2c_fcr_process_peer_cfg_req()
1843 if ((p_cfg->fcr.mps == 0) || (p_cfg->fcr.mps > p_ccb->peer_cfg.mtu)) { in l2c_fcr_process_peer_cfg_req()
1844 p_cfg->fcr.mps = p_ccb->peer_cfg.mtu; in l2c_fcr_process_peer_cfg_req()
1849 if (p_cfg->fcr.mps > max_retrans_size) { in l2c_fcr_process_peer_cfg_req()
1851 p_cfg->fcr.mps); in l2c_fcr_process_peer_cfg_req()
1853 p_cfg->fcr.mps = max_retrans_size; in l2c_fcr_process_peer_cfg_req()
1857 if (p_cfg->fcr.mode == L2CAP_FCR_ERTM_MODE) { in l2c_fcr_process_peer_cfg_req()
1864 p_ccb->peer_cfg.fcr = p_cfg->fcr; in l2c_fcr_process_peer_cfg_req()