Home
last modified time | relevance | path

Searched refs:tx_max_coalesced_frames (Results 1 – 25 of 37) sorted by relevance

12

/linux/drivers/s390/net/
H A Dqeth_ethtool.c117 WRITE_ONCE(queue->max_coalesced_frames, coal->tx_max_coalesced_frames); in __qeth_set_coalesce()
137 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_coalesce()
304 coal->tx_max_coalesced_frames = queue->max_coalesced_frames; in qeth_get_per_queue_coalesce()
319 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_per_queue_coalesce()
/linux/drivers/net/vmxnet3/
H A Dvmxnet3_ethtool.c1203 ec->tx_max_coalesced_frames = in vmxnet3_get_coalesce()
1237 (ec->tx_max_coalesced_frames == 0) && in vmxnet3_set_coalesce()
1248 (ec->tx_max_coalesced_frames != 0) || in vmxnet3_set_coalesce()
1266 if (ec->tx_max_coalesced_frames != 0 || in vmxnet3_set_coalesce()
1275 if ((ec->tx_max_coalesced_frames != 0) || in vmxnet3_set_coalesce()
1277 if ((ec->tx_max_coalesced_frames > in vmxnet3_set_coalesce()
1288 (ec->tx_max_coalesced_frames ? in vmxnet3_set_coalesce()
1289 ec->tx_max_coalesced_frames : in vmxnet3_set_coalesce()
/linux/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-ethtool.c159 ec->tx_max_coalesced_frames = pdata->tx_frames; in xlgmac_ethtool_get_coalesce()
178 tx_frames = ec->tx_max_coalesced_frames; in xlgmac_ethtool_set_coalesce()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c461 cmd->tx_max_coalesced_frames = hw->cq_ecount_wait; in otx2_get_coalesce()
484 if (!ec->rx_max_coalesced_frames || !ec->tx_max_coalesced_frames) in otx2_set_coalesce()
529 ec->tx_max_coalesced_frames = clamp_t(u32, ec->tx_max_coalesced_frames, in otx2_set_coalesce()
536 hw->cq_ecount_wait = ec->tx_max_coalesced_frames; in otx2_set_coalesce()
537 else if (hw->cq_ecount_wait == ec->tx_max_coalesced_frames) in otx2_set_coalesce()
541 ec->tx_max_coalesced_frames); in otx2_set_coalesce()
/linux/drivers/net/can/m_can/
H A Dm_can.c1607 cdev->tx_max_coalesced_frames); in m_can_start()
1974 if (cdev->nr_txs_without_submit >= cdev->tx_max_coalesced_frames || in m_can_start_peripheral_xmit()
2137 ec->tx_max_coalesced_frames = cdev->tx_max_coalesced_frames; in m_can_get_coalesce()
2182 if (ec->tx_max_coalesced_frames > cdev->mcfg[MRAM_TXE].num) { in m_can_set_coalesce()
2184 ec->tx_max_coalesced_frames, in m_can_set_coalesce()
2188 if (ec->tx_max_coalesced_frames > cdev->mcfg[MRAM_TXB].num) { in m_can_set_coalesce()
2190 ec->tx_max_coalesced_frames, in m_can_set_coalesce()
2204 cdev->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; in m_can_set_coalesce()
H A Dm_can.h108 u32 tx_max_coalesced_frames; member
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c982 ec->tx_max_coalesced_frames = priv->tx_coal_frames[queue]; in __stmmac_get_coalesce()
985 ec->tx_max_coalesced_frames = 0; in __stmmac_get_coalesce()
1060 (ec->tx_max_coalesced_frames == 0)) in __stmmac_set_coalesce()
1064 (ec->tx_max_coalesced_frames > STMMAC_TX_MAX_FRAMES)) in __stmmac_set_coalesce()
1072 ec->tx_max_coalesced_frames; in __stmmac_set_coalesce()
1078 ec->tx_max_coalesced_frames; in __stmmac_set_coalesce()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ethtool.c570 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
575 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
594 coal->tx_max_coalesced_frames > 1) in aq_ethtool_set_coalesce()
601 if (!(coal->tx_max_coalesced_frames == !coal->tx_coalesce_usecs)) in aq_ethtool_set_coalesce()
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_ethtool.c476 coal->tx_max_coalesced_frames = fp->tx_coal_count; in fun_get_coalesce()
493 coal->tx_max_coalesced_frames > FUN_DB_INTCOAL_ENTRIES_M || in fun_set_coalesce()
494 (coal->tx_coalesce_usecs | coal->tx_max_coalesced_frames) == 0) in fun_set_coalesce()
499 (coal->tx_max_coalesced_frames > 1 && !coal->tx_coalesce_usecs)) in fun_set_coalesce()
505 fp->tx_coal_count = coal->tx_max_coalesced_frames; in fun_set_coalesce()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c567 coal->tx_max_coalesced_frames = tx_moder->pkts; in mlx5e_ethtool_get_coalesce()
626 coal->tx_max_coalesced_frames = cur_moder.pkts; in mlx5e_ethtool_get_per_queue_coalesce()
630 coal->tx_max_coalesced_frames = c->tx_cq_moder.pkts; in mlx5e_ethtool_get_per_queue_coalesce()
718 if (coal->tx_max_coalesced_frames > MLX5E_MAX_COAL_FRAMES || in mlx5e_ethtool_set_coalesce()
723 MLX5E_MAX_COAL_FRAMES, coal->tx_max_coalesced_frames, in mlx5e_ethtool_set_coalesce()
783 tx_moder->pkts = coal->tx_max_coalesced_frames; in mlx5e_ethtool_set_coalesce()
832 if (coal->tx_max_coalesced_frames > MLX5E_MAX_COAL_FRAMES || in mlx5e_ethtool_set_per_queue_coalesce()
873 c->tx_cq_moder.pkts = coal->tx_max_coalesced_frames; in mlx5e_ethtool_set_per_queue_coalesce()
878 coal->tx_max_coalesced_frames); in mlx5e_ethtool_set_per_queue_coalesce()
/linux/drivers/net/ethernet/hisilicon/
H A Dhip04_eth.c806 ec->tx_max_coalesced_frames = priv->tx_coalesce_frames; in hip04_get_coalesce()
820 (ec->tx_max_coalesced_frames > HIP04_MAX_TX_COALESCE_FRAMES || in hip04_set_coalesce()
821 ec->tx_max_coalesced_frames < HIP04_MIN_TX_COALESCE_FRAMES)) in hip04_set_coalesce()
825 priv->tx_coalesce_frames = ec->tx_max_coalesced_frames; in hip04_set_coalesce()
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_ethtool.c2139 intr_coal->tx_max_coalesced_frames = in lio_get_intr_coalesce()
2140 oct->tx_max_coalesced_frames; in lio_get_intr_coalesce()
2155 intr_coal->tx_max_coalesced_frames = iq->fill_threshold; in lio_get_intr_coalesce()
2397 if (!intr_coal->tx_max_coalesced_frames) in oct_cfg_tx_intrcnt()
2401 iq_intr_pkt = intr_coal->tx_max_coalesced_frames & in oct_cfg_tx_intrcnt()
2414 oct->tx_max_coalesced_frames = iq_intr_pkt; in oct_cfg_tx_intrcnt()
2440 if ((intr_coal->tx_max_coalesced_frames >= db_min) && in lio_set_intr_coalesce()
2441 (intr_coal->tx_max_coalesced_frames <= db_max)) { in lio_set_intr_coalesce()
2445 intr_coal->tx_max_coalesced_frames; in lio_set_intr_coalesce()
2450 intr_coal->tx_max_coalesced_frames, in lio_set_intr_coalesce()
[all …]
H A Docteon_device.h590 u32 tx_max_coalesced_frames; member
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c279 cvals->tx_max_coalesced_frames = txcount; in gfar_gcoalesce()
322 if (cvals->tx_max_coalesced_frames > GFAR_MAX_COAL_FRAMES) { in gfar_scoalesce()
349 (cvals->tx_max_coalesced_frames == 0)) { in gfar_scoalesce()
359 cvals->tx_max_coalesced_frames, in gfar_scoalesce()
/linux/net/ethtool/
H A Dcoalesce.c230 coal->tx_max_coalesced_frames, supported) || in coalesce_fill_reply()
537 ethnl_update_u32(&coalesce.tx_max_coalesced_frames, in __ethnl_set_coalesce()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_ethtool.c660 coal->tx_max_coalesced_frames = tx_intr_coal_info->pending_limt * in __hinic_get_coalesce()
671 coal->tx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT) in is_coalesce_exceed_limit()
767 if (coal->tx_coalesce_usecs || coal->tx_max_coalesced_frames) { in __hinic_set_coalesce()
770 tx_intr_coal.pending_limt = (u8)(coal->tx_max_coalesced_frames / in __hinic_set_coalesce()
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c441 ec->tx_max_coalesced_frames = pdata->tx_frames; in xgbe_get_coalesce()
476 tx_frames = ec->tx_max_coalesced_frames; in xgbe_set_coalesce()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c992 coal->tx_max_coalesced_frames = priv->tx_frames; in mlx4_en_get_coalesce()
1027 if (coal->tx_max_coalesced_frames > MLX4_EN_MAX_COAL_PKTS || in mlx4_en_set_coalesce()
1045 coal->tx_max_coalesced_frames != priv->tx_frames) { in mlx4_en_set_coalesce()
1047 priv->tx_frames = coal->tx_max_coalesced_frames; in mlx4_en_set_coalesce()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1884 ec->tx_max_coalesced_frames = nn->tx_coalesce_max_frames; in nfp_net_get_coalesce()
2164 if (!ec->tx_coalesce_usecs && !ec->tx_max_coalesced_frames) { in nfp_net_set_coalesce()
2185 if (nfp_net_coalesce_para_check(ec->tx_max_coalesced_frames)) { in nfp_net_set_coalesce()
2197 nn->tx_coalesce_max_frames = ec->tx_max_coalesced_frames; in nfp_net_set_coalesce()
/linux/drivers/net/
H A Dvirtio_net.c5029 coal_tx->tx_max_packets = cpu_to_le32(ec->tx_max_coalesced_frames); in virtnet_send_tx_notf_coal_cmds()
5038 vi->intr_coal_tx.max_packets = ec->tx_max_coalesced_frames; in virtnet_send_tx_notf_coal_cmds()
5041 vi->sq[i].intr_coal.max_packets = ec->tx_max_coalesced_frames; in virtnet_send_tx_notf_coal_cmds()
5177 ec->tx_max_coalesced_frames); in virtnet_send_notf_coal_vq_cmds()
5223 if (ec->tx_max_coalesced_frames > 1 || in virtnet_coal_params_supported()
5252 napi_weight = ec->tx_max_coalesced_frames ? NAPI_POLL_WEIGHT : 0; in virtnet_set_coalesce()
5302 ec->tx_max_coalesced_frames = vi->intr_coal_tx.max_packets; in virtnet_get_coalesce()
5309 ec->tx_max_coalesced_frames = 1; in virtnet_get_coalesce()
5327 napi_weight = ec->tx_max_coalesced_frames ? NAPI_POLL_WEIGHT : 0; in virtnet_set_per_queue_coalesce()
5361 ec->tx_max_coalesced_frames = vi->sq[queue].intr_coal.max_packets; in virtnet_get_per_queue_coalesce()
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c580 reg |= ec->tx_max_coalesced_frames; in bcm_sysport_set_tx_coalesce()
597 ec->tx_max_coalesced_frames = reg & RING_INTR_THRESH_MASK; in bcm_sysport_get_coalesce()
622 if (ec->tx_max_coalesced_frames > RING_INTR_THRESH_MASK || in bcm_sysport_set_coalesce()
628 if ((ec->tx_coalesce_usecs == 0 && ec->tx_max_coalesced_frames == 0) || in bcm_sysport_set_coalesce()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c770 ic->tx_max_coalesced_frames = ENETC_TXIC_PKTTHR; in enetc_get_coalesce()
795 if (ic->tx_max_coalesced_frames != ENETC_TXIC_PKTTHR) in enetc_set_coalesce()
/linux/include/uapi/linux/
H A Dethtool.h480 __u32 tx_max_coalesced_frames; member
/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_main.c2027 ecoalesce->tx_max_coalesced_frames = lp->coalesce_count_tx; in axienet_ethtools_get_coalesce()
2063 if (ecoalesce->tx_max_coalesced_frames) in axienet_ethtools_set_coalesce()
2064 lp->coalesce_count_tx = ecoalesce->tx_max_coalesced_frames; in axienet_ethtools_set_coalesce()
/linux/drivers/net/ethernet/tehuti/
H A Dtehuti.c2167 ecoal->tx_max_coalesced_frames = in bdx_get_coalesce()
2196 tx_max_coal = ecoal->tx_max_coalesced_frames; in bdx_set_coalesce()

12