Home
last modified time | relevance | path

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

1234

/Linux-v5.10/drivers/net/wireless/ath/wil6210/
Dethtool.c40 cp->rx_coalesce_usecs = rx_itr_val; in wil_ethtoolops_get_coalesce()
57 cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); in wil_ethtoolops_set_coalesce()
69 if (cp->rx_coalesce_usecs > WIL6210_ITR_TRSH_MAX || in wil_ethtoolops_set_coalesce()
74 wil->rx_max_burst_duration = cp->rx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/intel/igbvf/
Dethtool.c322 ec->rx_coalesce_usecs = adapter->requested_itr; in igbvf_get_coalesce()
324 ec->rx_coalesce_usecs = adapter->current_itr >> 2; in igbvf_get_coalesce()
335 if ((ec->rx_coalesce_usecs >= IGBVF_MIN_ITR_USECS) && in igbvf_set_coalesce()
336 (ec->rx_coalesce_usecs <= IGBVF_MAX_ITR_USECS)) { in igbvf_set_coalesce()
337 adapter->current_itr = ec->rx_coalesce_usecs << 2; in igbvf_set_coalesce()
340 } else if ((ec->rx_coalesce_usecs == 3) || in igbvf_set_coalesce()
341 (ec->rx_coalesce_usecs == 2)) { in igbvf_set_coalesce()
343 adapter->requested_itr = ec->rx_coalesce_usecs; in igbvf_set_coalesce()
344 } else if (ec->rx_coalesce_usecs == 0) { in igbvf_set_coalesce()
/Linux-v5.10/drivers/infiniband/ulp/ipoib/
Dipoib_ethtool.c79 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce()
95 if (coal->rx_coalesce_usecs > 0xffff || in ipoib_set_coalesce()
101 coal->rx_coalesce_usecs); in ipoib_set_coalesce()
107 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c308 ecmd->rx_coalesce_usecs = enic->rx_coalesce_usecs; in enic_get_coalesce()
331 (ec->rx_coalesce_usecs > coalesce_usecs_max) || in enic_coalesce_valid()
350 u32 rx_coalesce_usecs; in enic_set_coalesce() local
364 rx_coalesce_usecs = min_t(u32, ecmd->rx_coalesce_usecs, in enic_set_coalesce()
382 enic_intr_coal_set_rx(enic, rx_coalesce_usecs); in enic_set_coalesce()
390 enic->rx_coalesce_usecs = rx_coalesce_usecs; in enic_set_coalesce()
/Linux-v5.10/drivers/staging/qlge/
Dqlge_ethtool.c219 if (le16_to_cpu(cqicb->irq_delay) != qdev->rx_coalesce_usecs || in ql_update_ring_coalescing()
224 cqicb->irq_delay = cpu_to_le16(qdev->rx_coalesce_usecs); in ql_update_ring_coalescing()
630 c->rx_coalesce_usecs = qdev->rx_coalesce_usecs; in ql_get_coalesce()
654 if (c->rx_coalesce_usecs > qdev->rx_ring_size / 2) in ql_set_coalesce()
665 if (qdev->rx_coalesce_usecs == c->rx_coalesce_usecs && in ql_set_coalesce()
671 qdev->rx_coalesce_usecs = c->rx_coalesce_usecs; in ql_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/sfc/
Dethtool.c110 coalesce->rx_coalesce_usecs = rx_usecs; in efx_ethtool_get_coalesce()
128 if (coalesce->rx_coalesce_usecs != rx_usecs) in efx_ethtool_set_coalesce()
129 rx_usecs = coalesce->rx_coalesce_usecs; in efx_ethtool_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c412 coalesce->rx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_get_coalesce()
442 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce()
451 rx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->rx_coalesce_usecs); in ionic_set_coalesce()
452 if (!rx_coal && coalesce->rx_coalesce_usecs) in ionic_set_coalesce()
463 lif->rx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce()
469 lif->tx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce()
650 lif->tx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_set_channels()
/Linux-v5.10/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c2124 intr_coal->rx_coalesce_usecs = oct->rx_coalesce_usecs; in lio_get_intr_coalesce()
2139 intr_coal->rx_coalesce_usecs = in lio_get_intr_coalesce()
2295 u32 time_threshold, rx_coalesce_usecs; in oct_cfg_rx_intrtime() local
2303 if (!intr_coal->rx_coalesce_usecs) in oct_cfg_rx_intrtime()
2304 rx_coalesce_usecs = CN6XXX_OQ_INTR_TIME; in oct_cfg_rx_intrtime()
2306 rx_coalesce_usecs = intr_coal->rx_coalesce_usecs; in oct_cfg_rx_intrtime()
2309 rx_coalesce_usecs); in oct_cfg_rx_intrtime()
2314 CFG_SET_OQ_INTR_TIME(cn6xxx->conf, rx_coalesce_usecs); in oct_cfg_rx_intrtime()
2321 if (!intr_coal->rx_coalesce_usecs) in oct_cfg_rx_intrtime()
2322 rx_coalesce_usecs = intrmod->rx_usecs; in oct_cfg_rx_intrtime()
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c678 ec->rx_coalesce_usecs = rx_ring->itr_setting & ~IAVF_ITR_DYNAMIC; in __iavf_get_coalesce()
729 rx_ring->itr_setting = ITR_REG_ALIGN(ec->rx_coalesce_usecs); in iavf_set_itr_per_queue()
770 if (ec->rx_coalesce_usecs == 0) { in __iavf_set_coalesce()
773 } else if ((ec->rx_coalesce_usecs < IAVF_MIN_ITR) || in __iavf_set_coalesce()
774 (ec->rx_coalesce_usecs > IAVF_MAX_ITR)) { in __iavf_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c356 cmd->rx_coalesce_usecs = hw->cq_time_wait; in otx2_get_coalesce()
377 ec->rx_coalesce_usecs = clamp_t(u32, ec->rx_coalesce_usecs, in otx2_set_coalesce()
385 if (hw->cq_time_wait == ec->rx_coalesce_usecs) in otx2_set_coalesce()
388 hw->cq_time_wait = ec->rx_coalesce_usecs; in otx2_set_coalesce()
390 hw->cq_time_wait = min_t(u8, ec->rx_coalesce_usecs, in otx2_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-ethtool.c154 ec->rx_coalesce_usecs = pdata->rx_usecs; in xlgmac_ethtool_get_coalesce()
169 rx_usecs = ec->rx_coalesce_usecs; in xlgmac_ethtool_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_ethtool.c282 ec->rx_coalesce_usecs = sxgbe_riwt2usec(priv->rx_riwt, priv); in sxgbe_get_coalesce()
293 if (!ec->rx_coalesce_usecs) in sxgbe_set_coalesce()
296 rx_riwt = sxgbe_usec2riwt(ec->rx_coalesce_usecs, priv); in sxgbe_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c796 ec->rx_coalesce_usecs = adapter->rx_itr_setting; in ixgbevf_get_coalesce()
798 ec->rx_coalesce_usecs = adapter->rx_itr_setting >> 2; in ixgbevf_get_coalesce()
826 if ((ec->rx_coalesce_usecs > (IXGBE_MAX_EITR >> 2)) || in ixgbevf_set_coalesce()
830 if (ec->rx_coalesce_usecs > 1) in ixgbevf_set_coalesce()
831 adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; in ixgbevf_set_coalesce()
833 adapter->rx_itr_setting = ec->rx_coalesce_usecs; in ixgbevf_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/intel/igc/
Digc_ethtool.c865 ec->rx_coalesce_usecs = adapter->rx_itr_setting; in igc_ethtool_get_coalesce()
867 ec->rx_coalesce_usecs = adapter->rx_itr_setting >> 2; in igc_ethtool_get_coalesce()
885 if (ec->rx_coalesce_usecs > IGC_MAX_ITR_USECS || in igc_ethtool_set_coalesce()
886 (ec->rx_coalesce_usecs > 3 && in igc_ethtool_set_coalesce()
887 ec->rx_coalesce_usecs < IGC_MIN_ITR_USECS) || in igc_ethtool_set_coalesce()
888 ec->rx_coalesce_usecs == 2) in igc_ethtool_set_coalesce()
901 if (ec->rx_coalesce_usecs == 0) { in igc_ethtool_set_coalesce()
907 if (ec->rx_coalesce_usecs && ec->rx_coalesce_usecs <= 3) in igc_ethtool_set_coalesce()
908 adapter->rx_itr_setting = ec->rx_coalesce_usecs; in igc_ethtool_set_coalesce()
910 adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; in igc_ethtool_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c559 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce()
564 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
589 if (!(coal->rx_max_coalesced_frames == !coal->rx_coalesce_usecs)) in aq_ethtool_set_coalesce()
594 if (coal->rx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX || in aq_ethtool_set_coalesce()
600 cfg->rx_itr = coal->rx_coalesce_usecs; in aq_ethtool_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1750 ec->rx_coalesce_usecs = adapter->itr_setting; in e1000_get_coalesce()
1752 ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; in e1000_get_coalesce()
1766 if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || in e1000_set_coalesce()
1767 ((ec->rx_coalesce_usecs > 4) && in e1000_set_coalesce()
1768 (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || in e1000_set_coalesce()
1769 (ec->rx_coalesce_usecs == 2)) in e1000_set_coalesce()
1772 if (ec->rx_coalesce_usecs == 4) { in e1000_set_coalesce()
1774 } else if (ec->rx_coalesce_usecs <= 3) { in e1000_set_coalesce()
1776 adapter->itr_setting = ec->rx_coalesce_usecs; in e1000_set_coalesce()
1778 adapter->itr = (1000000 / ec->rx_coalesce_usecs); in e1000_set_coalesce()
/Linux-v5.10/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c1058 ec->rx_coalesce_usecs = VMXNET3_COAL_RBC_USECS(rbc_rate); in vmxnet3_get_coalesce()
1079 if ((ec->rx_coalesce_usecs == 0) && in vmxnet3_set_coalesce()
1088 if (ec->rx_coalesce_usecs != 0) { in vmxnet3_set_coalesce()
1097 rbc_rate = VMXNET3_COAL_RBC_RATE(ec->rx_coalesce_usecs); in vmxnet3_set_coalesce()
1110 if ((ec->rx_coalesce_usecs != 0) || in vmxnet3_set_coalesce()
1122 if ((ec->rx_coalesce_usecs != 0) || in vmxnet3_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c322 coalesce->rx_coalesce_usecs = bnad->rx_coalescing_timeo * in bnad_get_coalesce()
338 if (coalesce->rx_coalesce_usecs == 0 || in bnad_set_coalesce()
339 coalesce->rx_coalesce_usecs > in bnad_set_coalesce()
384 if (bnad->rx_coalescing_timeo != coalesce->rx_coalesce_usecs / in bnad_set_coalesce()
386 bnad->rx_coalescing_timeo = coalesce->rx_coalesce_usecs / in bnad_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/intel/e1000e/
Dethtool.c1990 ec->rx_coalesce_usecs = adapter->itr_setting; in e1000_get_coalesce()
1992 ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; in e1000_get_coalesce()
2002 if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || in e1000_set_coalesce()
2003 ((ec->rx_coalesce_usecs > 4) && in e1000_set_coalesce()
2004 (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || in e1000_set_coalesce()
2005 (ec->rx_coalesce_usecs == 2)) in e1000_set_coalesce()
2008 if (ec->rx_coalesce_usecs == 4) { in e1000_set_coalesce()
2011 } else if (ec->rx_coalesce_usecs <= 3) { in e1000_set_coalesce()
2013 adapter->itr_setting = ec->rx_coalesce_usecs; in e1000_set_coalesce()
2015 adapter->itr = (1000000 / ec->rx_coalesce_usecs); in e1000_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c1097 ec->rx_coalesce_usecs = nn->rx_coalesce_usecs; in nfp_net_get_coalesce()
1367 if (!ec->rx_coalesce_usecs && !ec->rx_max_coalesced_frames) in nfp_net_set_coalesce()
1373 if (ec->rx_coalesce_usecs * factor >= ((1 << 16) - 1)) in nfp_net_set_coalesce()
1386 nn->rx_coalesce_usecs = ec->rx_coalesce_usecs; in nfp_net_set_coalesce()
/Linux-v5.10/net/ethtool/
Dcoalesce.c131 coal->rx_coalesce_usecs, supported) || in coalesce_fill_reply()
262 ethnl_update_u32(&coalesce.rx_coalesce_usecs, in ethnl_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c748 if (ethcoal->rx_coalesce_usecs > 0xffff || in netxen_set_intr_coalesce()
754 if (!ethcoal->rx_coalesce_usecs || in netxen_set_intr_coalesce()
764 ethcoal->rx_coalesce_usecs; in netxen_set_intr_coalesce()
788 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce()
/Linux-v5.10/drivers/net/ethernet/ti/
Dcpsw_ethtool.c159 coal->rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_get_coalesce()
173 coal_intvl = coal->rx_coalesce_usecs; in cpsw_set_coalesce()
178 if (!coal->rx_coalesce_usecs) { in cpsw_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c1113 cmd->rx_coalesce_usecs = rx_vector->rx_group.coal.int_gl; in hns3_get_coalesce_per_queue()
1132 if (cmd->rx_coalesce_usecs > HNS3_INT_GL_MAX) { in hns3_check_gl_coalesce_para()
1146 rx_gl = hns3_gl_round_down(cmd->rx_coalesce_usecs); in hns3_check_gl_coalesce_para()
1147 if (rx_gl != cmd->rx_coalesce_usecs) { in hns3_check_gl_coalesce_para()
1150 cmd->rx_coalesce_usecs, rx_gl); in hns3_check_gl_coalesce_para()
1239 rx_vector->rx_group.coal.int_gl = cmd->rx_coalesce_usecs; in hns3_set_coalesce_per_queue()
/Linux-v5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c437 ec->rx_coalesce_usecs = pdata->rx_usecs; in xgbe_get_coalesce()
453 rx_riwt = hw_if->usec_to_riwt(pdata, ec->rx_coalesce_usecs); in xgbe_set_coalesce()
454 rx_usecs = ec->rx_coalesce_usecs; in xgbe_set_coalesce()

1234