Home
last modified time | relevance | path

Searched refs:moder (Results 1 – 12 of 12) sorted by relevance

/linux/lib/dim/
H A Dnet_dim.c105 struct dim_irq_moder *moder; in net_dim_init_irq_moder() local
112 moder = dev->irq_moder; in net_dim_init_irq_moder()
113 len = NET_DIM_PARAMS_NUM_PROFILES * sizeof(*moder->rx_profile); in net_dim_init_irq_moder()
115 moder->coal_flags = coal_flags; in net_dim_init_irq_moder()
116 moder->profile_flags = profile_flags; in net_dim_init_irq_moder()
119 moder->rx_dim_work = rx_dim_work; in net_dim_init_irq_moder()
120 moder->dim_rx_mode = rx_mode; in net_dim_init_irq_moder()
125 rcu_assign_pointer(moder->rx_profile, rxp); in net_dim_init_irq_moder()
129 moder->tx_dim_work = tx_dim_work; in net_dim_init_irq_moder()
130 moder->dim_tx_mode = tx_mode; in net_dim_init_irq_moder()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dim.c37 mlx5e_complete_dim_work(struct dim *dim, struct dim_cq_moder moder, in mlx5e_complete_dim_work() argument
40 mlx5e_modify_cq_moderation(mdev, mcq, moder.usec, moder.pkts, in mlx5e_complete_dim_work()
41 mlx5e_cq_period_mode(moder.cq_period_mode)); in mlx5e_complete_dim_work()
H A Den_ethtool.c647 mlx5e_set_priv_channels_tx_coalesce(struct mlx5e_priv *priv, struct dim_cq_moder *moder) in mlx5e_set_priv_channels_tx_coalesce() argument
657 mode = mlx5e_cq_period_mode(moder->cq_period_mode); in mlx5e_set_priv_channels_tx_coalesce()
658 c->tx_cq_moder = *moder; in mlx5e_set_priv_channels_tx_coalesce()
662 moder->usec, moder->pkts, in mlx5e_set_priv_channels_tx_coalesce()
669 mlx5e_set_priv_channels_rx_coalesce(struct mlx5e_priv *priv, struct dim_cq_moder *moder) in mlx5e_set_priv_channels_rx_coalesce() argument
678 mode = mlx5e_cq_period_mode(moder->cq_period_mode); in mlx5e_set_priv_channels_rx_coalesce()
679 c->rx_cq_moder = *moder; in mlx5e_set_priv_channels_rx_coalesce()
681 mlx5e_modify_cq_moderation(mdev, &c->rq.cq.mcq, moder->usec, moder->pkts, in mlx5e_set_priv_channels_rx_coalesce()
H A Den.h1055 int mlx5e_open_cq(struct mlx5_core_dev *mdev, struct dim_cq_moder moder,
H A Den_main.c2205 int mlx5e_open_cq(struct mlx5_core_dev *mdev, struct dim_cq_moder moder, in mlx5e_open_cq() argument
2221 mlx5e_modify_cq_moderation(mdev, &cq->mcq, moder.usec, moder.pkts, in mlx5e_open_cq()
2222 mlx5e_cq_period_mode(moder.cq_period_mode)); in mlx5e_open_cq()
/linux/net/ethtool/
H A Dcoalesce.c216 struct dim_irq_moder *moder; in coalesce_fill_reply() local
278 moder = req_base->dev->irq_moder; in coalesce_fill_reply()
280 if (moder->profile_flags & DIM_PROFILE_RX) { in coalesce_fill_reply()
282 rcu_dereference(moder->rx_profile), in coalesce_fill_reply()
283 moder->coal_flags); in coalesce_fill_reply()
288 if (moder->profile_flags & DIM_PROFILE_TX) in coalesce_fill_reply()
290 rcu_dereference(moder->tx_profile), in coalesce_fill_reply()
291 moder->coal_flags); in coalesce_fill_reply()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c1164 struct dim_cq_moder moder; in nfp_net_rx_dim_work() local
1169 moder = net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in nfp_net_rx_dim_work()
1178 if (nfp_net_coalesce_para_check(factor * moder.usec) || in nfp_net_rx_dim_work()
1179 nfp_net_coalesce_para_check(moder.pkts)) in nfp_net_rx_dim_work()
1183 value = (moder.pkts << 16) | (factor * moder.usec); in nfp_net_rx_dim_work()
1194 struct dim_cq_moder moder; in nfp_net_tx_dim_work() local
1199 moder = net_dim_get_tx_moderation(dim->mode, dim->profile_ix); in nfp_net_tx_dim_work()
1208 if (nfp_net_coalesce_para_check(factor * moder.usec) || in nfp_net_tx_dim_work()
1209 nfp_net_coalesce_para_check(moder.pkts)) in nfp_net_tx_dim_work()
1213 value = (moder.pkts << 16) | (factor * moder.usec); in nfp_net_tx_dim_work()
/linux/include/linux/mlx5/
H A Dcq.h120 } moder; member
/linux/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c648 struct dim_cq_moder moder; in bcm_sysport_set_coalesce() local
675 moder = net_dim_get_def_rx_moderation(priv->dim.dim.mode); in bcm_sysport_set_coalesce()
676 usecs = moder.usec; in bcm_sysport_set_coalesce()
677 pkts = moder.pkts; in bcm_sysport_set_coalesce()
1497 struct dim_cq_moder moder; in bcm_sysport_init_rx_coalesce() local
1505 moder = net_dim_get_def_rx_moderation(dim->dim.mode); in bcm_sysport_init_rx_coalesce()
1506 usecs = moder.usec; in bcm_sysport_init_rx_coalesce()
1507 pkts = moder.pkts; in bcm_sysport_init_rx_coalesce()
/linux/drivers/soc/fsl/dpio/
H A Ddpio-service.c115 struct dim_cq_moder moder = in dpaa2_io_dim_work() local
119 dpaa2_io_set_irq_coalescing(d, moder.usec); in dpaa2_io_dim_work()
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c858 struct dim_cq_moder moder; in bcmgenet_set_ring_rx_coalesce() local
867 moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode); in bcmgenet_set_ring_rx_coalesce()
868 usecs = moder.usec; in bcmgenet_set_ring_rx_coalesce()
869 pkts = moder.pkts; in bcmgenet_set_ring_rx_coalesce()
2614 struct dim_cq_moder moder; in bcmgenet_init_rx_coalesce() local
2622 moder = net_dim_get_def_rx_moderation(dim->dim.mode); in bcmgenet_init_rx_coalesce()
2623 usecs = moder.usec; in bcmgenet_init_rx_coalesce()
2624 pkts = moder.pkts; in bcmgenet_init_rx_coalesce()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.c699 struct dim_cq_moder moder = in enetc_rx_dim_work() local
704 v->rx_ictt = enetc_usecs_to_cycles(moder.usec); in enetc_rx_dim_work()