Lines Matching refs:mdev
75 int mlx4_en_QUERY_PORT(struct mlx4_en_dev *mdev, u8 port)
78 struct mlx4_en_priv *priv = netdev_priv(mdev->pndev[port]);
83 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev);
87 err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, port, 0,
122 mlx4_free_cmd_mailbox(mdev->dev, mailbox);
126 int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u8 port, u8 reset)
130 struct mlx4_en_priv *priv = netdev_priv(mdev->pndev[port]);
146 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev);
152 mailbox_flow = mlx4_alloc_cmd_mailbox(mdev->dev);
154 mlx4_free_cmd_mailbox(mdev->dev, mailbox);
163 if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN) {
165 err = mlx4_cmd_box(mdev->dev, 0, mailbox_flow->dma,
173 err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, in_mod, 0,
526 err = mlx4_get_vport_ethtool_stats(mdev->dev, port,
548 if (!mlx4_is_mfunc(mdev->dev)) {
550 dev = mdev->pndev[port];
565 mlx4_free_cmd_mailbox(mdev->dev, mailbox_flow);
566 mlx4_free_cmd_mailbox(mdev->dev, mailbox);