Lines Matching defs:mdev
100 *cap = 1 << mlx4_max_tc(priv->mdev->dev);
149 *num = mlx4_max_tc(priv->mdev->dev);
160 struct mlx4_en_dev *mdev = priv->mdev;
204 if (mlx4_SET_PORT_general(mdev->dev, priv->port,
345 struct mlx4_en_dev *mdev = priv->mdev;
372 return mlx4_SET_PORT_SCHEDULER(mdev->dev, priv->port, tc_tx_bw, pg,
380 struct mlx4_en_dev *mdev = priv->mdev;
387 err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc);
416 struct mlx4_en_dev *mdev = priv->mdev;
431 err = mlx4_SET_PORT_general(mdev->dev, priv->port,
439 mlx4_en_update_pfc_stats_bitmap(mdev->dev, &priv->stats_bitmap,
551 if (!(priv->mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QCN))
554 mailbox_out = mlx4_alloc_cmd_mailbox(priv->mdev->dev);
564 err = mlx4_cmd_box(priv->mdev->dev, mailbox_in_dma,
571 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_out);
600 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_out);
616 if (!(priv->mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QCN))
619 mailbox_in = mlx4_alloc_cmd_mailbox(priv->mdev->dev);
653 err = mlx4_cmd(priv->mdev->dev, mailbox_in_dma, inmod,
659 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_in);
663 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_in);
677 if (!(priv->mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QCN))
680 mailbox_out = mlx4_alloc_cmd_mailbox(priv->mdev->dev);
691 err = mlx4_cmd_box(priv->mdev->dev, mailbox_in_dma,
698 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_out);
706 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_out);