Lines Matching refs:mdev

141 	struct mlx4_en_dev *mdev = priv->mdev;  in mlx4_en_config_port_scheduler()  local
164 return mlx4_SET_PORT_SCHEDULER(mdev->dev, priv->port, tc_tx_bw, pg, in mlx4_en_config_port_scheduler()
172 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_dcbnl_ieee_setets() local
179 err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc); in mlx4_en_dcbnl_ieee_setets()
208 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_dcbnl_ieee_setpfc() local
222 err = mlx4_SET_PORT_general(mdev->dev, priv->port, in mlx4_en_dcbnl_ieee_setpfc()
231 mlx4_en_update_pfc_stats_bitmap(mdev->dev, &priv->stats_bitmap, in mlx4_en_dcbnl_ieee_setpfc()
306 if (!(priv->mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QCN)) in mlx4_en_dcbnl_ieee_getqcn()
309 mailbox_out = mlx4_alloc_cmd_mailbox(priv->mdev->dev); in mlx4_en_dcbnl_ieee_getqcn()
319 err = mlx4_cmd_box(priv->mdev->dev, mailbox_in_dma, in mlx4_en_dcbnl_ieee_getqcn()
326 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_out); in mlx4_en_dcbnl_ieee_getqcn()
355 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_out); in mlx4_en_dcbnl_ieee_getqcn()
371 if (!(priv->mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QCN)) in mlx4_en_dcbnl_ieee_setqcn()
374 mailbox_in = mlx4_alloc_cmd_mailbox(priv->mdev->dev); in mlx4_en_dcbnl_ieee_setqcn()
408 err = mlx4_cmd(priv->mdev->dev, mailbox_in_dma, inmod, in mlx4_en_dcbnl_ieee_setqcn()
414 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_in); in mlx4_en_dcbnl_ieee_setqcn()
418 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_in); in mlx4_en_dcbnl_ieee_setqcn()
432 if (!(priv->mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QCN)) in mlx4_en_dcbnl_ieee_getqcnstats()
435 mailbox_out = mlx4_alloc_cmd_mailbox(priv->mdev->dev); in mlx4_en_dcbnl_ieee_getqcnstats()
446 err = mlx4_cmd_box(priv->mdev->dev, mailbox_in_dma, in mlx4_en_dcbnl_ieee_getqcnstats()
453 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_out); in mlx4_en_dcbnl_ieee_getqcnstats()
461 mlx4_free_cmd_mailbox(priv->mdev->dev, mailbox_out); in mlx4_en_dcbnl_ieee_getqcnstats()