/drivers/net/ethernet/microchip/ |
D | lan743x_ethtool.c | 693 struct ethtool_eee *eee) in lan743x_ethtool_get_eee() argument 708 ret = phy_ethtool_get_eee(phydev, eee); in lan743x_ethtool_get_eee() 714 eee->eee_enabled = true; in lan743x_ethtool_get_eee() 715 eee->eee_active = !!(eee->advertised & eee->lp_advertised); in lan743x_ethtool_get_eee() 716 eee->tx_lpi_enabled = true; in lan743x_ethtool_get_eee() 719 eee->tx_lpi_timer = buf; in lan743x_ethtool_get_eee() 721 eee->eee_enabled = false; in lan743x_ethtool_get_eee() 722 eee->eee_active = false; in lan743x_ethtool_get_eee() 723 eee->tx_lpi_enabled = false; in lan743x_ethtool_get_eee() 724 eee->tx_lpi_timer = 0; in lan743x_ethtool_get_eee() [all …]
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ethtool.c | 686 static int aq_ethtool_get_eee(struct net_device *ndev, struct ethtool_eee *eee) in aq_ethtool_get_eee() argument 702 eee->supported = eee_mask_to_ethtool_mask(supported_rates); in aq_ethtool_get_eee() 705 eee->advertised = eee->supported; in aq_ethtool_get_eee() 707 eee->lp_advertised = eee_mask_to_ethtool_mask(rate); in aq_ethtool_get_eee() 709 eee->eee_enabled = !!eee->advertised; in aq_ethtool_get_eee() 711 eee->tx_lpi_enabled = eee->eee_enabled; in aq_ethtool_get_eee() 713 eee->eee_active = true; in aq_ethtool_get_eee() 718 static int aq_ethtool_set_eee(struct net_device *ndev, struct ethtool_eee *eee) in aq_ethtool_set_eee() argument 738 if (eee->eee_enabled) { in aq_ethtool_set_eee()
|
/drivers/net/ethernet/broadcom/genet/ |
D | bcmmii.c | 107 priv->eee.eee_active = phy_init_eee(phydev, 0) >= 0; in bcmgenet_mii_setup() 109 priv->eee.eee_enabled && priv->eee.eee_active, in bcmgenet_mii_setup() 110 priv->eee.tx_lpi_enabled); in bcmgenet_mii_setup()
|
D | bcmgenet.h | 702 struct ethtool_eee eee; member
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 1789 if (current_link.eee.adv_caps & QED_EEE_1G_ADV) in qede_get_eee() 1791 if (current_link.eee.adv_caps & QED_EEE_10G_ADV) in qede_get_eee() 1797 if (current_link.eee.lp_adv_caps & QED_EEE_1G_ADV) in qede_get_eee() 1799 if (current_link.eee.lp_adv_caps & QED_EEE_10G_ADV) in qede_get_eee() 1802 edata->tx_lpi_timer = current_link.eee.tx_lpi_timer; in qede_get_eee() 1803 edata->eee_enabled = current_link.eee.enable; in qede_get_eee() 1804 edata->tx_lpi_enabled = current_link.eee.tx_lpi_enable; in qede_get_eee() 1844 params.eee.adv_caps = QED_EEE_1G_ADV; in qede_set_eee() 1846 params.eee.adv_caps |= QED_EEE_10G_ADV; in qede_set_eee() 1847 params.eee.enable = edata->eee_enabled; in qede_set_eee() [all …]
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_main.c | 1790 memcpy(&link_params->eee, ¶ms->eee, in qed_set_link() 1791 sizeof(link_params->eee)); in qed_set_link() 2200 if_link->eee.adv_caps = link.eee_adv_caps ? link.eee_adv_caps : in qed_fill_link() 2201 params.eee.adv_caps; in qed_fill_link() 2202 if_link->eee.lp_adv_caps = link.eee_lp_adv_caps; in qed_fill_link() 2203 if_link->eee.enable = params.eee.enable; in qed_fill_link() 2204 if_link->eee.tx_lpi_enable = params.eee.tx_lpi_enable; in qed_fill_link() 2205 if_link->eee.tx_lpi_timer = params.eee.tx_lpi_timer; in qed_fill_link()
|
D | qed_mcp.h | 63 struct qed_link_eee_params eee; member
|
/drivers/net/usb/ |
D | r8152.c | 813 int (*eee_get)(struct r8152 *tp, struct ethtool_eee *eee); 814 int (*eee_set)(struct r8152 *tp, struct ethtool_eee *eee); 826 u32 eee:1; member 3088 if (tp->ups_info.eee) in r8153b_ups_flags() 4191 tp->ups_info.eee = enable; in r8153_eee_en() 6068 static int r8152_get_eee(struct r8152 *tp, struct ethtool_eee *eee) in r8152_get_eee() argument 6082 eee->eee_enabled = tp->eee_en; in r8152_get_eee() 6083 eee->eee_active = !!(supported & adv & lp); in r8152_get_eee() 6084 eee->supported = supported; in r8152_get_eee() 6085 eee->advertised = tp->eee_adv; in r8152_get_eee() [all …]
|
/drivers/net/ethernet/marvell/ |
D | mvneta.c | 4867 struct ethtool_eee *eee) in mvneta_ethtool_get_eee() argument 4874 eee->eee_enabled = pp->eee_enabled; in mvneta_ethtool_get_eee() 4875 eee->eee_active = pp->eee_active; in mvneta_ethtool_get_eee() 4876 eee->tx_lpi_enabled = pp->tx_lpi_enabled; in mvneta_ethtool_get_eee() 4877 eee->tx_lpi_timer = (lpi_ctl0) >> 8; // * scale; in mvneta_ethtool_get_eee() 4879 return phylink_ethtool_get_eee(pp->phylink, eee); in mvneta_ethtool_get_eee() 4883 struct ethtool_eee *eee) in mvneta_ethtool_set_eee() argument 4890 if (eee->tx_lpi_enabled && eee->tx_lpi_timer > 255) in mvneta_ethtool_set_eee() 4895 lpi_ctl0 |= eee->tx_lpi_timer << 8; in mvneta_ethtool_set_eee() 4898 pp->eee_enabled = eee->eee_enabled; in mvneta_ethtool_set_eee() [all …]
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 2820 struct ethtool_eee *eee = &bp->eee; in bnxt_set_eee() local 2849 edata->tx_lpi_timer = eee->tx_lpi_timer; in bnxt_set_eee() 2853 edata->advertised = advertising & eee->supported; in bnxt_set_eee() 2861 eee->advertised = edata->advertised; in bnxt_set_eee() 2862 eee->tx_lpi_enabled = edata->tx_lpi_enabled; in bnxt_set_eee() 2863 eee->tx_lpi_timer = edata->tx_lpi_timer; in bnxt_set_eee() 2865 eee->eee_enabled = edata->eee_enabled; in bnxt_set_eee() 2882 *edata = bp->eee; in bnxt_get_eee() 2883 if (!bp->eee.eee_enabled) { in bnxt_get_eee() 2891 if (!bp->eee.eee_active) in bnxt_get_eee()
|
D | bnxt.c | 9045 bp->eee.eee_active ? "active" : in bnxt_report_link() 9090 struct ethtool_eee *eee = &bp->eee; in bnxt_hwrm_phy_qcaps() local 9094 eee->supported = _bnxt_fw_to_ethtool_adv_spds(fw_speeds, 0); in bnxt_hwrm_phy_qcaps() 9205 struct ethtool_eee *eee = &bp->eee; in bnxt_update_link() local 9208 eee->eee_active = 0; in bnxt_update_link() 9211 eee->eee_active = 1; in bnxt_update_link() 9214 eee->lp_advertised = in bnxt_update_link() 9222 eee->eee_enabled = 1; in bnxt_update_link() 9225 eee->advertised = in bnxt_update_link() 9232 eee->tx_lpi_enabled = 1; in bnxt_update_link() [all …]
|
/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-common.c | 397 hw_feat->eee = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features() 539 pdata->hw_feat.eee ? "YES" : "NO"); in xlgmac_print_all_hw_features()
|
D | dwc-xlgmac.h | 507 unsigned int eee; /* Energy Efficient Ethernet */ member
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac1000_dma.c | 250 dma_cap->eee = (hw_cap & DMA_HW_FEAT_EEESEL) >> 14; in dwmac1000_get_hw_feature()
|
D | common.h | 343 unsigned int eee; member
|
D | stmmac_ethtool.c | 704 if (!priv->dma_cap.eee) in stmmac_ethtool_op_get_eee() 721 if (!priv->dma_cap.eee) in stmmac_ethtool_op_set_eee()
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_common.h | 415 unsigned int eee; member
|
D | sxgbe_ethtool.c | 140 if (!priv->hw_cap.eee) in sxgbe_get_eee()
|
/drivers/net/phy/ |
D | phylink.c | 1748 int phylink_ethtool_get_eee(struct phylink *pl, struct ethtool_eee *eee) in phylink_ethtool_get_eee() argument 1755 ret = phy_ethtool_get_eee(pl->phydev, eee); in phylink_ethtool_get_eee() 1766 int phylink_ethtool_set_eee(struct phylink *pl, struct ethtool_eee *eee) in phylink_ethtool_set_eee() argument 1773 ret = phy_ethtool_set_eee(pl->phydev, eee); in phylink_ethtool_set_eee()
|
/drivers/net/ethernet/broadcom/ |
D | tg3.c | 2347 static void tg3_eee_pull_config(struct tg3 *tp, struct ethtool_eee *eee) in tg3_eee_pull_config() argument 2350 struct ethtool_eee *dest = &tp->eee; in tg3_eee_pull_config() 2355 if (eee) in tg3_eee_pull_config() 2356 dest = eee; in tg3_eee_pull_config() 2411 if (tp->eee.eee_active) in tg3_phy_eee_adjust() 4370 if (!tp->eee.eee_enabled) { in tg3_phy_autoneg_cfg() 4372 tp->eee.advertised = 0; in tg3_phy_autoneg_cfg() 4374 tp->eee.advertised = advertise & in tg3_phy_autoneg_cfg() 4626 struct ethtool_eee eee; in tg3_phy_eee_config_ok() local 4631 tg3_eee_pull_config(tp, &eee); in tg3_phy_eee_config_ok() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc.h | 123 struct ethtool_eee eee; member
|
/drivers/net/dsa/b53/ |
D | b53_priv.h | 93 struct ethtool_eee eee; member
|
D | b53_common.c | 562 if (dev->ports[port].eee.eee_enabled) in b53_enable_port() 1155 struct ethtool_eee *p = &dev->ports[port].eee; in b53_adjust_link() 2145 struct ethtool_eee *p = &dev->ports[port].eee; in b53_get_mac_eee() 2162 struct ethtool_eee *p = &dev->ports[port].eee; in b53_set_mac_eee()
|
/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
D | hw_atl2_utils.h | 252 u8 eee:1; member
|
/drivers/net/dsa/ |
D | qca8k.c | 1085 qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *eee) in qca8k_set_mac_eee() argument 1093 if (eee->eee_enabled) in qca8k_set_mac_eee()
|