Lines Matching refs:reprs
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()
387 struct nfp_reprs *reprs; in nfp_flower_spawn_vnic_reprs() local
394 reprs = nfp_reprs_alloc(cnt); in nfp_flower_spawn_vnic_reprs()
395 if (!reprs) in nfp_flower_spawn_vnic_reprs()
453 RCU_INIT_POINTER(reprs->reprs[i], repr); in nfp_flower_spawn_vnic_reprs()
459 nfp_app_reprs_set(app, repr_type, reprs); in nfp_flower_spawn_vnic_reprs()
475 reprs = nfp_app_reprs_set(app, repr_type, NULL); in nfp_flower_spawn_vnic_reprs()
477 nfp_reprs_clean_and_free(app, reprs); in nfp_flower_spawn_vnic_reprs()
501 struct nfp_reprs *reprs; in nfp_flower_spawn_phy_reprs() local
509 reprs = nfp_reprs_alloc(eth_tbl->max_index + 1); in nfp_flower_spawn_phy_reprs()
510 if (!reprs) { in nfp_flower_spawn_phy_reprs()
571 RCU_INIT_POINTER(reprs->reprs[phys_port], repr); in nfp_flower_spawn_phy_reprs()
576 nfp_app_reprs_set(app, NFP_REPR_TYPE_PHYS_PORT, reprs); in nfp_flower_spawn_phy_reprs()
601 reprs = nfp_app_reprs_set(app, NFP_REPR_TYPE_PHYS_PORT, NULL); in nfp_flower_spawn_phy_reprs()
603 nfp_reprs_clean_and_free(app, reprs); in nfp_flower_spawn_phy_reprs()