Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Ddevcom.c55 struct mlx5_devcom *devcom; in mlx5_devcom_alloc() local
57 devcom = kzalloc(sizeof(*devcom), GFP_KERNEL); in mlx5_devcom_alloc()
58 if (!devcom) in mlx5_devcom_alloc()
61 devcom->priv = priv; in mlx5_devcom_alloc()
62 devcom->idx = idx; in mlx5_devcom_alloc()
63 return devcom; in mlx5_devcom_alloc()
70 struct mlx5_devcom *devcom = NULL; in mlx5_devcom_register_device() local
113 devcom = mlx5_devcom_alloc(priv, idx); in mlx5_devcom_register_device()
114 if (!devcom) { in mlx5_devcom_register_device()
122 return devcom; in mlx5_devcom_register_device()
[all …]
Ddevcom.h22 void mlx5_devcom_unregister_device(struct mlx5_devcom *devcom);
24 void mlx5_devcom_register_component(struct mlx5_devcom *devcom,
28 void mlx5_devcom_unregister_component(struct mlx5_devcom *devcom,
31 int mlx5_devcom_send_event(struct mlx5_devcom *devcom,
36 void mlx5_devcom_set_paired(struct mlx5_devcom *devcom,
39 bool mlx5_devcom_is_paired(struct mlx5_devcom *devcom,
42 void *mlx5_devcom_get_peer_data(struct mlx5_devcom *devcom,
44 void mlx5_devcom_release_peer_data(struct mlx5_devcom *devcom,
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c1379 struct mlx5_devcom *devcom = NULL; in mlx5e_tc_query_route_vport() local
1400 devcom = out_priv->mdev->priv.devcom; in mlx5e_tc_query_route_vport()
1401 esw = mlx5_devcom_get_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_tc_query_route_vport()
1407 if (devcom) in mlx5e_tc_query_route_vport()
1408 mlx5_devcom_release_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_tc_query_route_vport()
1793 struct mlx5_devcom *devcom = dev->priv.devcom; in mlx5e_tc_del_fdb_peer_flow() local
1796 peer_esw = mlx5_devcom_get_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_tc_del_fdb_peer_flow()
1801 mlx5_devcom_release_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_tc_del_fdb_peer_flow()
3950 bool esw_paired = mlx5_devcom_is_paired(esw_attr->in_mdev->priv.devcom, in is_peer_flow_needed()
4138 struct mlx5_devcom *devcom = priv->mdev->priv.devcom; in mlx5e_tc_add_fdb_peer_flow() local
[all …]
Deswitch_offloads.c2699 struct mlx5_devcom *devcom = esw->dev->priv.devcom; in mlx5_esw_offloads_devcom_event() local
2720 mlx5_devcom_set_paired(devcom, MLX5_DEVCOM_ESW_OFFLOADS, true); in mlx5_esw_offloads_devcom_event()
2724 if (!mlx5_devcom_is_paired(devcom, MLX5_DEVCOM_ESW_OFFLOADS)) in mlx5_esw_offloads_devcom_event()
2727 mlx5_devcom_set_paired(devcom, MLX5_DEVCOM_ESW_OFFLOADS, false); in mlx5_esw_offloads_devcom_event()
2748 struct mlx5_devcom *devcom = esw->dev->priv.devcom; in esw_offloads_devcom_init() local
2759 mlx5_devcom_register_component(devcom, in esw_offloads_devcom_init()
2764 mlx5_devcom_send_event(devcom, in esw_offloads_devcom_init()
2771 struct mlx5_devcom *devcom = esw->dev->priv.devcom; in esw_offloads_devcom_cleanup() local
2779 mlx5_devcom_send_event(devcom, MLX5_DEVCOM_ESW_OFFLOADS, in esw_offloads_devcom_cleanup()
2782 mlx5_devcom_unregister_component(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in esw_offloads_devcom_cleanup()
Dmain.c900 dev->priv.devcom = mlx5_devcom_register_device(dev); in mlx5_init_once()
901 if (IS_ERR(dev->priv.devcom)) in mlx5_init_once()
903 dev->priv.devcom); in mlx5_init_once()
1036 mlx5_devcom_unregister_device(dev->priv.devcom); in mlx5_init_once()
1065 mlx5_devcom_unregister_device(dev->priv.devcom); in mlx5_cleanup_once()
Den_rep.c349 if (mlx5_devcom_is_paired(esw->dev->priv.devcom, MLX5_DEVCOM_ESW_OFFLOADS)) in mlx5e_sqs2vport_start()
350 peer_esw = mlx5_devcom_get_peer_data(esw->dev->priv.devcom, in mlx5e_sqs2vport_start()
387 mlx5_devcom_release_peer_data(esw->dev->priv.devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_sqs2vport_start()
395 mlx5_devcom_release_peer_data(esw->dev->priv.devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_sqs2vport_start()
DMakefile18 lib/devcom.o lib/pci_vsc.o lib/dm.o lib/fs_ttc.o diag/fs_tracepoint.o \
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.c598 struct mlx5_devcom *devcom = bridge->br_offloads->esw->dev->priv.devcom; in mlx5_esw_bridge_ingress_flow_peer_create() local
602 peer_esw = mlx5_devcom_get_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5_esw_bridge_ingress_flow_peer_create()
609 mlx5_devcom_release_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5_esw_bridge_ingress_flow_peer_create()
/linux-5.19.10/include/linux/mlx5/
Ddriver.h618 struct mlx5_devcom *devcom; member
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/lag/
Dlag.c749 mlx5_devcom_is_paired(dev0->priv.devcom, in mlx5_shared_fdb_supported()