Lines Matching refs:ec
1766 struct ethtool_coalesce *ec) in e1000_get_coalesce() argument
1774 ec->rx_coalesce_usecs = adapter->itr_setting; in e1000_get_coalesce()
1776 ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; in e1000_get_coalesce()
1782 struct ethtool_coalesce *ec) in e1000_set_coalesce() argument
1790 if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || in e1000_set_coalesce()
1791 ((ec->rx_coalesce_usecs > 4) && in e1000_set_coalesce()
1792 (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || in e1000_set_coalesce()
1793 (ec->rx_coalesce_usecs == 2)) in e1000_set_coalesce()
1796 if (ec->rx_coalesce_usecs == 4) { in e1000_set_coalesce()
1798 } else if (ec->rx_coalesce_usecs <= 3) { in e1000_set_coalesce()
1800 adapter->itr_setting = ec->rx_coalesce_usecs; in e1000_set_coalesce()
1802 adapter->itr = (1000000 / ec->rx_coalesce_usecs); in e1000_set_coalesce()