Lines Matching refs:ecmd
2483 jme_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_get_coalesce() argument
2487 ecmd->tx_coalesce_usecs = PCC_TX_TO; in jme_get_coalesce()
2488 ecmd->tx_max_coalesced_frames = PCC_TX_CNT; in jme_get_coalesce()
2491 ecmd->use_adaptive_rx_coalesce = false; in jme_get_coalesce()
2492 ecmd->rx_coalesce_usecs = 0; in jme_get_coalesce()
2493 ecmd->rx_max_coalesced_frames = 0; in jme_get_coalesce()
2497 ecmd->use_adaptive_rx_coalesce = true; in jme_get_coalesce()
2501 ecmd->rx_coalesce_usecs = PCC_P1_TO; in jme_get_coalesce()
2502 ecmd->rx_max_coalesced_frames = PCC_P1_CNT; in jme_get_coalesce()
2505 ecmd->rx_coalesce_usecs = PCC_P2_TO; in jme_get_coalesce()
2506 ecmd->rx_max_coalesced_frames = PCC_P2_CNT; in jme_get_coalesce()
2509 ecmd->rx_coalesce_usecs = PCC_P3_TO; in jme_get_coalesce()
2510 ecmd->rx_max_coalesced_frames = PCC_P3_CNT; in jme_get_coalesce()
2520 jme_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_set_coalesce() argument
2528 if (ecmd->use_adaptive_rx_coalesce && in jme_set_coalesce()
2537 } else if (!(ecmd->use_adaptive_rx_coalesce) && in jme_set_coalesce()
2549 struct ethtool_pauseparam *ecmd) in jme_get_pauseparam() argument
2554 ecmd->tx_pause = (jme->reg_txpfc & TXPFC_PF_EN) != 0; in jme_get_pauseparam()
2555 ecmd->rx_pause = (jme->reg_rxmcs & RXMCS_FLOWCTRL) != 0; in jme_get_pauseparam()
2561 ecmd->autoneg = in jme_get_pauseparam()
2567 struct ethtool_pauseparam *ecmd) in jme_set_pauseparam() argument
2573 (ecmd->tx_pause != 0)) { in jme_set_pauseparam()
2575 if (ecmd->tx_pause) in jme_set_pauseparam()
2585 (ecmd->rx_pause != 0)) { in jme_set_pauseparam()
2587 if (ecmd->rx_pause) in jme_set_pauseparam()
2599 (ecmd->autoneg != 0)) { in jme_set_pauseparam()
2601 if (ecmd->autoneg) in jme_set_pauseparam()
2661 struct ethtool_cmd *ecmd) in jme_get_settings() argument
2667 rc = mii_ethtool_gset(&(jme->mii_if), ecmd); in jme_get_settings()
2674 struct ethtool_cmd *ecmd) in jme_set_settings() argument
2679 if (ethtool_cmd_speed(ecmd) == SPEED_1000 in jme_set_settings()
2680 && ecmd->autoneg != AUTONEG_ENABLE) in jme_set_settings()
2688 ecmd->autoneg != AUTONEG_ENABLE && in jme_set_settings()
2689 (jme->mii_if.full_duplex != ecmd->duplex)) in jme_set_settings()
2693 rc = mii_ethtool_sset(&(jme->mii_if), ecmd); in jme_set_settings()
2699 jme->old_ecmd = *ecmd; in jme_set_settings()