/Linux-v5.15/drivers/net/netdevsim/ |
D | ethtool.c | 85 nsim_get_fecparam(struct net_device *dev, struct ethtool_fecparam *fecparam) in nsim_get_fecparam() argument 91 memcpy(fecparam, &ns->ethtool.fec, sizeof(ns->ethtool.fec)); in nsim_get_fecparam() 96 nsim_set_fecparam(struct net_device *dev, struct ethtool_fecparam *fecparam) in nsim_set_fecparam() argument 103 memcpy(&ns->ethtool.fec, fecparam, sizeof(ns->ethtool.fec)); in nsim_set_fecparam() 104 fec = fecparam->fec; in nsim_set_fecparam()
|
/Linux-v5.15/drivers/net/ethernet/sfc/ |
D | ethtool_common.h | 38 struct ethtool_fecparam *fecparam); 40 struct ethtool_fecparam *fecparam);
|
D | ethtool_common.c | 611 struct ethtool_fecparam *fecparam) in efx_ethtool_get_fecparam() argument 617 rc = efx_mcdi_phy_get_fecparam(efx, fecparam); in efx_ethtool_get_fecparam() 624 struct ethtool_fecparam *fecparam) in efx_ethtool_set_fecparam() argument 630 rc = efx_mcdi_phy_set_fecparam(efx, fecparam); in efx_ethtool_set_fecparam()
|
/Linux-v5.15/drivers/net/ethernet/marvell/prestera/ |
D | prestera_ethtool.c | 664 struct ethtool_fecparam *fecparam) in prestera_ethtool_get_fecparam() argument 675 fecparam->fec = 0; in prestera_ethtool_get_fecparam() 681 fecparam->fec |= port_fec_caps[mode].eth_fec; in prestera_ethtool_get_fecparam() 685 fecparam->active_fec = port_fec_caps[active].eth_fec; in prestera_ethtool_get_fecparam() 687 fecparam->active_fec = ETHTOOL_FEC_AUTO; in prestera_ethtool_get_fecparam() 693 struct ethtool_fecparam *fecparam) in prestera_ethtool_set_fecparam() argument 711 if ((port_fec_caps[mode].eth_fec & fecparam->fec) && in prestera_ethtool_set_fecparam()
|
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 927 struct ethtool_fecparam *fecparam) in otx2_get_fecparam() argument 938 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam() 946 fecparam->fec = ETHTOOL_FEC_NONE; in otx2_get_fecparam() 948 fecparam->fec = fec[rsp->fwdata.supported_fec]; in otx2_get_fecparam() 954 struct ethtool_fecparam *fecparam) in otx2_set_fecparam() argument 961 switch (fecparam->fec) { in otx2_set_fecparam() 975 fecparam->fec); in otx2_set_fecparam()
|
/Linux-v5.15/net/ethtool/ |
D | ioctl.c | 2659 struct ethtool_fecparam fecparam = { .cmd = ETHTOOL_GFECPARAM }; in ethtool_get_fecparam() local 2665 rc = dev->ethtool_ops->get_fecparam(dev, &fecparam); in ethtool_get_fecparam() 2669 if (WARN_ON_ONCE(fecparam.reserved)) in ethtool_get_fecparam() 2670 fecparam.reserved = 0; in ethtool_get_fecparam() 2672 if (copy_to_user(useraddr, &fecparam, sizeof(fecparam))) in ethtool_get_fecparam() 2679 struct ethtool_fecparam fecparam; in ethtool_set_fecparam() local 2684 if (copy_from_user(&fecparam, useraddr, sizeof(fecparam))) in ethtool_set_fecparam() 2687 if (!fecparam.fec || fecparam.fec & ETHTOOL_FEC_NONE) in ethtool_set_fecparam() 2690 fecparam.active_fec = 0; in ethtool_set_fecparam() 2691 fecparam.reserved = 0; in ethtool_set_fecparam() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 1599 struct ethtool_fecparam *fecparam) in mlx5e_get_fecparam() argument 1612 fecparam->active_fec = pplm2ethtool_fec((unsigned long)fec_active, in mlx5e_get_fecparam() 1615 if (!fecparam->active_fec) in mlx5e_get_fecparam() 1618 fecparam->fec = pplm2ethtool_fec((unsigned long)fec_configured, in mlx5e_get_fecparam() 1625 struct ethtool_fecparam *fecparam) in mlx5e_set_fecparam() argument 1634 bitmap_from_arr32(&fec_bitmap, &fecparam->fec, sizeof(fecparam->fec) * BITS_PER_BYTE); in mlx5e_set_fecparam() 1639 if (!(pplm_fec_2_ethtool[mode] & fecparam->fec)) in mlx5e_set_fecparam()
|
/Linux-v5.15/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 993 ice_set_fecparam(struct net_device *netdev, struct ethtool_fecparam *fecparam) in ice_set_fecparam() argument 999 switch (fecparam->fec) { in ice_set_fecparam() 1015 fecparam->fec); in ice_set_fecparam() 1028 ice_get_fecparam(struct net_device *netdev, struct ethtool_fecparam *fecparam) in ice_get_fecparam() argument 1047 fecparam->active_fec = ETHTOOL_FEC_BASER; in ice_get_fecparam() 1051 fecparam->active_fec = ETHTOOL_FEC_RS; in ice_get_fecparam() 1054 fecparam->active_fec = ETHTOOL_FEC_OFF; in ice_get_fecparam() 1071 fecparam->fec |= ETHTOOL_FEC_AUTO; in ice_get_fecparam() 1076 fecparam->fec |= ETHTOOL_FEC_BASER; in ice_get_fecparam() 1080 fecparam->fec |= ETHTOOL_FEC_RS; in ice_get_fecparam() [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 1446 struct ethtool_fecparam *fecparam) in i40e_get_fec_param() argument 1465 fecparam->fec = 0; in i40e_get_fec_param() 1468 fecparam->fec |= ETHTOOL_FEC_AUTO; in i40e_get_fec_param() 1471 fecparam->fec |= ETHTOOL_FEC_RS; in i40e_get_fec_param() 1474 fecparam->fec |= ETHTOOL_FEC_BASER; in i40e_get_fec_param() 1476 fecparam->fec |= ETHTOOL_FEC_OFF; in i40e_get_fec_param() 1479 fecparam->active_fec = ETHTOOL_FEC_BASER; in i40e_get_fec_param() 1481 fecparam->active_fec = ETHTOOL_FEC_RS; in i40e_get_fec_param() 1483 fecparam->active_fec = ETHTOOL_FEC_OFF; in i40e_get_fec_param() 1489 struct ethtool_fecparam *fecparam) in i40e_set_fec_param() argument [all …]
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 1883 struct ethtool_fecparam *fecparam) in qede_get_fecparam() argument 1891 fecparam->active_fec = qede_link_to_ethtool_fec(curr_link.active_fec); in qede_get_fecparam() 1892 fecparam->fec = qede_link_to_ethtool_fec(curr_link.sup_fec); in qede_get_fecparam() 1898 struct ethtool_fecparam *fecparam) in qede_set_fecparam() argument 1910 params.fec = qede_ethtool_to_link_fec(fecparam->fec); in qede_set_fecparam()
|
/Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 1981 struct ethtool_fecparam *fecparam) in bnxt_set_fecparam() argument 1986 u32 new_cfg, fec = fecparam->fec; in bnxt_set_fecparam()
|