Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Ddevcom.c7 #include "lib/devcom.h"
86 mlx5_core_err(dev, "devcom device already exists"); in mlx5_devcom_register_device()
161 struct mlx5_devcom_comp_dev *devcom; in devcom_alloc_comp_dev() local
163 devcom = kzalloc_obj(*devcom); in devcom_alloc_comp_dev()
164 if (!devcom) in devcom_alloc_comp_dev()
168 devcom->devc = devc; in devcom_alloc_comp_dev()
169 devcom->comp = comp; in devcom_alloc_comp_dev()
170 rcu_assign_pointer(devcom->data, data); in devcom_alloc_comp_dev()
173 list_add_tail(&devcom in devcom_alloc_comp_dev()
181 devcom_free_comp_dev(struct mlx5_devcom_comp_dev * devcom) devcom_free_comp_dev() argument
196 devcom_component_equal(struct mlx5_devcom_comp * devcom,enum mlx5_devcom_component id,const struct mlx5_devcom_match_attr * attr) devcom_component_equal() argument
247 struct mlx5_devcom_comp_dev *devcom = NULL; mlx5_devcom_register_component() local
278 mlx5_devcom_unregister_component(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_unregister_component() argument
286 mlx5_devcom_comp_get_size(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_comp_get_size() argument
293 mlx5_devcom_locked_send_event(struct mlx5_devcom_comp_dev * devcom,int event,int rollback_event,void * event_data) mlx5_devcom_locked_send_event() argument
337 mlx5_devcom_send_event(struct mlx5_devcom_comp_dev * devcom,int event,int rollback_event,void * event_data) mlx5_devcom_send_event() argument
355 mlx5_devcom_comp_set_ready(struct mlx5_devcom_comp_dev * devcom,bool ready) mlx5_devcom_comp_set_ready() argument
362 mlx5_devcom_comp_is_ready(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_comp_is_ready() argument
370 mlx5_devcom_for_each_peer_begin(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_for_each_peer_begin() argument
387 mlx5_devcom_for_each_peer_end(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_for_each_peer_end() argument
392 mlx5_devcom_get_next_peer_data(struct mlx5_devcom_comp_dev * devcom,struct mlx5_devcom_comp_dev ** pos) mlx5_devcom_get_next_peer_data() argument
416 mlx5_devcom_get_next_peer_data_rcu(struct mlx5_devcom_comp_dev * devcom,struct mlx5_devcom_comp_dev ** pos) mlx5_devcom_get_next_peer_data_rcu() argument
445 mlx5_devcom_comp_lock(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_comp_lock() argument
452 mlx5_devcom_comp_unlock(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_comp_unlock() argument
459 mlx5_devcom_comp_trylock(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_comp_trylock() argument
466 mlx5_devcom_comp_assert_locked(struct mlx5_devcom_comp_dev * devcom) mlx5_devcom_comp_assert_locked() argument
[all...]
H A Dsd.c23 struct mlx5_devcom_comp_dev *devcom; member
66 if (!mlx5_devcom_comp_is_ready(sd->devcom)) in mlx5_sd_get_primary()
79 return sd->devcom; in mlx5_sd_get_devcom()
102 mlx5_devcom_comp_assert_locked(sd->devcom); in mlx5_sd_pf_num_get()
103 if (!mlx5_devcom_comp_is_ready(sd->devcom)) in mlx5_sd_pf_num_get()
526 struct mlx5_devcom_comp_dev *devcom; in sd_register() local
536 devcom = mlx5_devcom_register_component(dev->priv.devc, in sd_register()
540 if (!devcom) in sd_register()
543 sd->devcom = devcom; in sd_register()
545 mlx5_devcom_comp_lock(devcom); in sd_register()
[all …]
H A Dipsec_fs_roce.h28 struct mlx5_devcom_comp_dev **devcom);
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmpesw.c193 struct mlx5_devcom_comp_dev *devcom; in mlx5_mpesw_work() local
196 devcom = mlx5_lag_get_devcom_comp(ldev); in mlx5_mpesw_work()
197 if (!devcom) { in mlx5_mpesw_work()
202 mlx5_devcom_comp_lock(devcom); in mlx5_mpesw_work()
217 mlx5_devcom_comp_unlock(devcom); in mlx5_mpesw_work()
H A Dlag.c40 #include "lib/devcom.h"
1240 struct mlx5_devcom_comp_dev *devcom = NULL; in mlx5_lag_rescan_devices_locked_filter()
1251 devcom = pf->dev->priv.hca_devcom_comp; in mlx5_lag_add_devices_filter()
1253 devcom = mlx5_sd_get_devcom(pf->dev);
1255 mlx5_devcom_comp_assert_locked(devcom); in mlx5_lag_add_devices()
1393 /* The HCA devcom component lock serializes LAG mode transitions while in mlx5_disable_lag()
1780 * devcom component, and as all the mdevs use the same devcom component we are in mlx5_lag_demux_init()
1781 * guaranteed that the devcom is valid while the calling work is running. in mlx5_lag_demux_init()
1785 struct mlx5_devcom_comp_dev *devcom in mlx5_lag_demux_init()
1165 struct mlx5_devcom_comp_dev *devcom = NULL; mlx5_lag_assert_locked_transition() local
1710 struct mlx5_devcom_comp_dev *devcom = NULL; mlx5_lag_get_devcom_comp() local
1919 struct mlx5_devcom_comp_dev *devcom; mlx5_do_bond_work() local
[all...]
/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.c9 #include "lib/devcom.h"
659 struct mlx5_devcom_comp_dev *devcom = bridge->br_offloads->esw->devcom, *pos; in mlx5_esw_bridge_ingress_flow_peer_create() local
663 if (!mlx5_devcom_for_each_peer_begin(devcom)) in mlx5_esw_bridge_ingress_flow_peer_create()
666 mlx5_devcom_for_each_peer_entry(devcom, tmp, pos) { in mlx5_esw_bridge_ingress_flow_peer_create()
682 mlx5_devcom_for_each_peer_end(devcom); in mlx5_esw_bridge_ingress_flow_peer_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c66 #include "lib/devcom.h"
1708 mlx5_devcom_for_each_peer_entry_rcu(esw->devcom, esw, pos) { in mlx5e_tc_query_route_vport()
2162 struct mlx5_devcom_comp_dev *devcom = flow->priv->mdev->priv.eswitch->devcom; in mlx5e_tc_del_flow() local
2165 !mlx5_devcom_for_each_peer_begin(devcom)) { in mlx5e_tc_del_flow()
2171 mlx5_devcom_for_each_peer_end(devcom); in mlx5e_tc_del_flow()
4385 bool esw_paired = mlx5_devcom_comp_is_ready(esw_attr->in_mdev->priv.eswitch->devcom); in is_peer_flow_needed()
4666 struct mlx5_devcom_comp_dev *devcom = priv->mdev->priv.eswitch->devcom, *pos; in mlx5e_add_fdb_flow()
4691 if (!mlx5_devcom_for_each_peer_begin(devcom)) { in mlx5e_add_fdb_flow()
4661 struct mlx5_devcom_comp_dev *devcom = priv->mdev->priv.eswitch->devcom, *pos; mlx5e_add_fdb_flow() local
5542 struct mlx5_devcom_comp_dev *devcom; mlx5e_tc_clean_fdb_peer_flows() local
[all...]
H A Den_rep.c55 #include "lib/devcom.h"
476 mlx5_devcom_for_each_peer_entry(esw->devcom, peer_esw, tmp) { in mlx5e_sqs2vport_add_peers_rules()
509 struct mlx5_devcom_comp_dev *devcom = esw->devcom; in mlx5e_sqs2vport_start()
522 mlx5_devcom_comp_read_lock(devcom); in mlx5e_sqs2vport_start()
523 peers_ready = mlx5_devcom_comp_is_ready(devcom); in mlx5e_sqs2vport_start()
557 mlx5_devcom_comp_read_unlock(devcom); in mlx5e_sqs2vport_start()
563 mlx5_devcom_comp_read_unlock(devcom); in mlx5e_sqs2vport_start()
630 struct mlx5_devcom_comp_dev *devcom; in mlx5e_remove_sqs_fwd_rules()
632 devcom in mlx5e_remove_sqs_fwd_rules()
[all...]
H A Deswitch_offloads.c48 #include "lib/devcom.h"
3532 mlx5_devcom_comp_set_ready(esw->devcom, true); in mlx5_esw_offloads_devcom_event()
3542 mlx5_devcom_comp_set_ready(esw->devcom, false); in mlx5_esw_offloads_devcom_event()
3562 mlx5_core_err(esw->dev, "esw offloads devcom event failure, event %u err %d", in mlx5_esw_offloads_devcom_init()
3585 esw->devcom = mlx5_devcom_register_component(esw->dev->priv.devc, in mlx5_esw_offloads_devcom_cleanup()
3590 if (!esw->devcom) in mlx5_esw_offloads_devcom_cleanup()
3593 err = mlx5_devcom_send_event(esw->devcom, in mlx5_esw_offloads_devcom_cleanup()
3603 if (!esw->devcom) in mlx5_esw_vport_match_metadata_supported()
3606 mlx5_devcom_send_event(esw->devcom, in mlx5_esw_vport_match_metadata_supported()
3611 mlx5_devcom_unregister_component(esw->devcom); in mlx5_esw_vport_match_metadata_supported()
[all...]
H A Den_main.c78 #include "lib/devcom.h"
218 mlx5_devcom_comp_set_ready(master_priv->devcom, true); in mlx5e_devcom_event_mpv()
240 priv->devcom = mlx5_devcom_register_component(priv->mdev->priv.devc, in mlx5e_devcom_init_mpv()
245 if (!priv->devcom) in mlx5e_devcom_init_mpv()
249 mlx5_devcom_send_event(priv->devcom, MPV_DEVCOM_MASTER_UP, in mlx5e_devcom_init_mpv()
259 if (!priv->devcom) in mlx5e_devcom_cleanup_mpv()
263 mlx5_devcom_send_event(priv->devcom, MPV_DEVCOM_MASTER_DOWN, in mlx5e_devcom_cleanup_mpv()
268 mlx5_devcom_unregister_component(priv->devcom); in mlx5e_devcom_cleanup_mpv()
269 priv->devcom = NULL; in mlx5e_devcom_cleanup_mpv()
H A Den.h986 struct mlx5_devcom_comp_dev *devcom; member
H A Deswitch.h440 struct mlx5_devcom_comp_dev *devcom; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c2757 struct mlx5_devcom_comp_dev **devcom) in mlx5e_accel_ipsec_fs_cleanup()
2809 ipsec->roce = mlx5_ipsec_fs_roce_init(mdev, devcom); in mlx5e_accel_ipsec_fs_init()
2888 if (!priv->ipsec || mlx5_devcom_comp_get_size(priv->devcom) < 2) in mlx5e_ipsec_handle_mpv_event()
2891 mlx5_devcom_send_event(priv->devcom, event, event, priv); in mlx5e_ipsec_handle_mpv_event()
2900 if (!priv->devcom) in mlx5e_ipsec_send_event()
2903 if (!mlx5_devcom_for_each_peer_begin(priv->devcom)) in mlx5e_ipsec_disable_events()
2906 peer_priv = mlx5_devcom_get_next_peer_data(priv->devcom, &tmp); in mlx5e_ipsec_disable_events()
2910 mlx5_devcom_for_each_peer_end(priv->devcom); in mlx5e_ipsec_disable_events()
2912 mlx5_devcom_unregister_component(priv->devcom); in mlx5e_ipsec_disable_events()
2913 priv->devcom in mlx5e_ipsec_disable_events()
2765 mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec * ipsec,struct mlx5_devcom_comp_dev ** devcom) mlx5e_accel_ipsec_fs_init() argument
[all...]
H A Dipsec.h41 #include "lib/devcom.h"
317 int mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec, struct mlx5_devcom_comp_dev **devcom);
H A Dipsec.c1040 ret = mlx5e_accel_ipsec_fs_init(ipsec, &priv->devcom); in mlx5e_ipsec_cleanup()