Home
last modified time | relevance | path

Searched refs:reprs (Results 1 – 7 of 7) sorted by relevance

/drivers/net/ethernet/netronome/nfp/
Dnfp_net_repr.c22 return rcu_dereference_protected(set->reprs[id], in nfp_repr_get_locked()
456 void nfp_reprs_clean_and_free(struct nfp_app *app, struct nfp_reprs *reprs) in nfp_reprs_clean_and_free() argument
461 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_clean_and_free()
462 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_reprs_clean_and_free()
467 kfree(reprs); in nfp_reprs_clean_and_free()
474 struct nfp_reprs *reprs; in nfp_reprs_clean_and_free_by_type() local
477 reprs = rcu_dereference_protected(app->reprs[type], in nfp_reprs_clean_and_free_by_type()
479 if (!reprs) in nfp_reprs_clean_and_free_by_type()
485 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_clean_and_free_by_type()
486 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_reprs_clean_and_free_by_type()
[all …]
Dnfp_app.c123 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()
Dnfp_net_repr.h21 struct net_device __rcu *reprs[]; member
104 void nfp_reprs_clean_and_free(struct nfp_app *app, struct nfp_reprs *reprs);
Dnfp_app.h168 struct nfp_reprs __rcu *reprs[NFP_REPR_TYPE_MAX + 1]; member
421 struct nfp_reprs *reprs);
/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c60 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 …]
/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c235 struct nfp_reprs *reprs; in nfp_flower_dev_get() local
251 reprs = rcu_dereference(app->reprs[repr_type]); in nfp_flower_dev_get()
252 if (!reprs) in nfp_flower_dev_get()
255 if (port >= reprs->num_reprs) in nfp_flower_dev_get()
258 return rcu_dereference(reprs->reprs[port]); in nfp_flower_dev_get()
265 struct nfp_reprs *reprs; in nfp_flower_reprs_reify() local
268 reprs = rcu_dereference_protected(app->reprs[type], in nfp_flower_reprs_reify()
270 if (!reprs) in nfp_flower_reprs_reify()
273 for (i = 0; i < reprs->num_reprs; i++) { in nfp_flower_reprs_reify()
276 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_flower_reprs_reify()
[all …]
Dqos_conf.c250 repr_set = rcu_dereference(fl_priv->app->reprs[NFP_REPR_TYPE_VF]); in nfp_flower_stats_rlim_request_all()
257 netdev = rcu_dereference(repr_set->reprs[i]); in nfp_flower_stats_rlim_request_all()