Home
last modified time | relevance | path

Searched refs:fecparam (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/net/netdevsim/
H A Dethtool.c116 nsim_get_fecparam(struct net_device *dev, struct ethtool_fecparam *fecparam) in nsim_get_fecparam() argument
122 memcpy(fecparam, &ns->ethtool.fec, sizeof(ns->ethtool.fec)); in nsim_get_fecparam()
127 nsim_set_fecparam(struct net_device *dev, struct ethtool_fecparam *fecparam) in nsim_set_fecparam() argument
134 memcpy(&ns->ethtool.fec, fecparam, sizeof(ns->ethtool.fec)); in nsim_set_fecparam()
135 fec = fecparam->fec; in nsim_set_fecparam()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.h35 struct ethtool_fecparam *fecparam);
37 struct ethtool_fecparam *fecparam);
H A Dethtool_common.c606 struct ethtool_fecparam *fecparam) in efx_siena_ethtool_get_fecparam() argument
612 rc = efx_siena_mcdi_phy_get_fecparam(efx, fecparam); in efx_siena_ethtool_get_fecparam()
619 struct ethtool_fecparam *fecparam) in efx_siena_ethtool_set_fecparam() argument
625 rc = efx_siena_mcdi_phy_set_fecparam(efx, fecparam); in efx_siena_ethtool_set_fecparam()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dethtool_common.h38 struct ethtool_fecparam *fecparam);
40 struct ethtool_fecparam *fecparam);
H A Dethtool_common.c606 struct ethtool_fecparam *fecparam) in efx_ethtool_get_fecparam() argument
612 rc = efx_mcdi_phy_get_fecparam(efx, fecparam); in efx_ethtool_get_fecparam()
619 struct ethtool_fecparam *fecparam) in efx_ethtool_set_fecparam() argument
625 rc = efx_mcdi_phy_set_fecparam(efx, fecparam); in efx_ethtool_set_fecparam()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_ethtool.c679 struct ethtool_fecparam *fecparam) in prestera_ethtool_get_fecparam() argument
690 fecparam->fec = 0; in prestera_ethtool_get_fecparam()
696 fecparam->fec |= port_fec_caps[mode].eth_fec; in prestera_ethtool_get_fecparam()
700 fecparam->active_fec = port_fec_caps[active].eth_fec; in prestera_ethtool_get_fecparam()
702 fecparam->active_fec = ETHTOOL_FEC_AUTO; in prestera_ethtool_get_fecparam()
708 struct ethtool_fecparam *fecparam) in prestera_ethtool_set_fecparam() argument
727 if ((port_fec_caps[mode].eth_fec & fecparam->fec) && in prestera_ethtool_set_fecparam()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c1022 struct ethtool_fecparam *fecparam) in otx2_get_fecparam() argument
1033 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam()
1041 fecparam->fec = ETHTOOL_FEC_NONE; in otx2_get_fecparam()
1043 fecparam->fec = fec[rsp->fwdata.supported_fec]; in otx2_get_fecparam()
1049 struct ethtool_fecparam *fecparam) in otx2_set_fecparam() argument
1056 switch (fecparam->fec) { in otx2_set_fecparam()
1070 fecparam->fec); in otx2_set_fecparam()
/openbmc/linux/net/ethtool/
H A Dioctl.c2731 struct ethtool_fecparam fecparam = { .cmd = ETHTOOL_GFECPARAM }; in ethtool_get_fecparam() local
2737 rc = dev->ethtool_ops->get_fecparam(dev, &fecparam); in ethtool_get_fecparam()
2741 if (WARN_ON_ONCE(fecparam.reserved)) in ethtool_get_fecparam()
2742 fecparam.reserved = 0; in ethtool_get_fecparam()
2744 if (copy_to_user(useraddr, &fecparam, sizeof(fecparam))) in ethtool_get_fecparam()
2751 struct ethtool_fecparam fecparam; in ethtool_set_fecparam() local
2756 if (copy_from_user(&fecparam, useraddr, sizeof(fecparam))) in ethtool_set_fecparam()
2759 if (!fecparam.fec || fecparam.fec & ETHTOOL_FEC_NONE) in ethtool_set_fecparam()
2762 fecparam.active_fec = 0; in ethtool_set_fecparam()
2763 fecparam.reserved = 0; in ethtool_set_fecparam()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c1656 struct ethtool_fecparam *fecparam) in mlx5e_get_fecparam() argument
1669 fecparam->active_fec = pplm2ethtool_fec((unsigned long)fec_active, in mlx5e_get_fecparam()
1672 if (!fecparam->active_fec) in mlx5e_get_fecparam()
1675 fecparam->fec = pplm2ethtool_fec((unsigned long)fec_configured, in mlx5e_get_fecparam()
1682 struct ethtool_fecparam *fecparam) in mlx5e_set_fecparam() argument
1691 bitmap_from_arr32(&fec_bitmap, &fecparam->fec, sizeof(fecparam->fec) * BITS_PER_BYTE); in mlx5e_set_fecparam()
1696 if (!(pplm_fec_2_ethtool[mode] & fecparam->fec)) in mlx5e_set_fecparam()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool.c1187 ice_set_fecparam(struct net_device *netdev, struct ethtool_fecparam *fecparam) in ice_set_fecparam() argument
1193 switch (fecparam->fec) { in ice_set_fecparam()
1209 fecparam->fec); in ice_set_fecparam()
1222 ice_get_fecparam(struct net_device *netdev, struct ethtool_fecparam *fecparam) in ice_get_fecparam() argument
1240 fecparam->active_fec = ETHTOOL_FEC_BASER; in ice_get_fecparam()
1244 fecparam->active_fec = ETHTOOL_FEC_RS; in ice_get_fecparam()
1247 fecparam->active_fec = ETHTOOL_FEC_OFF; in ice_get_fecparam()
1262 fecparam->fec |= ETHTOOL_FEC_AUTO; in ice_get_fecparam()
1267 fecparam->fec |= ETHTOOL_FEC_BASER; in ice_get_fecparam()
1271 fecparam->fec |= ETHTOOL_FEC_RS; in ice_get_fecparam()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c1545 struct ethtool_fecparam *fecparam) in i40e_get_fec_param() argument
1564 fecparam->fec = 0; in i40e_get_fec_param()
1567 fecparam->fec |= ETHTOOL_FEC_AUTO; in i40e_get_fec_param()
1570 fecparam->fec |= ETHTOOL_FEC_RS; in i40e_get_fec_param()
1573 fecparam->fec |= ETHTOOL_FEC_BASER; in i40e_get_fec_param()
1575 fecparam->fec |= ETHTOOL_FEC_OFF; in i40e_get_fec_param()
1578 fecparam->active_fec = ETHTOOL_FEC_BASER; in i40e_get_fec_param()
1580 fecparam->active_fec = ETHTOOL_FEC_RS; in i40e_get_fec_param()
1582 fecparam->active_fec = ETHTOOL_FEC_OFF; in i40e_get_fec_param()
1588 struct ethtool_fecparam *fecparam) in i40e_set_fec_param() argument
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_ethtool.c1917 struct ethtool_fecparam *fecparam) in qede_get_fecparam() argument
1925 fecparam->active_fec = qede_link_to_ethtool_fec(curr_link.active_fec); in qede_get_fecparam()
1926 fecparam->fec = qede_link_to_ethtool_fec(curr_link.sup_fec); in qede_get_fecparam()
1932 struct ethtool_fecparam *fecparam) in qede_set_fecparam() argument
1944 params.fec = qede_ethtool_to_link_fec(fecparam->fec); in qede_set_fecparam()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c2030 struct ethtool_fecparam *fecparam) in bnxt_set_fecparam() argument
2035 u32 new_cfg, fec = fecparam->fec; in bnxt_set_fecparam()