Searched refs:devcom (Results 1 – 9 of 9) sorted by relevance
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | devcom.c | 144 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 …]
|
D | devcom.h | 27 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 …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | bridge_mcast.c | 542 struct mlx5_devcom_comp_dev *devcom = port->bridge->br_offloads->esw->devcom, *pos; in mlx5_esw_bridge_mcast_filter_flow_peer_create() local 546 if (!mlx5_devcom_for_each_peer_begin(devcom)) in mlx5_esw_bridge_mcast_filter_flow_peer_create() 549 mlx5_devcom_for_each_peer_entry(devcom, tmp, pos) { in mlx5_esw_bridge_mcast_filter_flow_peer_create() 564 mlx5_devcom_for_each_peer_end(devcom); in mlx5_esw_bridge_mcast_filter_flow_peer_create()
|
D | bridge.c | 655 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()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rep.c | 408 mlx5_devcom_for_each_peer_entry(esw->devcom, peer_esw, tmp) { in mlx5e_sqs2vport_add_peers_rules() 453 if (mlx5_devcom_comp_is_ready(esw->devcom) && in mlx5e_sqs2vport_start() 454 mlx5_devcom_for_each_peer_begin(esw->devcom)) in mlx5e_sqs2vport_start() 490 mlx5_devcom_for_each_peer_end(esw->devcom); in mlx5e_sqs2vport_start() 498 mlx5_devcom_for_each_peer_end(esw->devcom); in mlx5e_sqs2vport_start()
|
D | en_tc.c | 1691 mlx5_devcom_for_each_peer_entry_rcu(esw->devcom, esw, pos) { in mlx5e_tc_query_route_vport() 2038 struct mlx5_devcom_comp_dev *devcom = flow->priv->mdev->priv.eswitch->devcom; in mlx5e_tc_del_flow() local 2040 if (!mlx5_devcom_for_each_peer_begin(devcom)) { in mlx5e_tc_del_flow() 2046 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_tc_del_flow() 4224 bool esw_paired = mlx5_devcom_comp_is_ready(esw_attr->in_mdev->priv.eswitch->devcom); in is_peer_flow_needed() 4491 struct mlx5_devcom_comp_dev *devcom = priv->mdev->priv.eswitch->devcom, *pos; in mlx5e_add_fdb_flow() local 4509 if (!mlx5_devcom_for_each_peer_begin(devcom)) { in mlx5e_add_fdb_flow() 4514 mlx5_devcom_for_each_peer_entry(devcom, peer_esw, pos) { in mlx5e_add_fdb_flow() 4520 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_add_fdb_flow() 4527 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_add_fdb_flow() [all …]
|
D | eswitch_offloads.c | 2988 mlx5_devcom_comp_set_ready(esw->devcom, true); in mlx5_esw_offloads_devcom_event() 2998 mlx5_devcom_comp_set_ready(esw->devcom, false); in mlx5_esw_offloads_devcom_event() 3040 esw->devcom = mlx5_devcom_register_component(esw->dev->priv.devc, in mlx5_esw_offloads_devcom_init() 3045 if (IS_ERR_OR_NULL(esw->devcom)) in mlx5_esw_offloads_devcom_init() 3048 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_init() 3056 if (IS_ERR_OR_NULL(esw->devcom)) in mlx5_esw_offloads_devcom_cleanup() 3059 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_cleanup() 3064 mlx5_devcom_unregister_component(esw->devcom); in mlx5_esw_offloads_devcom_cleanup() 3066 esw->devcom = NULL; in mlx5_esw_offloads_devcom_cleanup() 3071 return mlx5_devcom_comp_is_ready(esw->devcom); in mlx5_esw_offloads_devcom_is_ready()
|
D | Makefile | 18 lib/devcom.o lib/pci_vsc.o lib/dm.o lib/fs_ttc.o diag/fs_tracepoint.o \
|
D | eswitch.h | 384 struct mlx5_devcom_comp_dev *devcom; member
|