Searched refs:reprs (Results 1 – 12 of 12) sorted by relevance
| /linux-6.15/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_repr.c | 469 kfree(reprs); in nfp_reprs_clean_and_free() 476 struct nfp_reprs *reprs; in nfp_reprs_clean_and_free_by_type() local 479 reprs = rcu_dereference_protected(app->reprs[type], in nfp_reprs_clean_and_free_by_type() 481 if (!reprs) in nfp_reprs_clean_and_free_by_type() 501 struct nfp_reprs *reprs; in nfp_reprs_alloc() local 503 reprs = kzalloc(struct_size(reprs, reprs, num_reprs), GFP_KERNEL); in nfp_reprs_alloc() 504 if (!reprs) in nfp_reprs_alloc() 508 return reprs; in nfp_reprs_alloc() 514 struct nfp_reprs *reprs; in nfp_reprs_resync_phys_ports() local 519 if (!reprs) in nfp_reprs_resync_phys_ports() [all …]
|
| H A D | nfp_app.c | 123 return rcu_dereference_protected(app->reprs[type], in nfp_reprs_get_locked() 129 struct nfp_reprs *reprs) in nfp_app_reprs_set() argument 135 rcu_assign_pointer(app->reprs[type], reprs); in nfp_app_reprs_set() 154 struct nfp_reprs *reprs; in nfp_app_netdev_feat_change() local 157 reprs = rtnl_dereference(app->reprs[type]); in nfp_app_netdev_feat_change() 158 if (!reprs) in nfp_app_netdev_feat_change() 161 for (i = 0; i < reprs->num_reprs; i++) { in nfp_app_netdev_feat_change() 164 repr = rtnl_dereference(reprs->reprs[i]); in nfp_app_netdev_feat_change()
|
| H A D | nfp_net_repr.h | 21 struct net_device __rcu *reprs[] __counted_by(num_reprs); 104 void nfp_reprs_clean_and_free(struct nfp_app *app, struct nfp_reprs *reprs);
|
| H A D | nfp_app.h | 167 struct nfp_reprs __rcu *reprs[NFP_REPR_TYPE_MAX + 1]; member 430 struct nfp_reprs *reprs);
|
| /linux-6.15/drivers/net/ethernet/netronome/nfp/abm/ |
| H A D | main.c | 60 struct nfp_reprs *reprs; in nfp_abm_repr_get() local 66 reprs = rcu_dereference(app->reprs[rtype]); in nfp_abm_repr_get() 67 if (!reprs) in nfp_abm_repr_get() 73 return rcu_dereference(reprs->reprs[port]); in nfp_abm_repr_get() 82 struct nfp_reprs *reprs; in nfp_abm_spawn_repr() local 131 rcu_assign_pointer(reprs->reprs[alink->id], netdev); in nfp_abm_spawn_repr() 159 rcu_assign_pointer(reprs->reprs[alink->id], NULL); in nfp_abm_kill_repr() 497 if (!reprs) in nfp_abm_init() 499 RCU_INIT_POINTER(app->reprs[NFP_REPR_TYPE_PHYS_PORT], reprs); in nfp_abm_init() 502 if (!reprs) in nfp_abm_init() [all …]
|
| /linux-6.15/drivers/net/ethernet/netronome/nfp/flower/ |
| H A D | main.c | 244 struct nfp_reprs *reprs; in nfp_flower_dev_get() local 260 reprs = rcu_dereference(app->reprs[repr_type]); in nfp_flower_dev_get() 261 if (!reprs) in nfp_flower_dev_get() 267 return rcu_dereference(reprs->reprs[port]); in nfp_flower_dev_get() 274 struct nfp_reprs *reprs; in nfp_flower_reprs_reify() local 277 reprs = rcu_dereference_protected(app->reprs[type], in nfp_flower_reprs_reify() 279 if (!reprs) in nfp_flower_reprs_reify() 395 if (!reprs) in nfp_flower_spawn_vnic_reprs() 453 RCU_INIT_POINTER(reprs->reprs[i], repr); in nfp_flower_spawn_vnic_reprs() 510 if (!reprs) { in nfp_flower_spawn_phy_reprs() [all …]
|
| H A D | qos_conf.c | 422 repr_set = rcu_dereference(fl_priv->app->reprs[NFP_REPR_TYPE_VF]); in nfp_flower_stats_rlim_request_all() 429 netdev = rcu_dereference(repr_set->reprs[i]); in nfp_flower_stats_rlim_request_all()
|
| /linux-6.15/drivers/net/ethernet/intel/ice/ |
| H A D | ice_eswitch.c | 184 repr = xa_load(&pf->eswitch.reprs, *repr_id); in ice_eswitch_update_repr() 201 xa_erase(&pf->eswitch.reprs, repr->id); in ice_eswitch_update_repr() 355 xa_destroy(&pf->eswitch.reprs); in ice_eswitch_mode_set() 368 xa_init(&pf->eswitch.reprs); in ice_eswitch_mode_set() 418 xa_for_each(&pf->eswitch.reprs, id, repr) in ice_eswitch_start_all_tx_queues() 434 xa_for_each(&pf->eswitch.reprs, id, repr) in ice_eswitch_stop_all_tx_queues() 456 if (xa_empty(&pf->eswitch.reprs)) { in ice_eswitch_attach() 487 if (xa_empty(&pf->eswitch.reprs)) in ice_eswitch_attach() 550 xa_erase(&pf->eswitch.reprs, repr->id); in ice_eswitch_detach() 552 if (xa_empty(&pf->eswitch.reprs)) in ice_eswitch_detach() [all …]
|
| H A D | ice_repr.c | 520 return xa_load(&pf->eswitch.reprs, id); in ice_repr_get()
|
| H A D | ice.h | 529 struct xarray reprs; member
|
| H A D | ice_lag.c | 1019 xa_for_each(&lag->pf->eswitch.reprs, id, repr) in ice_lag_config_eswitch()
|
| H A D | ice_main.c | 4854 xa_destroy(&pf->eswitch.reprs); in ice_deinit_features()
|