Lines Matching refs:controller
40 mlx5_sf_controller_to_hwc(struct mlx5_core_dev *dev, u32 controller)
42 int idx = !!controller;
47 u16 mlx5_sf_sw_to_hw_id(struct mlx5_core_dev *dev, u32 controller, u16 sw_id)
51 hwc = mlx5_sf_controller_to_hwc(dev, controller);
74 static int mlx5_sf_hw_table_id_alloc(struct mlx5_sf_hw_table *table, u32 controller,
81 hwc = mlx5_sf_controller_to_hwc(table->dev, controller);
103 static void mlx5_sf_hw_table_id_free(struct mlx5_sf_hw_table *table, u32 controller, int id)
107 hwc = mlx5_sf_controller_to_hwc(table->dev, controller);
112 int mlx5_sf_hw_table_sf_alloc(struct mlx5_core_dev *dev, u32 controller, u32 usr_sfnum)
123 sw_id = mlx5_sf_hw_table_id_alloc(table, controller, usr_sfnum);
129 hw_fn_id = mlx5_sf_sw_to_hw_id(dev, controller, sw_id);
138 if (controller) {
139 /* If this SF is for external controller, SF manager
147 trace_mlx5_sf_hwc_alloc(dev, controller, hw_fn_id, usr_sfnum);
154 mlx5_sf_hw_table_id_free(table, controller, sw_id);
160 void mlx5_sf_hw_table_sf_free(struct mlx5_core_dev *dev, u32 controller, u16 id)
166 hw_fn_id = mlx5_sf_sw_to_hw_id(dev, controller, id);
168 mlx5_sf_hw_table_id_free(table, controller, id);
181 void mlx5_sf_hw_table_sf_deferred_free(struct mlx5_core_dev *dev, u32 controller, u16 id)
190 hw_fn_id = mlx5_sf_sw_to_hw_id(dev, controller, id);
191 hwc = mlx5_sf_controller_to_hwc(dev, controller);