Lines Matching defs:dev
38 void mlx5_init_reserved_gids(struct mlx5_core_dev *dev);
39 void mlx5_cleanup_reserved_gids(struct mlx5_core_dev *dev);
40 int mlx5_core_reserve_gids(struct mlx5_core_dev *dev, unsigned int count);
41 void mlx5_core_unreserve_gids(struct mlx5_core_dev *dev, unsigned int count);
42 int mlx5_core_reserved_gid_alloc(struct mlx5_core_dev *dev, int *gid_index);
43 void mlx5_core_reserved_gid_free(struct mlx5_core_dev *dev, int gid_index);
44 int mlx5_crdump_enable(struct mlx5_core_dev *dev);
45 void mlx5_crdump_disable(struct mlx5_core_dev *dev);
46 int mlx5_crdump_collect(struct mlx5_core_dev *dev, u32 *cr_data);
48 static inline struct net *mlx5_core_net(struct mlx5_core_dev *dev)
50 return devlink_net(priv_to_devlink(dev));
60 static inline struct mlx5_sd *mlx5_get_sd(struct mlx5_core_dev *dev)
62 return dev->sd;
65 static inline void mlx5_set_sd(struct mlx5_core_dev *dev, struct mlx5_sd *sd)
67 dev->sd = sd;