/openbmc/linux/net/ethtool/ |
H A D | coalesce.c | 12 struct ethtool_coalesce coalesce; member 74 ret = dev->ethtool_ops->get_coalesce(dev, &data->coalesce, in coalesce_prepare_data() 136 const struct ethtool_coalesce *coal = &data->coalesce; in coalesce_fill_reply() 262 struct ethtool_coalesce coalesce = {}; in __ethnl_set_coalesce() local 267 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in __ethnl_set_coalesce() 273 ethnl_update_u32(&coalesce.rx_coalesce_usecs, in __ethnl_set_coalesce() 275 ethnl_update_u32(&coalesce.rx_max_coalesced_frames, in __ethnl_set_coalesce() 277 ethnl_update_u32(&coalesce.rx_coalesce_usecs_irq, in __ethnl_set_coalesce() 279 ethnl_update_u32(&coalesce.rx_max_coalesced_frames_irq, in __ethnl_set_coalesce() 281 ethnl_update_u32(&coalesce.tx_coalesce_usecs, in __ethnl_set_coalesce() [all …]
|
H A D | ioctl.c | 1651 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_coalesce() local 1658 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_get_coalesce() 1663 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce() 1670 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument 1675 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported() 1677 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported() 1679 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported() 1681 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported() 1683 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported() 1685 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported() [all …]
|
H A D | Makefile | 9 channels.o coalesce.o pause.o eee.o tsinfo.o cabletest.o \
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_ethtool.c | 422 struct ethtool_coalesce *coalesce, in ionic_get_coalesce() argument 428 coalesce->tx_coalesce_usecs = lif->tx_coalesce_usecs; in ionic_get_coalesce() 429 coalesce->rx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_get_coalesce() 432 coalesce->use_adaptive_tx_coalesce = test_bit(IONIC_LIF_F_TX_DIM_INTR, lif->state); in ionic_get_coalesce() 434 coalesce->use_adaptive_tx_coalesce = 0; in ionic_get_coalesce() 436 coalesce->use_adaptive_rx_coalesce = test_bit(IONIC_LIF_F_RX_DIM_INTR, lif->state); in ionic_get_coalesce() 442 struct ethtool_coalesce *coalesce, in ionic_set_coalesce() argument 461 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce() 462 coalesce->use_adaptive_tx_coalesce)) { in ionic_set_coalesce() 470 rx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->rx_coalesce_usecs); in ionic_set_coalesce() [all …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A 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 …]
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | ethtool.yaml | 1271 attributes: &coalesce 1309 attributes: *coalesce
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A 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 …]
|
/openbmc/linux/drivers/net/netdevsim/ |
H A 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()
|
/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ram.c | 24 const u8 coalesce, u8 val) in can_ram_rounddown_pow_of_two() argument 31 if (coalesce) { in can_ram_rounddown_pow_of_two() 38 ret = min_t(u8, coalesce * 2, config->fifo_depth); in can_ram_rounddown_pow_of_two()
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_ethtool.c | 364 struct ethtool_coalesce *coalesce, in ena_get_coalesce() argument 374 coalesce->tx_coalesce_usecs = in ena_get_coalesce() 378 coalesce->rx_coalesce_usecs = in ena_get_coalesce() 382 coalesce->use_adaptive_rx_coalesce = in ena_get_coalesce() 411 struct ethtool_coalesce *coalesce, in ena_set_coalesce() argument 423 coalesce->tx_coalesce_usecs); in ena_set_coalesce() 430 coalesce->rx_coalesce_usecs); in ena_set_coalesce() 436 if (coalesce->use_adaptive_rx_coalesce && in ena_set_coalesce() 440 if (!coalesce->use_adaptive_rx_coalesce && in ena_set_coalesce()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_lib.c | 2978 struct ice_coalesce_stored *coalesce) in ice_vsi_rebuild_get_coalesce() argument 2985 coalesce[i].itr_tx = q_vector->tx.itr_settings; in ice_vsi_rebuild_get_coalesce() 2986 coalesce[i].itr_rx = q_vector->rx.itr_settings; in ice_vsi_rebuild_get_coalesce() 2987 coalesce[i].intrl = q_vector->intrl; in ice_vsi_rebuild_get_coalesce() 2990 coalesce[i].tx_valid = true; in ice_vsi_rebuild_get_coalesce() 2992 coalesce[i].rx_valid = true; in ice_vsi_rebuild_get_coalesce() 3010 struct ice_coalesce_stored *coalesce, int size) in ice_vsi_rebuild_set_coalesce() argument 3015 if ((size && !coalesce) || !vsi) in ice_vsi_rebuild_set_coalesce() 3040 if (i < vsi->alloc_rxq && coalesce[i].rx_valid) { in ice_vsi_rebuild_set_coalesce() 3042 rc->itr_settings = coalesce[i].itr_rx; in ice_vsi_rebuild_set_coalesce() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | ioapic.c | 102 int coalesce = 0; in ioapic_service() local 110 coalesce = s->ioredtbl[i] & IOAPIC_LVT_REMOTE_IRR; in ioapic_service() 115 if (coalesce) { in ioapic_service()
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-pci-inst.c | 696 uint64_t iova, coalesce = 0; in rpcit_service_call() local 772 if (coalesce == 0) { in rpcit_service_call() 775 coalesce += entry.len; in rpcit_service_call() 776 } else if (coalesce > 0) { in rpcit_service_call() 778 s390_pci_batch_unmap(iommu, iova, coalesce); in rpcit_service_call() 779 coalesce = 0; in rpcit_service_call() 799 if (coalesce) { in rpcit_service_call() 801 s390_pci_batch_unmap(iommu, iova, coalesce); in rpcit_service_call() 802 coalesce = 0; in rpcit_service_call()
|
/openbmc/linux/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | ethtool-coalesce.sh | 20 if ! ethtool -h | grep -q coalesce; then
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_l2.h | 440 u16 coalesce, struct qed_queue_cid *p_cid); 444 u16 coalesce, struct qed_queue_cid *p_cid);
|
H A D | qed_l2.c | 2095 u32 coalesce, address, is_valid; in qed_get_rxq_coalesce() local 2113 coalesce = qed_rd(p_hwfn, p_ptt, address); in qed_get_rxq_coalesce() 2115 is_valid = GET_FIELD(coalesce, COALESCING_TIMESET_VALID); in qed_get_rxq_coalesce() 2119 coalesce = GET_FIELD(coalesce, COALESCING_TIMESET_TIMESET); in qed_get_rxq_coalesce() 2120 *p_rx_coal = (u16)(coalesce << timer_res); in qed_get_rxq_coalesce() 2129 u32 coalesce, address, is_valid; in qed_get_txq_coalesce() local 2147 coalesce = qed_rd(p_hwfn, p_ptt, address); in qed_get_txq_coalesce() 2149 is_valid = GET_FIELD(coalesce, COALESCING_TIMESET_VALID); in qed_get_txq_coalesce() 2153 coalesce = GET_FIELD(coalesce, COALESCING_TIMESET_TIMESET); in qed_get_txq_coalesce() 2154 *p_tx_coal = (u16)(coalesce << timer_res); in qed_get_txq_coalesce()
|
/openbmc/linux/arch/um/drivers/ |
H A D | vector_kern.h | 108 int coalesce; member
|
H A D | vector_kern.c | 1074 mod_timer(&vp->tl, vp->coalesce); in vector_net_start_xmit() 1495 ec->tx_coalesce_usecs = (vp->coalesce * 1000000) / HZ; in vector_get_coalesce() 1506 vp->coalesce = (ec->tx_coalesce_usecs * HZ) / 1000000; in vector_set_coalesce() 1507 if (vp->coalesce == 0) in vector_set_coalesce() 1508 vp->coalesce = 1; in vector_set_coalesce() 1627 .coalesce = 2, in vector_eth_configure()
|
/openbmc/qemu/monitor/ |
H A D | hmp-cmds.c | 224 bool coalesce = !qdict_get_try_bool(qdict, "no_coalesce", false); in hmp_info_sync_profile() local 228 qsp_report(max, sort_by, coalesce); in hmp_info_sync_profile()
|
/openbmc/linux/drivers/scsi/bfa/ |
H A 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()
|
/openbmc/linux/net/wireless/ |
H A D | core.c | 769 if (WARN_ON(wiphy->coalesce && in wiphy_register() 770 (!wiphy->coalesce->n_rules || in wiphy_register() 771 !wiphy->coalesce->n_patterns) && in wiphy_register() 772 (!wiphy->coalesce->pattern_min_len || in wiphy_register() 773 wiphy->coalesce->pattern_min_len > in wiphy_register() 774 wiphy->coalesce->pattern_max_len))) in wiphy_register()
|
/openbmc/linux/Documentation/networking/ |
H A D | smc-sysctl.rst | 14 write()/sendmsg() system calls, we try to coalesce these small writes
|
/openbmc/linux/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_ring2.c | 202 .coalesce = xgene_enet_setup_coalescing,
|