Searched refs:reprs (Results 1 – 11 of 11) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_repr.c | 22 return rcu_dereference_protected(set->reprs[id], in nfp_repr_get_locked() 458 void nfp_reprs_clean_and_free(struct nfp_app *app, struct nfp_reprs *reprs) in nfp_reprs_clean_and_free() argument 463 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_clean_and_free() 464 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_reprs_clean_and_free() 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() 487 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_clean_and_free_by_type() 488 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_reprs_clean_and_free_by_type() [all …]
|
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()
|
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);
|
D | nfp_app.h | 167 struct nfp_reprs __rcu *reprs[NFP_REPR_TYPE_MAX + 1]; member 430 struct nfp_reprs *reprs);
|
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/abm/ |
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() 70 if (port >= reprs->num_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 128 reprs = nfp_reprs_get_locked(app, rtype); in nfp_abm_spawn_repr() 129 WARN(nfp_repr_get_locked(app, reprs, alink->id), "duplicate repr"); in nfp_abm_spawn_repr() 131 rcu_assign_pointer(reprs->reprs[alink->id], netdev); in nfp_abm_spawn_repr() 152 struct nfp_reprs *reprs; in nfp_abm_kill_repr() local [all …]
|
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/flower/ |
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() 264 if (port >= reprs->num_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() 282 for (i = 0; i < reprs->num_reprs; i++) { in nfp_flower_reprs_reify() 285 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_flower_reprs_reify() [all …]
|
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.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_eswitch.c | 190 repr = xa_load(&pf->eswitch.reprs, *repr_id); in ice_eswitch_update_repr() 207 xa_erase(&pf->eswitch.reprs, repr->id); in ice_eswitch_update_repr() 209 if (xa_insert(&pf->eswitch.reprs, repr->id, repr, GFP_KERNEL)) in ice_eswitch_update_repr() 362 xa_destroy(&pf->eswitch.reprs); in ice_eswitch_mode_set() 375 xa_init(&pf->eswitch.reprs); in ice_eswitch_mode_set() 425 xa_for_each(&pf->eswitch.reprs, id, repr) in ice_eswitch_start_all_tx_queues() 441 xa_for_each(&pf->eswitch.reprs, id, repr) in ice_eswitch_stop_all_tx_queues() 463 if (xa_empty(&pf->eswitch.reprs)) { in ice_eswitch_attach() 479 err = xa_insert(&pf->eswitch.reprs, repr->id, repr, GFP_KERNEL); in ice_eswitch_attach() 494 if (xa_empty(&pf->eswitch.reprs)) in ice_eswitch_attach() [all …]
|
D | ice_repr.c | 520 return xa_load(&pf->eswitch.reprs, id); in ice_repr_get()
|
D | ice.h | 537 struct xarray reprs; member
|
D | ice_main.c | 4883 xa_destroy(&pf->eswitch.reprs); in ice_deinit_features()
|