/linux/lib/dim/ |
H A D | net_dim.c | 105 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 D | en_dim.c | 37 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 D | en_ethtool.c | 647 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 D | en.h | 1055 int mlx5e_open_cq(struct mlx5_core_dev *mdev, struct dim_cq_moder moder,
|
H A D | en_main.c | 2205 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 D | coalesce.c | 216 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 D | nfp_net_common.c | 1164 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 D | cq.h | 120 } moder; member
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | bcmsysport.c | 648 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 D | dpio-service.c | 115 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 D | bcmgenet.c | 858 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 D | enetc.c | 699 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()
|