Lines Matching defs:nch
2956 static int mlx5e_netdev_set_tcs(struct net_device *netdev, u16 nch, u8 ntc,
2985 int nch, ntc, num_txqs, err;
2991 nch = priv->channels.params.num_channels;
2993 num_txqs = nch * ntc + qos_queues;
3031 int nch, ntc;
3040 nch = priv->channels.params.num_channels;
3044 err = mlx5e_netdev_set_tcs(netdev, nch, ntc, tc_to_txq);
3530 int ntc, int nch)
3541 .count = nch,
5734 int nch;
5736 nch = mlx5e_get_max_num_channels(mdev);
5739 nch = min_t(int, nch, profile->max_nch_limit(mdev));
5740 return nch;
5791 int nch, num_txqs, node;
5795 nch = mlx5e_calc_max_nch(mdev, netdev, profile);
5801 priv->max_nch = nch;
5831 kcalloc_node(nch, sizeof(*priv->channel_stats), GFP_KERNEL, node);
5877 unsigned int nch, ptp_txqs, qos_txqs;
5879 nch = mlx5e_profile_max_num_channels(mdev, profile);
5889 return nch * profile->max_tc + ptp_txqs + qos_txqs;