Lines Matching refs:tc_to_txq
2279 static int mlx5e_mqprio_txq_to_tc(struct netdev_tc_txq *tc_to_txq, unsigned int txq)
2284 if (txq - tc_to_txq[tc].offset < tc_to_txq[tc].count)
2301 tc = mlx5e_mqprio_txq_to_tc(params->mqprio.tc_to_txq, txq_ix);
2957 struct netdev_tc_txq *tc_to_txq)
2975 count = tc_to_txq[tc].count;
2976 offset = tc_to_txq[tc].offset;
3028 struct netdev_tc_txq old_tc_to_txq[TC_MAX_QUEUE], *tc_to_txq;
3038 old_tc_to_txq[i] = netdev->tc_to_txq[i];
3042 tc_to_txq = priv->channels.params.mqprio.tc_to_txq;
3044 err = mlx5e_netdev_set_tcs(netdev, nch, ntc, tc_to_txq);
3529 static void mlx5e_mqprio_build_default_tc_to_txq(struct netdev_tc_txq *tc_to_txq,
3534 memset(tc_to_txq, 0, sizeof(*tc_to_txq) * TC_MAX_QUEUE);
3540 tc_to_txq[tc] = (struct netdev_tc_txq) {
3547 static void mlx5e_mqprio_build_tc_to_txq(struct netdev_tc_txq *tc_to_txq,
3553 tc_to_txq[tc] = (struct netdev_tc_txq) {
3564 mlx5e_mqprio_build_default_tc_to_txq(params->mqprio.tc_to_txq, num_tc,
3595 mlx5e_mqprio_build_tc_to_txq(params->mqprio.tc_to_txq, &mqprio->qopt);