/linux-6.1.9/drivers/net/wireless/ath/wil6210/ |
D | ethtool.c | 43 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.1.9/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 328 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.1.9/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ethtool.c | 81 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.1.9/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 299 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.1.9/drivers/net/ethernet/google/gve/ |
D | gve_ethtool.c | 554 ec->rx_coalesce_usecs = priv->rx_coalesce_usecs; in gve_get_coalesce() 566 u32 rx_usecs_orig = priv->rx_coalesce_usecs; in gve_set_coalesce() 573 ec->rx_coalesce_usecs > GVE_MAX_ITR_INTERVAL_DQO) in gve_set_coalesce() 576 priv->rx_coalesce_usecs = ec->rx_coalesce_usecs; in gve_set_coalesce() 588 if (rx_usecs_orig != priv->rx_coalesce_usecs) { in gve_set_coalesce() 594 priv->rx_coalesce_usecs); in gve_set_coalesce()
|
/linux-6.1.9/drivers/staging/qlge/ |
D | qlge_ethtool.c | 220 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.1.9/drivers/net/ethernet/sfc/siena/ |
D | ethtool.c | 112 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.1.9/drivers/net/ethernet/sfc/ |
D | ethtool.c | 112 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.1.9/drivers/net/ethernet/cavium/liquidio/ |
D | lio_ethtool.c | 2132 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.1.9/drivers/net/ethernet/pensando/ionic/ |
D | ionic_ethtool.c | 415 coalesce->rx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_get_coalesce() 447 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce() 456 rx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->rx_coalesce_usecs); in ionic_set_coalesce() 457 if (!rx_coal && coalesce->rx_coalesce_usecs) in ionic_set_coalesce() 468 lif->rx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce() 474 lif->tx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce() 668 lif->tx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_set_channels()
|
/linux-6.1.9/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-ethtool.c | 157 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.1.9/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_ethtool.c | 284 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.1.9/drivers/net/ethernet/intel/ixgbevf/ |
D | ethtool.c | 798 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.1.9/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ethtool.c | 571 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.1.9/drivers/net/ethernet/intel/e1000/ |
D | e1000_ethtool.c | 1756 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.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 878 ec->rx_coalesce_usecs = adapter->rx_itr_setting; in igc_ethtool_get_coalesce() 880 ec->rx_coalesce_usecs = adapter->rx_itr_setting >> 2; in igc_ethtool_get_coalesce() 900 if (ec->rx_coalesce_usecs > IGC_MAX_ITR_USECS || in igc_ethtool_set_coalesce() 901 (ec->rx_coalesce_usecs > 3 && in igc_ethtool_set_coalesce() 902 ec->rx_coalesce_usecs < IGC_MIN_ITR_USECS) || in igc_ethtool_set_coalesce() 903 ec->rx_coalesce_usecs == 2) in igc_ethtool_set_coalesce() 916 if (ec->rx_coalesce_usecs == 0) { in igc_ethtool_set_coalesce() 922 if (ec->rx_coalesce_usecs && ec->rx_coalesce_usecs <= 3) in igc_ethtool_set_coalesce() 923 adapter->rx_itr_setting = ec->rx_coalesce_usecs; in igc_ethtool_set_coalesce() 925 adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; in igc_ethtool_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/brocade/bna/ |
D | bnad_ethtool.c | 324 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.1.9/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 2007 ec->rx_coalesce_usecs = adapter->itr_setting; in e1000_get_coalesce() 2009 ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; in e1000_get_coalesce() 2021 if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || in e1000_set_coalesce() 2022 ((ec->rx_coalesce_usecs > 4) && in e1000_set_coalesce() 2023 (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || in e1000_set_coalesce() 2024 (ec->rx_coalesce_usecs == 2)) in e1000_set_coalesce() 2027 if (ec->rx_coalesce_usecs == 4) { in e1000_set_coalesce() 2030 } else if (ec->rx_coalesce_usecs <= 3) { in e1000_set_coalesce() 2032 adapter->itr_setting = ec->rx_coalesce_usecs; in e1000_set_coalesce() 2034 adapter->itr = (1000000 / ec->rx_coalesce_usecs); in e1000_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 454 cmd->rx_coalesce_usecs = hw->cq_time_wait; in otx2_get_coalesce() 504 ec->rx_coalesce_usecs = clamp_t(u32, ec->rx_coalesce_usecs, in otx2_set_coalesce() 512 if (hw->cq_time_wait == ec->rx_coalesce_usecs) in otx2_set_coalesce() 515 hw->cq_time_wait = ec->rx_coalesce_usecs; in otx2_set_coalesce() 517 hw->cq_time_wait = min_t(u8, ec->rx_coalesce_usecs, in otx2_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 754 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.1.9/drivers/net/ethernet/fungible/funeth/ |
D | funeth_ethtool.c | 472 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.1.9/net/ethtool/ |
D | coalesce.c | 137 coal->rx_coalesce_usecs, supported) || in coalesce_fill_reply() 276 ethnl_update_u32(&coalesce.rx_coalesce_usecs, in ethnl_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 437 ec->rx_coalesce_usecs = pdata->rx_usecs; in xgbe_get_coalesce() 455 rx_riwt = hw_if->usec_to_riwt(pdata, ec->rx_coalesce_usecs); in xgbe_set_coalesce() 456 rx_usecs = ec->rx_coalesce_usecs; in xgbe_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/ti/ |
D | cpsw_ethtool.c | 161 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()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_ethtool.c | 1306 ec->rx_coalesce_usecs = nn->rx_coalesce_usecs; in nfp_net_get_coalesce() 1583 if (!ec->rx_coalesce_usecs && !ec->rx_max_coalesced_frames) in nfp_net_set_coalesce() 1589 if (nfp_net_coalesce_para_check(ec->rx_coalesce_usecs * factor, in nfp_net_set_coalesce() 1601 nn->rx_coalesce_usecs = ec->rx_coalesce_usecs; in nfp_net_set_coalesce()
|