Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Ddevcom.c146 devcom = kzalloc(sizeof(*devcom), GFP_KERNEL); in devcom_alloc_comp_dev()
147 if (!devcom) in devcom_alloc_comp_dev()
151 devcom->devc = devc; in devcom_alloc_comp_dev()
152 devcom->comp = comp; in devcom_alloc_comp_dev()
159 return devcom; in devcom_alloc_comp_dev()
172 kfree(devcom); in devcom_free_comp_dev()
181 return devcom->id == id && devcom->key == key; in devcom_component_equal()
239 if (IS_ERR(devcom)) in mlx5_devcom_register_component()
242 return devcom; in mlx5_devcom_register_component()
246 return devcom; in mlx5_devcom_register_component()
[all …]
H A Ddevcom.h27 void mlx5_devcom_unregister_component(struct mlx5_devcom_comp_dev *devcom);
29 int mlx5_devcom_send_event(struct mlx5_devcom_comp_dev *devcom,
34 bool mlx5_devcom_comp_is_ready(struct mlx5_devcom_comp_dev *devcom);
36 bool mlx5_devcom_for_each_peer_begin(struct mlx5_devcom_comp_dev *devcom);
37 void mlx5_devcom_for_each_peer_end(struct mlx5_devcom_comp_dev *devcom);
38 void *mlx5_devcom_get_next_peer_data(struct mlx5_devcom_comp_dev *devcom,
42 for (pos = NULL, data = mlx5_devcom_get_next_peer_data(devcom, &pos); \
44 data = mlx5_devcom_get_next_peer_data(devcom, &pos))
46 void *mlx5_devcom_get_next_peer_data_rcu(struct mlx5_devcom_comp_dev *devcom,
50 for (pos = NULL, data = mlx5_devcom_get_next_peer_data_rcu(devcom, &pos); \
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_mcast.c545 struct mlx5_devcom_comp_dev *devcom = port->bridge->br_offloads->esw->devcom, *pos; in mlx5_esw_bridge_mcast_filter_flow_peer_create() local
549 if (!mlx5_devcom_for_each_peer_begin(devcom)) in mlx5_esw_bridge_mcast_filter_flow_peer_create()
552 mlx5_devcom_for_each_peer_entry(devcom, tmp, pos) { in mlx5_esw_bridge_mcast_filter_flow_peer_create()
567 mlx5_devcom_for_each_peer_end(devcom); in mlx5_esw_bridge_mcast_filter_flow_peer_create()
H A Dbridge.c655 struct mlx5_devcom_comp_dev *devcom = bridge->br_offloads->esw->devcom, *pos; in mlx5_esw_bridge_ingress_flow_peer_create() local
659 if (!mlx5_devcom_for_each_peer_begin(devcom)) in mlx5_esw_bridge_ingress_flow_peer_create()
662 mlx5_devcom_for_each_peer_entry(devcom, tmp, pos) { in mlx5_esw_bridge_ingress_flow_peer_create()
678 mlx5_devcom_for_each_peer_end(devcom); in mlx5_esw_bridge_ingress_flow_peer_create()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rep.c412 mlx5_devcom_for_each_peer_entry(esw->devcom, peer_esw, tmp) { in mlx5e_sqs2vport_add_peers_rules()
457 if (mlx5_devcom_comp_is_ready(esw->devcom) && in mlx5e_sqs2vport_start()
458 mlx5_devcom_for_each_peer_begin(esw->devcom)) in mlx5e_sqs2vport_start()
494 mlx5_devcom_for_each_peer_end(esw->devcom); in mlx5e_sqs2vport_start()
502 mlx5_devcom_for_each_peer_end(esw->devcom); in mlx5e_sqs2vport_start()
H A Den_tc.c1694 mlx5_devcom_for_each_peer_entry_rcu(esw->devcom, esw, pos) { in mlx5e_tc_query_route_vport()
2042 struct mlx5_devcom_comp_dev *devcom = flow->priv->mdev->priv.eswitch->devcom; in mlx5e_tc_del_flow() local
2044 if (!mlx5_devcom_for_each_peer_begin(devcom)) { in mlx5e_tc_del_flow()
2050 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_tc_del_flow()
4515 struct mlx5_devcom_comp_dev *devcom = priv->mdev->priv.eswitch->devcom, *pos; in mlx5e_add_fdb_flow() local
4533 if (!mlx5_devcom_for_each_peer_begin(devcom)) { in mlx5e_add_fdb_flow()
4538 mlx5_devcom_for_each_peer_entry(devcom, peer_esw, pos) { in mlx5e_add_fdb_flow()
4544 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_add_fdb_flow()
4551 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_add_fdb_flow()
4852 if (esw && !mlx5_devcom_for_each_peer_begin(esw->devcom)) in mlx5e_stats_flower()
[all …]
H A Deswitch_offloads.c3013 mlx5_devcom_comp_set_ready(esw->devcom, true); in mlx5_esw_offloads_devcom_event()
3023 mlx5_devcom_comp_set_ready(esw->devcom, false); in mlx5_esw_offloads_devcom_event()
3065 esw->devcom = mlx5_devcom_register_component(esw->dev->priv.devc, in mlx5_esw_offloads_devcom_init()
3070 if (IS_ERR_OR_NULL(esw->devcom)) in mlx5_esw_offloads_devcom_init()
3073 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_init()
3081 if (IS_ERR_OR_NULL(esw->devcom)) in mlx5_esw_offloads_devcom_cleanup()
3084 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_cleanup()
3089 mlx5_devcom_unregister_component(esw->devcom); in mlx5_esw_offloads_devcom_cleanup()
3091 esw->devcom = NULL; in mlx5_esw_offloads_devcom_cleanup()
3096 return mlx5_devcom_comp_is_ready(esw->devcom); in mlx5_esw_offloads_devcom_is_ready()
H A DMakefile18 lib/devcom.o lib/pci_vsc.o lib/dm.o lib/fs_ttc.o diag/fs_tracepoint.o \
H A Deswitch.h384 struct mlx5_devcom_comp_dev *devcom; member