Lines Matching refs:reprs

22 	return rcu_dereference_protected(set->reprs[id],  in nfp_repr_get_locked()
458 void nfp_reprs_clean_and_free(struct nfp_app *app, struct nfp_reprs *reprs) in nfp_reprs_clean_and_free() argument
463 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_clean_and_free()
464 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_reprs_clean_and_free()
469 kfree(reprs); in nfp_reprs_clean_and_free()
476 struct nfp_reprs *reprs; in nfp_reprs_clean_and_free_by_type() local
479 reprs = rcu_dereference_protected(app->reprs[type], in nfp_reprs_clean_and_free_by_type()
481 if (!reprs) in nfp_reprs_clean_and_free_by_type()
487 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_clean_and_free_by_type()
488 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_reprs_clean_and_free_by_type()
493 reprs = nfp_app_reprs_set(app, type, NULL); in nfp_reprs_clean_and_free_by_type()
496 nfp_reprs_clean_and_free(app, reprs); in nfp_reprs_clean_and_free_by_type()
501 struct nfp_reprs *reprs; in nfp_reprs_alloc() local
503 reprs = kzalloc(struct_size(reprs, reprs, num_reprs), GFP_KERNEL); in nfp_reprs_alloc()
504 if (!reprs) in nfp_reprs_alloc()
506 reprs->num_reprs = num_reprs; in nfp_reprs_alloc()
508 return reprs; in nfp_reprs_alloc()
514 struct nfp_reprs *reprs; in nfp_reprs_resync_phys_ports() local
518 reprs = nfp_reprs_get_locked(app, NFP_REPR_TYPE_PHYS_PORT); in nfp_reprs_resync_phys_ports()
519 if (!reprs) in nfp_reprs_resync_phys_ports()
522 for (i = 0; i < reprs->num_reprs; i++) { in nfp_reprs_resync_phys_ports()
523 netdev = nfp_repr_get_locked(app, reprs, i); in nfp_reprs_resync_phys_ports()
533 rcu_assign_pointer(reprs->reprs[i], NULL); in nfp_reprs_resync_phys_ports()