Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Ddevcom.c144 struct mlx5_devcom_comp_dev *devcom; in devcom_alloc_comp_dev() local
146 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()
153 rcu_assign_pointer(devcom->data, data); in devcom_alloc_comp_dev()
156 list_add_tail(&devcom->list, &comp->comp_dev_list_head); in devcom_alloc_comp_dev()
159 return devcom; in devcom_alloc_comp_dev()
163 devcom_free_comp_dev(struct mlx5_devcom_comp_dev *devcom) in devcom_free_comp_dev() argument
165 struct mlx5_devcom_comp *comp = devcom->comp; in devcom_free_comp_dev()
[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,
33 void mlx5_devcom_comp_set_ready(struct mlx5_devcom_comp_dev *devcom, bool ready);
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,
41 #define mlx5_devcom_for_each_peer_entry(devcom, data, pos) \ argument
42 for (pos = NULL, data = mlx5_devcom_get_next_peer_data(devcom, &pos); \
44 data = mlx5_devcom_get_next_peer_data(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()
4248 bool esw_paired = mlx5_devcom_comp_is_ready(esw_attr->in_mdev->priv.eswitch->devcom); in is_peer_flow_needed()
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()
[all …]
H A Deswitch_offloads.c3010 mlx5_devcom_comp_set_ready(esw->devcom, true); in mlx5_esw_offloads_devcom_event()
3020 mlx5_devcom_comp_set_ready(esw->devcom, false); in mlx5_esw_offloads_devcom_event()
3062 esw->devcom = mlx5_devcom_register_component(esw->dev->priv.devc, in mlx5_esw_offloads_devcom_init()
3067 if (IS_ERR_OR_NULL(esw->devcom)) in mlx5_esw_offloads_devcom_init()
3070 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_init()
3078 if (IS_ERR_OR_NULL(esw->devcom)) in mlx5_esw_offloads_devcom_cleanup()
3081 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_cleanup()
3086 mlx5_devcom_unregister_component(esw->devcom); in mlx5_esw_offloads_devcom_cleanup()
3088 esw->devcom = NULL; in mlx5_esw_offloads_devcom_cleanup()
3093 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
/openbmc/linux/
H A Dopengrok0.0.log[all...]