Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Ddevcom.c150 devcom = kzalloc(sizeof(*devcom), GFP_KERNEL); in devcom_alloc_comp_dev()
151 if (!devcom) in devcom_alloc_comp_dev()
155 devcom->devc = devc; in devcom_alloc_comp_dev()
156 devcom->comp = comp; in devcom_alloc_comp_dev()
163 return devcom; in devcom_alloc_comp_dev()
176 kfree(devcom); in devcom_free_comp_dev()
185 return devcom->id == id && devcom->key == key; in devcom_component_equal()
243 if (IS_ERR(devcom)) in mlx5_devcom_register_component()
246 return devcom; in mlx5_devcom_register_component()
250 return devcom; in mlx5_devcom_register_component()
[all …]
A Ddevcom.h33 int mlx5_devcom_send_event(struct mlx5_devcom_comp_dev *devcom,
36 int mlx5_devcom_comp_get_size(struct mlx5_devcom_comp_dev *devcom);
39 bool mlx5_devcom_comp_is_ready(struct mlx5_devcom_comp_dev *devcom);
42 void mlx5_devcom_for_each_peer_end(struct mlx5_devcom_comp_dev *devcom);
43 void *mlx5_devcom_get_next_peer_data(struct mlx5_devcom_comp_dev *devcom,
47 for (pos = NULL, data = mlx5_devcom_get_next_peer_data(devcom, &pos); \
49 data = mlx5_devcom_get_next_peer_data(devcom, &pos))
57 data = mlx5_devcom_get_next_peer_data_rcu(devcom, &pos))
59 void mlx5_devcom_comp_lock(struct mlx5_devcom_comp_dev *devcom);
60 void mlx5_devcom_comp_unlock(struct mlx5_devcom_comp_dev *devcom);
[all …]
A Dsd.c19 struct mlx5_devcom_comp_dev *devcom; member
220 if (IS_ERR(devcom)) in sd_register()
221 return PTR_ERR(devcom); in sd_register()
223 sd->devcom = devcom; in sd_register()
228 mlx5_devcom_comp_lock(devcom); in sd_register()
230 mlx5_devcom_comp_unlock(devcom); in sd_register()
254 mlx5_devcom_for_each_peer_end(devcom); in sd_register()
258 mlx5_devcom_comp_lock(sd->devcom); in sd_register()
260 mlx5_devcom_comp_unlock(sd->devcom); in sd_register()
269 mlx5_devcom_comp_lock(sd->devcom); in sd_unregister()
[all …]
A Dipsec_fs_roce.c46 struct mlx5_devcom_comp_dev **devcom; member
385 if (!mlx5_devcom_for_each_peer_begin(*ipsec_roce->devcom)) in ipsec_fs_roce_tx_mpv_create()
409 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); in ipsec_fs_roce_tx_mpv_create()
418 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); in ipsec_fs_roce_tx_mpv_create()
455 if (!mlx5_devcom_for_each_peer_begin(*ipsec_roce->devcom)) in ipsec_fs_roce_rx_mpv_create()
539 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); in ipsec_fs_roce_rx_mpv_create()
554 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); in ipsec_fs_roce_rx_mpv_create()
585 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); in mlx5_ipsec_fs_roce_tx_destroy()
592 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); in mlx5_ipsec_fs_roce_tx_destroy()
838 struct mlx5_devcom_comp_dev **devcom) in mlx5_ipsec_fs_roce_init() argument
[all …]
A Dipsec_fs_roce.h28 struct mlx5_devcom_comp_dev **devcom);
/drivers/net/ethernet/mellanox/mlx5/core/lag/
A Dmpesw.c131 struct mlx5_devcom_comp_dev *devcom; in mlx5_mpesw_work() local
134 devcom = mlx5_lag_get_devcom_comp(ldev); in mlx5_mpesw_work()
135 if (!devcom) in mlx5_mpesw_work()
138 mlx5_devcom_comp_lock(devcom); in mlx5_mpesw_work()
151 mlx5_devcom_comp_unlock(devcom); in mlx5_mpesw_work()
A Dlag.c1093 struct mlx5_devcom_comp_dev *devcom = NULL; in mlx5_lag_get_devcom_comp() local
1099 devcom = ldev->pf[i].dev->priv.hca_devcom_comp; in mlx5_lag_get_devcom_comp()
1101 return devcom; in mlx5_lag_get_devcom_comp()
1114 struct mlx5_devcom_comp_dev *devcom; in mlx5_do_bond_work() local
1117 devcom = mlx5_lag_get_devcom_comp(ldev); in mlx5_do_bond_work()
1118 if (!devcom) in mlx5_do_bond_work()
1121 status = mlx5_devcom_comp_trylock(devcom); in mlx5_do_bond_work()
1130 mlx5_devcom_comp_unlock(devcom); in mlx5_do_bond_work()
1137 mlx5_devcom_comp_unlock(devcom); in mlx5_do_bond_work()
/drivers/net/ethernet/mellanox/mlx5/core/esw/
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()
A Dbridge.c658 struct mlx5_devcom_comp_dev *devcom = bridge->br_offloads->esw->devcom, *pos; in mlx5_esw_bridge_ingress_flow_peer_create() local
662 if (!mlx5_devcom_for_each_peer_begin(devcom)) in mlx5_esw_bridge_ingress_flow_peer_create()
665 mlx5_devcom_for_each_peer_entry(devcom, tmp, pos) { in mlx5_esw_bridge_ingress_flow_peer_create()
681 mlx5_devcom_for_each_peer_end(devcom); in mlx5_esw_bridge_ingress_flow_peer_create()
/drivers/net/ethernet/mellanox/mlx5/core/
A Den_rep.c474 mlx5_devcom_for_each_peer_entry(esw->devcom, peer_esw, tmp) { in mlx5e_sqs2vport_add_peers_rules()
519 if (mlx5_devcom_comp_is_ready(esw->devcom) && in mlx5e_sqs2vport_start()
520 mlx5_devcom_for_each_peer_begin(esw->devcom)) in mlx5e_sqs2vport_start()
556 mlx5_devcom_for_each_peer_end(esw->devcom); in mlx5e_sqs2vport_start()
564 mlx5_devcom_for_each_peer_end(esw->devcom); in mlx5e_sqs2vport_start()
A Den_tc.c1695 mlx5_devcom_for_each_peer_entry_rcu(esw->devcom, esw, pos) { in mlx5e_tc_query_route_vport()
2159 struct mlx5_devcom_comp_dev *devcom = flow->priv->mdev->priv.eswitch->devcom; in mlx5e_tc_del_flow() local
2161 if (!mlx5_devcom_for_each_peer_begin(devcom)) { in mlx5e_tc_del_flow()
2167 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_tc_del_flow()
4631 struct mlx5_devcom_comp_dev *devcom = priv->mdev->priv.eswitch->devcom, *pos; in mlx5e_add_fdb_flow() local
4649 if (!mlx5_devcom_for_each_peer_begin(devcom)) { in mlx5e_add_fdb_flow()
4654 mlx5_devcom_for_each_peer_entry(devcom, peer_esw, pos) { in mlx5e_add_fdb_flow()
4660 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_add_fdb_flow()
4667 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_add_fdb_flow()
4968 if (esw && !mlx5_devcom_for_each_peer_begin(esw->devcom)) in mlx5e_stats_flower()
[all …]
A Deswitch_offloads.c3044 mlx5_devcom_comp_set_ready(esw->devcom, true); in mlx5_esw_offloads_devcom_event()
3054 mlx5_devcom_comp_set_ready(esw->devcom, false); in mlx5_esw_offloads_devcom_event()
3096 esw->devcom = mlx5_devcom_register_component(esw->dev->priv.devc, in mlx5_esw_offloads_devcom_init()
3101 if (IS_ERR(esw->devcom)) in mlx5_esw_offloads_devcom_init()
3104 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_init()
3112 if (IS_ERR_OR_NULL(esw->devcom)) in mlx5_esw_offloads_devcom_cleanup()
3115 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_cleanup()
3120 mlx5_devcom_unregister_component(esw->devcom); in mlx5_esw_offloads_devcom_cleanup()
3122 esw->devcom = NULL; in mlx5_esw_offloads_devcom_cleanup()
3127 return mlx5_devcom_comp_is_ready(esw->devcom); in mlx5_esw_offloads_devcom_is_ready()
A DMakefile18 lib/devcom.o lib/pci_vsc.o lib/dm.o lib/fs_ttc.o diag/fs_tracepoint.o \
A Den_main.c217 mlx5_devcom_comp_set_ready(slave_priv->devcom, true); in mlx5e_devcom_event_mpv()
235 priv->devcom = mlx5_devcom_register_component(priv->mdev->priv.devc, in mlx5e_devcom_init_mpv()
240 if (IS_ERR(priv->devcom)) in mlx5e_devcom_init_mpv()
241 return PTR_ERR(priv->devcom); in mlx5e_devcom_init_mpv()
244 mlx5_devcom_send_event(priv->devcom, MPV_DEVCOM_MASTER_UP, in mlx5e_devcom_init_mpv()
254 if (IS_ERR_OR_NULL(priv->devcom)) in mlx5e_devcom_cleanup_mpv()
258 mlx5_devcom_send_event(priv->devcom, MPV_DEVCOM_MASTER_DOWN, in mlx5e_devcom_cleanup_mpv()
263 mlx5_devcom_unregister_component(priv->devcom); in mlx5e_devcom_cleanup_mpv()
A Deswitch.h395 struct mlx5_devcom_comp_dev *devcom; member
A Den.h952 struct mlx5_devcom_comp_dev *devcom; member
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec.h315 int mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec, struct mlx5_devcom_comp_dev **devcom);
A Dipsec_fs.c2736 struct mlx5_devcom_comp_dev **devcom) in mlx5e_accel_ipsec_fs_init() argument
2788 ipsec->roce = mlx5_ipsec_fs_roce_init(mdev, devcom); in mlx5e_accel_ipsec_fs_init()
2864 mlx5_devcom_send_event(priv->devcom, event, event, priv); in mlx5e_ipsec_send_event()
A Dipsec.c999 ret = mlx5e_accel_ipsec_fs_init(ipsec, &priv->devcom); in mlx5e_ipsec_init()

Completed in 81 milliseconds