Lines Matching defs:dev
12 int mlx5_ib_fs_init(struct mlx5_ib_dev *dev);
13 void mlx5_ib_fs_cleanup_anchor(struct mlx5_ib_dev *dev);
15 static inline int mlx5_ib_fs_init(struct mlx5_ib_dev *dev)
17 dev->flow_db = kzalloc(sizeof(*dev->flow_db), GFP_KERNEL);
19 if (!dev->flow_db)
22 mutex_init(&dev->flow_db->lock);
26 inline void mlx5_ib_fs_cleanup_anchor(struct mlx5_ib_dev *dev) {}
29 static inline void mlx5_ib_fs_cleanup(struct mlx5_ib_dev *dev)
42 mlx5_ib_fs_cleanup_anchor(dev);
43 kfree(dev->flow_db);