src/dpdk/drivers/net/nfp/nfpcore/nfp_cppcore.c
int
nfp_cpp_area_check_range(struct nfp_cpp_area *area, unsigned long long offset,
			 unsigned long length)
{
	if (((offset + length) > area->size))
		return NFP_ERRNO(EFAULT);

	return 0;
}
/*
 * nfp_cpp_area_check_range - check if address range fits in CPP area
 *
 * @area:   CPP area handle
 * @offset: offset into CPP area
 * @length: size of address range in bytes
 *
 * Check if address range fits within CPP area.  Return 0 if area fits
 * or -1 on error.
 */
check if address range fits in CPP area
@area:   CPP area handle
@offset: offset into CPP area
@length: size of address range in bytes

Check if address range fits within CPP area.  Return 0 if area fits
or -1 on error.
check if address range fits in CPP area @area : CPP area handle @offset : offset into CPP area @length : size of address range in bytes Check if address range fits within CPP area . Return 0 if area fits or - 1 on error .
int
nfp_cpp_area_check_range(struct nfp_cpp_area *area, unsigned long long offset,
			 unsigned long length)
{
	if (((offset + length) > area->size))
		return NFP_ERRNO(EFAULT);
	return 0;
}
int nfp_cpp_area_check_range ( struct nfp_cpp_area * area , unsigned long long offset , unsigned long length ) { if ( ( ( offset + length ) > area -> size ) ) return NFP_ERRNO ( EFAULT ) ; return 0 ; }
nfp_cpp_area_check_range - check if address range fits in CPP area
 @area:   CPP area handle
 @offset: offset into CPP area
 @length: size of address range in bytes
nfp_cpp_area_check_range - check if address range fits in CPP area @area : CPP area handle @offset : offset into CPP area @length : size of address range in bytes