src/dpdk/drivers/net/nfp/nfpcore/nfp_cppcore.c
struct nfp_cpp_area *
nfp_cpp_area_alloc_acquire(struct nfp_cpp *cpp, uint32_t destination,
			    unsigned long long address, unsigned long size)
{
	struct nfp_cpp_area *area;

	area = nfp_cpp_area_alloc(cpp, destination, address, size);
	if (!area)
		return NULL;

	if (nfp_cpp_area_acquire(area)) {
		nfp_cpp_area_free(area);
		return NULL;
	}

	return area;
}
/*
 * nfp_cpp_area_alloc_acquire - allocate a new CPP area and lock it down
 *
 * @cpp:    CPP handle
 * @dest:   CPP id
 * @address:    start address on CPP target
 * @size:   size of area
 *
 * Allocate and initilizae a CPP area structure, and lock it down so
 * that it can be accessed directly.
 *
 * NOTE: @address and @size must be 32-bit aligned values.
 *
 * NOTE: The area must also be 'released' when the structure is freed.
 */
allocate a new CPP area and lock it down
@cpp:    CPP handle
@dest:   CPP id
@address:    start address on CPP target
@size:   size of area

Allocate and initilizae a CPP area structure, and lock it down so
that it can be accessed directly.

@address and @size must be 32-bit aligned values.

The area must also be 'released' when the structure is freed.
allocate a new CPP area and lock it down @cpp : CPP handle @dest : CPP id @address : start address on CPP target @size : size of area Allocate and initilizae a CPP area structure and lock it down so that it can be accessed directly . @address and @size must be 32 - bit aligned values . The area must also be ' released ' when the structure is freed .
struct nfp_cpp_area *
nfp_cpp_area_alloc_acquire(struct nfp_cpp *cpp, uint32_t destination,
			    unsigned long long address, unsigned long size)
{
	struct nfp_cpp_area *area;
	area = nfp_cpp_area_alloc(cpp, destination, address, size);
	if (!area)
		return NULL;
	if (nfp_cpp_area_acquire(area)) {
		nfp_cpp_area_free(area);
		return NULL;
	}
	return area;
}
struct nfp_cpp_area * nfp_cpp_area_alloc_acquire ( struct nfp_cpp * cpp , uint32_t destination , unsigned long long address , unsigned long size ) { struct nfp_cpp_area * area ; area = nfp_cpp_area_alloc ( cpp , destination , address , size ) ; if ( ! area ) return NULL ; if ( nfp_cpp_area_acquire ( area ) ) { nfp_cpp_area_free ( area ) ; return NULL ; } return area ; }
nfp_cpp_area_alloc_acquire - allocate a new CPP area and lock it down
 @cpp:    CPP handle
 @dest:   CPP id
 @address:    start address on CPP target
 @size:   size of area
nfp_cpp_area_alloc_acquire - allocate a new CPP area and lock it down @cpp : CPP handle @dest : CPP id @address : start address on CPP target @size : size of area