Searched refs:hw_fn_id (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
| H A D | hw_table.c | 117 u16 hw_fn_id; in mlx5_sf_hw_table_sf_alloc() local 131 hw_fn_id = mlx5_sf_sw_to_hw_id(dev, controller, sw_id); in mlx5_sf_hw_table_sf_alloc() 132 err = mlx5_cmd_alloc_sf(dev, hw_fn_id); in mlx5_sf_hw_table_sf_alloc() 136 err = mlx5_modify_vhca_sw_id(dev, hw_fn_id, usr_sfnum); in mlx5_sf_hw_table_sf_alloc() 144 err = mlx5_vhca_event_arm(dev, hw_fn_id); in mlx5_sf_hw_table_sf_alloc() 149 trace_mlx5_sf_hwc_alloc(dev, controller, hw_fn_id, usr_sfnum); in mlx5_sf_hw_table_sf_alloc() 154 mlx5_cmd_dealloc_sf(dev, hw_fn_id); in mlx5_sf_hw_table_sf_alloc() 165 u16 hw_fn_id; in mlx5_sf_hw_table_sf_free() local 168 hw_fn_id = mlx5_sf_sw_to_hw_id(dev, controller, id); in mlx5_sf_hw_table_sf_free() 169 mlx5_cmd_dealloc_sf(dev, hw_fn_id); in mlx5_sf_hw_table_sf_free() [all …]
|
| H A D | devlink.c | 19 u16 hw_fn_id; member 44 return xa_insert(&table->function_ids, sf->hw_fn_id, sf, GFP_KERNEL); in mlx5_sf_function_id_insert() 49 xa_erase(&table->function_ids, sf->hw_fn_id); in mlx5_sf_function_id_erase() 58 u16 hw_fn_id; in mlx5_sf_alloc() local 79 hw_fn_id = mlx5_sf_sw_to_hw_id(table->dev, controller, sf->id); in mlx5_sf_alloc() 80 dl_port_index = mlx5_esw_vport_to_devlink_port_index(table->dev, hw_fn_id); in mlx5_sf_alloc() 82 sf->hw_fn_id = hw_fn_id; in mlx5_sf_alloc() 105 trace_mlx5_sf_free(table->dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_free() 178 err = mlx5_cmd_sf_enable_hca(dev, sf->hw_fn_id); in mlx5_sf_activate() 183 trace_mlx5_sf_activate(dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_activate() [all …]
|