Home
last modified time | relevance | path

Searched refs:sf_index (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddev.c30 int sf_index; member
89 static void mlx5_sf_dev_add(struct mlx5_core_dev *dev, u16 sf_index, u16 fn_id, u32 sfnum) in mlx5_sf_dev_add() argument
119 sf_dev->bar_base_addr = table->base_address + (sf_index * table->sf_bar_length); in mlx5_sf_dev_add()
136 err = xa_insert(&table->devices, sf_index, sf_dev, GFP_KERNEL); in mlx5_sf_dev_add()
145 sf_index, sfnum, err); in mlx5_sf_dev_add()
148 static void mlx5_sf_dev_del(struct mlx5_core_dev *dev, struct mlx5_sf_dev *sf_dev, u16 sf_index) in mlx5_sf_dev_del() argument
152 xa_erase(&table->devices, sf_index); in mlx5_sf_dev_del()
163 u16 sf_index; in mlx5_sf_dev_state_change_handler() local
174 sf_index = event->function_id - base_id; in mlx5_sf_dev_state_change_handler()
175 sf_dev = xa_load(&table->devices, sf_index); in mlx5_sf_dev_state_change_handler()
[all …]