Lines Matching refs:ec
286 struct ethtool_coalesce *ec) in i40evf_get_coalesce() argument
291 ec->tx_max_coalesced_frames = vsi->work_limit; in i40evf_get_coalesce()
292 ec->rx_max_coalesced_frames = vsi->work_limit; in i40evf_get_coalesce()
295 ec->use_adaptive_rx_coalesce = 1; in i40evf_get_coalesce()
298 ec->use_adaptive_tx_coalesce = 1; in i40evf_get_coalesce()
300 ec->rx_coalesce_usecs = vsi->rx_itr_setting & ~I40E_ITR_DYNAMIC; in i40evf_get_coalesce()
301 ec->tx_coalesce_usecs = vsi->tx_itr_setting & ~I40E_ITR_DYNAMIC; in i40evf_get_coalesce()
314 struct ethtool_coalesce *ec) in i40evf_set_coalesce() argument
322 if (ec->tx_max_coalesced_frames_irq || ec->rx_max_coalesced_frames_irq) in i40evf_set_coalesce()
323 vsi->work_limit = ec->tx_max_coalesced_frames_irq; in i40evf_set_coalesce()
325 if ((ec->rx_coalesce_usecs >= (I40E_MIN_ITR << 1)) && in i40evf_set_coalesce()
326 (ec->rx_coalesce_usecs <= (I40E_MAX_ITR << 1))) in i40evf_set_coalesce()
327 vsi->rx_itr_setting = ec->rx_coalesce_usecs; in i40evf_set_coalesce()
332 if ((ec->tx_coalesce_usecs >= (I40E_MIN_ITR << 1)) && in i40evf_set_coalesce()
333 (ec->tx_coalesce_usecs <= (I40E_MAX_ITR << 1))) in i40evf_set_coalesce()
334 vsi->tx_itr_setting = ec->tx_coalesce_usecs; in i40evf_set_coalesce()
335 else if (ec->use_adaptive_tx_coalesce) in i40evf_set_coalesce()
341 if (ec->use_adaptive_rx_coalesce) in i40evf_set_coalesce()
346 if (ec->use_adaptive_tx_coalesce) in i40evf_set_coalesce()