• Home
  • Raw
  • Download

Lines Matching refs:reprs

235 	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()
378 struct nfp_reprs *reprs; in nfp_flower_spawn_vnic_reprs() local
385 reprs = nfp_reprs_alloc(cnt); in nfp_flower_spawn_vnic_reprs()
386 if (!reprs) in nfp_flower_spawn_vnic_reprs()
444 RCU_INIT_POINTER(reprs->reprs[i], repr); in nfp_flower_spawn_vnic_reprs()
450 nfp_app_reprs_set(app, repr_type, reprs); in nfp_flower_spawn_vnic_reprs()
466 reprs = nfp_app_reprs_set(app, repr_type, NULL); in nfp_flower_spawn_vnic_reprs()
468 nfp_reprs_clean_and_free(app, reprs); in nfp_flower_spawn_vnic_reprs()
492 struct nfp_reprs *reprs; in nfp_flower_spawn_phy_reprs() local
500 reprs = nfp_reprs_alloc(eth_tbl->max_index + 1); in nfp_flower_spawn_phy_reprs()
501 if (!reprs) { in nfp_flower_spawn_phy_reprs()
562 RCU_INIT_POINTER(reprs->reprs[phys_port], repr); in nfp_flower_spawn_phy_reprs()
567 nfp_app_reprs_set(app, NFP_REPR_TYPE_PHYS_PORT, reprs); in nfp_flower_spawn_phy_reprs()
592 reprs = nfp_app_reprs_set(app, NFP_REPR_TYPE_PHYS_PORT, NULL); in nfp_flower_spawn_phy_reprs()
594 nfp_reprs_clean_and_free(app, reprs); in nfp_flower_spawn_phy_reprs()