Lines Matching refs:mdev
72 int mlx4_en_QUERY_PORT(struct mlx4_en_dev *mdev, u8 port)
75 struct mlx4_en_priv *priv = netdev_priv(mdev->pndev[port]);
80 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev);
83 err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, port, 0,
127 mlx4_free_cmd_mailbox(mdev->dev, mailbox);
153 struct mlx4_en_dev *mdev = priv->mdev;
157 if (!priv->port_up || mlx4_is_master(mdev->dev))
183 int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u8 port, u8 reset)
188 struct net_device *dev = mdev->pndev[port];
198 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev);
202 mailbox_priority = mlx4_alloc_cmd_mailbox(mdev->dev);
204 mlx4_free_cmd_mailbox(mdev->dev, mailbox);
208 err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, in_mod, 0,
217 counter_index = mlx4_get_default_counter_index(mdev->dev, port);
218 err = mlx4_get_counter_stats(mdev->dev, counter_index,
225 if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN) {
228 err = mlx4_cmd_box(mdev->dev, 0, mailbox_priority->dma,
282 if (!mlx4_is_slave(mdev->dev)) {
301 if (mlx4_is_master(mdev->dev)) {
432 mlx4_free_cmd_mailbox(mdev->dev, mailbox);
433 mlx4_free_cmd_mailbox(mdev->dev, mailbox_priority);