NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_pcc_dev_utils.h File Reference
#include <dpaintrin.h>
#include <doca_pcc_dev_common.h>
Include dependency graph for doca_pcc_dev_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DOCA_DPA_DEVICE
 declares that we are compiling for the DPA Device More...
 
#define doca_pcc_dev_fxp_recip(a_fp)   __dpa_fxp_rcp(a_fp)
 fixed point 16b reciprocal More...
 
#define doca_pcc_dev_fxp_power2(a_fp)   __dpa_fxp_pow2(a_fp)
 fixed point 16b power of 2 More...
 
#define doca_pcc_dev_fxp_log2(a_fp)   __dpa_fxp_log2(a_fp)
 fixed point 16b log 2 More...
 
#define doca_pcc_dev_fls(a)   (32 - __builtin_clz(a))
 32b find last set More...
 
#define doca_pcc_dev_mult(a, b)   ((uint64_t)(a) * (uint64_t)(b))
 mult wrapper More...
 
#define doca_pcc_dev_fxp_mult(a, b)   ((uint32_t)((doca_pcc_dev_mult((a), (b)) >> 16) & 0xffffffff))
 fixed point 16b mult More...
 
#define doca_pcc_dev_fence_all()   __dpa_thread_fence(__DPA_SYSTEM, __DPA_RW, __DPA_RW)
 fence all More...
 
#define doca_pcc_dev_fence_memory()   __dpa_thread_fence(__DPA_MEMORY, __DPA_RW, __DPA_RW)
 fence memory operations More...
 
#define doca_pcc_dev_fence_io()   __dpa_thread_fence(__DPA_MMIO, __DPA_RW, __DPA_RW)
 fence io operations More...
 
#define doca_pcc_dev_fence_w_r()   __dpa_thread_fence(__DPA_MEMORY, __DPA_W, __DPA_R)
 fence w/r More...
 
#define doca_pcc_dev_get_thread_time()   __dpa_thread_time()
 return 1usec tick count More...
 

Functions

DOCA_STABLE FORCE_INLINE uint32_t doca_pcc_dev_get_timer_lo (void)
 Core timer access (elapsed time in uSec) function 32 bits. More...
 
DOCA_STABLE FORCE_INLINE uint64_t doca_pcc_dev_get_timer (void)
 Core timer access (elapsed time in uSec) function 64 bits. More...