/Linux-v5.10/drivers/net/wireless/ath/wil6210/ |
D | ethtool.c | 40 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/ |
D | ethtool.c | 322 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/ |
D | ipoib_ethtool.c | 79 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/ |
D | enic_ethtool.c | 308 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/ |
D | qlge_ethtool.c | 219 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/ |
D | ethtool.c | 110 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/ |
D | ionic_ethtool.c | 412 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/ |
D | lio_ethtool.c | 2124 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/ |
D | iavf_ethtool.c | 678 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/ |
D | otx2_ethtool.c | 356 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/ |
D | dwc-xlgmac-ethtool.c | 154 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/ |
D | sxgbe_ethtool.c | 282 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/ |
D | ethtool.c | 796 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/ |
D | igc_ethtool.c | 865 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/ |
D | aq_ethtool.c | 559 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/ |
D | e1000_ethtool.c | 1750 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/ |
D | vmxnet3_ethtool.c | 1058 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/ |
D | bnad_ethtool.c | 322 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/ |
D | ethtool.c | 1990 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/ |
D | nfp_net_ethtool.c | 1097 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/ |
D | coalesce.c | 131 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/ |
D | netxen_nic_ethtool.c | 748 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/ |
D | cpsw_ethtool.c | 159 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/ |
D | hns3_ethtool.c | 1113 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/ |
D | xgbe-ethtool.c | 437 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()
|