Lines Matching refs:ecmd
2405 jme_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_get_coalesce() argument
2409 ecmd->tx_coalesce_usecs = PCC_TX_TO; in jme_get_coalesce()
2410 ecmd->tx_max_coalesced_frames = PCC_TX_CNT; in jme_get_coalesce()
2413 ecmd->use_adaptive_rx_coalesce = false; in jme_get_coalesce()
2414 ecmd->rx_coalesce_usecs = 0; in jme_get_coalesce()
2415 ecmd->rx_max_coalesced_frames = 0; in jme_get_coalesce()
2419 ecmd->use_adaptive_rx_coalesce = true; in jme_get_coalesce()
2423 ecmd->rx_coalesce_usecs = PCC_P1_TO; in jme_get_coalesce()
2424 ecmd->rx_max_coalesced_frames = PCC_P1_CNT; in jme_get_coalesce()
2427 ecmd->rx_coalesce_usecs = PCC_P2_TO; in jme_get_coalesce()
2428 ecmd->rx_max_coalesced_frames = PCC_P2_CNT; in jme_get_coalesce()
2431 ecmd->rx_coalesce_usecs = PCC_P3_TO; in jme_get_coalesce()
2432 ecmd->rx_max_coalesced_frames = PCC_P3_CNT; in jme_get_coalesce()
2442 jme_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_set_coalesce() argument
2450 if (ecmd->use_adaptive_rx_coalesce && in jme_set_coalesce()
2459 } else if (!(ecmd->use_adaptive_rx_coalesce) && in jme_set_coalesce()
2471 struct ethtool_pauseparam *ecmd) in jme_get_pauseparam() argument
2476 ecmd->tx_pause = (jme->reg_txpfc & TXPFC_PF_EN) != 0; in jme_get_pauseparam()
2477 ecmd->rx_pause = (jme->reg_rxmcs & RXMCS_FLOWCTRL) != 0; in jme_get_pauseparam()
2483 ecmd->autoneg = in jme_get_pauseparam()
2489 struct ethtool_pauseparam *ecmd) in jme_set_pauseparam() argument
2495 (ecmd->tx_pause != 0)) { in jme_set_pauseparam()
2497 if (ecmd->tx_pause) in jme_set_pauseparam()
2507 (ecmd->rx_pause != 0)) { in jme_set_pauseparam()
2509 if (ecmd->rx_pause) in jme_set_pauseparam()
2521 (ecmd->autoneg != 0)) { in jme_set_pauseparam()
2523 if (ecmd->autoneg) in jme_set_pauseparam()