Home
last modified time | relevance | path

Searched refs:coal (Results 1 – 25 of 33) sorted by relevance

12

/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_ethtool.c211 struct ethtool_coalesce *coal, in emac_get_coalesce() argument
220 coal->rx_coalesce_usecs = emac->rx_pace_timeout_ns / 1000; in emac_get_coalesce()
221 coal->tx_coalesce_usecs = tx_chn->tx_pace_timeout_ns / 1000; in emac_get_coalesce()
227 struct ethtool_coalesce *coal) in emac_get_per_queue_coalesce() argument
237 coal->tx_coalesce_usecs = tx_chn->tx_pace_timeout_ns / 1000; in emac_get_per_queue_coalesce()
243 struct ethtool_coalesce *coal, in emac_set_coalesce() argument
253 if (coal->rx_coalesce_usecs && in emac_set_coalesce()
254 coal->rx_coalesce_usecs < ICSSG_MIN_COALESCE_USECS) { in emac_set_coalesce()
257 coal->rx_coalesce_usecs = ICSSG_MIN_COALESCE_USECS; in emac_set_coalesce()
260 if (coal->tx_coalesce_usecs && in emac_set_coalesce()
[all …]
/linux/net/ethtool/
H A Dcoalesce.c214 const struct ethtool_coalesce *coal = &data->coalesce; in coalesce_fill_reply() local
220 coal->rx_coalesce_usecs, supported) || in coalesce_fill_reply()
222 coal->rx_max_coalesced_frames, supported) || in coalesce_fill_reply()
224 coal->rx_coalesce_usecs_irq, supported) || in coalesce_fill_reply()
226 coal->rx_max_coalesced_frames_irq, supported) || in coalesce_fill_reply()
228 coal->tx_coalesce_usecs, supported) || in coalesce_fill_reply()
230 coal->tx_max_coalesced_frames, supported) || in coalesce_fill_reply()
232 coal->tx_coalesce_usecs_irq, supported) || in coalesce_fill_reply()
234 coal->tx_max_coalesced_frames_irq, supported) || in coalesce_fill_reply()
236 coal->stats_block_coalesce_usecs, supported) || in coalesce_fill_reply()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c596 struct ethtool_coalesce *coal, in mlx5e_ethtool_get_coalesce() argument
608 coal->rx_coalesce_usecs = rx_moder->usec; in mlx5e_ethtool_get_coalesce()
609 coal->rx_max_coalesced_frames = rx_moder->pkts; in mlx5e_ethtool_get_coalesce()
610 coal->use_adaptive_rx_coalesce = priv->channels.params.rx_dim_enabled; in mlx5e_ethtool_get_coalesce()
614 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce()
615 coal->tx_max_coalesced_frames = tx_moder->pkts; in mlx5e_ethtool_get_coalesce()
616 coal->use_adaptive_tx_coalesce = priv->channels.params.tx_dim_enabled; in mlx5e_ethtool_get_coalesce()
623 struct ethtool_coalesce *coal, in mlx5e_get_coalesce() argument
629 return mlx5e_ethtool_get_coalesce(priv, coal, kernel_coal, extack); in mlx5e_get_coalesce()
633 struct ethtool_coalesce *coal) in mlx5e_ethtool_get_per_queue_coalesce() argument
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ethtool.c556 struct ethtool_coalesce *coal, in aq_ethtool_get_coalesce() argument
567 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce()
568 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce()
569 coal->rx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
570 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
572 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
573 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
574 coal->rx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
575 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
582 struct ethtool_coalesce *coal, in aq_ethtool_set_coalesce() argument
[all …]
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_ethtool.c632 struct ethtool_coalesce *coal, u16 queue) in __hinic_get_coalesce() argument
653 coal->rx_coalesce_usecs = rx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce()
656 coal->rx_max_coalesced_frames = rx_intr_coal_info->pending_limt * in __hinic_get_coalesce()
658 coal->tx_coalesce_usecs = tx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce()
660 coal->tx_max_coalesced_frames = tx_intr_coal_info->pending_limt * in __hinic_get_coalesce()
666 static int is_coalesce_exceed_limit(const struct ethtool_coalesce *coal) in is_coalesce_exceed_limit() argument
668 if (coal->rx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit()
669 coal->rx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT || in is_coalesce_exceed_limit()
670 coal->tx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit()
671 coal->tx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT) in is_coalesce_exceed_limit()
[all …]
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_regs.h21 u32 coal; member
54 int intr_idx, u32 coal) in ionic_intr_coal_init() argument
56 iowrite32(coal, &intr_ctrl[intr_idx].coal_init); in ionic_intr_coal_init()
/linux/include/linux/pds/
H A Dpds_intr.h117 pds_core_intr_coal_init(struct pds_core_intr __iomem *intr_ctrl, u32 coal) in pds_core_intr_coal_init() argument
119 iowrite32(coal, &intr_ctrl->coal_init); in pds_core_intr_coal_init()
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_ethtool.c753 struct ethtool_coalesce *coal, in qede_get_coalesce() argument
765 memset(coal, 0, sizeof(struct ethtool_coalesce)); in qede_get_coalesce()
808 coal->rx_coalesce_usecs = rx_coal; in qede_get_coalesce()
809 coal->tx_coalesce_usecs = tx_coal; in qede_get_coalesce()
810 coal->stats_block_coalesce_usecs = edev->stats_coal_usecs; in qede_get_coalesce()
815 int qede_set_coalesce(struct net_device *dev, struct ethtool_coalesce *coal, in qede_set_coalesce() argument
824 if (edev->stats_coal_usecs != coal->stats_block_coalesce_usecs) { in qede_set_coalesce()
825 edev->stats_coal_usecs = coal->stats_block_coalesce_usecs; in qede_set_coalesce()
842 if (coal->rx_coalesce_usecs > QED_COALESCE_MAX || in qede_set_coalesce()
843 coal->tx_coalesce_usecs > QED_COALESCE_MAX) { in qede_set_coalesce()
[all …]
H A Dqede.h582 int qede_set_coalesce(struct net_device *dev, struct ethtool_coalesce *coal,
586 struct ethtool_coalesce *coal);
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_hw.c780 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_82xx_set_rx_coalesce()
781 req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets | in qlcnic_82xx_set_rx_coalesce()
782 ((u64) adapter->ahw->coal.rx_time_us) << 16); in qlcnic_82xx_set_rx_coalesce()
783 req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out | in qlcnic_82xx_set_rx_coalesce()
784 ((u64) adapter->ahw->coal.type) << 32 | in qlcnic_82xx_set_rx_coalesce()
785 ((u64) adapter->ahw->coal.sts_ring_mask) << 40); in qlcnic_82xx_set_rx_coalesce()
798 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_82xx_config_intr_coalesce() local
801 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_82xx_config_intr_coalesce()
802 coal->rx_time_us = ethcoal->rx_coalesce_usecs; in qlcnic_82xx_config_intr_coalesce()
803 coal->rx_packets = ethcoal->rx_max_coalesced_frames; in qlcnic_82xx_config_intr_coalesce()
H A Dqlcnic_83xx_hw.c2197 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_rx_intr_coal() local
2208 temp = coal->rx_time_us; in qlcnic_83xx_set_rx_intr_coal()
2209 cmd.req.arg[2] = coal->rx_packets | temp << 16; in qlcnic_83xx_set_rx_intr_coal()
2210 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_rx_intr_coal()
2224 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_tx_intr_coal() local
2235 temp = coal->tx_time_us; in qlcnic_83xx_set_tx_intr_coal()
2236 cmd.req.arg[2] = coal->tx_packets | temp << 16; in qlcnic_83xx_set_tx_intr_coal()
2237 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_tx_intr_coal()
2269 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_config_intr_coal() local
2281 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_83xx_config_intr_coal()
[all …]
H A Dqlcnic_sriov_pf.c1198 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_sriov_validate_cfg_intrcoal() local
1210 if (ctx_id != vf->rx_ctx_id || pkts > coal->rx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1211 time < coal->rx_time_us) in qlcnic_sriov_validate_cfg_intrcoal()
1215 if (ctx_id != vf->tx_ctx_id || pkts > coal->tx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1216 time < coal->tx_time_us) in qlcnic_sriov_validate_cfg_intrcoal()
1229 vf->rx_ctx_id, coal->rx_packets, coal->rx_time_us, in qlcnic_sriov_validate_cfg_intrcoal()
1230 vf->tx_ctx_id, coal->tx_packets, coal->tx_time_us); in qlcnic_sriov_validate_cfg_intrcoal()
H A Dqlcnic_main.c1834 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce()
1837 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce()
1838 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce()
1839 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce()
1840 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1841 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
1845 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce()
1846 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1847 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
2070 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_alloc_adapter_resources()
[all …]
/linux/drivers/net/ethernet/tehuti/
H A Dtn40.h34 #define TN40_INT_REG_VAL(coal, coal_rc, rxf_th, pck_th) ( \ argument
35 FIELD_PREP(GENMASK(14, 0), (coal)) | \
H A Dtehuti.h139 #define INT_REG_VAL(coal, coal_rc, rxf_th, pck_th) \ argument
140 ((coal)|((coal_rc)<<15)|((rxf_th)<<16)|((pck_th)<<20))
/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_vnd.c219 struct ethtool_coalesce *coal, in rmnet_get_coalesce() argument
238 struct ethtool_coalesce *coal, in rmnet_set_coalesce() argument
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_dev_api.h464 int qed_get_queue_coalesce(struct qed_hwfn *p_hwfn, u16 *coal, void *handle);
H A Dqed_vf.h495 u16 coal; member
H A Dqed_sriov.c3425 u16 coal = 0, qid, i; in qed_iov_vf_pf_get_coalesce() local
3445 rc = qed_get_rxq_coalesce(p_hwfn, p_ptt, p_cid, &coal); in qed_iov_vf_pf_get_coalesce()
3464 rc = qed_get_txq_coalesce(p_hwfn, p_ptt, p_cid, &coal); in qed_iov_vf_pf_get_coalesce()
3476 p_resp->coal = coal; in qed_iov_vf_pf_get_coalesce()
/linux/include/uapi/linux/
H A Dvirtio_net.h454 struct virtio_net_ctrl_coal coal; member
/linux/include/linux/qed/
H A Dqed_eth_if.h333 int (*get_coalesce)(struct qed_dev *cdev, u16 *coal, void *handle);
/linux/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_main.c1079 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_nic_init_coalesce_defaults()
1080 adapter->coal.normal.data.rx_time_us = in netxen_nic_init_coalesce_defaults()
1082 adapter->coal.normal.data.rx_packets = in netxen_nic_init_coalesce_defaults()
1084 adapter->coal.normal.data.tx_time_us = in netxen_nic_init_coalesce_defaults()
1086 adapter->coal.normal.data.tx_packets = in netxen_nic_init_coalesce_defaults()
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.h549 struct hns3_enet_coalesce coal; member
/linux/drivers/crypto/inside-secure/
H A Dsafexcel.c809 int coal = min_t(int, priv->ring[ring].requests, EIP197_MAX_BATCH_SZ); in safexcel_try_push_requests() local
811 if (!coal) in safexcel_try_push_requests()
816 EIP197_HIA_RDR_THRESH_PROC_PKT(coal), in safexcel_try_push_requests()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c8292 struct bnxt_coal coal; in bnxt_hwrm_set_ring_coal() local
8298 memcpy(&coal, &bp->rx_coal, sizeof(struct bnxt_coal)); in bnxt_hwrm_set_ring_coal()
8300 coal.coal_ticks = cpr->rx_ring_coal.coal_ticks; in bnxt_hwrm_set_ring_coal()
8301 coal.coal_bufs = cpr->rx_ring_coal.coal_bufs; in bnxt_hwrm_set_ring_coal()
8310 bnxt_hwrm_set_coal_params(bp, &coal, req_rx); in bnxt_hwrm_set_ring_coal()
14728 struct bnxt_coal *coal; in bnxt_init_dflt_coal() local
14738 coal = &bp->rx_coal; in bnxt_init_dflt_coal()
14739 coal->coal_ticks = 10; in bnxt_init_dflt_coal()
14740 coal->coal_bufs = 30; in bnxt_init_dflt_coal()
14741 coal->coal_ticks_irq = 1; in bnxt_init_dflt_coal()
[all …]

12