| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-ethtool.c | 159 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 D | otx2_ethtool.c | 472 cmd->tx_max_coalesced_frames = hw->cq_ecount_wait; in otx2_get_coalesce() 495 if (!ec->rx_max_coalesced_frames || !ec->tx_max_coalesced_frames) in otx2_set_coalesce() 540 ec->tx_max_coalesced_frames = clamp_t(u32, ec->tx_max_coalesced_frames, in otx2_set_coalesce() 547 hw->cq_ecount_wait = ec->tx_max_coalesced_frames; in otx2_set_coalesce() 548 else if (hw->cq_ecount_wait == ec->tx_max_coalesced_frames) in otx2_set_coalesce() 552 ec->tx_max_coalesced_frames); in otx2_set_coalesce()
|
| /linux/drivers/net/can/m_can/ |
| H A D | m_can.c | 1644 cdev->tx_max_coalesced_frames); in m_can_start() 2014 if (cdev->nr_txs_without_submit >= cdev->tx_max_coalesced_frames || in m_can_start_peripheral_xmit() 2182 ec->tx_max_coalesced_frames = cdev->tx_max_coalesced_frames; in m_can_get_coalesce() 2227 if (ec->tx_max_coalesced_frames > cdev->mcfg[MRAM_TXE].num) { in m_can_set_coalesce() 2229 ec->tx_max_coalesced_frames, in m_can_set_coalesce() 2233 if (ec->tx_max_coalesced_frames > cdev->mcfg[MRAM_TXB].num) { in m_can_set_coalesce() 2235 ec->tx_max_coalesced_frames, in m_can_set_coalesce() 2249 cdev->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; in m_can_set_coalesce()
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | lio_ethtool.c | 2139 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 D | octeon_device.h | 590 u32 tx_max_coalesced_frames; member
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | gianfar_ethtool.c | 279 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()
|
| H A D | fec_main.c | 3676 ec->tx_max_coalesced_frames = fep->tx_pkts_itr; in fec_enet_get_coalesce() 3698 if (ec->tx_max_coalesced_frames > 255) { in fec_enet_set_coalesce() 3719 fep->tx_pkts_itr = ec->tx_max_coalesced_frames; in fec_enet_set_coalesce()
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_ethtool.c | 660 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/hisilicon/hns3/ |
| H A D | hns3_ethtool.c | 1382 cmd->tx_max_coalesced_frames = tx_coal->int_ql; in hns3_get_coalesce() 1471 if ((cmd->tx_max_coalesced_frames || cmd->rx_max_coalesced_frames) && in hns3_check_ql_coalesce_param() 1477 if (cmd->tx_max_coalesced_frames > ae_dev->dev_specs.int_ql_max || in hns3_check_ql_coalesce_param() 1552 tx_vector->tx_group.coal.int_ql = cmd->tx_max_coalesced_frames; in hns3_set_coalesce_per_queue() 1602 tx_coal->int_ql = cmd->tx_max_coalesced_frames; in hns3_set_coalesce()
|
| /linux/drivers/net/ethernet/xilinx/ |
| H A D | ll_temac_main.c | 1332 ec->tx_max_coalesced_frames = lp->coalesce_count_tx; in ll_temac_ethtools_get_coalesce() 1354 if (ec->tx_max_coalesced_frames) in ll_temac_ethtools_set_coalesce() 1355 lp->coalesce_count_tx = ec->tx_max_coalesced_frames; in ll_temac_ethtools_set_coalesce()
|
| H A D | xilinx_axienet_main.c | 2203 &ecoalesce->tx_max_coalesced_frames, in axienet_ethtools_get_coalesce() 2233 ecoalesce->tx_max_coalesced_frames > 255) { in axienet_ethtools_set_coalesce() 2239 !ecoalesce->tx_max_coalesced_frames) { in axienet_ethtools_set_coalesce() 2246 (ecoalesce->tx_max_coalesced_frames > 1 && in axienet_ethtools_set_coalesce() 2275 cr = axienet_calc_cr(lp, ecoalesce->tx_max_coalesced_frames, in axienet_ethtools_set_coalesce()
|
| /linux/drivers/net/ethernet/socionext/ |
| H A D | netsec.c | 557 if (priv->et_coalesce.tx_max_coalesced_frames < 1) in netsec_et_set_coalesce() 558 priv->et_coalesce.tx_max_coalesced_frames = 1; in netsec_et_set_coalesce() 561 priv->et_coalesce.tx_max_coalesced_frames); in netsec_et_set_coalesce() 2092 priv->et_coalesce.tx_max_coalesced_frames = 8; in netsec_probe()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_ethtool.c | 992 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 D | nfp_net_ethtool.c | 1887 ec->tx_max_coalesced_frames = nn->tx_coalesce_max_frames; in nfp_net_get_coalesce() 2167 if (!ec->tx_coalesce_usecs && !ec->tx_max_coalesced_frames) { in nfp_net_set_coalesce() 2188 if (nfp_net_coalesce_para_check(ec->tx_max_coalesced_frames)) { in nfp_net_set_coalesce() 2200 nn->tx_coalesce_max_frames = ec->tx_max_coalesced_frames; in nfp_net_set_coalesce()
|
| /linux/drivers/net/ |
| H A D | virtio_net.c | 5155 coal_tx->tx_max_packets = cpu_to_le32(ec->tx_max_coalesced_frames); in virtnet_send_tx_notf_coal_cmds() 5164 vi->intr_coal_tx.max_packets = ec->tx_max_coalesced_frames; in virtnet_send_tx_notf_coal_cmds() 5167 vi->sq[i].intr_coal.max_packets = ec->tx_max_coalesced_frames; in virtnet_send_tx_notf_coal_cmds() 5303 ec->tx_max_coalesced_frames); in virtnet_send_notf_coal_vq_cmds() 5349 if (ec->tx_max_coalesced_frames > 1 || in virtnet_coal_params_supported() 5378 napi_weight = ec->tx_max_coalesced_frames ? NAPI_POLL_WEIGHT : 0; in virtnet_set_coalesce() 5428 ec->tx_max_coalesced_frames = vi->intr_coal_tx.max_packets; in virtnet_get_coalesce() 5435 ec->tx_max_coalesced_frames = 1; in virtnet_get_coalesce() 5453 napi_weight = ec->tx_max_coalesced_frames ? NAPI_POLL_WEIGHT : 0; in virtnet_set_per_queue_coalesce() 5487 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 D | bcmsysport.c | 580 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()
|
| H A D | tg3.c | 9531 tw32(HOSTCC_TXMAX_FRAMES, ec->tx_max_coalesced_frames); in tg3_coal_tx_init() 9544 tw32(reg, ec->tx_max_coalesced_frames); in tg3_coal_tx_init() 14148 (ec->tx_max_coalesced_frames > MAX_TXMAX_FRAMES) || in tg3_set_coalesce() 14161 tp->coal.tx_max_coalesced_frames = ec->tx_max_coalesced_frames; in tg3_set_coalesce() 17658 ec->tx_max_coalesced_frames = LOW_TXMAX_FRAMES; in tg3_init_coal()
|
| /linux/drivers/net/ethernet/cortina/ |
| H A D | gemini.c | 2218 ecmd->tx_max_coalesced_frames = port->irq_every_tx_packets; in gmac_get_coalesce() 2231 if (ecmd->tx_max_coalesced_frames < 1) in gmac_set_coalesce() 2233 if (ecmd->tx_max_coalesced_frames >= 1 << port->txq_order) in gmac_set_coalesce() 2236 port->irq_every_tx_packets = ecmd->tx_max_coalesced_frames; in gmac_set_coalesce()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_ethtool.c | 1069 ic->tx_max_coalesced_frames = ENETC_TXIC_PKTTHR; in enetc_get_coalesce() 1094 if (ic->tx_max_coalesced_frames != ENETC_TXIC_PKTTHR) in enetc_set_coalesce()
|
| /linux/drivers/net/ethernet/via/ |
| H A D | via-velocity.c | 3526 ecmd->tx_max_coalesced_frames = vptr->options.tx_intsup; in velocity_get_coalesce() 3550 if (ecmd->tx_max_coalesced_frames > 0xff) in velocity_set_coalesce() 3556 vptr->options.tx_intsup = ecmd->tx_max_coalesced_frames; in velocity_set_coalesce()
|
| /linux/drivers/net/ethernet/broadcom/genet/ |
| H A D | bcmgenet.c | 836 ec->tx_max_coalesced_frames = in bcmgenet_get_coalesce() 899 if (ec->tx_max_coalesced_frames > DMA_INTR_THRESHOLD_MASK || in bcmgenet_set_coalesce() 900 ec->tx_max_coalesced_frames == 0 || in bcmgenet_set_coalesce() 918 ec->tx_max_coalesced_frames, in bcmgenet_set_coalesce()
|
| /linux/drivers/net/ethernet/tehuti/ |
| H A D | tehuti.c | 2167 ecoal->tx_max_coalesced_frames = in bdx_get_coalesce() 2196 tx_max_coal = ecoal->tx_max_coalesced_frames; in bdx_set_coalesce()
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bnad_ethtool.c | 328 coalesce->tx_max_coalesced_frames = BFI_TX_INTERPKT_COUNT; in bnad_get_coalesce()
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | sky2.c | 4065 ecmd->tx_max_coalesced_frames = sky2_read16(hw, STAT_TX_IDX_TH); in sky2_get_coalesce() 4102 if (ecmd->tx_max_coalesced_frames >= sky2->tx_ring_size-1) in sky2_set_coalesce() 4116 sky2_write16(hw, STAT_TX_IDX_TH, ecmd->tx_max_coalesced_frames); in sky2_set_coalesce()
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_ethtool.c | 88 coal->tx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() 140 hw_coal->coal_bufs = coal->tx_max_coalesced_frames * mult; in bnxt_set_coalesce()
|