Lines Matching refs:ecmd

2485 jme_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd)  in jme_get_coalesce()  argument
2489 ecmd->tx_coalesce_usecs = PCC_TX_TO; in jme_get_coalesce()
2490 ecmd->tx_max_coalesced_frames = PCC_TX_CNT; in jme_get_coalesce()
2493 ecmd->use_adaptive_rx_coalesce = false; in jme_get_coalesce()
2494 ecmd->rx_coalesce_usecs = 0; in jme_get_coalesce()
2495 ecmd->rx_max_coalesced_frames = 0; in jme_get_coalesce()
2499 ecmd->use_adaptive_rx_coalesce = true; in jme_get_coalesce()
2503 ecmd->rx_coalesce_usecs = PCC_P1_TO; in jme_get_coalesce()
2504 ecmd->rx_max_coalesced_frames = PCC_P1_CNT; in jme_get_coalesce()
2507 ecmd->rx_coalesce_usecs = PCC_P2_TO; in jme_get_coalesce()
2508 ecmd->rx_max_coalesced_frames = PCC_P2_CNT; in jme_get_coalesce()
2511 ecmd->rx_coalesce_usecs = PCC_P3_TO; in jme_get_coalesce()
2512 ecmd->rx_max_coalesced_frames = PCC_P3_CNT; in jme_get_coalesce()
2522 jme_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_set_coalesce() argument
2530 if (ecmd->use_adaptive_rx_coalesce && in jme_set_coalesce()
2539 } else if (!(ecmd->use_adaptive_rx_coalesce) && in jme_set_coalesce()
2551 struct ethtool_pauseparam *ecmd) in jme_get_pauseparam() argument
2556 ecmd->tx_pause = (jme->reg_txpfc & TXPFC_PF_EN) != 0; in jme_get_pauseparam()
2557 ecmd->rx_pause = (jme->reg_rxmcs & RXMCS_FLOWCTRL) != 0; in jme_get_pauseparam()
2563 ecmd->autoneg = in jme_get_pauseparam()
2569 struct ethtool_pauseparam *ecmd) in jme_set_pauseparam() argument
2575 (ecmd->tx_pause != 0)) { in jme_set_pauseparam()
2577 if (ecmd->tx_pause) in jme_set_pauseparam()
2587 (ecmd->rx_pause != 0)) { in jme_set_pauseparam()
2589 if (ecmd->rx_pause) in jme_set_pauseparam()
2601 (ecmd->autoneg != 0)) { in jme_set_pauseparam()
2603 if (ecmd->autoneg) in jme_set_pauseparam()
2660 struct ethtool_cmd *ecmd) in jme_get_settings() argument
2666 rc = mii_ethtool_gset(&(jme->mii_if), ecmd); in jme_get_settings()
2673 struct ethtool_cmd *ecmd) in jme_set_settings() argument
2678 if (ethtool_cmd_speed(ecmd) == SPEED_1000 in jme_set_settings()
2679 && ecmd->autoneg != AUTONEG_ENABLE) in jme_set_settings()
2687 ecmd->autoneg != AUTONEG_ENABLE && in jme_set_settings()
2688 (jme->mii_if.full_duplex != ecmd->duplex)) in jme_set_settings()
2692 rc = mii_ethtool_sset(&(jme->mii_if), ecmd); in jme_set_settings()
2698 jme->old_ecmd = *ecmd; in jme_set_settings()