| /Linux-v5.15/net/ethtool/ |
| D | coalesce.c | 12 struct ethtool_coalesce coalesce; member 75 ret = dev->ethtool_ops->get_coalesce(dev, &data->coalesce, in coalesce_prepare_data() 133 const struct ethtool_coalesce *coal = &data->coalesce; in coalesce_fill_reply() 235 struct ethtool_coalesce coalesce = {}; in ethnl_set_coalesce() local 271 ret = ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethnl_set_coalesce() 276 ethnl_update_u32(&coalesce.rx_coalesce_usecs, in ethnl_set_coalesce() 278 ethnl_update_u32(&coalesce.rx_max_coalesced_frames, in ethnl_set_coalesce() 280 ethnl_update_u32(&coalesce.rx_coalesce_usecs_irq, in ethnl_set_coalesce() 282 ethnl_update_u32(&coalesce.rx_max_coalesced_frames_irq, in ethnl_set_coalesce() 284 ethnl_update_u32(&coalesce.tx_coalesce_usecs, in ethnl_set_coalesce() [all …]
|
| D | ioctl.c | 1621 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_coalesce() local 1628 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_get_coalesce() 1633 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce() 1640 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument 1645 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported() 1647 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported() 1649 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported() 1651 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported() 1653 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported() 1655 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported() [all …]
|
| D | Makefile | 9 channels.o coalesce.o pause.o eee.o tsinfo.o cabletest.o \
|
| /Linux-v5.15/drivers/net/ethernet/sfc/ |
| D | ethtool.c | 100 struct ethtool_coalesce *coalesce, in efx_ethtool_get_coalesce() argument 110 coalesce->tx_coalesce_usecs = tx_usecs; in efx_ethtool_get_coalesce() 111 coalesce->tx_coalesce_usecs_irq = tx_usecs; in efx_ethtool_get_coalesce() 112 coalesce->rx_coalesce_usecs = rx_usecs; in efx_ethtool_get_coalesce() 113 coalesce->rx_coalesce_usecs_irq = rx_usecs; in efx_ethtool_get_coalesce() 114 coalesce->use_adaptive_rx_coalesce = rx_adaptive; in efx_ethtool_get_coalesce() 120 struct ethtool_coalesce *coalesce, in efx_ethtool_set_coalesce() argument 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() 135 rx_usecs = coalesce->rx_coalesce_usecs_irq; in efx_ethtool_set_coalesce() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/pensando/ionic/ |
| D | ionic_ethtool.c | 423 struct ethtool_coalesce *coalesce, in ionic_get_coalesce() argument 429 coalesce->tx_coalesce_usecs = lif->tx_coalesce_usecs; in ionic_get_coalesce() 430 coalesce->rx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_get_coalesce() 433 coalesce->use_adaptive_tx_coalesce = test_bit(IONIC_LIF_F_TX_DIM_INTR, lif->state); in ionic_get_coalesce() 435 coalesce->use_adaptive_tx_coalesce = 0; in ionic_get_coalesce() 437 coalesce->use_adaptive_rx_coalesce = test_bit(IONIC_LIF_F_RX_DIM_INTR, lif->state); in ionic_get_coalesce() 443 struct ethtool_coalesce *coalesce, in ionic_set_coalesce() argument 462 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce() 463 coalesce->use_adaptive_tx_coalesce)) { in ionic_set_coalesce() 471 rx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->rx_coalesce_usecs); in ionic_set_coalesce() [all …]
|
| /Linux-v5.15/drivers/net/netdevsim/ |
| D | ethtool.c | 52 memcpy(coal, &ns->ethtool.coalesce, sizeof(ns->ethtool.coalesce)); in nsim_get_coalesce() 63 memcpy(&ns->ethtool.coalesce, coal, sizeof(ns->ethtool.coalesce)); in nsim_set_coalesce()
|
| D | netdevsim.h | 66 struct ethtool_coalesce coalesce; member
|
| /Linux-v5.15/drivers/net/ethernet/brocade/bna/ |
| D | bnad_ethtool.c | 311 struct ethtool_coalesce *coalesce, in bnad_get_coalesce() argument 320 coalesce->use_adaptive_rx_coalesce = in bnad_get_coalesce() 324 coalesce->rx_coalesce_usecs = bnad->rx_coalescing_timeo * in bnad_get_coalesce() 326 coalesce->tx_coalesce_usecs = bnad->tx_coalescing_timeo * in bnad_get_coalesce() 328 coalesce->tx_max_coalesced_frames = BFI_TX_INTERPKT_COUNT; in bnad_get_coalesce() 334 struct ethtool_coalesce *coalesce, in bnad_set_coalesce() argument 342 if (coalesce->rx_coalesce_usecs == 0 || in bnad_set_coalesce() 343 coalesce->rx_coalesce_usecs > in bnad_set_coalesce() 347 if (coalesce->tx_coalesce_usecs == 0 || in bnad_set_coalesce() 348 coalesce->tx_coalesce_usecs > in bnad_set_coalesce() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/sfc/falcon/ |
| D | ethtool.c | 580 struct ethtool_coalesce *coalesce, in ef4_ethtool_get_coalesce() argument 590 coalesce->tx_coalesce_usecs = tx_usecs; in ef4_ethtool_get_coalesce() 591 coalesce->tx_coalesce_usecs_irq = tx_usecs; in ef4_ethtool_get_coalesce() 592 coalesce->rx_coalesce_usecs = rx_usecs; in ef4_ethtool_get_coalesce() 593 coalesce->rx_coalesce_usecs_irq = rx_usecs; in ef4_ethtool_get_coalesce() 594 coalesce->use_adaptive_rx_coalesce = rx_adaptive; in ef4_ethtool_get_coalesce() 600 struct ethtool_coalesce *coalesce, in ef4_ethtool_set_coalesce() argument 612 if (coalesce->rx_coalesce_usecs != rx_usecs) in ef4_ethtool_set_coalesce() 613 rx_usecs = coalesce->rx_coalesce_usecs; in ef4_ethtool_set_coalesce() 615 rx_usecs = coalesce->rx_coalesce_usecs_irq; in ef4_ethtool_set_coalesce() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/intel/ice/ |
| D | ice_lib.c | 2961 struct ice_coalesce_stored *coalesce) in ice_vsi_rebuild_get_coalesce() argument 2968 coalesce[i].itr_tx = q_vector->tx.itr_setting; in ice_vsi_rebuild_get_coalesce() 2969 coalesce[i].itr_rx = q_vector->rx.itr_setting; in ice_vsi_rebuild_get_coalesce() 2970 coalesce[i].intrl = q_vector->intrl; in ice_vsi_rebuild_get_coalesce() 2973 coalesce[i].tx_valid = true; in ice_vsi_rebuild_get_coalesce() 2975 coalesce[i].rx_valid = true; in ice_vsi_rebuild_get_coalesce() 2993 struct ice_coalesce_stored *coalesce, int size) in ice_vsi_rebuild_set_coalesce() argument 2998 if ((size && !coalesce) || !vsi) in ice_vsi_rebuild_set_coalesce() 3023 if (i < vsi->alloc_rxq && coalesce[i].rx_valid) { in ice_vsi_rebuild_set_coalesce() 3025 rc->itr_setting = coalesce[i].itr_rx; in ice_vsi_rebuild_set_coalesce() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/amazon/ena/ |
| D | ena_ethtool.c | 360 struct ethtool_coalesce *coalesce, in ena_get_coalesce() argument 370 coalesce->tx_coalesce_usecs = in ena_get_coalesce() 374 coalesce->rx_coalesce_usecs = in ena_get_coalesce() 378 coalesce->use_adaptive_rx_coalesce = in ena_get_coalesce() 407 struct ethtool_coalesce *coalesce, in ena_set_coalesce() argument 419 coalesce->tx_coalesce_usecs); in ena_set_coalesce() 426 coalesce->rx_coalesce_usecs); in ena_set_coalesce() 432 if (coalesce->use_adaptive_rx_coalesce && in ena_set_coalesce() 436 if (!coalesce->use_adaptive_rx_coalesce && in ena_set_coalesce()
|
| /Linux-v5.15/tools/testing/selftests/drivers/net/netdevsim/ |
| D | ethtool-coalesce.sh | 20 if ! ethtool -h | grep -q coalesce; then
|
| /Linux-v5.15/drivers/net/ethernet/qlogic/qed/ |
| D | qed_l2.h | 415 u16 coalesce, struct qed_queue_cid *p_cid); 419 u16 coalesce, struct qed_queue_cid *p_cid);
|
| D | qed_l2.c | 2086 u32 coalesce, address, is_valid; in qed_get_rxq_coalesce() local 2104 coalesce = qed_rd(p_hwfn, p_ptt, address); in qed_get_rxq_coalesce() 2106 is_valid = GET_FIELD(coalesce, COALESCING_TIMESET_VALID); in qed_get_rxq_coalesce() 2110 coalesce = GET_FIELD(coalesce, COALESCING_TIMESET_TIMESET); in qed_get_rxq_coalesce() 2111 *p_rx_coal = (u16)(coalesce << timer_res); in qed_get_rxq_coalesce() 2120 u32 coalesce, address, is_valid; in qed_get_txq_coalesce() local 2138 coalesce = qed_rd(p_hwfn, p_ptt, address); in qed_get_txq_coalesce() 2140 is_valid = GET_FIELD(coalesce, COALESCING_TIMESET_VALID); in qed_get_txq_coalesce() 2144 coalesce = GET_FIELD(coalesce, COALESCING_TIMESET_TIMESET); in qed_get_txq_coalesce() 2145 *p_tx_coal = (u16)(coalesce << timer_res); in qed_get_txq_coalesce()
|
| D | qed_dev.c | 4886 u16 coalesce, struct qed_queue_cid *p_cid) in qed_set_rxq_coalesce() argument 4894 if (coalesce <= 0x7F) { in qed_set_rxq_coalesce() 4896 } else if (coalesce <= 0xFF) { in qed_set_rxq_coalesce() 4898 } else if (coalesce <= 0x1FF) { in qed_set_rxq_coalesce() 4901 DP_ERR(p_hwfn, "Invalid coalesce value - %d\n", coalesce); in qed_set_rxq_coalesce() 4904 timeset = (u8)(coalesce >> timer_res); in qed_set_rxq_coalesce() 4925 u16 coalesce, struct qed_queue_cid *p_cid) in qed_set_txq_coalesce() argument 4933 if (coalesce <= 0x7F) { in qed_set_txq_coalesce() 4935 } else if (coalesce <= 0xFF) { in qed_set_txq_coalesce() 4937 } else if (coalesce <= 0x1FF) { in qed_set_txq_coalesce() [all …]
|
| /Linux-v5.15/arch/um/drivers/ |
| D | vector_kern.h | 106 int coalesce; member
|
| D | vector_kern.c | 1099 mod_timer(&vp->tl, vp->coalesce); in vector_net_start_xmit() 1497 ec->tx_coalesce_usecs = (vp->coalesce * 1000000) / HZ; in vector_get_coalesce() 1508 vp->coalesce = (ec->tx_coalesce_usecs * HZ) / 1000000; in vector_set_coalesce() 1509 if (vp->coalesce == 0) in vector_set_coalesce() 1510 vp->coalesce = 1; in vector_set_coalesce() 1628 .coalesce = 2, in vector_eth_configure()
|
| /Linux-v5.15/net/wireless/ |
| D | core.c | 752 if (WARN_ON(wiphy->coalesce && in wiphy_register() 753 (!wiphy->coalesce->n_rules || in wiphy_register() 754 !wiphy->coalesce->n_patterns) && in wiphy_register() 755 (!wiphy->coalesce->pattern_min_len || in wiphy_register() 756 wiphy->coalesce->pattern_min_len > in wiphy_register() 757 wiphy->coalesce->pattern_max_len))) in wiphy_register()
|
| /Linux-v5.15/drivers/scsi/bfa/ |
| D | bfa_core.c | 1022 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.15/drivers/i2c/busses/ |
| D | i2c-mlxbf.c | 429 struct mlxbf_i2c_resource *coalesce; member 1703 priv->coalesce = coalesce_res; in mlxbf_i2c_init_coalesce() 1719 priv->coalesce = coalesce_res; in mlxbf_i2c_init_coalesce() 1722 ret = mlxbf_i2c_init_resource(pdev, &priv->coalesce, in mlxbf_i2c_init_coalesce() 1737 coalesce_res = priv->coalesce; in mlxbf_i2c_release_coalesce() 1804 coalesce0_reg = readl(priv->coalesce->io + MLXBF_I2C_CAUSE_COALESCE_0); in mlxbf_i2c_has_coalesce()
|
| /Linux-v5.15/drivers/net/ethernet/apm/xgene/ |
| D | xgene_enet_ring2.c | 202 .coalesce = xgene_enet_setup_coalescing,
|
| D | xgene_enet_main.h | 175 void (*coalesce)(struct xgene_enet_desc_ring *); member
|
| /Linux-v5.15/drivers/net/ethernet/dlink/ |
| D | dl2k.h | 387 unsigned int coalesce:1; /* Rx coalescing enable */ member
|
| /Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/ |
| D | cxgb4_ethtool.c | 1150 struct ethtool_coalesce *coalesce, in set_coalesce() argument 1156 set_adaptive_rx_setting(dev, coalesce->use_adaptive_rx_coalesce); in set_coalesce() 1158 ret = set_rx_intr_params(dev, coalesce->rx_coalesce_usecs, in set_coalesce() 1159 coalesce->rx_max_coalesced_frames); in set_coalesce() 1164 coalesce->tx_coalesce_usecs_irq, in set_coalesce() 1165 coalesce->tx_coalesce_usecs); in set_coalesce()
|
| /Linux-v5.15/Documentation/fb/ |
| D | deferred_io.rst | 36 whether to coalesce and issue SG DMA or to do memory bursts.
|