Home
last modified time | relevance | path

Searched refs:rx_coalesce_usecs (Results 1 – 25 of 106) sorted by relevance

12345

/linux-6.6.21/drivers/net/wireless/ath/wil6210/
Dethtool.c43 cp->rx_coalesce_usecs = rx_itr_val; in wil_ethtoolops_get_coalesce()
63 cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); in wil_ethtoolops_set_coalesce()
75 if (cp->rx_coalesce_usecs > WIL6210_ITR_TRSH_MAX || in wil_ethtoolops_set_coalesce()
80 wil->rx_max_burst_duration = cp->rx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/intel/igbvf/
Dethtool.c328 ec->rx_coalesce_usecs = adapter->requested_itr; in igbvf_get_coalesce()
330 ec->rx_coalesce_usecs = adapter->current_itr >> 2; in igbvf_get_coalesce()
343 if ((ec->rx_coalesce_usecs >= IGBVF_MIN_ITR_USECS) && in igbvf_set_coalesce()
344 (ec->rx_coalesce_usecs <= IGBVF_MAX_ITR_USECS)) { in igbvf_set_coalesce()
345 adapter->current_itr = ec->rx_coalesce_usecs << 2; in igbvf_set_coalesce()
348 } else if ((ec->rx_coalesce_usecs == 3) || in igbvf_set_coalesce()
349 (ec->rx_coalesce_usecs == 2)) { in igbvf_set_coalesce()
351 adapter->requested_itr = ec->rx_coalesce_usecs; in igbvf_set_coalesce()
352 } else if (ec->rx_coalesce_usecs == 0) { in igbvf_set_coalesce()
/linux-6.6.21/drivers/infiniband/ulp/ipoib/
Dipoib_ethtool.c81 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce()
99 if (coal->rx_coalesce_usecs > 0xffff || in ipoib_set_coalesce()
105 coal->rx_coalesce_usecs); in ipoib_set_coalesce()
111 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c299 ecmd->rx_coalesce_usecs = enic->rx_coalesce_usecs; in enic_get_coalesce()
322 (ec->rx_coalesce_usecs > coalesce_usecs_max) || in enic_coalesce_valid()
343 u32 rx_coalesce_usecs; in enic_set_coalesce() local
357 rx_coalesce_usecs = min_t(u32, ecmd->rx_coalesce_usecs, in enic_set_coalesce()
375 enic_intr_coal_set_rx(enic, rx_coalesce_usecs); in enic_set_coalesce()
383 enic->rx_coalesce_usecs = rx_coalesce_usecs; in enic_set_coalesce()
/linux-6.6.21/drivers/staging/qlge/
Dqlge_ethtool.c220 if (le16_to_cpu(cqicb->irq_delay) != qdev->rx_coalesce_usecs || in qlge_update_ring_coalescing()
225 cqicb->irq_delay = cpu_to_le16(qdev->rx_coalesce_usecs); in qlge_update_ring_coalescing()
631 c->rx_coalesce_usecs = qdev->rx_coalesce_usecs; in qlge_get_coalesce()
658 if (c->rx_coalesce_usecs > qdev->rx_ring_size / 2) in qlge_set_coalesce()
669 if (qdev->rx_coalesce_usecs == c->rx_coalesce_usecs && in qlge_set_coalesce()
675 qdev->rx_coalesce_usecs = c->rx_coalesce_usecs; in qlge_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/google/gve/
Dgve_ethtool.c609 ec->rx_coalesce_usecs = priv->rx_coalesce_usecs; in gve_get_coalesce()
621 u32 rx_usecs_orig = priv->rx_coalesce_usecs; in gve_set_coalesce()
628 ec->rx_coalesce_usecs > GVE_MAX_ITR_INTERVAL_DQO) in gve_set_coalesce()
631 priv->rx_coalesce_usecs = ec->rx_coalesce_usecs; in gve_set_coalesce()
643 if (rx_usecs_orig != priv->rx_coalesce_usecs) { in gve_set_coalesce()
649 priv->rx_coalesce_usecs); in gve_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Dethtool.c112 coalesce->rx_coalesce_usecs = rx_usecs; in efx_ethtool_get_coalesce()
132 if (coalesce->rx_coalesce_usecs != rx_usecs) in efx_ethtool_set_coalesce()
133 rx_usecs = coalesce->rx_coalesce_usecs; in efx_ethtool_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/sfc/
Dethtool.c112 coalesce->rx_coalesce_usecs = rx_usecs; in efx_ethtool_get_coalesce()
132 if (coalesce->rx_coalesce_usecs != rx_usecs) in efx_ethtool_set_coalesce()
133 rx_usecs = coalesce->rx_coalesce_usecs; in efx_ethtool_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c2132 intr_coal->rx_coalesce_usecs = oct->rx_coalesce_usecs; in lio_get_intr_coalesce()
2147 intr_coal->rx_coalesce_usecs = in lio_get_intr_coalesce()
2303 u32 time_threshold, rx_coalesce_usecs; in oct_cfg_rx_intrtime() local
2311 if (!intr_coal->rx_coalesce_usecs) in oct_cfg_rx_intrtime()
2312 rx_coalesce_usecs = CN6XXX_OQ_INTR_TIME; in oct_cfg_rx_intrtime()
2314 rx_coalesce_usecs = intr_coal->rx_coalesce_usecs; in oct_cfg_rx_intrtime()
2317 rx_coalesce_usecs); in oct_cfg_rx_intrtime()
2322 CFG_SET_OQ_INTR_TIME(cn6xxx->conf, rx_coalesce_usecs); in oct_cfg_rx_intrtime()
2329 if (!intr_coal->rx_coalesce_usecs) in oct_cfg_rx_intrtime()
2330 rx_coalesce_usecs = intrmod->rx_usecs; in oct_cfg_rx_intrtime()
[all …]
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c424 coalesce->rx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_get_coalesce()
456 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce()
465 rx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->rx_coalesce_usecs); in ionic_set_coalesce()
466 if (!rx_coal && coalesce->rx_coalesce_usecs) in ionic_set_coalesce()
477 lif->rx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce()
483 lif->tx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce()
780 lif->tx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_set_channels()
/linux-6.6.21/drivers/net/ethernet/engleder/
Dtsnep_ethtool.c376 ec->rx_coalesce_usecs = tsnep_get_irq_coalesce(queue); in tsnep_ethtool_get_coalesce()
398 ec->rx_coalesce_usecs); in tsnep_ethtool_set_coalesce()
422 ec->rx_coalesce_usecs = tsnep_get_irq_coalesce(queue_with_rx); in tsnep_ethtool_get_per_queue_coalesce()
445 retval = tsnep_set_irq_coalesce(queue_with_rx, ec->rx_coalesce_usecs); in tsnep_ethtool_set_per_queue_coalesce()
/linux-6.6.21/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-ethtool.c157 ec->rx_coalesce_usecs = pdata->rx_usecs; in xlgmac_ethtool_get_coalesce()
175 rx_usecs = ec->rx_coalesce_usecs; in xlgmac_ethtool_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_ethtool.c284 ec->rx_coalesce_usecs = sxgbe_riwt2usec(priv->rx_riwt, priv); in sxgbe_get_coalesce()
297 if (!ec->rx_coalesce_usecs) in sxgbe_set_coalesce()
300 rx_riwt = sxgbe_usec2riwt(ec->rx_coalesce_usecs, priv); in sxgbe_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c798 ec->rx_coalesce_usecs = adapter->rx_itr_setting; in ixgbevf_get_coalesce()
800 ec->rx_coalesce_usecs = adapter->rx_itr_setting >> 2; in ixgbevf_get_coalesce()
830 if ((ec->rx_coalesce_usecs > (IXGBE_MAX_EITR >> 2)) || in ixgbevf_set_coalesce()
834 if (ec->rx_coalesce_usecs > 1) in ixgbevf_set_coalesce()
835 adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; in ixgbevf_set_coalesce()
837 adapter->rx_itr_setting = ec->rx_coalesce_usecs; in ixgbevf_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c571 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce()
576 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
603 if (!(coal->rx_max_coalesced_frames == !coal->rx_coalesce_usecs)) in aq_ethtool_set_coalesce()
608 if (coal->rx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX || in aq_ethtool_set_coalesce()
614 cfg->rx_itr = coal->rx_coalesce_usecs; in aq_ethtool_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1756 ec->rx_coalesce_usecs = adapter->itr_setting; in e1000_get_coalesce()
1758 ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; in e1000_get_coalesce()
1774 if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || in e1000_set_coalesce()
1775 ((ec->rx_coalesce_usecs > 4) && in e1000_set_coalesce()
1776 (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || in e1000_set_coalesce()
1777 (ec->rx_coalesce_usecs == 2)) in e1000_set_coalesce()
1780 if (ec->rx_coalesce_usecs == 4) { in e1000_set_coalesce()
1782 } else if (ec->rx_coalesce_usecs <= 3) { in e1000_set_coalesce()
1784 adapter->itr_setting = ec->rx_coalesce_usecs; in e1000_set_coalesce()
1786 adapter->itr = (1000000 / ec->rx_coalesce_usecs); in e1000_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/intel/igc/
Digc_ethtool.c890 ec->rx_coalesce_usecs = igc_ethtool_get_previous_rx_coalesce(adapter); in igc_ethtool_get_coalesce()
904 if (ec->rx_coalesce_usecs > IGC_MAX_ITR_USECS || in igc_ethtool_set_coalesce()
905 (ec->rx_coalesce_usecs > 3 && in igc_ethtool_set_coalesce()
906 ec->rx_coalesce_usecs < IGC_MIN_ITR_USECS) || in igc_ethtool_set_coalesce()
907 ec->rx_coalesce_usecs == 2) in igc_ethtool_set_coalesce()
924 if (ec->rx_coalesce_usecs == 0) { in igc_ethtool_set_coalesce()
930 if (ec->rx_coalesce_usecs && ec->rx_coalesce_usecs <= 3) in igc_ethtool_set_coalesce()
931 adapter->rx_itr_setting = ec->rx_coalesce_usecs; in igc_ethtool_set_coalesce()
933 adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; in igc_ethtool_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c324 coalesce->rx_coalesce_usecs = bnad->rx_coalescing_timeo * in bnad_get_coalesce()
342 if (coalesce->rx_coalesce_usecs == 0 || in bnad_set_coalesce()
343 coalesce->rx_coalesce_usecs > in bnad_set_coalesce()
388 if (bnad->rx_coalescing_timeo != coalesce->rx_coalesce_usecs / in bnad_set_coalesce()
390 bnad->rx_coalescing_timeo = coalesce->rx_coalesce_usecs / in bnad_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/intel/e1000e/
Dethtool.c2019 ec->rx_coalesce_usecs = adapter->itr_setting; in e1000_get_coalesce()
2021 ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; in e1000_get_coalesce()
2033 if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || in e1000_set_coalesce()
2034 ((ec->rx_coalesce_usecs > 4) && in e1000_set_coalesce()
2035 (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || in e1000_set_coalesce()
2036 (ec->rx_coalesce_usecs == 2)) in e1000_set_coalesce()
2039 if (ec->rx_coalesce_usecs == 4) { in e1000_set_coalesce()
2042 } else if (ec->rx_coalesce_usecs <= 3) { in e1000_set_coalesce()
2044 adapter->itr_setting = ec->rx_coalesce_usecs; in e1000_set_coalesce()
2046 adapter->itr = (1000000 / ec->rx_coalesce_usecs); in e1000_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c468 cmd->rx_coalesce_usecs = hw->cq_time_wait; in otx2_get_coalesce()
518 ec->rx_coalesce_usecs = clamp_t(u32, ec->rx_coalesce_usecs, in otx2_set_coalesce()
526 if (hw->cq_time_wait == ec->rx_coalesce_usecs) in otx2_set_coalesce()
529 hw->cq_time_wait = ec->rx_coalesce_usecs; in otx2_set_coalesce()
531 hw->cq_time_wait = min_t(u8, ec->rx_coalesce_usecs, in otx2_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c754 if (ethcoal->rx_coalesce_usecs > 0xffff || in netxen_set_intr_coalesce()
760 if (!ethcoal->rx_coalesce_usecs || in netxen_set_intr_coalesce()
770 ethcoal->rx_coalesce_usecs; in netxen_set_intr_coalesce()
796 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce()
/linux-6.6.21/drivers/net/ethernet/fungible/funeth/
Dfuneth_ethtool.c472 coal->rx_coalesce_usecs = fp->rx_coal_usec; in fun_get_coalesce()
489 if (coal->rx_coalesce_usecs > FUN_DB_INTCOAL_USEC_M || in fun_set_coalesce()
491 (coal->rx_coalesce_usecs | coal->rx_max_coalesced_frames) == 0 || in fun_set_coalesce()
498 if ((coal->rx_max_coalesced_frames > 1 && !coal->rx_coalesce_usecs) || in fun_set_coalesce()
502 fp->rx_coal_usec = coal->rx_coalesce_usecs; in fun_set_coalesce()
/linux-6.6.21/net/ethtool/
Dcoalesce.c140 coal->rx_coalesce_usecs, supported) || in coalesce_fill_reply()
273 ethnl_update_u32(&coalesce.rx_coalesce_usecs, in __ethnl_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c442 ec->rx_coalesce_usecs = pdata->rx_usecs; in xgbe_get_coalesce()
460 rx_riwt = hw_if->usec_to_riwt(pdata, ec->rx_coalesce_usecs); in xgbe_set_coalesce()
461 rx_usecs = ec->rx_coalesce_usecs; in xgbe_set_coalesce()
/linux-6.6.21/drivers/net/ethernet/ti/
Dcpsw_ethtool.c161 coal->rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_get_coalesce()
177 coal_intvl = coal->rx_coalesce_usecs; in cpsw_set_coalesce()
182 if (!coal->rx_coalesce_usecs) { in cpsw_set_coalesce()

12345