Lines Matching refs:ec
1964 struct ethtool_coalesce *ec) in e1000_get_coalesce() argument
1969 ec->rx_coalesce_usecs = adapter->itr_setting; in e1000_get_coalesce()
1971 ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; in e1000_get_coalesce()
1977 struct ethtool_coalesce *ec) in e1000_set_coalesce() argument
1981 if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || in e1000_set_coalesce()
1982 ((ec->rx_coalesce_usecs > 4) && in e1000_set_coalesce()
1983 (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || in e1000_set_coalesce()
1984 (ec->rx_coalesce_usecs == 2)) in e1000_set_coalesce()
1987 if (ec->rx_coalesce_usecs == 4) { in e1000_set_coalesce()
1990 } else if (ec->rx_coalesce_usecs <= 3) { in e1000_set_coalesce()
1992 adapter->itr_setting = ec->rx_coalesce_usecs; in e1000_set_coalesce()
1994 adapter->itr = (1000000 / ec->rx_coalesce_usecs); in e1000_set_coalesce()