/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | devcom.h | 30 void mlx5_devcom_unregister_component(struct mlx5_devcom_comp_dev *devcom); 32 int mlx5_devcom_send_event(struct mlx5_devcom_comp_dev *devcom, 35 int mlx5_devcom_comp_get_size(struct mlx5_devcom_comp_dev *devcom); 37 void mlx5_devcom_comp_set_ready(struct mlx5_devcom_comp_dev *devcom, bool ready); 38 bool mlx5_devcom_comp_is_ready(struct mlx5_devcom_comp_dev *devcom); 40 bool mlx5_devcom_for_each_peer_begin(struct mlx5_devcom_comp_dev *devcom); 41 void mlx5_devcom_for_each_peer_end(struct mlx5_devcom_comp_dev *devcom); 42 void *mlx5_devcom_get_next_peer_data(struct mlx5_devcom_comp_dev *devcom, 45 #define mlx5_devcom_for_each_peer_entry(devcom, data, pos) \ 46 for (pos = NULL, data = mlx5_devcom_get_next_peer_data(devcom, [all...] |
H A D | devcom.c | 6 #include "lib/devcom.h" 148 struct mlx5_devcom_comp_dev *devcom; local 150 devcom = kzalloc(sizeof(*devcom), GFP_KERNEL); 151 if (!devcom) 155 devcom->devc = devc; 156 devcom->comp = comp; 157 rcu_assign_pointer(devcom->data, data); 160 list_add_tail(&devcom->list, &comp->comp_dev_list_head); 163 return devcom; 167 devcom_free_comp_dev(struct mlx5_devcom_comp_dev *devcom) argument 181 devcom_component_equal(struct mlx5_devcom_comp *devcom, enum mlx5_devcom_component id, u64 key) argument 219 struct mlx5_devcom_comp_dev *devcom; local 253 mlx5_devcom_unregister_component(struct mlx5_devcom_comp_dev *devcom) argument 259 mlx5_devcom_comp_get_size(struct mlx5_devcom_comp_dev *devcom) argument 266 mlx5_devcom_send_event(struct mlx5_devcom_comp_dev *devcom, int event, int rollback_event, void *event_data) argument 308 mlx5_devcom_comp_set_ready(struct mlx5_devcom_comp_dev *devcom, bool ready) argument 315 mlx5_devcom_comp_is_ready(struct mlx5_devcom_comp_dev *devcom) argument 323 mlx5_devcom_for_each_peer_begin(struct mlx5_devcom_comp_dev *devcom) argument 340 mlx5_devcom_for_each_peer_end(struct mlx5_devcom_comp_dev *devcom) argument 345 mlx5_devcom_get_next_peer_data(struct mlx5_devcom_comp_dev *devcom, struct mlx5_devcom_comp_dev **pos) argument 369 mlx5_devcom_get_next_peer_data_rcu(struct mlx5_devcom_comp_dev *devcom, struct mlx5_devcom_comp_dev **pos) argument 398 mlx5_devcom_comp_lock(struct mlx5_devcom_comp_dev *devcom) argument 405 mlx5_devcom_comp_unlock(struct mlx5_devcom_comp_dev *devcom) argument 412 mlx5_devcom_comp_trylock(struct mlx5_devcom_comp_dev *devcom) argument [all...] |
H A D | sd.c | 19 struct mlx5_devcom_comp_dev *devcom; member in struct:mlx5_sd 208 struct mlx5_devcom_comp_dev *devcom, *pos; local 214 devcom = mlx5_devcom_register_component(dev->priv.devc, MLX5_DEVCOM_SD_GROUP, 216 if (IS_ERR(devcom)) 217 return PTR_ERR(devcom); 219 sd->devcom = devcom; 221 if (mlx5_devcom_comp_get_size(devcom) != sd->host_buses) 224 mlx5_devcom_comp_lock(devcom); 225 mlx5_devcom_comp_set_ready(devcom, tru [all...] |
H A D | ipsec_fs_roce.h | 7 #include "lib/devcom.h" 28 struct mlx5_devcom_comp_dev **devcom);
|
H A D | ipsec_fs_roce.c | 46 struct mlx5_devcom_comp_dev **devcom; member in struct:mlx5_ipsec_fs 385 if (!mlx5_devcom_for_each_peer_begin(*ipsec_roce->devcom)) 388 peer_priv = mlx5_devcom_get_next_peer_data(*ipsec_roce->devcom, &tmp); 408 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); 417 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); 454 if (!mlx5_devcom_for_each_peer_begin(*ipsec_roce->devcom)) 457 peer_priv = mlx5_devcom_get_next_peer_data(*ipsec_roce->devcom, &tmp); 537 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); 552 mlx5_devcom_for_each_peer_end(*ipsec_roce->devcom); 578 if (!mlx5_devcom_for_each_peer_begin(*ipsec_roce->devcom)) 835 mlx5_ipsec_fs_roce_init(struct mlx5_core_dev *mdev, struct mlx5_devcom_comp_dev **devcom) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | mpesw.c | 132 struct mlx5_devcom_comp_dev *devcom; local 135 devcom = mlx5_lag_get_devcom_comp(ldev); 136 if (!devcom) 139 mlx5_devcom_comp_lock(devcom); 152 mlx5_devcom_comp_unlock(devcom);
|
H A D | lag.c | 38 #include "lib/devcom.h" 949 * devcom component, and as all the mdevs use the same devcom component we are 950 * guaranteed that the devcom is valid while the calling work is running. 954 struct mlx5_devcom_comp_dev *devcom = NULL; local 960 devcom = ldev->pf[i].dev->priv.hca_devcom_comp; 965 return devcom; 978 struct mlx5_devcom_comp_dev *devcom; local 981 devcom = mlx5_lag_get_devcom_comp(ldev); 982 if (!devcom) [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec.h | 41 #include "lib/devcom.h" 310 int mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec, struct mlx5_devcom_comp_dev **devcom);
|
H A D | ipsec_fs.c | 2288 struct mlx5_devcom_comp_dev **devcom) 2340 ipsec->roce = mlx5_ipsec_fs_roce_init(mdev, devcom); 2416 mlx5_devcom_send_event(priv->devcom, event, event, priv); 2287 mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec, struct mlx5_devcom_comp_dev **devcom) argument
|
H A D | ipsec.c | 913 ret = mlx5e_accel_ipsec_fs_init(ipsec, &priv->devcom);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge_mcast.c | 4 #include "lib/devcom.h" 545 struct mlx5_devcom_comp_dev *devcom = port->bridge->br_offloads->esw->devcom, *pos; local 549 if (!mlx5_devcom_for_each_peer_begin(devcom)) 552 mlx5_devcom_for_each_peer_entry(devcom, tmp, pos) { 567 mlx5_devcom_for_each_peer_end(devcom);
|
H A D | bridge.c | 9 #include "lib/devcom.h" 655 struct mlx5_devcom_comp_dev *devcom = bridge->br_offloads->esw->devcom, *pos; local 659 if (!mlx5_devcom_for_each_peer_begin(devcom)) 662 mlx5_devcom_for_each_peer_entry(devcom, tmp, pos) { 678 mlx5_devcom_for_each_peer_end(devcom);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_rep.c | 53 #include "lib/devcom.h" 436 mlx5_devcom_for_each_peer_entry(esw->devcom, peer_esw, tmp) { 481 if (mlx5_devcom_comp_is_ready(esw->devcom) && 482 mlx5_devcom_for_each_peer_begin(esw->devcom)) 518 mlx5_devcom_for_each_peer_end(esw->devcom); 526 mlx5_devcom_for_each_peer_end(esw->devcom);
|
H A D | en_tc.c | 66 #include "lib/devcom.h" 1696 mlx5_devcom_for_each_peer_entry_rcu(esw->devcom, esw, pos) { 2044 struct mlx5_devcom_comp_dev *devcom = flow->priv->mdev->priv.eswitch->devcom; local 2046 if (!mlx5_devcom_for_each_peer_begin(devcom)) { 2052 mlx5_devcom_for_each_peer_end(devcom); 4250 bool esw_paired = mlx5_devcom_comp_is_ready(esw_attr->in_mdev->priv.eswitch->devcom); 4517 struct mlx5_devcom_comp_dev *devcom = priv->mdev->priv.eswitch->devcom, *pos; local 4535 if (!mlx5_devcom_for_each_peer_begin(devcom)) { [all...] |
H A D | eswitch_offloads.c | 47 #include "lib/devcom.h" 3006 mlx5_devcom_comp_set_ready(esw->devcom, true); 3016 mlx5_devcom_comp_set_ready(esw->devcom, false); 3036 mlx5_core_err(esw->dev, "esw offloads devcom event failure, event %u err %d", 3058 esw->devcom = mlx5_devcom_register_component(esw->dev->priv.devc, 3063 if (IS_ERR(esw->devcom)) 3066 mlx5_devcom_send_event(esw->devcom, 3074 if (IS_ERR_OR_NULL(esw->devcom)) 3077 mlx5_devcom_send_event(esw->devcom, 3082 mlx5_devcom_unregister_component(esw->devcom); [all...] |
H A D | Makefile | 18 lib/devcom.o lib/pci_vsc.o lib/dm.o lib/fs_ttc.o diag/fs_tracepoint.o \
|
H A D | en_main.c | 72 #include "lib/devcom.h" 189 mlx5_devcom_comp_set_ready(slave_priv->devcom, true); 207 priv->devcom = mlx5_devcom_register_component(priv->mdev->priv.devc, 212 if (IS_ERR(priv->devcom)) 213 return PTR_ERR(priv->devcom); 216 mlx5_devcom_send_event(priv->devcom, MPV_DEVCOM_MASTER_UP, 226 if (IS_ERR_OR_NULL(priv->devcom)) 230 mlx5_devcom_send_event(priv->devcom, MPV_DEVCOM_MASTER_DOWN, 235 mlx5_devcom_unregister_component(priv->devcom);
|
H A D | eswitch.h | 384 struct mlx5_devcom_comp_dev *devcom; member in struct:mlx5_eswitch
|
H A D | en.h | 951 struct mlx5_devcom_comp_dev *devcom; member in struct:mlx5e_priv
|