Lines Matching refs:edata
2059 static int bnx2x_get_eee(struct net_device *dev, struct ethtool_eee *edata) in bnx2x_get_eee() argument
2071 edata->supported = in bnx2x_get_eee()
2075 edata->advertised = in bnx2x_get_eee()
2078 edata->lp_advertised = in bnx2x_get_eee()
2083 edata->tx_lpi_timer = (eee_cfg & SHMEM_EEE_TIMER_MASK) << 4; in bnx2x_get_eee()
2085 edata->eee_enabled = (eee_cfg & SHMEM_EEE_REQUESTED_BIT) ? 1 : 0; in bnx2x_get_eee()
2086 edata->eee_active = (eee_cfg & SHMEM_EEE_ACTIVE_BIT) ? 1 : 0; in bnx2x_get_eee()
2087 edata->tx_lpi_enabled = (eee_cfg & SHMEM_EEE_LPI_REQUESTED_BIT) ? 1 : 0; in bnx2x_get_eee()
2092 static int bnx2x_set_eee(struct net_device *dev, struct ethtool_eee *edata) in bnx2x_set_eee() argument
2113 advertised = bnx2x_adv_to_eee(edata->advertised, in bnx2x_set_eee()
2121 if (edata->tx_lpi_timer > EEE_MODE_TIMER_MASK) { in bnx2x_set_eee()
2127 if (edata->tx_lpi_enabled && in bnx2x_set_eee()
2128 (edata->tx_lpi_timer < EEE_MODE_NVRAM_AGGRESSIVE_TIME)) { in bnx2x_set_eee()
2136 if (edata->eee_enabled) in bnx2x_set_eee()
2141 if (edata->tx_lpi_enabled) in bnx2x_set_eee()
2147 bp->link_params.eee_mode |= (edata->tx_lpi_timer & in bnx2x_set_eee()