Lines Matching refs:ec
288 struct ethtool_coalesce *ec) in i40evf_get_coalesce() argument
293 ec->tx_max_coalesced_frames = vsi->work_limit; in i40evf_get_coalesce()
294 ec->rx_max_coalesced_frames = vsi->work_limit; in i40evf_get_coalesce()
297 ec->use_adaptive_rx_coalesce = 1; in i40evf_get_coalesce()
300 ec->use_adaptive_tx_coalesce = 1; in i40evf_get_coalesce()
302 ec->rx_coalesce_usecs = vsi->rx_itr_setting & ~I40E_ITR_DYNAMIC; in i40evf_get_coalesce()
303 ec->tx_coalesce_usecs = vsi->tx_itr_setting & ~I40E_ITR_DYNAMIC; in i40evf_get_coalesce()
316 struct ethtool_coalesce *ec) in i40evf_set_coalesce() argument
324 if (ec->tx_max_coalesced_frames_irq || ec->rx_max_coalesced_frames_irq) in i40evf_set_coalesce()
325 vsi->work_limit = ec->tx_max_coalesced_frames_irq; in i40evf_set_coalesce()
327 if ((ec->rx_coalesce_usecs >= (I40E_MIN_ITR << 1)) && in i40evf_set_coalesce()
328 (ec->rx_coalesce_usecs <= (I40E_MAX_ITR << 1))) in i40evf_set_coalesce()
329 vsi->rx_itr_setting = ec->rx_coalesce_usecs; in i40evf_set_coalesce()
334 if ((ec->tx_coalesce_usecs >= (I40E_MIN_ITR << 1)) && in i40evf_set_coalesce()
335 (ec->tx_coalesce_usecs <= (I40E_MAX_ITR << 1))) in i40evf_set_coalesce()
336 vsi->tx_itr_setting = ec->tx_coalesce_usecs; in i40evf_set_coalesce()
337 else if (ec->use_adaptive_tx_coalesce) in i40evf_set_coalesce()
343 if (ec->use_adaptive_rx_coalesce) in i40evf_set_coalesce()
348 if (ec->use_adaptive_tx_coalesce) in i40evf_set_coalesce()