Searched refs:reprs (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_repr.c | 22 return rcu_dereference_protected(set->reprs[id], in nfp_repr_get_locked() 459 void nfp_reprs_clean_and_free(struct nfp_app *app, struct nfp_reprs *reprs) in nfp_reprs_clean_and_free() argument 464 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_clean_and_free() 465 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_reprs_clean_and_free() 470 kfree(reprs); in nfp_reprs_clean_and_free() 477 struct nfp_reprs *reprs; in nfp_reprs_clean_and_free_by_type() local 480 reprs = rcu_dereference_protected(app->reprs[type], in nfp_reprs_clean_and_free_by_type() 482 if (!reprs) in nfp_reprs_clean_and_free_by_type() 488 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_clean_and_free_by_type() 489 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[]; member 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.6.21/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.6.21/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()
|