Home
last modified time | relevance | path

Searched refs:eee (Results 1 – 25 of 40) sorted by relevance

12

/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c693 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/
Daq_ethtool.c686 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/
Dbcmmii.c107 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()
Dbcmgenet.h702 struct ethtool_eee eee; member
/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c1789 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/
Dqed_main.c1790 memcpy(&link_params->eee, &params->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()
Dqed_mcp.h63 struct qed_link_eee_params eee; member
/drivers/net/usb/
Dr8152.c813 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/
Dmvneta.c4867 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/
Dbnxt_ethtool.c2820 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()
Dbnxt.c9045 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/
Ddwc-xlgmac-common.c397 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()
Ddwc-xlgmac.h507 unsigned int eee; /* Energy Efficient Ethernet */ member
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac1000_dma.c250 dma_cap->eee = (hw_cap & DMA_HW_FEAT_EEESEL) >> 14; in dwmac1000_get_hw_feature()
Dcommon.h343 unsigned int eee; member
Dstmmac_ethtool.c704 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/
Dsxgbe_common.h415 unsigned int eee; member
Dsxgbe_ethtool.c140 if (!priv->hw_cap.eee) in sxgbe_get_eee()
/drivers/net/phy/
Dphylink.c1748 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/
Dtg3.c2347 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/
Digc.h123 struct ethtool_eee eee; member
/drivers/net/dsa/b53/
Db53_priv.h93 struct ethtool_eee eee; member
Db53_common.c562 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/
Dhw_atl2_utils.h252 u8 eee:1; member
/drivers/net/dsa/
Dqca8k.c1085 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()

12