Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_sf_eth.c97 struct ice_sf_dev *sf_dev = ice_adev_to_sf_dev(adev); in ice_sf_dev_probe() local
98 struct ice_dynamic_port *dyn_port = sf_dev->dyn_port; in ice_sf_dev_probe()
116 priv->dev = sf_dev; in ice_sf_dev_probe()
117 sf_dev->priv = priv; in ice_sf_dev_probe()
131 err = ice_devlink_create_sf_dev_port(sf_dev); in ice_sf_dev_probe()
137 err = ice_sf_cfg_netdev(dyn_port, &sf_dev->priv->devlink_port); in ice_sf_dev_probe()
161 ice_devlink_destroy_sf_dev_port(sf_dev); in ice_sf_dev_probe()
178 struct ice_sf_dev *sf_dev = ice_adev_to_sf_dev(adev); in ice_sf_dev_remove() local
179 struct ice_dynamic_port *dyn_port = sf_dev->dyn_port; in ice_sf_dev_remove()
183 devlink = priv_to_devlink(sf_dev->priv); in ice_sf_dev_remove()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddev.c48 struct mlx5_sf_dev *sf_dev = container_of(adev, struct mlx5_sf_dev, adev); in sfnum_show() local
50 return sysfs_emit(buf, "%u\n", sf_dev->sfnum); in sfnum_show()
71 struct mlx5_sf_dev *sf_dev = container_of(adev, struct mlx5_sf_dev, adev); in mlx5_sf_dev_release() local
74 kfree(sf_dev); in mlx5_sf_dev_release()
78 struct mlx5_sf_dev *sf_dev) in mlx5_sf_dev_remove_aux() argument
82 id = sf_dev->adev.id; in mlx5_sf_dev_remove_aux()
83 trace_mlx5_sf_dev_del(dev, sf_dev, id); in mlx5_sf_dev_remove_aux()
85 auxiliary_device_delete(&sf_dev->adev); in mlx5_sf_dev_remove_aux()
86 auxiliary_device_uninit(&sf_dev->adev); in mlx5_sf_dev_remove_aux()
92 struct mlx5_sf_dev *sf_dev; in mlx5_sf_dev_add() local
[all …]
Ddriver.c11 static int mlx5_core_peer_devlink_set(struct mlx5_sf_dev *sf_dev, struct devlink *devlink) in mlx5_core_peer_devlink_set() argument
14 .fn_id = sf_dev->fn_id, in mlx5_core_peer_devlink_set()
19 ret = mlx5_blocking_notifier_call_chain(sf_dev->parent_mdev, in mlx5_core_peer_devlink_set()
27 struct mlx5_sf_dev *sf_dev = container_of(adev, struct mlx5_sf_dev, adev); in mlx5_sf_dev_probe() local
38 mdev->pdev = sf_dev->parent_mdev->pdev; in mlx5_sf_dev_probe()
39 mdev->bar_addr = sf_dev->bar_base_addr; in mlx5_sf_dev_probe()
40 mdev->iseg_base = sf_dev->bar_base_addr; in mlx5_sf_dev_probe()
42 mdev->priv.parent_mdev = sf_dev->parent_mdev; in mlx5_sf_dev_probe()
44 sf_dev->mdev = mdev; in mlx5_sf_dev_probe()
47 if (MLX5_ESWITCH_MANAGER(sf_dev->parent_mdev)) in mlx5_sf_dev_probe()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/ice/devlink/
Ddevlink_port.h35 struct ice_sf_dev *sf_dev; member
47 int ice_devlink_create_sf_dev_port(struct ice_sf_dev *sf_dev);
48 void ice_devlink_destroy_sf_dev_port(struct ice_sf_dev *sf_dev);
Ddevlink_port.c501 int ice_devlink_create_sf_dev_port(struct ice_sf_dev *sf_dev) in ice_devlink_create_sf_dev_port() argument
509 dyn_port = sf_dev->dyn_port; in ice_devlink_create_sf_dev_port()
512 devlink_port = &sf_dev->priv->devlink_port; in ice_devlink_create_sf_dev_port()
517 devlink = priv_to_devlink(sf_dev->priv); in ice_devlink_create_sf_dev_port()
528 void ice_devlink_destroy_sf_dev_port(struct ice_sf_dev *sf_dev) in ice_devlink_destroy_sf_dev_port() argument
530 devl_port_unregister(&sf_dev->priv->devlink_port); in ice_devlink_destroy_sf_dev_port()