Home
last modified time | relevance | path

Searched refs:coalesce (Results 1 – 25 of 51) sorted by relevance

123

/Linux-v5.10/net/ethtool/
Dcoalesce.c12 struct ethtool_coalesce coalesce; member
73 ret = dev->ethtool_ops->get_coalesce(dev, &data->coalesce); in coalesce_prepare_data()
127 const struct ethtool_coalesce *coal = &data->coalesce; in coalesce_fill_reply()
222 struct ethtool_coalesce coalesce = {}; in ethnl_set_coalesce() local
258 ret = ops->get_coalesce(dev, &coalesce); in ethnl_set_coalesce()
262 ethnl_update_u32(&coalesce.rx_coalesce_usecs, in ethnl_set_coalesce()
264 ethnl_update_u32(&coalesce.rx_max_coalesced_frames, in ethnl_set_coalesce()
266 ethnl_update_u32(&coalesce.rx_coalesce_usecs_irq, in ethnl_set_coalesce()
268 ethnl_update_u32(&coalesce.rx_max_coalesced_frames_irq, in ethnl_set_coalesce()
270 ethnl_update_u32(&coalesce.tx_coalesce_usecs, in ethnl_set_coalesce()
[all …]
Dioctl.c1516 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_coalesce() local
1522 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce); in ethtool_get_coalesce()
1526 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
1533 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument
1538 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported()
1540 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1542 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1544 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1546 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported()
1548 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported()
[all …]
DMakefile9 channels.o coalesce.o pause.o eee.o tsinfo.o cabletest.o \
/Linux-v5.10/drivers/net/ethernet/sfc/
Dethtool.c100 struct ethtool_coalesce *coalesce) in efx_ethtool_get_coalesce() argument
108 coalesce->tx_coalesce_usecs = tx_usecs; in efx_ethtool_get_coalesce()
109 coalesce->tx_coalesce_usecs_irq = tx_usecs; in efx_ethtool_get_coalesce()
110 coalesce->rx_coalesce_usecs = rx_usecs; in efx_ethtool_get_coalesce()
111 coalesce->rx_coalesce_usecs_irq = rx_usecs; in efx_ethtool_get_coalesce()
112 coalesce->use_adaptive_rx_coalesce = rx_adaptive; in efx_ethtool_get_coalesce()
118 struct ethtool_coalesce *coalesce) in efx_ethtool_set_coalesce() argument
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()
131 rx_usecs = coalesce->rx_coalesce_usecs_irq; in efx_ethtool_set_coalesce()
[all …]
/Linux-v5.10/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c407 struct ethtool_coalesce *coalesce) in ionic_get_coalesce() argument
411 coalesce->tx_coalesce_usecs = lif->tx_coalesce_usecs; in ionic_get_coalesce()
412 coalesce->rx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_get_coalesce()
415 coalesce->use_adaptive_tx_coalesce = test_bit(IONIC_LIF_F_TX_DIM_INTR, lif->state); in ionic_get_coalesce()
417 coalesce->use_adaptive_tx_coalesce = 0; in ionic_get_coalesce()
419 coalesce->use_adaptive_rx_coalesce = test_bit(IONIC_LIF_F_RX_DIM_INTR, lif->state); in ionic_get_coalesce()
425 struct ethtool_coalesce *coalesce) in ionic_set_coalesce() argument
442 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce()
443 coalesce->use_adaptive_tx_coalesce)) { in ionic_set_coalesce()
451 rx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->rx_coalesce_usecs); in ionic_set_coalesce()
[all …]
/Linux-v5.10/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c311 bnad_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coalesce) in bnad_get_coalesce() argument
318 coalesce->use_adaptive_rx_coalesce = in bnad_get_coalesce()
322 coalesce->rx_coalesce_usecs = bnad->rx_coalescing_timeo * in bnad_get_coalesce()
324 coalesce->tx_coalesce_usecs = bnad->tx_coalescing_timeo * in bnad_get_coalesce()
326 coalesce->tx_max_coalesced_frames = BFI_TX_INTERPKT_COUNT; in bnad_get_coalesce()
332 bnad_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *coalesce) in bnad_set_coalesce() argument
338 if (coalesce->rx_coalesce_usecs == 0 || in bnad_set_coalesce()
339 coalesce->rx_coalesce_usecs > in bnad_set_coalesce()
343 if (coalesce->tx_coalesce_usecs == 0 || in bnad_set_coalesce()
344 coalesce->tx_coalesce_usecs > in bnad_set_coalesce()
[all …]
/Linux-v5.10/drivers/net/ethernet/sfc/falcon/
Dethtool.c580 struct ethtool_coalesce *coalesce) in ef4_ethtool_get_coalesce() argument
588 coalesce->tx_coalesce_usecs = tx_usecs; in ef4_ethtool_get_coalesce()
589 coalesce->tx_coalesce_usecs_irq = tx_usecs; in ef4_ethtool_get_coalesce()
590 coalesce->rx_coalesce_usecs = rx_usecs; in ef4_ethtool_get_coalesce()
591 coalesce->rx_coalesce_usecs_irq = rx_usecs; in ef4_ethtool_get_coalesce()
592 coalesce->use_adaptive_rx_coalesce = rx_adaptive; in ef4_ethtool_get_coalesce()
598 struct ethtool_coalesce *coalesce) in ef4_ethtool_set_coalesce() argument
608 if (coalesce->rx_coalesce_usecs != rx_usecs) in ef4_ethtool_set_coalesce()
609 rx_usecs = coalesce->rx_coalesce_usecs; in ef4_ethtool_set_coalesce()
611 rx_usecs = coalesce->rx_coalesce_usecs_irq; in ef4_ethtool_set_coalesce()
[all …]
/Linux-v5.10/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c357 struct ethtool_coalesce *coalesce) in ena_get_coalesce() argument
365 coalesce->tx_coalesce_usecs = in ena_get_coalesce()
369 coalesce->rx_coalesce_usecs = in ena_get_coalesce()
373 coalesce->use_adaptive_rx_coalesce = in ena_get_coalesce()
402 struct ethtool_coalesce *coalesce) in ena_set_coalesce() argument
412 coalesce->tx_coalesce_usecs); in ena_set_coalesce()
419 coalesce->rx_coalesce_usecs); in ena_set_coalesce()
425 if (coalesce->use_adaptive_rx_coalesce && in ena_set_coalesce()
429 if (!coalesce->use_adaptive_rx_coalesce && in ena_set_coalesce()
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_lib.c2691 struct ice_coalesce_stored *coalesce) in ice_vsi_rebuild_update_coalesce() argument
2697 tx_rc->itr_setting = coalesce->itr_tx; in ice_vsi_rebuild_update_coalesce()
2698 rx_rc->itr_setting = coalesce->itr_rx; in ice_vsi_rebuild_update_coalesce()
2710 q_vector->intrl = coalesce->intrl; in ice_vsi_rebuild_update_coalesce()
2724 struct ice_coalesce_stored *coalesce) in ice_vsi_rebuild_get_coalesce() argument
2731 coalesce[i].itr_tx = q_vector->tx.itr_setting; in ice_vsi_rebuild_get_coalesce()
2732 coalesce[i].itr_rx = q_vector->rx.itr_setting; in ice_vsi_rebuild_get_coalesce()
2733 coalesce[i].intrl = q_vector->intrl; in ice_vsi_rebuild_get_coalesce()
2751 struct ice_coalesce_stored *coalesce, int size) in ice_vsi_rebuild_set_coalesce() argument
2755 if ((size && !coalesce) || !vsi) in ice_vsi_rebuild_set_coalesce()
[all …]
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/
Dqed_l2.h415 u16 coalesce, struct qed_queue_cid *p_cid);
419 u16 coalesce, struct qed_queue_cid *p_cid);
Dqed_l2.c2085 u32 coalesce, address, is_valid; in qed_get_rxq_coalesce() local
2103 coalesce = qed_rd(p_hwfn, p_ptt, address); in qed_get_rxq_coalesce()
2105 is_valid = GET_FIELD(coalesce, COALESCING_TIMESET_VALID); in qed_get_rxq_coalesce()
2109 coalesce = GET_FIELD(coalesce, COALESCING_TIMESET_TIMESET); in qed_get_rxq_coalesce()
2110 *p_rx_coal = (u16)(coalesce << timer_res); in qed_get_rxq_coalesce()
2119 u32 coalesce, address, is_valid; in qed_get_txq_coalesce() local
2137 coalesce = qed_rd(p_hwfn, p_ptt, address); in qed_get_txq_coalesce()
2139 is_valid = GET_FIELD(coalesce, COALESCING_TIMESET_VALID); in qed_get_txq_coalesce()
2143 coalesce = GET_FIELD(coalesce, COALESCING_TIMESET_TIMESET); in qed_get_txq_coalesce()
2144 *p_tx_coal = (u16)(coalesce << timer_res); in qed_get_txq_coalesce()
Dqed_dev.c4850 u16 coalesce, struct qed_queue_cid *p_cid) in qed_set_rxq_coalesce() argument
4858 if (coalesce <= 0x7F) { in qed_set_rxq_coalesce()
4860 } else if (coalesce <= 0xFF) { in qed_set_rxq_coalesce()
4862 } else if (coalesce <= 0x1FF) { in qed_set_rxq_coalesce()
4865 DP_ERR(p_hwfn, "Invalid coalesce value - %d\n", coalesce); in qed_set_rxq_coalesce()
4868 timeset = (u8)(coalesce >> timer_res); in qed_set_rxq_coalesce()
4889 u16 coalesce, struct qed_queue_cid *p_cid) in qed_set_txq_coalesce() argument
4897 if (coalesce <= 0x7F) { in qed_set_txq_coalesce()
4899 } else if (coalesce <= 0xFF) { in qed_set_txq_coalesce()
4901 } else if (coalesce <= 0x1FF) { in qed_set_txq_coalesce()
[all …]
/Linux-v5.10/arch/um/drivers/
Dvector_kern.h106 int coalesce; member
Dvector_kern.c1100 mod_timer(&vp->tl, vp->coalesce); in vector_net_start_xmit()
1496 ec->tx_coalesce_usecs = (vp->coalesce * 1000000) / HZ; in vector_get_coalesce()
1505 vp->coalesce = (ec->tx_coalesce_usecs * HZ) / 1000000; in vector_set_coalesce()
1506 if (vp->coalesce == 0) in vector_set_coalesce()
1507 vp->coalesce = 1; in vector_set_coalesce()
1625 .coalesce = 2, in vector_eth_configure()
/Linux-v5.10/Documentation/devicetree/bindings/i2c/
Dmellanox,i2c-mlxbf.txt12 4) Cause coalesce registers (if compatible isn't set
/Linux-v5.10/net/wireless/
Dcore.c740 if (WARN_ON(wiphy->coalesce && in wiphy_register()
741 (!wiphy->coalesce->n_rules || in wiphy_register()
742 !wiphy->coalesce->n_patterns) && in wiphy_register()
743 (!wiphy->coalesce->pattern_min_len || in wiphy_register()
744 wiphy->coalesce->pattern_min_len > in wiphy_register()
745 wiphy->coalesce->pattern_max_len))) in wiphy_register()
/Linux-v5.10/drivers/scsi/bfa/
Dbfa_core.c1022 cfg_info->intr_attr.coalesce = BFA_TRUE; in bfa_iocfc_send_cfg()
1612 attr->intr_attr.coalesce = iocfc->cfginfo->intr_attr.coalesce; in bfa_iocfc_get_attr()
1631 iocfc->cfginfo->intr_attr.coalesce = attr->coalesce; in bfa_iocfc_israttr_set()
1644 m->coalesce = iocfc->cfginfo->intr_attr.coalesce; in bfa_iocfc_israttr_set()
/Linux-v5.10/drivers/i2c/busses/
Di2c-mlxbf.c435 struct mlxbf_i2c_resource *coalesce; member
1709 priv->coalesce = coalesce_res; in mlxbf_i2c_init_coalesce()
1725 priv->coalesce = coalesce_res; in mlxbf_i2c_init_coalesce()
1728 ret = mlxbf_i2c_init_resource(pdev, &priv->coalesce, in mlxbf_i2c_init_coalesce()
1743 coalesce_res = priv->coalesce; in mlxbf_i2c_release_coalesce()
1810 coalesce0_reg = readl(priv->coalesce->io + MLXBF_I2C_CAUSE_COALESCE_0); in mlxbf_i2c_has_coalesce()
/Linux-v5.10/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ring2.c202 .coalesce = xgene_enet_setup_coalescing,
Dxgene_enet_main.h175 void (*coalesce)(struct xgene_enet_desc_ring *); member
/Linux-v5.10/drivers/net/ethernet/dlink/
Ddl2k.h387 unsigned int coalesce:1; /* Rx coalescing enable */ member
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1150 struct ethtool_coalesce *coalesce) in set_coalesce() argument
1154 set_adaptive_rx_setting(dev, coalesce->use_adaptive_rx_coalesce); in set_coalesce()
1156 ret = set_rx_intr_params(dev, coalesce->rx_coalesce_usecs, in set_coalesce()
1157 coalesce->rx_max_coalesced_frames); in set_coalesce()
1162 coalesce->tx_coalesce_usecs_irq, in set_coalesce()
1163 coalesce->tx_coalesce_usecs); in set_coalesce()
/Linux-v5.10/Documentation/fb/
Ddeferred_io.rst36 whether to coalesce and issue SG DMA or to do memory bursts.
/Linux-v5.10/drivers/net/ethernet/amd/
Damd8111e.h797 static bool coalesce[MAX_UNITS] = { [ 0 ... MAX_UNITS-1] = true }; variable
/Linux-v5.10/drivers/net/usb/
Dr8152.c857 u32 coalesce; member
2805 u32 ocp_data = tp->coalesce / 8; in r8153_set_rx_early_timeout()
5503 tp->coalesce = COALESCE_SUPER; in r8153_init()
5506 tp->coalesce = COALESCE_HIGH; in r8153_init()
5509 tp->coalesce = COALESCE_SLOW; in r8153_init()
5597 tp->coalesce = 15000; /* 15 us */ in r8153b_init()
6211 struct ethtool_coalesce *coalesce) in rtl8152_get_coalesce() argument
6224 coalesce->rx_coalesce_usecs = tp->coalesce; in rtl8152_get_coalesce()
6230 struct ethtool_coalesce *coalesce) in rtl8152_set_coalesce() argument
6244 if (coalesce->rx_coalesce_usecs > COALESCE_SLOW) in rtl8152_set_coalesce()
[all …]

123