Lines Matching refs:reprs
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
154 reprs = nfp_reprs_get_locked(app, rtype); in nfp_abm_kill_repr()
155 netdev = nfp_repr_get_locked(app, reprs, alink->id); in nfp_abm_kill_repr()
159 rcu_assign_pointer(reprs->reprs[alink->id], NULL); in nfp_abm_kill_repr()
446 struct nfp_reprs *reprs; in nfp_abm_init() local
496 reprs = nfp_reprs_alloc(pf->max_data_vnics); in nfp_abm_init()
497 if (!reprs) in nfp_abm_init()
499 RCU_INIT_POINTER(app->reprs[NFP_REPR_TYPE_PHYS_PORT], reprs); in nfp_abm_init()
501 reprs = nfp_reprs_alloc(pf->max_data_vnics); in nfp_abm_init()
502 if (!reprs) in nfp_abm_init()
504 RCU_INIT_POINTER(app->reprs[NFP_REPR_TYPE_PF], reprs); in nfp_abm_init()