The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/qat/qat_api/common/crypto/sym/lac_sym_compile_check.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /***************************************************************************
    2  *
    3  * <COPYRIGHT_TAG>
    4  *
    5  ***************************************************************************/
    6 
    7 /**
    8  ***************************************************************************
    9  * @file lac_sym_compile_check.c
   10  *
   11  * @ingroup LacSym
   12  *
   13  * This file checks at compile time that some assumptions about the layout
   14  * of key structures are as expected.
   15  *
   16  *
   17  ***************************************************************************/
   18 
   19 #include "cpa.h"
   20 
   21 #include "lac_common.h"
   22 #include "icp_accel_devices.h"
   23 #include "icp_adf_debug.h"
   24 #include "lac_sym.h"
   25 #include "cpa_cy_sym_dp.h"
   26 
   27 #define COMPILE_TIME_ASSERT(pred)                                              \
   28         switch (0) {                                                           \
   29         case 0:                                                                \
   30         case pred:;                                                            \
   31         }
   32 
   33 void
   34 LacSym_CompileTimeAssertions(void)
   35 {
   36         /* *************************************************************
   37          * Check sessionCtx is at the same location in bulk cookie and
   38          * CpaCySymDpOpData.
   39          * This is required for the callbacks to work as expected -
   40          * see LacSymCb_ProcessCallback
   41          * ************************************************************* */
   42 
   43         COMPILE_TIME_ASSERT(offsetof(lac_sym_bulk_cookie_t, sessionCtx) ==
   44                             offsetof(CpaCySymDpOpData, sessionCtx));
   45 }

Cache object: fe24d9be59d3f95a452561ef37897ccc


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.