Lines Matching refs:ecmd

2416 jme_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd)  in jme_get_coalesce()  argument
2420 ecmd->tx_coalesce_usecs = PCC_TX_TO; in jme_get_coalesce()
2421 ecmd->tx_max_coalesced_frames = PCC_TX_CNT; in jme_get_coalesce()
2424 ecmd->use_adaptive_rx_coalesce = false; in jme_get_coalesce()
2425 ecmd->rx_coalesce_usecs = 0; in jme_get_coalesce()
2426 ecmd->rx_max_coalesced_frames = 0; in jme_get_coalesce()
2430 ecmd->use_adaptive_rx_coalesce = true; in jme_get_coalesce()
2434 ecmd->rx_coalesce_usecs = PCC_P1_TO; in jme_get_coalesce()
2435 ecmd->rx_max_coalesced_frames = PCC_P1_CNT; in jme_get_coalesce()
2438 ecmd->rx_coalesce_usecs = PCC_P2_TO; in jme_get_coalesce()
2439 ecmd->rx_max_coalesced_frames = PCC_P2_CNT; in jme_get_coalesce()
2442 ecmd->rx_coalesce_usecs = PCC_P3_TO; in jme_get_coalesce()
2443 ecmd->rx_max_coalesced_frames = PCC_P3_CNT; in jme_get_coalesce()
2453 jme_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_set_coalesce() argument
2461 if (ecmd->use_adaptive_rx_coalesce && in jme_set_coalesce()
2470 } else if (!(ecmd->use_adaptive_rx_coalesce) && in jme_set_coalesce()
2482 struct ethtool_pauseparam *ecmd) in jme_get_pauseparam() argument
2487 ecmd->tx_pause = (jme->reg_txpfc & TXPFC_PF_EN) != 0; in jme_get_pauseparam()
2488 ecmd->rx_pause = (jme->reg_rxmcs & RXMCS_FLOWCTRL) != 0; in jme_get_pauseparam()
2494 ecmd->autoneg = in jme_get_pauseparam()
2500 struct ethtool_pauseparam *ecmd) in jme_set_pauseparam() argument
2506 (ecmd->tx_pause != 0)) { in jme_set_pauseparam()
2508 if (ecmd->tx_pause) in jme_set_pauseparam()
2518 (ecmd->rx_pause != 0)) { in jme_set_pauseparam()
2520 if (ecmd->rx_pause) in jme_set_pauseparam()
2532 (ecmd->autoneg != 0)) { in jme_set_pauseparam()
2534 if (ecmd->autoneg) in jme_set_pauseparam()