Lines Matching refs:fec_cfg
1482 static int i40e_set_fec_cfg(struct net_device *netdev, u8 fec_cfg) in i40e_set_fec_cfg() argument
1493 i40e_set_fec_in_flags(fec_cfg, &flags); in i40e_set_fec_cfg()
1504 if (abilities.fec_cfg_curr_mod_ext_info != fec_cfg) { in i40e_set_fec_cfg()
1516 config.fec_config = fec_cfg & I40E_AQ_PHY_FEC_CONFIG_MASK; in i40e_set_fec_cfg()
1552 u8 fec_cfg; in i40e_get_fec_param() local
1564 fec_cfg = abilities.fec_cfg_curr_mod_ext_info; in i40e_get_fec_param()
1565 if (fec_cfg & I40E_AQ_SET_FEC_AUTO) in i40e_get_fec_param()
1567 else if (fec_cfg & (I40E_AQ_SET_FEC_REQUEST_RS | in i40e_get_fec_param()
1570 else if (fec_cfg & (I40E_AQ_SET_FEC_REQUEST_KR | in i40e_get_fec_param()
1573 if (fec_cfg == 0) in i40e_get_fec_param()
1592 u8 fec_cfg = 0; in i40e_set_fec_param() local
1607 fec_cfg = I40E_AQ_SET_FEC_AUTO; in i40e_set_fec_param()
1610 fec_cfg = (I40E_AQ_SET_FEC_REQUEST_RS | in i40e_set_fec_param()
1614 fec_cfg = (I40E_AQ_SET_FEC_REQUEST_KR | in i40e_set_fec_param()
1619 fec_cfg = 0; in i40e_set_fec_param()
1627 return i40e_set_fec_cfg(netdev, fec_cfg); in i40e_set_fec_param()
5375 u8 fec_cfg = 0; in i40e_set_priv_flags() local
5379 fec_cfg = I40E_AQ_SET_FEC_AUTO; in i40e_set_priv_flags()
5381 fec_cfg = (I40E_AQ_SET_FEC_REQUEST_RS | in i40e_set_priv_flags()
5384 fec_cfg = (I40E_AQ_SET_FEC_REQUEST_KR | in i40e_set_priv_flags()
5387 if (i40e_set_fec_cfg(dev, fec_cfg)) in i40e_set_priv_flags()