Searched refs:devcom (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | devcom.c | 55 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 111 devcom = mlx5_devcom_alloc(priv, idx); in mlx5_devcom_register_device() 112 if (!devcom) { in mlx5_devcom_register_device() 120 return devcom; in mlx5_devcom_register_device() [all …]
|
D | devcom.h | 20 void mlx5_devcom_unregister_device(struct mlx5_devcom *devcom); 22 void mlx5_devcom_register_component(struct mlx5_devcom *devcom, 26 void mlx5_devcom_unregister_component(struct mlx5_devcom *devcom, 29 int mlx5_devcom_send_event(struct mlx5_devcom *devcom, 34 void mlx5_devcom_set_paired(struct mlx5_devcom *devcom, 37 bool mlx5_devcom_is_paired(struct mlx5_devcom *devcom, 40 void *mlx5_devcom_get_peer_data(struct mlx5_devcom *devcom, 42 void mlx5_devcom_release_peer_data(struct mlx5_devcom *devcom,
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.c | 1322 struct mlx5_devcom *devcom = NULL; in mlx5e_tc_query_route_vport() local 1343 devcom = out_priv->mdev->priv.devcom; in mlx5e_tc_query_route_vport() 1344 esw = mlx5_devcom_get_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_tc_query_route_vport() 1350 if (devcom) in mlx5e_tc_query_route_vport() 1351 mlx5_devcom_release_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_tc_query_route_vport() 1627 struct mlx5_devcom *devcom = dev->priv.devcom; in mlx5e_tc_del_fdb_peer_flow() local 1630 peer_esw = mlx5_devcom_get_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_tc_del_fdb_peer_flow() 1635 mlx5_devcom_release_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_tc_del_fdb_peer_flow() 4167 bool esw_paired = mlx5_devcom_is_paired(esw_attr->in_mdev->priv.devcom, in is_peer_flow_needed() 4335 struct mlx5_devcom *devcom = priv->mdev->priv.devcom; in mlx5e_tc_add_fdb_peer_flow() local [all …]
|
D | eswitch_offloads.c | 2691 struct mlx5_devcom *devcom = esw->dev->priv.devcom; in mlx5_esw_offloads_devcom_event() local 2715 mlx5_devcom_set_paired(devcom, MLX5_DEVCOM_ESW_OFFLOADS, true); in mlx5_esw_offloads_devcom_event() 2719 if (!mlx5_devcom_is_paired(devcom, MLX5_DEVCOM_ESW_OFFLOADS)) in mlx5_esw_offloads_devcom_event() 2722 mlx5_devcom_set_paired(devcom, MLX5_DEVCOM_ESW_OFFLOADS, false); in mlx5_esw_offloads_devcom_event() 2743 struct mlx5_devcom *devcom = esw->dev->priv.devcom; in esw_offloads_devcom_init() local 2751 mlx5_devcom_register_component(devcom, in esw_offloads_devcom_init() 2756 mlx5_devcom_send_event(devcom, in esw_offloads_devcom_init() 2763 struct mlx5_devcom *devcom = esw->dev->priv.devcom; in esw_offloads_devcom_cleanup() local 2768 mlx5_devcom_send_event(devcom, MLX5_DEVCOM_ESW_OFFLOADS, in esw_offloads_devcom_cleanup() 2771 mlx5_devcom_unregister_component(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in esw_offloads_devcom_cleanup()
|
D | main.c | 808 dev->priv.devcom = mlx5_devcom_register_device(dev); in mlx5_init_once() 809 if (IS_ERR(dev->priv.devcom)) in mlx5_init_once() 811 dev->priv.devcom); in mlx5_init_once() 936 mlx5_devcom_unregister_device(dev->priv.devcom); in mlx5_init_once() 964 mlx5_devcom_unregister_device(dev->priv.devcom); in mlx5_cleanup_once()
|
D | en_rep.c | 340 if (mlx5_devcom_is_paired(esw->dev->priv.devcom, MLX5_DEVCOM_ESW_OFFLOADS)) in mlx5e_sqs2vport_start() 341 peer_esw = mlx5_devcom_get_peer_data(esw->dev->priv.devcom, in mlx5e_sqs2vport_start() 378 mlx5_devcom_release_peer_data(esw->dev->priv.devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_sqs2vport_start() 386 mlx5_devcom_release_peer_data(esw->dev->priv.devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5e_sqs2vport_start()
|
D | Makefile | 18 lib/devcom.o lib/pci_vsc.o lib/dm.o lib/fs_ttc.o diag/fs_tracepoint.o \
|
D | lag.c | 424 mlx5_devcom_is_paired(dev0->priv.devcom, in mlx5_shared_fdb_supported()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | bridge.c | 485 struct mlx5_devcom *devcom = bridge->br_offloads->esw->dev->priv.devcom; in mlx5_esw_bridge_ingress_flow_peer_create() local 489 peer_esw = mlx5_devcom_get_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5_esw_bridge_ingress_flow_peer_create() 496 mlx5_devcom_release_peer_data(devcom, MLX5_DEVCOM_ESW_OFFLOADS); in mlx5_esw_bridge_ingress_flow_peer_create()
|
/Linux-v5.15/include/linux/mlx5/ |
D | driver.h | 605 struct mlx5_devcom *devcom; member
|