Skip to main content

rdmaxcel_sys/meta-pytorch/monarch/target/debug/build/rdmaxcel-sys-eb3830673a88df4e/out/
bindings.rs

1/* automatically generated by rust-bindgen 0.72.1 */
2
3# [repr (C)] # [derive (Default)] pub struct __IncompleteArrayField < T > (:: std :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: std :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: std :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: std :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: std :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: std :: fmt :: Formatter < '_ >) -> :: std :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const CU_IPC_HANDLE_SIZE : u32 = 64 ; pub const CU_COMPUTE_ACCELERATED_TARGET_BASE : u32 = 65536 ; pub const CU_COMPUTE_FAMILY_TARGET_BASE : u32 = 131072 ; pub const CU_GRAPH_COND_ASSIGN_DEFAULT : u32 = 1 ; pub const CU_GRAPH_KERNEL_NODE_PORT_DEFAULT : u32 = 0 ; pub const CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC : u32 = 1 ; pub const CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER : u32 = 2 ; pub const CU_MEMHOSTALLOC_PORTABLE : u32 = 1 ; pub const CU_MEMHOSTALLOC_DEVICEMAP : u32 = 2 ; pub const CU_MEMHOSTALLOC_WRITECOMBINED : u32 = 4 ; pub const CU_MEMHOSTREGISTER_PORTABLE : u32 = 1 ; pub const CU_MEMHOSTREGISTER_DEVICEMAP : u32 = 2 ; pub const CU_MEMHOSTREGISTER_IOMEMORY : u32 = 4 ; pub const CU_MEMHOSTREGISTER_READ_ONLY : u32 = 8 ; pub const CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL : u32 = 1 ; pub const CU_TENSOR_MAP_NUM_QWORDS : u32 = 16 ; pub const CU_MEM_CREATE_USAGE_TILE_POOL : u32 = 1 ; pub const CU_MEM_CREATE_USAGE_HW_DECOMPRESS : u32 = 2 ; pub const CU_MEM_POOL_CREATE_USAGE_HW_DECOMPRESS : u32 = 2 ; pub const CU_TRSA_OVERRIDE_FORMAT : u32 = 1 ; pub const CU_TRSF_READ_AS_INTEGER : u32 = 1 ; pub const CU_TRSF_NORMALIZED_COORDINATES : u32 = 2 ; pub const CU_TRSF_SRGB : u32 = 16 ; pub const CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION : u32 = 32 ; pub const CU_TRSF_SEAMLESS_CUBEMAP : u32 = 64 ; pub const CU_LAUNCH_KERNEL_REQUIRED_BLOCK_DIM : u32 = 1 ; pub const CU_LAUNCH_PARAM_END_AS_INT : u32 = 0 ; pub const CU_LAUNCH_PARAM_BUFFER_POINTER_AS_INT : u32 = 1 ; pub const CU_LAUNCH_PARAM_BUFFER_SIZE_AS_INT : u32 = 2 ; pub const CU_PARAM_TR_DEFAULT : i32 = - 1 ; pub const IBV_ACCESS_OPTIONAL_FIRST : u32 = 1048576 ; pub const IBV_DEVICE_RAW_SCATTER_FCS : u64 = 17179869184 ; pub const IBV_DEVICE_PCI_WRITE_END_PADDING : u64 = 68719476736 ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type off_t = __off_t ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: std :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: std :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: std :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: std :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: std :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: std :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: std :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; impl Default for __pthread_internal_list { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __elision : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: std :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: std :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__elision"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __elision) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: std :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; impl Default for __pthread_mutex_s { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __bindgen_anon_1 : __pthread_cond_s__bindgen_ty_1 , pub __bindgen_anon_2 : __pthread_cond_s__bindgen_ty_2 , pub __glibc_unused___g_refs : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , } # [repr (C)] # [derive (Copy , Clone)] pub union __pthread_cond_s__bindgen_ty_1 { pub __wseq : :: std :: os :: raw :: c_ulonglong , pub __wseq32 : __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Alignment of __pthread_cond_s__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__pthread_cond_s__bindgen_ty_1__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__pthread_cond_s__bindgen_ty_1__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s__bindgen_ty_1"] [:: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_1 > () - 8usize] ; ["Alignment of __pthread_cond_s__bindgen_ty_1"] [:: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_1 > () - 8usize] ; ["Offset of field: __pthread_cond_s__bindgen_ty_1::__wseq"] [:: std :: mem :: offset_of ! (__pthread_cond_s__bindgen_ty_1 , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s__bindgen_ty_1::__wseq32"] [:: std :: mem :: offset_of ! (__pthread_cond_s__bindgen_ty_1 , __wseq32) - 0usize] ; } ; impl Default for __pthread_cond_s__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub union __pthread_cond_s__bindgen_ty_2 { pub __g1_start : :: std :: os :: raw :: c_ulonglong , pub __g1_start32 : __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s__bindgen_ty_2__bindgen_ty_1"] [:: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > () - 8usize] ; ["Alignment of __pthread_cond_s__bindgen_ty_2__bindgen_ty_1"] [:: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1::__low"] [:: std :: mem :: offset_of ! (__pthread_cond_s__bindgen_ty_2__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1::__high"] [:: std :: mem :: offset_of ! (__pthread_cond_s__bindgen_ty_2__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s__bindgen_ty_2"] [:: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_2 > () - 8usize] ; ["Alignment of __pthread_cond_s__bindgen_ty_2"] [:: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_2 > () - 8usize] ; ["Offset of field: __pthread_cond_s__bindgen_ty_2::__g1_start"] [:: std :: mem :: offset_of ! (__pthread_cond_s__bindgen_ty_2 , __g1_start) - 0usize] ; ["Offset of field: __pthread_cond_s__bindgen_ty_2::__g1_start32"] [:: std :: mem :: offset_of ! (__pthread_cond_s__bindgen_ty_2 , __g1_start32) - 0usize] ; } ; impl Default for __pthread_cond_s__bindgen_ty_2 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: std :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: std :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__glibc_unused___g_refs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __glibc_unused___g_refs) - 16usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 32usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 36usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: std :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 40usize] ; } ; impl Default for __pthread_cond_s { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: std :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: std :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: std :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; impl Default for pthread_mutex_t { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: std :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: std :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: std :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: std :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: std :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; impl Default for pthread_cond_t { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub type CUdeviceptr_v2 = :: std :: os :: raw :: c_ulonglong ; pub type CUdeviceptr = CUdeviceptr_v2 ; pub type CUdevice_v1 = :: std :: os :: raw :: c_int ; pub type CUdevice = CUdevice_v1 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CUctx_st { _unused : [u8 ; 0] , } pub type CUcontext = * mut CUctx_st ; # [doc = "< Maximum number of threads per block"] pub const CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK : CUdevice_attribute_enum = 1 ; # [doc = "< Maximum block dimension X"] pub const CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X : CUdevice_attribute_enum = 2 ; # [doc = "< Maximum block dimension Y"] pub const CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y : CUdevice_attribute_enum = 3 ; # [doc = "< Maximum block dimension Z"] pub const CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z : CUdevice_attribute_enum = 4 ; # [doc = "< Maximum grid dimension X"] pub const CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X : CUdevice_attribute_enum = 5 ; # [doc = "< Maximum grid dimension Y"] pub const CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y : CUdevice_attribute_enum = 6 ; # [doc = "< Maximum grid dimension Z"] pub const CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z : CUdevice_attribute_enum = 7 ; # [doc = "< Maximum shared memory available per block in bytes"] pub const CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK : CUdevice_attribute_enum = 8 ; # [doc = "< Deprecated, use CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK"] pub const CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK : CUdevice_attribute_enum = 8 ; # [doc = "< Memory available on device for __constant__ variables in a CUDA C kernel in bytes"] pub const CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY : CUdevice_attribute_enum = 9 ; # [doc = "< Warp size in threads"] pub const CU_DEVICE_ATTRIBUTE_WARP_SIZE : CUdevice_attribute_enum = 10 ; # [doc = "< Maximum pitch in bytes allowed by memory copies"] pub const CU_DEVICE_ATTRIBUTE_MAX_PITCH : CUdevice_attribute_enum = 11 ; # [doc = "< Maximum number of 32-bit registers available per block"] pub const CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK : CUdevice_attribute_enum = 12 ; # [doc = "< Deprecated, use CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK"] pub const CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK : CUdevice_attribute_enum = 12 ; # [doc = "< Typical clock frequency in kilohertz"] pub const CU_DEVICE_ATTRIBUTE_CLOCK_RATE : CUdevice_attribute_enum = 13 ; # [doc = "< Alignment requirement for textures"] pub const CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT : CUdevice_attribute_enum = 14 ; # [doc = "< Device can possibly copy memory and execute a kernel concurrently. Deprecated. Use instead CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT."] pub const CU_DEVICE_ATTRIBUTE_GPU_OVERLAP : CUdevice_attribute_enum = 15 ; # [doc = "< Number of multiprocessors on device"] pub const CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT : CUdevice_attribute_enum = 16 ; # [doc = "< Specifies whether there is a run time limit on kernels"] pub const CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT : CUdevice_attribute_enum = 17 ; # [doc = "< Device is integrated with host memory"] pub const CU_DEVICE_ATTRIBUTE_INTEGRATED : CUdevice_attribute_enum = 18 ; # [doc = "< Device can map host memory into CUDA address space"] pub const CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY : CUdevice_attribute_enum = 19 ; # [doc = "< Compute mode (See ::CUcomputemode for details)"] pub const CU_DEVICE_ATTRIBUTE_COMPUTE_MODE : CUdevice_attribute_enum = 20 ; # [doc = "< Maximum 1D texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH : CUdevice_attribute_enum = 21 ; # [doc = "< Maximum 2D texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH : CUdevice_attribute_enum = 22 ; # [doc = "< Maximum 2D texture height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT : CUdevice_attribute_enum = 23 ; # [doc = "< Maximum 3D texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH : CUdevice_attribute_enum = 24 ; # [doc = "< Maximum 3D texture height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT : CUdevice_attribute_enum = 25 ; # [doc = "< Maximum 3D texture depth"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH : CUdevice_attribute_enum = 26 ; # [doc = "< Maximum 2D layered texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH : CUdevice_attribute_enum = 27 ; # [doc = "< Maximum 2D layered texture height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT : CUdevice_attribute_enum = 28 ; # [doc = "< Maximum layers in a 2D layered texture"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_LAYERS : CUdevice_attribute_enum = 29 ; # [doc = "< Deprecated, use CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH : CUdevice_attribute_enum = 27 ; # [doc = "< Deprecated, use CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT : CUdevice_attribute_enum = 28 ; # [doc = "< Deprecated, use CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_LAYERS"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES : CUdevice_attribute_enum = 29 ; # [doc = "< Alignment requirement for surfaces"] pub const CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT : CUdevice_attribute_enum = 30 ; # [doc = "< Device can possibly execute multiple kernels concurrently"] pub const CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS : CUdevice_attribute_enum = 31 ; # [doc = "< Device has ECC support enabled"] pub const CU_DEVICE_ATTRIBUTE_ECC_ENABLED : CUdevice_attribute_enum = 32 ; # [doc = "< PCI bus ID of the device"] pub const CU_DEVICE_ATTRIBUTE_PCI_BUS_ID : CUdevice_attribute_enum = 33 ; # [doc = "< PCI device ID of the device"] pub const CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID : CUdevice_attribute_enum = 34 ; # [doc = "< Device is using TCC driver model"] pub const CU_DEVICE_ATTRIBUTE_TCC_DRIVER : CUdevice_attribute_enum = 35 ; # [doc = "< Peak memory clock frequency in kilohertz"] pub const CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE : CUdevice_attribute_enum = 36 ; # [doc = "< Global memory bus width in bits"] pub const CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH : CUdevice_attribute_enum = 37 ; # [doc = "< Size of L2 cache in bytes"] pub const CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE : CUdevice_attribute_enum = 38 ; # [doc = "< Maximum resident threads per multiprocessor"] pub const CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR : CUdevice_attribute_enum = 39 ; # [doc = "< Number of asynchronous engines"] pub const CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT : CUdevice_attribute_enum = 40 ; # [doc = "< Device shares a unified address space with the host"] pub const CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING : CUdevice_attribute_enum = 41 ; # [doc = "< Maximum 1D layered texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH : CUdevice_attribute_enum = 42 ; # [doc = "< Maximum layers in a 1D layered texture"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_LAYERS : CUdevice_attribute_enum = 43 ; # [doc = "< Deprecated, do not use."] pub const CU_DEVICE_ATTRIBUTE_CAN_TEX2D_GATHER : CUdevice_attribute_enum = 44 ; # [doc = "< Maximum 2D texture width if CUDA_ARRAY3D_TEXTURE_GATHER is set"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH : CUdevice_attribute_enum = 45 ; # [doc = "< Maximum 2D texture height if CUDA_ARRAY3D_TEXTURE_GATHER is set"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT : CUdevice_attribute_enum = 46 ; # [doc = "< Alternate maximum 3D texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE : CUdevice_attribute_enum = 47 ; # [doc = "< Alternate maximum 3D texture height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE : CUdevice_attribute_enum = 48 ; # [doc = "< Alternate maximum 3D texture depth"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE : CUdevice_attribute_enum = 49 ; # [doc = "< PCI domain ID of the device"] pub const CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID : CUdevice_attribute_enum = 50 ; # [doc = "< Pitch alignment requirement for textures"] pub const CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT : CUdevice_attribute_enum = 51 ; # [doc = "< Maximum cubemap texture width/height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH : CUdevice_attribute_enum = 52 ; # [doc = "< Maximum cubemap layered texture width/height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH : CUdevice_attribute_enum = 53 ; # [doc = "< Maximum layers in a cubemap layered texture"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_LAYERS : CUdevice_attribute_enum = 54 ; # [doc = "< Maximum 1D surface width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH : CUdevice_attribute_enum = 55 ; # [doc = "< Maximum 2D surface width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH : CUdevice_attribute_enum = 56 ; # [doc = "< Maximum 2D surface height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT : CUdevice_attribute_enum = 57 ; # [doc = "< Maximum 3D surface width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH : CUdevice_attribute_enum = 58 ; # [doc = "< Maximum 3D surface height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT : CUdevice_attribute_enum = 59 ; # [doc = "< Maximum 3D surface depth"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH : CUdevice_attribute_enum = 60 ; # [doc = "< Maximum 1D layered surface width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH : CUdevice_attribute_enum = 61 ; # [doc = "< Maximum layers in a 1D layered surface"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_LAYERS : CUdevice_attribute_enum = 62 ; # [doc = "< Maximum 2D layered surface width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH : CUdevice_attribute_enum = 63 ; # [doc = "< Maximum 2D layered surface height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT : CUdevice_attribute_enum = 64 ; # [doc = "< Maximum layers in a 2D layered surface"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_LAYERS : CUdevice_attribute_enum = 65 ; # [doc = "< Maximum cubemap surface width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH : CUdevice_attribute_enum = 66 ; # [doc = "< Maximum cubemap layered surface width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH : CUdevice_attribute_enum = 67 ; # [doc = "< Maximum layers in a cubemap layered surface"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_LAYERS : CUdevice_attribute_enum = 68 ; # [doc = "< Deprecated, do not use. Use cudaDeviceGetTexture1DLinearMaxWidth() or cuDeviceGetTexture1DLinearMaxWidth() instead."] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH : CUdevice_attribute_enum = 69 ; # [doc = "< Maximum 2D linear texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH : CUdevice_attribute_enum = 70 ; # [doc = "< Maximum 2D linear texture height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT : CUdevice_attribute_enum = 71 ; # [doc = "< Maximum 2D linear texture pitch in bytes"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH : CUdevice_attribute_enum = 72 ; # [doc = "< Maximum mipmapped 2D texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH : CUdevice_attribute_enum = 73 ; # [doc = "< Maximum mipmapped 2D texture height"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT : CUdevice_attribute_enum = 74 ; # [doc = "< Major compute capability version number"] pub const CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR : CUdevice_attribute_enum = 75 ; # [doc = "< Minor compute capability version number"] pub const CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR : CUdevice_attribute_enum = 76 ; # [doc = "< Maximum mipmapped 1D texture width"] pub const CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH : CUdevice_attribute_enum = 77 ; # [doc = "< Device supports stream priorities"] pub const CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED : CUdevice_attribute_enum = 78 ; # [doc = "< Device supports caching globals in L1"] pub const CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED : CUdevice_attribute_enum = 79 ; # [doc = "< Device supports caching locals in L1"] pub const CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED : CUdevice_attribute_enum = 80 ; # [doc = "< Maximum shared memory available per multiprocessor in bytes"] pub const CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR : CUdevice_attribute_enum = 81 ; # [doc = "< Maximum number of 32-bit registers available per multiprocessor"] pub const CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR : CUdevice_attribute_enum = 82 ; # [doc = "< Device can allocate managed memory on this system"] pub const CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY : CUdevice_attribute_enum = 83 ; # [doc = "< Device is on a multi-GPU board"] pub const CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD : CUdevice_attribute_enum = 84 ; # [doc = "< Unique id for a group of devices on the same multi-GPU board"] pub const CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD_GROUP_ID : CUdevice_attribute_enum = 85 ; # [doc = "< Link between the device and the host supports all native atomic operations"] pub const CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED : CUdevice_attribute_enum = 86 ; # [doc = "< Ratio of single precision performance (in floating-point operations per second) to double precision performance"] pub const CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO : CUdevice_attribute_enum = 87 ; # [doc = "< Device supports coherently accessing pageable memory without calling cudaHostRegister on it"] pub const CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS : CUdevice_attribute_enum = 88 ; # [doc = "< Device can coherently access managed memory concurrently with the CPU"] pub const CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS : CUdevice_attribute_enum = 89 ; # [doc = "< Device supports compute preemption."] pub const CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED : CUdevice_attribute_enum = 90 ; # [doc = "< Device can access host registered memory at the same virtual address as the CPU"] pub const CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM : CUdevice_attribute_enum = 91 ; # [doc = "< Deprecated, along with v1 MemOps API, ::cuStreamBatchMemOp and related APIs are supported."] pub const CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_MEM_OPS_V1 : CUdevice_attribute_enum = 92 ; # [doc = "< Deprecated, along with v1 MemOps API, 64-bit operations are supported in ::cuStreamBatchMemOp and related APIs."] pub const CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS_V1 : CUdevice_attribute_enum = 93 ; # [doc = "< Deprecated, along with v1 MemOps API, ::CU_STREAM_WAIT_VALUE_NOR is supported."] pub const CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1 : CUdevice_attribute_enum = 94 ; # [doc = "< Device supports launching cooperative kernels via ::cuLaunchCooperativeKernel"] pub const CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH : CUdevice_attribute_enum = 95 ; # [doc = "< Deprecated, ::cuLaunchCooperativeKernelMultiDevice is deprecated."] pub const CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH : CUdevice_attribute_enum = 96 ; # [doc = "< Maximum optin shared memory per block"] pub const CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN : CUdevice_attribute_enum = 97 ; # [doc = "< The ::CU_STREAM_WAIT_VALUE_FLUSH flag and the ::CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES MemOp are supported on the device. See \\ref CUDA_MEMOP for additional details."] pub const CU_DEVICE_ATTRIBUTE_CAN_FLUSH_REMOTE_WRITES : CUdevice_attribute_enum = 98 ; # [doc = "< Device supports host memory registration via ::cudaHostRegister."] pub const CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED : CUdevice_attribute_enum = 99 ; # [doc = "< Device accesses pageable memory via the host's page tables."] pub const CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES : CUdevice_attribute_enum = 100 ; # [doc = "< The host can directly access managed memory on the device without migration."] pub const CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST : CUdevice_attribute_enum = 101 ; # [doc = "< Deprecated, Use CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED"] pub const CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED : CUdevice_attribute_enum = 102 ; # [doc = "< Device supports virtual memory management APIs like ::cuMemAddressReserve, ::cuMemCreate, ::cuMemMap and related APIs"] pub const CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED : CUdevice_attribute_enum = 102 ; # [doc = "< Device supports exporting memory to a posix file descriptor with ::cuMemExportToShareableHandle, if requested via ::cuMemCreate"] pub const CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR_SUPPORTED : CUdevice_attribute_enum = 103 ; # [doc = "< Device supports exporting memory to a Win32 NT handle with ::cuMemExportToShareableHandle, if requested via ::cuMemCreate"] pub const CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_HANDLE_SUPPORTED : CUdevice_attribute_enum = 104 ; # [doc = "< Device supports exporting memory to a Win32 KMT handle with ::cuMemExportToShareableHandle, if requested via ::cuMemCreate"] pub const CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_KMT_HANDLE_SUPPORTED : CUdevice_attribute_enum = 105 ; # [doc = "< Maximum number of blocks per multiprocessor"] pub const CU_DEVICE_ATTRIBUTE_MAX_BLOCKS_PER_MULTIPROCESSOR : CUdevice_attribute_enum = 106 ; # [doc = "< Device supports compression of memory"] pub const CU_DEVICE_ATTRIBUTE_GENERIC_COMPRESSION_SUPPORTED : CUdevice_attribute_enum = 107 ; # [doc = "< Maximum L2 persisting lines capacity setting in bytes."] pub const CU_DEVICE_ATTRIBUTE_MAX_PERSISTING_L2_CACHE_SIZE : CUdevice_attribute_enum = 108 ; # [doc = "< Maximum value of CUaccessPolicyWindow::num_bytes."] pub const CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE : CUdevice_attribute_enum = 109 ; # [doc = "< Device supports specifying the GPUDirect RDMA flag with ::cuMemCreate"] pub const CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WITH_CUDA_VMM_SUPPORTED : CUdevice_attribute_enum = 110 ; # [doc = "< Shared memory reserved by CUDA driver per block in bytes"] pub const CU_DEVICE_ATTRIBUTE_RESERVED_SHARED_MEMORY_PER_BLOCK : CUdevice_attribute_enum = 111 ; # [doc = "< Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays"] pub const CU_DEVICE_ATTRIBUTE_SPARSE_CUDA_ARRAY_SUPPORTED : CUdevice_attribute_enum = 112 ; # [doc = "< Device supports using the ::cuMemHostRegister flag ::CU_MEMHOSTERGISTER_READ_ONLY to register memory that must be mapped as read-only to the GPU"] pub const CU_DEVICE_ATTRIBUTE_READ_ONLY_HOST_REGISTER_SUPPORTED : CUdevice_attribute_enum = 113 ; # [doc = "< External timeline semaphore interop is supported on the device"] pub const CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED : CUdevice_attribute_enum = 114 ; # [doc = "< Device supports using the ::cuMemAllocAsync and ::cuMemPool family of APIs"] pub const CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED : CUdevice_attribute_enum = 115 ; # [doc = "< Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see https://docs.nvidia.com/cuda/gpudirect-rdma for more information)"] pub const CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_SUPPORTED : CUdevice_attribute_enum = 116 ; # [doc = "< The returned attribute shall be interpreted as a bitmask, where the individual bits are described by the ::CUflushGPUDirectRDMAWritesOptions enum"] pub const CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_FLUSH_WRITES_OPTIONS : CUdevice_attribute_enum = 117 ; # [doc = "< GPUDirect RDMA writes to the device do not need to be flushed for consumers within the scope indicated by the returned attribute. See ::CUGPUDirectRDMAWritesOrdering for the numerical values returned here."] pub const CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WRITES_ORDERING : CUdevice_attribute_enum = 118 ; # [doc = "< Handle types supported with mempool based IPC"] pub const CU_DEVICE_ATTRIBUTE_MEMPOOL_SUPPORTED_HANDLE_TYPES : CUdevice_attribute_enum = 119 ; # [doc = "< Indicates device supports cluster launch"] pub const CU_DEVICE_ATTRIBUTE_CLUSTER_LAUNCH : CUdevice_attribute_enum = 120 ; # [doc = "< Device supports deferred mapping CUDA arrays and CUDA mipmapped arrays"] pub const CU_DEVICE_ATTRIBUTE_DEFERRED_MAPPING_CUDA_ARRAY_SUPPORTED : CUdevice_attribute_enum = 121 ; # [doc = "< 64-bit operations are supported in ::cuStreamBatchMemOp and related MemOp APIs."] pub const CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS : CUdevice_attribute_enum = 122 ; # [doc = "< ::CU_STREAM_WAIT_VALUE_NOR is supported by MemOp APIs."] pub const CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR : CUdevice_attribute_enum = 123 ; # [doc = "< Device supports buffer sharing with dma_buf mechanism."] pub const CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED : CUdevice_attribute_enum = 124 ; # [doc = "< Device supports IPC Events."] pub const CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED : CUdevice_attribute_enum = 125 ; # [doc = "< Number of memory domains the device supports."] pub const CU_DEVICE_ATTRIBUTE_MEM_SYNC_DOMAIN_COUNT : CUdevice_attribute_enum = 126 ; # [doc = "< Device supports accessing memory using Tensor Map."] pub const CU_DEVICE_ATTRIBUTE_TENSOR_MAP_ACCESS_SUPPORTED : CUdevice_attribute_enum = 127 ; # [doc = "< Device supports exporting memory to a fabric handle with cuMemExportToShareableHandle() or requested with cuMemCreate()"] pub const CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED : CUdevice_attribute_enum = 128 ; # [doc = "< Device supports unified function pointers."] pub const CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS : CUdevice_attribute_enum = 129 ; # [doc = "< NUMA configuration of a device: value is of type ::CUdeviceNumaConfig enum"] pub const CU_DEVICE_ATTRIBUTE_NUMA_CONFIG : CUdevice_attribute_enum = 130 ; # [doc = "< NUMA node ID of the GPU memory"] pub const CU_DEVICE_ATTRIBUTE_NUMA_ID : CUdevice_attribute_enum = 131 ; # [doc = "< Device supports switch multicast and reduction operations."] pub const CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED : CUdevice_attribute_enum = 132 ; # [doc = "< Indicates if contexts created on this device will be shared via MPS"] pub const CU_DEVICE_ATTRIBUTE_MPS_ENABLED : CUdevice_attribute_enum = 133 ; # [doc = "< NUMA ID of the host node closest to the device. Returns -1 when system does not support NUMA."] pub const CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID : CUdevice_attribute_enum = 134 ; # [doc = "< Device supports CIG with D3D12."] pub const CU_DEVICE_ATTRIBUTE_D3D12_CIG_SUPPORTED : CUdevice_attribute_enum = 135 ; # [doc = "< The returned valued shall be interpreted as a bitmask, where the individual bits are described by the ::CUmemDecompressAlgorithm enum."] pub const CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_ALGORITHM_MASK : CUdevice_attribute_enum = 136 ; # [doc = "< The returned valued is the maximum length in bytes of a single decompress operation that is allowed."] pub const CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_MAXIMUM_LENGTH : CUdevice_attribute_enum = 137 ; # [doc = "< Device supports CIG with Vulkan."] pub const CU_DEVICE_ATTRIBUTE_VULKAN_CIG_SUPPORTED : CUdevice_attribute_enum = 138 ; # [doc = "< The combined 16-bit PCI device ID and 16-bit PCI vendor ID."] pub const CU_DEVICE_ATTRIBUTE_GPU_PCI_DEVICE_ID : CUdevice_attribute_enum = 139 ; # [doc = "< The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID."] pub const CU_DEVICE_ATTRIBUTE_GPU_PCI_SUBSYSTEM_ID : CUdevice_attribute_enum = 140 ; # [doc = "< Device supports HOST_NUMA location with the virtual memory management APIs like ::cuMemCreate, ::cuMemMap and related APIs"] pub const CU_DEVICE_ATTRIBUTE_HOST_NUMA_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED : CUdevice_attribute_enum = 141 ; # [doc = "< Device supports HOST_NUMA location with the ::cuMemAllocAsync and ::cuMemPool family of APIs"] pub const CU_DEVICE_ATTRIBUTE_HOST_NUMA_MEMORY_POOLS_SUPPORTED : CUdevice_attribute_enum = 142 ; # [doc = "< Device supports HOST_NUMA location IPC between nodes in a multi-node system."] pub const CU_DEVICE_ATTRIBUTE_HOST_NUMA_MULTINODE_IPC_SUPPORTED : CUdevice_attribute_enum = 143 ; # [doc = "< Device suports HOST location with the ::cuMemAllocAsync and ::cuMemPool family of APIs"] pub const CU_DEVICE_ATTRIBUTE_HOST_MEMORY_POOLS_SUPPORTED : CUdevice_attribute_enum = 144 ; # [doc = "< Device supports HOST location with the virtual memory management APIs like ::cuMemCreate, ::cuMemMap and related APIs"] pub const CU_DEVICE_ATTRIBUTE_HOST_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED : CUdevice_attribute_enum = 145 ; # [doc = "< Device supports page-locked host memory buffer sharing with dma_buf mechanism."] pub const CU_DEVICE_ATTRIBUTE_HOST_ALLOC_DMA_BUF_SUPPORTED : CUdevice_attribute_enum = 146 ; # [doc = "< Link between the device and the host supports only some native atomic operations"] pub const CU_DEVICE_ATTRIBUTE_ONLY_PARTIAL_HOST_NATIVE_ATOMIC_SUPPORTED : CUdevice_attribute_enum = 147 ; # [doc = "< Device supports atomic reduction operations in stream batch memory operations"] pub const CU_DEVICE_ATTRIBUTE_ATOMIC_REDUCTION_SUPPORTED : CUdevice_attribute_enum = 148 ; pub const CU_DEVICE_ATTRIBUTE_MAX : CUdevice_attribute_enum = 149 ; # [doc = " Device properties"] pub type CUdevice_attribute_enum = :: std :: os :: raw :: c_uint ; # [doc = " Device properties"] pub use self :: CUdevice_attribute_enum as CUdevice_attribute ; # [doc = "< The ::CUcontext on which a pointer was allocated or registered"] pub const CU_POINTER_ATTRIBUTE_CONTEXT : CUpointer_attribute_enum = 1 ; # [doc = "< The ::CUmemorytype describing the physical location of a pointer"] pub const CU_POINTER_ATTRIBUTE_MEMORY_TYPE : CUpointer_attribute_enum = 2 ; # [doc = "< The address at which a pointer's memory may be accessed on the device"] pub const CU_POINTER_ATTRIBUTE_DEVICE_POINTER : CUpointer_attribute_enum = 3 ; # [doc = "< The address at which a pointer's memory may be accessed on the host"] pub const CU_POINTER_ATTRIBUTE_HOST_POINTER : CUpointer_attribute_enum = 4 ; # [doc = "< A pair of tokens for use with the nv-p2p.h Linux kernel interface"] pub const CU_POINTER_ATTRIBUTE_P2P_TOKENS : CUpointer_attribute_enum = 5 ; # [doc = "< Synchronize every synchronous memory operation initiated on this region"] pub const CU_POINTER_ATTRIBUTE_SYNC_MEMOPS : CUpointer_attribute_enum = 6 ; # [doc = "< A process-wide unique ID for an allocated memory region"] pub const CU_POINTER_ATTRIBUTE_BUFFER_ID : CUpointer_attribute_enum = 7 ; # [doc = "< Indicates if the pointer points to managed memory"] pub const CU_POINTER_ATTRIBUTE_IS_MANAGED : CUpointer_attribute_enum = 8 ; # [doc = "< A device ordinal of a device on which a pointer was allocated or registered"] pub const CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL : CUpointer_attribute_enum = 9 ; # [doc = "< 1 if this pointer maps to an allocation that is suitable for ::cudaIpcGetMemHandle, 0 otherwise"] pub const CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE : CUpointer_attribute_enum = 10 ; # [doc = "< Starting address for this requested pointer"] pub const CU_POINTER_ATTRIBUTE_RANGE_START_ADDR : CUpointer_attribute_enum = 11 ; # [doc = "< Size of the address range for this requested pointer"] pub const CU_POINTER_ATTRIBUTE_RANGE_SIZE : CUpointer_attribute_enum = 12 ; # [doc = "< 1 if this pointer is in a valid address range that is mapped to a backing allocation, 0 otherwise"] pub const CU_POINTER_ATTRIBUTE_MAPPED : CUpointer_attribute_enum = 13 ; # [doc = "< Bitmask of allowed ::CUmemAllocationHandleType for this allocation"] pub const CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES : CUpointer_attribute_enum = 14 ; # [doc = "< 1 if the memory this pointer is referencing can be used with the GPUDirect RDMA API"] pub const CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE : CUpointer_attribute_enum = 15 ; # [doc = "< Returns the access flags the device associated with the current context has on the corresponding memory referenced by the pointer given"] pub const CU_POINTER_ATTRIBUTE_ACCESS_FLAGS : CUpointer_attribute_enum = 16 ; # [doc = "< Returns the mempool handle for the allocation if it was allocated from a mempool. Otherwise returns NULL."] pub const CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE : CUpointer_attribute_enum = 17 ; # [doc = "< Size of the actual underlying mapping that the pointer belongs to"] pub const CU_POINTER_ATTRIBUTE_MAPPING_SIZE : CUpointer_attribute_enum = 18 ; # [doc = "< The start address of the mapping that the pointer belongs to"] pub const CU_POINTER_ATTRIBUTE_MAPPING_BASE_ADDR : CUpointer_attribute_enum = 19 ; # [doc = "< A process-wide unique id corresponding to the physical allocation the pointer belongs to"] pub const CU_POINTER_ATTRIBUTE_MEMORY_BLOCK_ID : CUpointer_attribute_enum = 20 ; # [doc = "< Returns in \\p *data a boolean that indicates whether the pointer points to memory that is capable to be used for hardware accelerated decompression."] pub const CU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLE : CUpointer_attribute_enum = 21 ; # [doc = " Pointer information"] pub type CUpointer_attribute_enum = :: std :: os :: raw :: c_uint ; # [doc = " Pointer information"] pub use self :: CUpointer_attribute_enum as CUpointer_attribute ; # [doc = "< Host memory"] pub const CU_MEMORYTYPE_HOST : CUmemorytype_enum = 1 ; # [doc = "< Device memory"] pub const CU_MEMORYTYPE_DEVICE : CUmemorytype_enum = 2 ; # [doc = "< Array memory"] pub const CU_MEMORYTYPE_ARRAY : CUmemorytype_enum = 3 ; # [doc = "< Unified device or host memory"] pub const CU_MEMORYTYPE_UNIFIED : CUmemorytype_enum = 4 ; # [doc = " Memory types"] pub type CUmemorytype_enum = :: std :: os :: raw :: c_uint ; # [doc = " Memory types"] pub use self :: CUmemorytype_enum as CUmemorytype ; # [doc = " The API call returned with no errors. In the case of query calls, this\n also means that the operation being queried is complete (see\n ::cuEventQuery() and ::cuStreamQuery())."] pub const CUDA_SUCCESS : cudaError_enum = 0 ; # [doc = " This indicates that one or more of the parameters passed to the API call\n is not within an acceptable range of values."] pub const CUDA_ERROR_INVALID_VALUE : cudaError_enum = 1 ; # [doc = " The API call failed because it was unable to allocate enough memory or\n other resources to perform the requested operation."] pub const CUDA_ERROR_OUT_OF_MEMORY : cudaError_enum = 2 ; # [doc = " This indicates that the CUDA driver has not been initialized with\n ::cuInit() or that initialization has failed."] pub const CUDA_ERROR_NOT_INITIALIZED : cudaError_enum = 3 ; # [doc = " This indicates that the CUDA driver is in the process of shutting down."] pub const CUDA_ERROR_DEINITIALIZED : cudaError_enum = 4 ; # [doc = " This indicates profiler is not initialized for this run. This can\n happen when the application is running with external profiling tools\n like visual profiler."] pub const CUDA_ERROR_PROFILER_DISABLED : cudaError_enum = 5 ; # [doc = " \\deprecated\n This error return is deprecated as of CUDA 5.0. It is no longer an error\n to attempt to enable/disable the profiling via ::cuProfilerStart or\n ::cuProfilerStop without initialization."] pub const CUDA_ERROR_PROFILER_NOT_INITIALIZED : cudaError_enum = 6 ; # [doc = " \\deprecated\n This error return is deprecated as of CUDA 5.0. It is no longer an error\n to call cuProfilerStart() when profiling is already enabled."] pub const CUDA_ERROR_PROFILER_ALREADY_STARTED : cudaError_enum = 7 ; # [doc = " \\deprecated\n This error return is deprecated as of CUDA 5.0. It is no longer an error\n to call cuProfilerStop() when profiling is already disabled."] pub const CUDA_ERROR_PROFILER_ALREADY_STOPPED : cudaError_enum = 8 ; # [doc = " This indicates that the CUDA driver that the application has loaded is a\n stub library. Applications that run with the stub rather than a real\n driver loaded will result in CUDA API returning this error."] pub const CUDA_ERROR_STUB_LIBRARY : cudaError_enum = 34 ; # [doc = " This indicates that the API call requires a newer CUDA driver than the one\n currently installed. Users should install an updated NVIDIA CUDA driver\n to allow the API call to succeed."] pub const CUDA_ERROR_CALL_REQUIRES_NEWER_DRIVER : cudaError_enum = 36 ; # [doc = " This indicates that requested CUDA device is unavailable at the current\n time. Devices are often unavailable due to use of\n ::CU_COMPUTEMODE_EXCLUSIVE_PROCESS or ::CU_COMPUTEMODE_PROHIBITED."] pub const CUDA_ERROR_DEVICE_UNAVAILABLE : cudaError_enum = 46 ; # [doc = " This indicates that no CUDA-capable devices were detected by the installed\n CUDA driver."] pub const CUDA_ERROR_NO_DEVICE : cudaError_enum = 100 ; # [doc = " This indicates that the device ordinal supplied by the user does not\n correspond to a valid CUDA device or that the action requested is\n invalid for the specified device."] pub const CUDA_ERROR_INVALID_DEVICE : cudaError_enum = 101 ; # [doc = " This error indicates that the Grid license is not applied."] pub const CUDA_ERROR_DEVICE_NOT_LICENSED : cudaError_enum = 102 ; # [doc = " This indicates that the device kernel image is invalid. This can also\n indicate an invalid CUDA module."] pub const CUDA_ERROR_INVALID_IMAGE : cudaError_enum = 200 ; # [doc = " This most frequently indicates that there is no context bound to the\n current thread. This can also be returned if the context passed to an\n API call is not a valid handle (such as a context that has had\n ::cuCtxDestroy() invoked on it). This can also be returned if a user\n mixes different API versions (i.e. 3010 context with 3020 API calls).\n See ::cuCtxGetApiVersion() for more details.\n This can also be returned if the green context passed to an API call\n was not converted to a ::CUcontext using ::cuCtxFromGreenCtx API."] pub const CUDA_ERROR_INVALID_CONTEXT : cudaError_enum = 201 ; # [doc = " This indicated that the context being supplied as a parameter to the\n API call was already the active context.\n \\deprecated\n This error return is deprecated as of CUDA 3.2. It is no longer an\n error to attempt to push the active context via ::cuCtxPushCurrent()."] pub const CUDA_ERROR_CONTEXT_ALREADY_CURRENT : cudaError_enum = 202 ; # [doc = " This indicates that a map or register operation has failed."] pub const CUDA_ERROR_MAP_FAILED : cudaError_enum = 205 ; # [doc = " This indicates that an unmap or unregister operation has failed."] pub const CUDA_ERROR_UNMAP_FAILED : cudaError_enum = 206 ; # [doc = " This indicates that the specified array is currently mapped and thus\n cannot be destroyed."] pub const CUDA_ERROR_ARRAY_IS_MAPPED : cudaError_enum = 207 ; # [doc = " This indicates that the resource is already mapped."] pub const CUDA_ERROR_ALREADY_MAPPED : cudaError_enum = 208 ; # [doc = " This indicates that there is no kernel image available that is suitable\n for the device. This can occur when a user specifies code generation\n options for a particular CUDA source file that do not include the\n corresponding device configuration."] pub const CUDA_ERROR_NO_BINARY_FOR_GPU : cudaError_enum = 209 ; # [doc = " This indicates that a resource has already been acquired."] pub const CUDA_ERROR_ALREADY_ACQUIRED : cudaError_enum = 210 ; # [doc = " This indicates that a resource is not mapped."] pub const CUDA_ERROR_NOT_MAPPED : cudaError_enum = 211 ; # [doc = " This indicates that a mapped resource is not available for access as an\n array."] pub const CUDA_ERROR_NOT_MAPPED_AS_ARRAY : cudaError_enum = 212 ; # [doc = " This indicates that a mapped resource is not available for access as a\n pointer."] pub const CUDA_ERROR_NOT_MAPPED_AS_POINTER : cudaError_enum = 213 ; # [doc = " This indicates that an uncorrectable ECC error was detected during\n execution."] pub const CUDA_ERROR_ECC_UNCORRECTABLE : cudaError_enum = 214 ; # [doc = " This indicates that the ::CUlimit passed to the API call is not\n supported by the active device."] pub const CUDA_ERROR_UNSUPPORTED_LIMIT : cudaError_enum = 215 ; # [doc = " This indicates that the ::CUcontext passed to the API call can\n only be bound to a single CPU thread at a time but is already\n bound to a CPU thread."] pub const CUDA_ERROR_CONTEXT_ALREADY_IN_USE : cudaError_enum = 216 ; # [doc = " This indicates that peer access is not supported across the given\n devices."] pub const CUDA_ERROR_PEER_ACCESS_UNSUPPORTED : cudaError_enum = 217 ; # [doc = " This indicates that a PTX JIT compilation failed."] pub const CUDA_ERROR_INVALID_PTX : cudaError_enum = 218 ; # [doc = " This indicates an error with OpenGL or DirectX context."] pub const CUDA_ERROR_INVALID_GRAPHICS_CONTEXT : cudaError_enum = 219 ; # [doc = " This indicates that an uncorrectable NVLink error was detected during the\n execution."] pub const CUDA_ERROR_NVLINK_UNCORRECTABLE : cudaError_enum = 220 ; # [doc = " This indicates that the PTX JIT compiler library was not found."] pub const CUDA_ERROR_JIT_COMPILER_NOT_FOUND : cudaError_enum = 221 ; # [doc = " This indicates that the provided PTX was compiled with an unsupported toolchain."] pub const CUDA_ERROR_UNSUPPORTED_PTX_VERSION : cudaError_enum = 222 ; # [doc = " This indicates that the PTX JIT compilation was disabled."] pub const CUDA_ERROR_JIT_COMPILATION_DISABLED : cudaError_enum = 223 ; # [doc = " This indicates that the ::CUexecAffinityType passed to the API call is not\n supported by the active device."] pub const CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY : cudaError_enum = 224 ; # [doc = " This indicates that the code to be compiled by the PTX JIT contains\n unsupported call to cudaDeviceSynchronize."] pub const CUDA_ERROR_UNSUPPORTED_DEVSIDE_SYNC : cudaError_enum = 225 ; # [doc = " This indicates that an exception occurred on the device that is now\n contained by the GPU's error containment capability. Common causes are -\n a. Certain types of invalid accesses of peer GPU memory over nvlink\n b. Certain classes of hardware errors\n This leaves the process in an inconsistent state and any further CUDA\n work will return the same error. To continue using CUDA, the process must\n be terminated and relaunched."] pub const CUDA_ERROR_CONTAINED : cudaError_enum = 226 ; # [doc = " This indicates that the device kernel source is invalid. This includes\n compilation/linker errors encountered in device code or user error."] pub const CUDA_ERROR_INVALID_SOURCE : cudaError_enum = 300 ; # [doc = " This indicates that the file specified was not found."] pub const CUDA_ERROR_FILE_NOT_FOUND : cudaError_enum = 301 ; # [doc = " This indicates that a link to a shared object failed to resolve."] pub const CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND : cudaError_enum = 302 ; # [doc = " This indicates that initialization of a shared object failed."] pub const CUDA_ERROR_SHARED_OBJECT_INIT_FAILED : cudaError_enum = 303 ; # [doc = " This indicates that an OS call failed."] pub const CUDA_ERROR_OPERATING_SYSTEM : cudaError_enum = 304 ; # [doc = " This indicates that a resource handle passed to the API call was not\n valid. Resource handles are opaque types like ::CUstream and ::CUevent."] pub const CUDA_ERROR_INVALID_HANDLE : cudaError_enum = 400 ; # [doc = " This indicates that a resource required by the API call is not in a\n valid state to perform the requested operation."] pub const CUDA_ERROR_ILLEGAL_STATE : cudaError_enum = 401 ; # [doc = " This indicates an attempt was made to introspect an object in a way that\n would discard semantically important information. This is either due to\n the object using funtionality newer than the API version used to\n introspect it or omission of optional return arguments."] pub const CUDA_ERROR_LOSSY_QUERY : cudaError_enum = 402 ; # [doc = " This indicates that a named symbol was not found. Examples of symbols\n are global/constant variable names, driver function names, texture names,\n and surface names."] pub const CUDA_ERROR_NOT_FOUND : cudaError_enum = 500 ; # [doc = " This indicates that asynchronous operations issued previously have not\n completed yet. This result is not actually an error, but must be indicated\n differently than ::CUDA_SUCCESS (which indicates completion). Calls that\n may return this value include ::cuEventQuery() and ::cuStreamQuery()."] pub const CUDA_ERROR_NOT_READY : cudaError_enum = 600 ; # [doc = " While executing a kernel, the device encountered a\n load or store instruction on an invalid memory address.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const CUDA_ERROR_ILLEGAL_ADDRESS : cudaError_enum = 700 ; # [doc = " This indicates that a launch did not occur because it did not have\n appropriate resources. This error usually indicates that the user has\n attempted to pass too many arguments to the device kernel, or the\n kernel launch specifies too many threads for the kernel's register\n count. Passing arguments of the wrong size (i.e. a 64-bit pointer\n when a 32-bit int is expected) is equivalent to passing too many\n arguments and can also result in this error."] pub const CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES : cudaError_enum = 701 ; # [doc = " This indicates that the device kernel took too long to execute. This can\n only occur if timeouts are enabled - see the device attribute\n ::CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT for more information.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const CUDA_ERROR_LAUNCH_TIMEOUT : cudaError_enum = 702 ; # [doc = " This error indicates a kernel launch that uses an incompatible texturing\n mode."] pub const CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING : cudaError_enum = 703 ; # [doc = " This error indicates that a call to ::cuCtxEnablePeerAccess() is\n trying to re-enable peer access to a context which has already\n had peer access to it enabled."] pub const CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED : cudaError_enum = 704 ; # [doc = " This error indicates that ::cuCtxDisablePeerAccess() is\n trying to disable peer access which has not been enabled yet\n via ::cuCtxEnablePeerAccess()."] pub const CUDA_ERROR_PEER_ACCESS_NOT_ENABLED : cudaError_enum = 705 ; # [doc = " This error indicates that the primary context for the specified device\n has already been initialized."] pub const CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE : cudaError_enum = 708 ; # [doc = " This error indicates that the context current to the calling thread\n has been destroyed using ::cuCtxDestroy, or is a primary context which\n has not yet been initialized."] pub const CUDA_ERROR_CONTEXT_IS_DESTROYED : cudaError_enum = 709 ; # [doc = " A device-side assert triggered during kernel execution. The context\n cannot be used anymore, and must be destroyed. All existing device\n memory allocations from this context are invalid and must be\n reconstructed if the program is to continue using CUDA."] pub const CUDA_ERROR_ASSERT : cudaError_enum = 710 ; # [doc = " This error indicates that the hardware resources required to enable\n peer access have been exhausted for one or more of the devices\n passed to ::cuCtxEnablePeerAccess()."] pub const CUDA_ERROR_TOO_MANY_PEERS : cudaError_enum = 711 ; # [doc = " This error indicates that the memory range passed to ::cuMemHostRegister()\n has already been registered."] pub const CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED : cudaError_enum = 712 ; # [doc = " This error indicates that the pointer passed to ::cuMemHostUnregister()\n does not correspond to any currently registered memory region."] pub const CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED : cudaError_enum = 713 ; # [doc = " While executing a kernel, the device encountered a stack error.\n This can be due to stack corruption or exceeding the stack size limit.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const CUDA_ERROR_HARDWARE_STACK_ERROR : cudaError_enum = 714 ; # [doc = " While executing a kernel, the device encountered an illegal instruction.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const CUDA_ERROR_ILLEGAL_INSTRUCTION : cudaError_enum = 715 ; # [doc = " While executing a kernel, the device encountered a load or store instruction\n on a memory address which is not aligned.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const CUDA_ERROR_MISALIGNED_ADDRESS : cudaError_enum = 716 ; # [doc = " While executing a kernel, the device encountered an instruction\n which can only operate on memory locations in certain address spaces\n (global, shared, or local), but was supplied a memory address not\n belonging to an allowed address space.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const CUDA_ERROR_INVALID_ADDRESS_SPACE : cudaError_enum = 717 ; # [doc = " While executing a kernel, the device program counter wrapped its address space.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const CUDA_ERROR_INVALID_PC : cudaError_enum = 718 ; # [doc = " An exception occurred on the device while executing a kernel. Common\n causes include dereferencing an invalid device pointer and accessing\n out of bounds shared memory. Less common cases can be system specific - more\n information about these cases can be found in the system specific user guide.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const CUDA_ERROR_LAUNCH_FAILED : cudaError_enum = 719 ; # [doc = " This error indicates that the number of blocks launched per grid for a kernel that was\n launched via either ::cuLaunchCooperativeKernel or ::cuLaunchCooperativeKernelMultiDevice\n exceeds the maximum number of blocks as allowed by ::cuOccupancyMaxActiveBlocksPerMultiprocessor\n or ::cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags times the number of multiprocessors\n as specified by the device attribute ::CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT."] pub const CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE : cudaError_enum = 720 ; # [doc = " An exception occurred on the device while exiting a kernel using tensor memory: the\n tensor memory was not completely deallocated. This leaves the process in an inconsistent\n state and any further CUDA work will return the same error. To continue using CUDA, the\n process must be terminated and relaunched."] pub const CUDA_ERROR_TENSOR_MEMORY_LEAK : cudaError_enum = 721 ; # [doc = " This error indicates that the attempted operation is not permitted."] pub const CUDA_ERROR_NOT_PERMITTED : cudaError_enum = 800 ; # [doc = " This error indicates that the attempted operation is not supported\n on the current system or device."] pub const CUDA_ERROR_NOT_SUPPORTED : cudaError_enum = 801 ; # [doc = " This error indicates that the system is not yet ready to start any CUDA\n work.  To continue using CUDA, verify the system configuration is in a\n valid state and all required driver daemons are actively running.\n More information about this error can be found in the system specific\n user guide."] pub const CUDA_ERROR_SYSTEM_NOT_READY : cudaError_enum = 802 ; # [doc = " This error indicates that there is a mismatch between the versions of\n the display driver and the CUDA driver. Refer to the compatibility documentation\n for supported versions."] pub const CUDA_ERROR_SYSTEM_DRIVER_MISMATCH : cudaError_enum = 803 ; # [doc = " This error indicates that the system was upgraded to run with forward compatibility\n but the visible hardware detected by CUDA does not support this configuration.\n Refer to the compatibility documentation for the supported hardware matrix or ensure\n that only supported hardware is visible during initialization via the CUDA_VISIBLE_DEVICES\n environment variable."] pub const CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE : cudaError_enum = 804 ; # [doc = " This error indicates that the MPS client failed to connect to the MPS control daemon or the MPS server."] pub const CUDA_ERROR_MPS_CONNECTION_FAILED : cudaError_enum = 805 ; # [doc = " This error indicates that the remote procedural call between the MPS server and the MPS client failed."] pub const CUDA_ERROR_MPS_RPC_FAILURE : cudaError_enum = 806 ; # [doc = " This error indicates that the MPS server is not ready to accept new MPS client requests.\n This error can be returned when the MPS server is in the process of recovering from a fatal failure."] pub const CUDA_ERROR_MPS_SERVER_NOT_READY : cudaError_enum = 807 ; # [doc = " This error indicates that the hardware resources required to create MPS client have been exhausted."] pub const CUDA_ERROR_MPS_MAX_CLIENTS_REACHED : cudaError_enum = 808 ; # [doc = " This error indicates the the hardware resources required to support device connections have been exhausted."] pub const CUDA_ERROR_MPS_MAX_CONNECTIONS_REACHED : cudaError_enum = 809 ; # [doc = " This error indicates that the MPS client has been terminated by the server. To continue using CUDA, the process must be terminated and relaunched."] pub const CUDA_ERROR_MPS_CLIENT_TERMINATED : cudaError_enum = 810 ; # [doc = " This error indicates that the module is using CUDA Dynamic Parallelism, but the current configuration, like MPS, does not support it."] pub const CUDA_ERROR_CDP_NOT_SUPPORTED : cudaError_enum = 811 ; # [doc = " This error indicates that a module contains an unsupported interaction between different versions of CUDA Dynamic Parallelism."] pub const CUDA_ERROR_CDP_VERSION_MISMATCH : cudaError_enum = 812 ; # [doc = " This error indicates that the operation is not permitted when\n the stream is capturing."] pub const CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED : cudaError_enum = 900 ; # [doc = " This error indicates that the current capture sequence on the stream\n has been invalidated due to a previous error."] pub const CUDA_ERROR_STREAM_CAPTURE_INVALIDATED : cudaError_enum = 901 ; # [doc = " This error indicates that the operation would have resulted in a merge\n of two independent capture sequences."] pub const CUDA_ERROR_STREAM_CAPTURE_MERGE : cudaError_enum = 902 ; # [doc = " This error indicates that the capture was not initiated in this stream."] pub const CUDA_ERROR_STREAM_CAPTURE_UNMATCHED : cudaError_enum = 903 ; # [doc = " This error indicates that the capture sequence contains a fork that was\n not joined to the primary stream."] pub const CUDA_ERROR_STREAM_CAPTURE_UNJOINED : cudaError_enum = 904 ; # [doc = " This error indicates that a dependency would have been created which\n crosses the capture sequence boundary. Only implicit in-stream ordering\n dependencies are allowed to cross the boundary."] pub const CUDA_ERROR_STREAM_CAPTURE_ISOLATION : cudaError_enum = 905 ; # [doc = " This error indicates a disallowed implicit dependency on a current capture\n sequence from cudaStreamLegacy."] pub const CUDA_ERROR_STREAM_CAPTURE_IMPLICIT : cudaError_enum = 906 ; # [doc = " This error indicates that the operation is not permitted on an event which\n was last recorded in a capturing stream."] pub const CUDA_ERROR_CAPTURED_EVENT : cudaError_enum = 907 ; # [doc = " A stream capture sequence not initiated with the ::CU_STREAM_CAPTURE_MODE_RELAXED\n argument to ::cuStreamBeginCapture was passed to ::cuStreamEndCapture in a\n different thread."] pub const CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD : cudaError_enum = 908 ; # [doc = " This error indicates that the timeout specified for the wait operation has lapsed."] pub const CUDA_ERROR_TIMEOUT : cudaError_enum = 909 ; # [doc = " This error indicates that the graph update was not performed because it included\n changes which violated constraints specific to instantiated graph update."] pub const CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE : cudaError_enum = 910 ; # [doc = " This indicates that an error has occurred in a device outside of GPU. It can be a\n synchronous error w.r.t. CUDA API or an asynchronous error from the external device.\n In case of asynchronous error, it means that if cuda was waiting for an external device's\n signal before consuming shared data, the external device signaled an error indicating that\n the data is not valid for consumption. This leaves the process in an inconsistent\n state and any further CUDA work will return the same error. To continue using CUDA,\n the process must be terminated and relaunched.\n In case of synchronous error, it means that one or more external devices\n have encountered an error and cannot complete the operation."] pub const CUDA_ERROR_EXTERNAL_DEVICE : cudaError_enum = 911 ; # [doc = " Indicates a kernel launch error due to cluster misconfiguration."] pub const CUDA_ERROR_INVALID_CLUSTER_SIZE : cudaError_enum = 912 ; # [doc = " Indiciates a function handle is not loaded when calling an API that requires\n a loaded function."] pub const CUDA_ERROR_FUNCTION_NOT_LOADED : cudaError_enum = 913 ; # [doc = " This error indicates one or more resources passed in are not valid resource\n types for the operation."] pub const CUDA_ERROR_INVALID_RESOURCE_TYPE : cudaError_enum = 914 ; # [doc = " This error indicates one or more resources are insufficient or non-applicable for\n the operation."] pub const CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION : cudaError_enum = 915 ; # [doc = " This error indicates that an error happened during the key rotation\n sequence."] pub const CUDA_ERROR_KEY_ROTATION : cudaError_enum = 916 ; # [doc = " This error indicates that the requested operation is not permitted because the\n stream is in a detached state. This can occur if the green context associated\n with the stream has been destroyed, limiting the stream's operational capabilities."] pub const CUDA_ERROR_STREAM_DETACHED : cudaError_enum = 917 ; # [doc = " This indicates that an unknown internal error has occurred."] pub const CUDA_ERROR_UNKNOWN : cudaError_enum = 999 ; # [doc = " Error codes"] pub type cudaError_enum = :: std :: os :: raw :: c_uint ; # [doc = " Error codes"] pub use self :: cudaError_enum as CUresult ; pub type CUmemGenericAllocationHandle_v1 = :: std :: os :: raw :: c_ulonglong ; pub type CUmemGenericAllocationHandle = CUmemGenericAllocationHandle_v1 ; # [doc = "< Does not allow any export mechanism. >"] pub const CU_MEM_HANDLE_TYPE_NONE : CUmemAllocationHandleType_enum = 0 ; # [doc = "< Allows a file descriptor to be used for exporting. Permitted only on POSIX systems. (int)"] pub const CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR : CUmemAllocationHandleType_enum = 1 ; # [doc = "< Allows a Win32 NT handle to be used for exporting. (HANDLE)"] pub const CU_MEM_HANDLE_TYPE_WIN32 : CUmemAllocationHandleType_enum = 2 ; # [doc = "< Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)"] pub const CU_MEM_HANDLE_TYPE_WIN32_KMT : CUmemAllocationHandleType_enum = 4 ; # [doc = "< Allows a fabric handle to be used for exporting. (CUmemFabricHandle)"] pub const CU_MEM_HANDLE_TYPE_FABRIC : CUmemAllocationHandleType_enum = 8 ; pub const CU_MEM_HANDLE_TYPE_MAX : CUmemAllocationHandleType_enum = 2147483647 ; # [doc = " Flags for specifying particular handle types"] pub type CUmemAllocationHandleType_enum = :: std :: os :: raw :: c_uint ; # [doc = " Flags for specifying particular handle types"] pub use self :: CUmemAllocationHandleType_enum as CUmemAllocationHandleType ; # [doc = "< Default, make the address range not accessible"] pub const CU_MEM_ACCESS_FLAGS_PROT_NONE : CUmemAccess_flags_enum = 0 ; # [doc = "< Make the address range read accessible"] pub const CU_MEM_ACCESS_FLAGS_PROT_READ : CUmemAccess_flags_enum = 1 ; # [doc = "< Make the address range read-write accessible"] pub const CU_MEM_ACCESS_FLAGS_PROT_READWRITE : CUmemAccess_flags_enum = 3 ; pub const CU_MEM_ACCESS_FLAGS_PROT_MAX : CUmemAccess_flags_enum = 2147483647 ; # [doc = " Specifies the memory protection flags for mapping."] pub type CUmemAccess_flags_enum = :: std :: os :: raw :: c_uint ; # [doc = " Specifies the memory protection flags for mapping."] pub use self :: CUmemAccess_flags_enum as CUmemAccess_flags ; pub const CU_MEM_LOCATION_TYPE_INVALID : CUmemLocationType_enum = 0 ; # [doc = "< Location is unspecified. This is used when creating a managed memory pool to indicate no preferred location for the pool"] pub const CU_MEM_LOCATION_TYPE_NONE : CUmemLocationType_enum = 0 ; # [doc = "< Location is a device location, thus id is a device ordinal"] pub const CU_MEM_LOCATION_TYPE_DEVICE : CUmemLocationType_enum = 1 ; # [doc = "< Location is host, id is ignored"] pub const CU_MEM_LOCATION_TYPE_HOST : CUmemLocationType_enum = 2 ; # [doc = "< Location is a host NUMA node, thus id is a host NUMA node id"] pub const CU_MEM_LOCATION_TYPE_HOST_NUMA : CUmemLocationType_enum = 3 ; # [doc = "< Location is a host NUMA node of the current thread, id is ignored"] pub const CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT : CUmemLocationType_enum = 4 ; # [doc = "< Location is not visible but device is accessible, id is always CU_DEVICE_INVALID"] pub const CU_MEM_LOCATION_TYPE_INVISIBLE : CUmemLocationType_enum = 5 ; pub const CU_MEM_LOCATION_TYPE_MAX : CUmemLocationType_enum = 2147483647 ; # [doc = " Specifies the type of location"] pub type CUmemLocationType_enum = :: std :: os :: raw :: c_uint ; # [doc = " Specifies the type of location"] pub use self :: CUmemLocationType_enum as CUmemLocationType ; pub const CU_MEM_ALLOCATION_TYPE_INVALID : CUmemAllocationType_enum = 0 ; # [doc = " This allocation type is 'pinned', i.e. cannot migrate from its current\n location while the application is actively using it"] pub const CU_MEM_ALLOCATION_TYPE_PINNED : CUmemAllocationType_enum = 1 ; # [doc = " This allocation type is managed memory"] pub const CU_MEM_ALLOCATION_TYPE_MANAGED : CUmemAllocationType_enum = 2 ; # [doc = " This allocation type is managed memory"] pub const CU_MEM_ALLOCATION_TYPE_MAX : CUmemAllocationType_enum = 2147483647 ; # [doc = " Defines the allocation types available"] pub type CUmemAllocationType_enum = :: std :: os :: raw :: c_uint ; # [doc = " Defines the allocation types available"] pub use self :: CUmemAllocationType_enum as CUmemAllocationType ; # [doc = "< Minimum required granularity for allocation"] pub const CU_MEM_ALLOC_GRANULARITY_MINIMUM : CUmemAllocationGranularity_flags_enum = 0 ; # [doc = "< Recommended granularity for allocation for best performance"] pub const CU_MEM_ALLOC_GRANULARITY_RECOMMENDED : CUmemAllocationGranularity_flags_enum = 1 ; # [doc = " Flag for requesting different optimal and required granularities for an allocation."] pub type CUmemAllocationGranularity_flags_enum = :: std :: os :: raw :: c_uint ; # [doc = " Flag for requesting different optimal and required granularities for an allocation."] pub use self :: CUmemAllocationGranularity_flags_enum as CUmemAllocationGranularity_flags ; pub const CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD : CUmemRangeHandleType_enum = 1 ; pub const CU_MEM_RANGE_HANDLE_TYPE_MAX : CUmemRangeHandleType_enum = 2147483647 ; # [doc = " Specifies the handle type for address range"] pub type CUmemRangeHandleType_enum = :: std :: os :: raw :: c_uint ; # [doc = " Specifies the handle type for address range"] pub use self :: CUmemRangeHandleType_enum as CUmemRangeHandleType ; # [doc = " Specifies a memory location."] # [repr (C)] # [derive (Copy , Clone)] pub struct CUmemLocation_st { # [doc = "< Specifies the location type, which modifies the meaning of id."] pub type_ : CUmemLocationType , pub __bindgen_anon_1 : CUmemLocation_st__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union CUmemLocation_st__bindgen_ty_1 { pub id : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CUmemLocation_st__bindgen_ty_1"] [:: std :: mem :: size_of :: < CUmemLocation_st__bindgen_ty_1 > () - 4usize] ; ["Alignment of CUmemLocation_st__bindgen_ty_1"] [:: std :: mem :: align_of :: < CUmemLocation_st__bindgen_ty_1 > () - 4usize] ; ["Offset of field: CUmemLocation_st__bindgen_ty_1::id"] [:: std :: mem :: offset_of ! (CUmemLocation_st__bindgen_ty_1 , id) - 0usize] ; } ; impl Default for CUmemLocation_st__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CUmemLocation_st"] [:: std :: mem :: size_of :: < CUmemLocation_st > () - 8usize] ; ["Alignment of CUmemLocation_st"] [:: std :: mem :: align_of :: < CUmemLocation_st > () - 4usize] ; ["Offset of field: CUmemLocation_st::type_"] [:: std :: mem :: offset_of ! (CUmemLocation_st , type_) - 0usize] ; } ; impl Default for CUmemLocation_st { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [doc = " Specifies a memory location."] pub type CUmemLocation_v1 = CUmemLocation_st ; # [doc = " Specifies a memory location."] pub type CUmemLocation = CUmemLocation_v1 ; # [doc = " Specifies the allocation properties for a allocation."] # [repr (C)] # [derive (Copy , Clone)] pub struct CUmemAllocationProp_st { # [doc = " Allocation type"] pub type_ : CUmemAllocationType , # [doc = " requested ::CUmemAllocationHandleType"] pub requestedHandleTypes : CUmemAllocationHandleType , # [doc = " Location of allocation"] pub location : CUmemLocation , # [doc = " Windows-specific POBJECT_ATTRIBUTES required when\n ::CU_MEM_HANDLE_TYPE_WIN32 is specified.  This object attributes structure\n includes security attributes that define\n the scope of which exported allocations may be transferred to other\n processes.  In all other cases, this field is required to be zero."] pub win32HandleMetaData : * mut :: std :: os :: raw :: c_void , pub allocFlags : CUmemAllocationProp_st__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct CUmemAllocationProp_st__bindgen_ty_1 { # [doc = " Allocation hint for requesting compressible memory.\n On devices that support Compute Data Compression, compressible\n memory can be used to accelerate accesses to data with unstructured\n sparsity and other compressible data patterns. Applications are\n expected to query allocation property of the handle obtained with\n ::cuMemCreate using ::cuMemGetAllocationPropertiesFromHandle to\n validate if the obtained allocation is compressible or not. Note that\n compressed memory may not be mappable on all devices."] pub compressionType : :: std :: os :: raw :: c_uchar , pub gpuDirectRDMACapable : :: std :: os :: raw :: c_uchar , # [doc = " Bitmask indicating intended usage for this allocation"] pub usage : :: std :: os :: raw :: c_ushort , pub reserved : [:: std :: os :: raw :: c_uchar ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CUmemAllocationProp_st__bindgen_ty_1"] [:: std :: mem :: size_of :: < CUmemAllocationProp_st__bindgen_ty_1 > () - 8usize] ; ["Alignment of CUmemAllocationProp_st__bindgen_ty_1"] [:: std :: mem :: align_of :: < CUmemAllocationProp_st__bindgen_ty_1 > () - 2usize] ; ["Offset of field: CUmemAllocationProp_st__bindgen_ty_1::compressionType"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st__bindgen_ty_1 , compressionType) - 0usize] ; ["Offset of field: CUmemAllocationProp_st__bindgen_ty_1::gpuDirectRDMACapable"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st__bindgen_ty_1 , gpuDirectRDMACapable) - 1usize] ; ["Offset of field: CUmemAllocationProp_st__bindgen_ty_1::usage"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st__bindgen_ty_1 , usage) - 2usize] ; ["Offset of field: CUmemAllocationProp_st__bindgen_ty_1::reserved"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st__bindgen_ty_1 , reserved) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CUmemAllocationProp_st"] [:: std :: mem :: size_of :: < CUmemAllocationProp_st > () - 32usize] ; ["Alignment of CUmemAllocationProp_st"] [:: std :: mem :: align_of :: < CUmemAllocationProp_st > () - 8usize] ; ["Offset of field: CUmemAllocationProp_st::type_"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st , type_) - 0usize] ; ["Offset of field: CUmemAllocationProp_st::requestedHandleTypes"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st , requestedHandleTypes) - 4usize] ; ["Offset of field: CUmemAllocationProp_st::location"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st , location) - 8usize] ; ["Offset of field: CUmemAllocationProp_st::win32HandleMetaData"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st , win32HandleMetaData) - 16usize] ; ["Offset of field: CUmemAllocationProp_st::allocFlags"] [:: std :: mem :: offset_of ! (CUmemAllocationProp_st , allocFlags) - 24usize] ; } ; impl Default for CUmemAllocationProp_st { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [doc = " Specifies the allocation properties for a allocation."] pub type CUmemAllocationProp_v1 = CUmemAllocationProp_st ; # [doc = " Specifies the allocation properties for a allocation."] pub type CUmemAllocationProp = CUmemAllocationProp_v1 ; # [doc = " Memory access descriptor"] # [repr (C)] # [derive (Copy , Clone)] pub struct CUmemAccessDesc_st { # [doc = "< Location on which the request is to change it's accessibility"] pub location : CUmemLocation , # [doc = "< ::CUmemProt accessibility flags to set on the request"] pub flags : CUmemAccess_flags , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CUmemAccessDesc_st"] [:: std :: mem :: size_of :: < CUmemAccessDesc_st > () - 12usize] ; ["Alignment of CUmemAccessDesc_st"] [:: std :: mem :: align_of :: < CUmemAccessDesc_st > () - 4usize] ; ["Offset of field: CUmemAccessDesc_st::location"] [:: std :: mem :: offset_of ! (CUmemAccessDesc_st , location) - 0usize] ; ["Offset of field: CUmemAccessDesc_st::flags"] [:: std :: mem :: offset_of ! (CUmemAccessDesc_st , flags) - 8usize] ; } ; impl Default for CUmemAccessDesc_st { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [doc = " Memory access descriptor"] pub type CUmemAccessDesc_v1 = CUmemAccessDesc_st ; # [doc = " Memory access descriptor"] pub type CUmemAccessDesc = CUmemAccessDesc_v1 ; # [doc = " The API call returned with no errors. In the case of query calls, this\n also means that the operation being queried is complete (see\n ::cudaEventQuery() and ::cudaStreamQuery())."] pub const cudaSuccess : cudaError = 0 ; # [doc = " This indicates that one or more of the parameters passed to the API call\n is not within an acceptable range of values."] pub const cudaErrorInvalidValue : cudaError = 1 ; # [doc = " The API call failed because it was unable to allocate enough memory or\n other resources to perform the requested operation."] pub const cudaErrorMemoryAllocation : cudaError = 2 ; # [doc = " The API call failed because the CUDA driver and runtime could not be\n initialized."] pub const cudaErrorInitializationError : cudaError = 3 ; # [doc = " This indicates that a CUDA Runtime API call cannot be executed because\n it is being called during process shut down, at a point in time after\n CUDA driver has been unloaded."] pub const cudaErrorCudartUnloading : cudaError = 4 ; # [doc = " This indicates profiler is not initialized for this run. This can\n happen when the application is running with external profiling tools\n like visual profiler."] pub const cudaErrorProfilerDisabled : cudaError = 5 ; # [doc = " \\deprecated\n This error return is deprecated as of CUDA 5.0. It is no longer an error\n to attempt to enable/disable the profiling via ::cudaProfilerStart or\n ::cudaProfilerStop without initialization."] pub const cudaErrorProfilerNotInitialized : cudaError = 6 ; # [doc = " \\deprecated\n This error return is deprecated as of CUDA 5.0. It is no longer an error\n to call cudaProfilerStart() when profiling is already enabled."] pub const cudaErrorProfilerAlreadyStarted : cudaError = 7 ; # [doc = " \\deprecated\n This error return is deprecated as of CUDA 5.0. It is no longer an error\n to call cudaProfilerStop() when profiling is already disabled."] pub const cudaErrorProfilerAlreadyStopped : cudaError = 8 ; # [doc = " This indicates that a kernel launch is requesting resources that can\n never be satisfied by the current device. Requesting more shared memory\n per block than the device supports will trigger this error, as will\n requesting too many threads or blocks. See ::cudaDeviceProp for more\n device limitations."] pub const cudaErrorInvalidConfiguration : cudaError = 9 ; # [doc = " This indicates that the driver is newer than the runtime version\n and returned graph node parameter information that the runtime\n does not understand and is unable to translate."] pub const cudaErrorVersionTranslation : cudaError = 10 ; # [doc = " This indicates that one or more of the pitch-related parameters passed\n to the API call is not within the acceptable range for pitch."] pub const cudaErrorInvalidPitchValue : cudaError = 12 ; # [doc = " This indicates that the symbol name/identifier passed to the API call\n is not a valid name or identifier."] pub const cudaErrorInvalidSymbol : cudaError = 13 ; # [doc = " This indicates that at least one host pointer passed to the API call is\n not a valid host pointer.\n \\deprecated\n This error return is deprecated as of CUDA 10.1."] pub const cudaErrorInvalidHostPointer : cudaError = 16 ; # [doc = " This indicates that at least one device pointer passed to the API call is\n not a valid device pointer.\n \\deprecated\n This error return is deprecated as of CUDA 10.1."] pub const cudaErrorInvalidDevicePointer : cudaError = 17 ; # [doc = " This indicates that the texture passed to the API call is not a valid\n texture."] pub const cudaErrorInvalidTexture : cudaError = 18 ; # [doc = " This indicates that the texture binding is not valid. This occurs if you\n call ::cudaGetTextureAlignmentOffset() with an unbound texture."] pub const cudaErrorInvalidTextureBinding : cudaError = 19 ; # [doc = " This indicates that the channel descriptor passed to the API call is not\n valid. This occurs if the format is not one of the formats specified by\n ::cudaChannelFormatKind, or if one of the dimensions is invalid."] pub const cudaErrorInvalidChannelDescriptor : cudaError = 20 ; # [doc = " This indicates that the direction of the memcpy passed to the API call is\n not one of the types specified by ::cudaMemcpyKind."] pub const cudaErrorInvalidMemcpyDirection : cudaError = 21 ; # [doc = " This indicated that the user has taken the address of a constant variable,\n which was forbidden up until the CUDA 3.1 release.\n \\deprecated\n This error return is deprecated as of CUDA 3.1. Variables in constant\n memory may now have their address taken by the runtime via\n ::cudaGetSymbolAddress()."] pub const cudaErrorAddressOfConstant : cudaError = 22 ; # [doc = " This indicated that a texture fetch was not able to be performed.\n This was previously used for device emulation of texture operations.\n \\deprecated\n This error return is deprecated as of CUDA 3.1. Device emulation mode was\n removed with the CUDA 3.1 release."] pub const cudaErrorTextureFetchFailed : cudaError = 23 ; # [doc = " This indicated that a texture was not bound for access.\n This was previously used for device emulation of texture operations.\n \\deprecated\n This error return is deprecated as of CUDA 3.1. Device emulation mode was\n removed with the CUDA 3.1 release."] pub const cudaErrorTextureNotBound : cudaError = 24 ; # [doc = " This indicated that a synchronization operation had failed.\n This was previously used for some device emulation functions.\n \\deprecated\n This error return is deprecated as of CUDA 3.1. Device emulation mode was\n removed with the CUDA 3.1 release."] pub const cudaErrorSynchronizationError : cudaError = 25 ; # [doc = " This indicates that a non-float texture was being accessed with linear\n filtering. This is not supported by CUDA."] pub const cudaErrorInvalidFilterSetting : cudaError = 26 ; # [doc = " This indicates that an attempt was made to read an unsupported data type as a\n normalized float. This is not supported by CUDA."] pub const cudaErrorInvalidNormSetting : cudaError = 27 ; # [doc = " Mixing of device and device emulation code was not allowed.\n \\deprecated\n This error return is deprecated as of CUDA 3.1. Device emulation mode was\n removed with the CUDA 3.1 release."] pub const cudaErrorMixedDeviceExecution : cudaError = 28 ; # [doc = " This indicates that the API call is not yet implemented. Production\n releases of CUDA will never return this error.\n \\deprecated\n This error return is deprecated as of CUDA 4.1."] pub const cudaErrorNotYetImplemented : cudaError = 31 ; # [doc = " This indicated that an emulated device pointer exceeded the 32-bit address\n range.\n \\deprecated\n This error return is deprecated as of CUDA 3.1. Device emulation mode was\n removed with the CUDA 3.1 release."] pub const cudaErrorMemoryValueTooLarge : cudaError = 32 ; # [doc = " This indicates that the CUDA driver that the application has loaded is a\n stub library. Applications that run with the stub rather than a real\n driver loaded will result in CUDA API returning this error."] pub const cudaErrorStubLibrary : cudaError = 34 ; # [doc = " This indicates that the installed NVIDIA CUDA driver is older than the\n CUDA runtime library. This is not a supported configuration. Users should\n install an updated NVIDIA display driver to allow the application to run."] pub const cudaErrorInsufficientDriver : cudaError = 35 ; # [doc = " This indicates that the API call requires a newer CUDA driver than the one\n currently installed. Users should install an updated NVIDIA CUDA driver\n to allow the API call to succeed."] pub const cudaErrorCallRequiresNewerDriver : cudaError = 36 ; # [doc = " This indicates that the surface passed to the API call is not a valid\n surface."] pub const cudaErrorInvalidSurface : cudaError = 37 ; # [doc = " This indicates that multiple global or constant variables (across separate\n CUDA source files in the application) share the same string name."] pub const cudaErrorDuplicateVariableName : cudaError = 43 ; # [doc = " This indicates that multiple textures (across separate CUDA source\n files in the application) share the same string name."] pub const cudaErrorDuplicateTextureName : cudaError = 44 ; # [doc = " This indicates that multiple surfaces (across separate CUDA source\n files in the application) share the same string name."] pub const cudaErrorDuplicateSurfaceName : cudaError = 45 ; # [doc = " This indicates that all CUDA devices are busy or unavailable at the current\n time. Devices are often busy/unavailable due to use of\n ::cudaComputeModeProhibited, ::cudaComputeModeExclusiveProcess, or when long\n running CUDA kernels have filled up the GPU and are blocking new work\n from starting. They can also be unavailable due to memory constraints\n on a device that already has active CUDA work being performed."] pub const cudaErrorDevicesUnavailable : cudaError = 46 ; # [doc = " This indicates that the current context is not compatible with this\n the CUDA Runtime. This can only occur if you are using CUDA\n Runtime/Driver interoperability and have created an existing Driver\n context using the driver API. The Driver context may be incompatible\n either because the Driver context was created using an older version\n of the API, because the Runtime API call expects a primary driver\n context and the Driver context is not primary, or because the Driver\n context has been destroyed. Please see \\ref CUDART_DRIVER \"Interactions\n with the CUDA Driver API\" for more information."] pub const cudaErrorIncompatibleDriverContext : cudaError = 49 ; # [doc = " The device function being invoked (usually via ::cudaLaunchKernel()) was not\n previously configured via the ::cudaConfigureCall() function."] pub const cudaErrorMissingConfiguration : cudaError = 52 ; # [doc = " This indicated that a previous kernel launch failed. This was previously\n used for device emulation of kernel launches.\n \\deprecated\n This error return is deprecated as of CUDA 3.1. Device emulation mode was\n removed with the CUDA 3.1 release."] pub const cudaErrorPriorLaunchFailure : cudaError = 53 ; # [doc = " This error indicates that a device runtime grid launch did not occur\n because the depth of the child grid would exceed the maximum supported\n number of nested grid launches."] pub const cudaErrorLaunchMaxDepthExceeded : cudaError = 65 ; # [doc = " This error indicates that a grid launch did not occur because the kernel\n uses file-scoped textures which are unsupported by the device runtime.\n Kernels launched via the device runtime only support textures created with\n the Texture Object API's."] pub const cudaErrorLaunchFileScopedTex : cudaError = 66 ; # [doc = " This error indicates that a grid launch did not occur because the kernel\n uses file-scoped surfaces which are unsupported by the device runtime.\n Kernels launched via the device runtime only support surfaces created with\n the Surface Object API's."] pub const cudaErrorLaunchFileScopedSurf : cudaError = 67 ; # [doc = " This error indicates that a call to ::cudaDeviceSynchronize made from\n the device runtime failed because the call was made at grid depth greater\n than than either the default (2 levels of grids) or user specified device\n limit ::cudaLimitDevRuntimeSyncDepth. To be able to synchronize on\n launched grids at a greater depth successfully, the maximum nested\n depth at which ::cudaDeviceSynchronize will be called must be specified\n with the ::cudaLimitDevRuntimeSyncDepth limit to the ::cudaDeviceSetLimit\n api before the host-side launch of a kernel using the device runtime.\n Keep in mind that additional levels of sync depth require the runtime\n to reserve large amounts of device memory that cannot be used for\n user allocations. Note that ::cudaDeviceSynchronize made from device\n runtime is only supported on devices of compute capability < 9.0."] pub const cudaErrorSyncDepthExceeded : cudaError = 68 ; # [doc = " This error indicates that a device runtime grid launch failed because\n the launch would exceed the limit ::cudaLimitDevRuntimePendingLaunchCount.\n For this launch to proceed successfully, ::cudaDeviceSetLimit must be\n called to set the ::cudaLimitDevRuntimePendingLaunchCount to be higher\n than the upper bound of outstanding launches that can be issued to the\n device runtime. Keep in mind that raising the limit of pending device\n runtime launches will require the runtime to reserve device memory that\n cannot be used for user allocations."] pub const cudaErrorLaunchPendingCountExceeded : cudaError = 69 ; # [doc = " The requested device function does not exist or is not compiled for the\n proper device architecture."] pub const cudaErrorInvalidDeviceFunction : cudaError = 98 ; # [doc = " This indicates that no CUDA-capable devices were detected by the installed\n CUDA driver."] pub const cudaErrorNoDevice : cudaError = 100 ; # [doc = " This indicates that the device ordinal supplied by the user does not\n correspond to a valid CUDA device or that the action requested is\n invalid for the specified device."] pub const cudaErrorInvalidDevice : cudaError = 101 ; # [doc = " This indicates that the device doesn't have a valid Grid License."] pub const cudaErrorDeviceNotLicensed : cudaError = 102 ; # [doc = " By default, the CUDA runtime may perform a minimal set of self-tests,\n as well as CUDA driver tests, to establish the validity of both.\n Introduced in CUDA 11.2, this error return indicates that at least one\n of these tests has failed and the validity of either the runtime\n or the driver could not be established."] pub const cudaErrorSoftwareValidityNotEstablished : cudaError = 103 ; # [doc = " This indicates an internal startup failure in the CUDA runtime."] pub const cudaErrorStartupFailure : cudaError = 127 ; # [doc = " This indicates that the device kernel image is invalid."] pub const cudaErrorInvalidKernelImage : cudaError = 200 ; # [doc = " This most frequently indicates that there is no context bound to the\n current thread. This can also be returned if the context passed to an\n API call is not a valid handle (such as a context that has had\n ::cuCtxDestroy() invoked on it). This can also be returned if a user\n mixes different API versions (i.e. 3010 context with 3020 API calls).\n See ::cuCtxGetApiVersion() for more details."] pub const cudaErrorDeviceUninitialized : cudaError = 201 ; # [doc = " This indicates that the buffer object could not be mapped."] pub const cudaErrorMapBufferObjectFailed : cudaError = 205 ; # [doc = " This indicates that the buffer object could not be unmapped."] pub const cudaErrorUnmapBufferObjectFailed : cudaError = 206 ; # [doc = " This indicates that the specified array is currently mapped and thus\n cannot be destroyed."] pub const cudaErrorArrayIsMapped : cudaError = 207 ; # [doc = " This indicates that the resource is already mapped."] pub const cudaErrorAlreadyMapped : cudaError = 208 ; # [doc = " This indicates that there is no kernel image available that is suitable\n for the device. This can occur when a user specifies code generation\n options for a particular CUDA source file that do not include the\n corresponding device configuration."] pub const cudaErrorNoKernelImageForDevice : cudaError = 209 ; # [doc = " This indicates that a resource has already been acquired."] pub const cudaErrorAlreadyAcquired : cudaError = 210 ; # [doc = " This indicates that a resource is not mapped."] pub const cudaErrorNotMapped : cudaError = 211 ; # [doc = " This indicates that a mapped resource is not available for access as an\n array."] pub const cudaErrorNotMappedAsArray : cudaError = 212 ; # [doc = " This indicates that a mapped resource is not available for access as a\n pointer."] pub const cudaErrorNotMappedAsPointer : cudaError = 213 ; # [doc = " This indicates that an uncorrectable ECC error was detected during\n execution."] pub const cudaErrorECCUncorrectable : cudaError = 214 ; # [doc = " This indicates that the ::cudaLimit passed to the API call is not\n supported by the active device."] pub const cudaErrorUnsupportedLimit : cudaError = 215 ; # [doc = " This indicates that a call tried to access an exclusive-thread device that\n is already in use by a different thread."] pub const cudaErrorDeviceAlreadyInUse : cudaError = 216 ; # [doc = " This error indicates that P2P access is not supported across the given\n devices."] pub const cudaErrorPeerAccessUnsupported : cudaError = 217 ; # [doc = " A PTX compilation failed. The runtime may fall back to compiling PTX if\n an application does not contain a suitable binary for the current device."] pub const cudaErrorInvalidPtx : cudaError = 218 ; # [doc = " This indicates an error with the OpenGL or DirectX context."] pub const cudaErrorInvalidGraphicsContext : cudaError = 219 ; # [doc = " This indicates that an uncorrectable NVLink error was detected during the\n execution."] pub const cudaErrorNvlinkUncorrectable : cudaError = 220 ; # [doc = " This indicates that the PTX JIT compiler library was not found. The JIT Compiler\n library is used for PTX compilation. The runtime may fall back to compiling PTX\n if an application does not contain a suitable binary for the current device."] pub const cudaErrorJitCompilerNotFound : cudaError = 221 ; # [doc = " This indicates that the provided PTX was compiled with an unsupported toolchain.\n The most common reason for this, is the PTX was generated by a compiler newer\n than what is supported by the CUDA driver and PTX JIT compiler."] pub const cudaErrorUnsupportedPtxVersion : cudaError = 222 ; # [doc = " This indicates that the JIT compilation was disabled. The JIT compilation compiles\n PTX. The runtime may fall back to compiling PTX if an application does not contain\n a suitable binary for the current device."] pub const cudaErrorJitCompilationDisabled : cudaError = 223 ; # [doc = " This indicates that the provided execution affinity is not supported by the device."] pub const cudaErrorUnsupportedExecAffinity : cudaError = 224 ; # [doc = " This indicates that the code to be compiled by the PTX JIT contains\n unsupported call to cudaDeviceSynchronize."] pub const cudaErrorUnsupportedDevSideSync : cudaError = 225 ; # [doc = " This indicates that an exception occurred on the device that is now\n contained by the GPU's error containment capability. Common causes are -\n a. Certain types of invalid accesses of peer GPU memory over nvlink\n b. Certain classes of hardware errors\n This leaves the process in an inconsistent state and any further CUDA\n work will return the same error. To continue using CUDA, the process must\n be terminated and relaunched."] pub const cudaErrorContained : cudaError = 226 ; # [doc = " This indicates that the device kernel source is invalid."] pub const cudaErrorInvalidSource : cudaError = 300 ; # [doc = " This indicates that the file specified was not found."] pub const cudaErrorFileNotFound : cudaError = 301 ; # [doc = " This indicates that a link to a shared object failed to resolve."] pub const cudaErrorSharedObjectSymbolNotFound : cudaError = 302 ; # [doc = " This indicates that initialization of a shared object failed."] pub const cudaErrorSharedObjectInitFailed : cudaError = 303 ; # [doc = " This error indicates that an OS call failed."] pub const cudaErrorOperatingSystem : cudaError = 304 ; # [doc = " This indicates that a resource handle passed to the API call was not\n valid. Resource handles are opaque types like ::cudaStream_t and\n ::cudaEvent_t."] pub const cudaErrorInvalidResourceHandle : cudaError = 400 ; # [doc = " This indicates that a resource required by the API call is not in a\n valid state to perform the requested operation."] pub const cudaErrorIllegalState : cudaError = 401 ; # [doc = " This indicates an attempt was made to introspect an object in a way that\n would discard semantically important information. This is either due to\n the object using funtionality newer than the API version used to\n introspect it or omission of optional return arguments."] pub const cudaErrorLossyQuery : cudaError = 402 ; # [doc = " This indicates that a named symbol was not found. Examples of symbols\n are global/constant variable names, driver function names, texture names,\n and surface names."] pub const cudaErrorSymbolNotFound : cudaError = 500 ; # [doc = " This indicates that asynchronous operations issued previously have not\n completed yet. This result is not actually an error, but must be indicated\n differently than ::cudaSuccess (which indicates completion). Calls that\n may return this value include ::cudaEventQuery() and ::cudaStreamQuery()."] pub const cudaErrorNotReady : cudaError = 600 ; # [doc = " The device encountered a load or store instruction on an invalid memory address.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const cudaErrorIllegalAddress : cudaError = 700 ; # [doc = " This indicates that a launch did not occur because it did not have\n appropriate resources. Although this error is similar to\n ::cudaErrorInvalidConfiguration, this error usually indicates that the\n user has attempted to pass too many arguments to the device kernel, or the\n kernel launch specifies too many threads for the kernel's register count."] pub const cudaErrorLaunchOutOfResources : cudaError = 701 ; # [doc = " This indicates that the device kernel took too long to execute. This can\n only occur if timeouts are enabled - see the device attribute\n \\ref ::cudaDeviceAttr::cudaDevAttrKernelExecTimeout \"cudaDevAttrKernelExecTimeout\"\n for more information.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const cudaErrorLaunchTimeout : cudaError = 702 ; # [doc = " This error indicates a kernel launch that uses an incompatible texturing\n mode."] pub const cudaErrorLaunchIncompatibleTexturing : cudaError = 703 ; # [doc = " This error indicates that a call to ::cudaDeviceEnablePeerAccess() is\n trying to re-enable peer addressing on from a context which has already\n had peer addressing enabled."] pub const cudaErrorPeerAccessAlreadyEnabled : cudaError = 704 ; # [doc = " This error indicates that ::cudaDeviceDisablePeerAccess() is trying to\n disable peer addressing which has not been enabled yet via\n ::cudaDeviceEnablePeerAccess()."] pub const cudaErrorPeerAccessNotEnabled : cudaError = 705 ; # [doc = " This indicates that the user has called ::cudaSetValidDevices(),\n ::cudaSetDeviceFlags(), ::cudaD3D9SetDirect3DDevice(),\n ::cudaD3D10SetDirect3DDevice, ::cudaD3D11SetDirect3DDevice(), or\n ::cudaVDPAUSetVDPAUDevice() after initializing the CUDA runtime by\n calling non-device management operations (allocating memory and\n launching kernels are examples of non-device management operations).\n This error can also be returned if using runtime/driver\n interoperability and there is an existing ::CUcontext active on the\n host thread."] pub const cudaErrorSetOnActiveProcess : cudaError = 708 ; # [doc = " This error indicates that the context current to the calling thread\n has been destroyed using ::cuCtxDestroy, or is a primary context which\n has not yet been initialized."] pub const cudaErrorContextIsDestroyed : cudaError = 709 ; # [doc = " An assert triggered in device code during kernel execution. The device\n cannot be used again. All existing allocations are invalid. To continue\n using CUDA, the process must be terminated and relaunched."] pub const cudaErrorAssert : cudaError = 710 ; # [doc = " This error indicates that the hardware resources required to enable\n peer access have been exhausted for one or more of the devices\n passed to ::cudaEnablePeerAccess()."] pub const cudaErrorTooManyPeers : cudaError = 711 ; # [doc = " This error indicates that the memory range passed to ::cudaHostRegister()\n has already been registered."] pub const cudaErrorHostMemoryAlreadyRegistered : cudaError = 712 ; # [doc = " This error indicates that the pointer passed to ::cudaHostUnregister()\n does not correspond to any currently registered memory region."] pub const cudaErrorHostMemoryNotRegistered : cudaError = 713 ; # [doc = " Device encountered an error in the call stack during kernel execution,\n possibly due to stack corruption or exceeding the stack size limit.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const cudaErrorHardwareStackError : cudaError = 714 ; # [doc = " The device encountered an illegal instruction during kernel execution\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const cudaErrorIllegalInstruction : cudaError = 715 ; # [doc = " The device encountered a load or store instruction\n on a memory address which is not aligned.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const cudaErrorMisalignedAddress : cudaError = 716 ; # [doc = " While executing a kernel, the device encountered an instruction\n which can only operate on memory locations in certain address spaces\n (global, shared, or local), but was supplied a memory address not\n belonging to an allowed address space.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const cudaErrorInvalidAddressSpace : cudaError = 717 ; # [doc = " The device encountered an invalid program counter.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const cudaErrorInvalidPc : cudaError = 718 ; # [doc = " An exception occurred on the device while executing a kernel. Common\n causes include dereferencing an invalid device pointer and accessing\n out of bounds shared memory. Less common cases can be system specific - more\n information about these cases can be found in the system specific user guide.\n This leaves the process in an inconsistent state and any further CUDA work\n will return the same error. To continue using CUDA, the process must be terminated\n and relaunched."] pub const cudaErrorLaunchFailure : cudaError = 719 ; # [doc = " This error indicates that the number of blocks launched per grid for a kernel that was\n launched via either ::cudaLaunchCooperativeKernel\n exceeds the maximum number of blocks as allowed by ::cudaOccupancyMaxActiveBlocksPerMultiprocessor\n or ::cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags times the number of multiprocessors\n as specified by the device attribute ::cudaDevAttrMultiProcessorCount."] pub const cudaErrorCooperativeLaunchTooLarge : cudaError = 720 ; # [doc = " An exception occurred on the device while exiting a kernel using tensor memory: the\n tensor memory was not completely deallocated. This leaves the process in an inconsistent\n state and any further CUDA work will return the same error. To continue using CUDA, the\n process must be terminated and relaunched."] pub const cudaErrorTensorMemoryLeak : cudaError = 721 ; # [doc = " This error indicates the attempted operation is not permitted."] pub const cudaErrorNotPermitted : cudaError = 800 ; # [doc = " This error indicates the attempted operation is not supported\n on the current system or device."] pub const cudaErrorNotSupported : cudaError = 801 ; # [doc = " This error indicates that the system is not yet ready to start any CUDA\n work.  To continue using CUDA, verify the system configuration is in a\n valid state and all required driver daemons are actively running.\n More information about this error can be found in the system specific\n user guide."] pub const cudaErrorSystemNotReady : cudaError = 802 ; # [doc = " This error indicates that there is a mismatch between the versions of\n the display driver and the CUDA driver. Refer to the compatibility documentation\n for supported versions."] pub const cudaErrorSystemDriverMismatch : cudaError = 803 ; # [doc = " This error indicates that the system was upgraded to run with forward compatibility\n but the visible hardware detected by CUDA does not support this configuration.\n Refer to the compatibility documentation for the supported hardware matrix or ensure\n that only supported hardware is visible during initialization via the CUDA_VISIBLE_DEVICES\n environment variable."] pub const cudaErrorCompatNotSupportedOnDevice : cudaError = 804 ; # [doc = " This error indicates that the MPS client failed to connect to the MPS control daemon or the MPS server."] pub const cudaErrorMpsConnectionFailed : cudaError = 805 ; # [doc = " This error indicates that the remote procedural call between the MPS server and the MPS client failed."] pub const cudaErrorMpsRpcFailure : cudaError = 806 ; # [doc = " This error indicates that the MPS server is not ready to accept new MPS client requests.\n This error can be returned when the MPS server is in the process of recovering from a fatal failure."] pub const cudaErrorMpsServerNotReady : cudaError = 807 ; # [doc = " This error indicates that the hardware resources required to create MPS client have been exhausted."] pub const cudaErrorMpsMaxClientsReached : cudaError = 808 ; # [doc = " This error indicates the the hardware resources required to device connections have been exhausted."] pub const cudaErrorMpsMaxConnectionsReached : cudaError = 809 ; # [doc = " This error indicates that the MPS client has been terminated by the server. To continue using CUDA, the process must be terminated and relaunched."] pub const cudaErrorMpsClientTerminated : cudaError = 810 ; # [doc = " This error indicates, that the program is using CUDA Dynamic Parallelism, but the current configuration, like MPS, does not support it."] pub const cudaErrorCdpNotSupported : cudaError = 811 ; # [doc = " This error indicates, that the program contains an unsupported interaction between different versions of CUDA Dynamic Parallelism."] pub const cudaErrorCdpVersionMismatch : cudaError = 812 ; # [doc = " The operation is not permitted when the stream is capturing."] pub const cudaErrorStreamCaptureUnsupported : cudaError = 900 ; # [doc = " The current capture sequence on the stream has been invalidated due to\n a previous error."] pub const cudaErrorStreamCaptureInvalidated : cudaError = 901 ; # [doc = " The operation would have resulted in a merge of two independent capture\n sequences."] pub const cudaErrorStreamCaptureMerge : cudaError = 902 ; # [doc = " The capture was not initiated in this stream."] pub const cudaErrorStreamCaptureUnmatched : cudaError = 903 ; # [doc = " The capture sequence contains a fork that was not joined to the primary\n stream."] pub const cudaErrorStreamCaptureUnjoined : cudaError = 904 ; # [doc = " A dependency would have been created which crosses the capture sequence\n boundary. Only implicit in-stream ordering dependencies are allowed to\n cross the boundary."] pub const cudaErrorStreamCaptureIsolation : cudaError = 905 ; # [doc = " The operation would have resulted in a disallowed implicit dependency on\n a current capture sequence from cudaStreamLegacy."] pub const cudaErrorStreamCaptureImplicit : cudaError = 906 ; # [doc = " The operation is not permitted on an event which was last recorded in a\n capturing stream."] pub const cudaErrorCapturedEvent : cudaError = 907 ; # [doc = " A stream capture sequence not initiated with the ::cudaStreamCaptureModeRelaxed\n argument to ::cudaStreamBeginCapture was passed to ::cudaStreamEndCapture in a\n different thread."] pub const cudaErrorStreamCaptureWrongThread : cudaError = 908 ; # [doc = " This indicates that the wait operation has timed out."] pub const cudaErrorTimeout : cudaError = 909 ; # [doc = " This error indicates that the graph update was not performed because it included\n changes which violated constraints specific to instantiated graph update."] pub const cudaErrorGraphExecUpdateFailure : cudaError = 910 ; # [doc = " This indicates that an error has occurred in a device outside of GPU. It can be a\n synchronous error w.r.t. CUDA API or an asynchronous error from the external device.\n In case of asynchronous error, it means that if cuda was waiting for an external device's\n signal before consuming shared data, the external device signaled an error indicating that\n the data is not valid for consumption. This leaves the process in an inconsistent\n state and any further CUDA work will return the same error. To continue using CUDA,\n the process must be terminated and relaunched.\n In case of synchronous error, it means that one or more external devices\n have encountered an error and cannot complete the operation."] pub const cudaErrorExternalDevice : cudaError = 911 ; # [doc = " This indicates that a kernel launch error has occurred due to cluster\n misconfiguration."] pub const cudaErrorInvalidClusterSize : cudaError = 912 ; # [doc = " Indiciates a function handle is not loaded when calling an API that requires\n a loaded function."] pub const cudaErrorFunctionNotLoaded : cudaError = 913 ; # [doc = " This error indicates one or more resources passed in are not valid resource\n types for the operation."] pub const cudaErrorInvalidResourceType : cudaError = 914 ; # [doc = " This error indicates one or more resources are insufficient or non-applicable for\n the operation."] pub const cudaErrorInvalidResourceConfiguration : cudaError = 915 ; # [doc = " This error indicates that the requested operation is not permitted because the\n stream is in a detached state. This can occur if the green context associated\n with the stream has been destroyed, limiting the stream's operational capabilities."] pub const cudaErrorStreamDetached : cudaError = 917 ; # [doc = " This indicates that an unknown internal error has occurred."] pub const cudaErrorUnknown : cudaError = 999 ; # [doc = " Any unhandled CUDA driver error is added to this value and returned via\n the runtime. Production releases of CUDA should not return such errors.\n \\deprecated\n This error return is deprecated as of CUDA 4.1."] pub const cudaErrorApiFailureBase : cudaError = 10000 ; # [doc = " CUDA error types"] pub type cudaError = :: std :: os :: raw :: c_uint ; # [doc = " CUDA Error types"] pub use self :: cudaError as cudaError_t ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _flags2 : :: std :: os :: raw :: c_int , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub __pad5 : usize , pub _mode : :: std :: os :: raw :: c_int , pub _unused2 : [:: std :: os :: raw :: c_char ; 20usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: std :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: std :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: std :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: std :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: std :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: std :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_flags2"] [:: std :: mem :: offset_of ! (_IO_FILE , _flags2) - 116usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: std :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: std :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: std :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: std :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: std :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: std :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: std :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::__pad5"] [:: std :: mem :: offset_of ! (_IO_FILE , __pad5) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: std :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: std :: mem :: offset_of ! (_IO_FILE , _unused2) - 196usize] ; } ; impl Default for _IO_FILE { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub type __u8 = :: std :: os :: raw :: c_uchar ; pub type __u16 = :: std :: os :: raw :: c_ushort ; pub type __u32 = :: std :: os :: raw :: c_uint ; pub type __u64 = :: std :: os :: raw :: c_ulonglong ; pub type __be16 = __u16 ; pub type __be32 = __u32 ; pub type __be64 = __u64 ; pub const IB_UVERBS_FLOW_ACTION_ESP_KEYMAT_AES_GCM : ib_uverbs_flow_action_esp_keymat = 0 ; pub type ib_uverbs_flow_action_esp_keymat = :: std :: os :: raw :: c_uint ; pub const IB_UVERBS_FLOW_ACTION_ESP_REPLAY_NONE : ib_uverbs_flow_action_esp_replay = 0 ; pub const IB_UVERBS_FLOW_ACTION_ESP_REPLAY_BMP : ib_uverbs_flow_action_esp_replay = 1 ; pub type ib_uverbs_flow_action_esp_replay = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct ib_uverbs_flow_action_esp_encap { pub __bindgen_anon_1 : ib_uverbs_flow_action_esp_encap__bindgen_ty_1 , pub __bindgen_anon_2 : ib_uverbs_flow_action_esp_encap__bindgen_ty_2 , pub len : __u16 , pub type_ : __u16 , } # [repr (C)] # [derive (Copy , Clone)] pub union ib_uverbs_flow_action_esp_encap__bindgen_ty_1 { pub val_ptr : * mut :: std :: os :: raw :: c_void , pub val_ptr_data_u64 : __u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ib_uverbs_flow_action_esp_encap__bindgen_ty_1"] [:: std :: mem :: size_of :: < ib_uverbs_flow_action_esp_encap__bindgen_ty_1 > () - 8usize] ; ["Alignment of ib_uverbs_flow_action_esp_encap__bindgen_ty_1"] [:: std :: mem :: align_of :: < ib_uverbs_flow_action_esp_encap__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ib_uverbs_flow_action_esp_encap__bindgen_ty_1::val_ptr"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp_encap__bindgen_ty_1 , val_ptr) - 0usize] ; ["Offset of field: ib_uverbs_flow_action_esp_encap__bindgen_ty_1::val_ptr_data_u64"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp_encap__bindgen_ty_1 , val_ptr_data_u64) - 0usize] ; } ; impl Default for ib_uverbs_flow_action_esp_encap__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub union ib_uverbs_flow_action_esp_encap__bindgen_ty_2 { pub next_ptr : * mut ib_uverbs_flow_action_esp_encap , pub next_ptr_data_u64 : __u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ib_uverbs_flow_action_esp_encap__bindgen_ty_2"] [:: std :: mem :: size_of :: < ib_uverbs_flow_action_esp_encap__bindgen_ty_2 > () - 8usize] ; ["Alignment of ib_uverbs_flow_action_esp_encap__bindgen_ty_2"] [:: std :: mem :: align_of :: < ib_uverbs_flow_action_esp_encap__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ib_uverbs_flow_action_esp_encap__bindgen_ty_2::next_ptr"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp_encap__bindgen_ty_2 , next_ptr) - 0usize] ; ["Offset of field: ib_uverbs_flow_action_esp_encap__bindgen_ty_2::next_ptr_data_u64"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp_encap__bindgen_ty_2 , next_ptr_data_u64) - 0usize] ; } ; impl Default for ib_uverbs_flow_action_esp_encap__bindgen_ty_2 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ib_uverbs_flow_action_esp_encap"] [:: std :: mem :: size_of :: < ib_uverbs_flow_action_esp_encap > () - 24usize] ; ["Alignment of ib_uverbs_flow_action_esp_encap"] [:: std :: mem :: align_of :: < ib_uverbs_flow_action_esp_encap > () - 8usize] ; ["Offset of field: ib_uverbs_flow_action_esp_encap::len"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp_encap , len) - 16usize] ; ["Offset of field: ib_uverbs_flow_action_esp_encap::type_"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp_encap , type_) - 18usize] ; } ; impl Default for ib_uverbs_flow_action_esp_encap { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ib_uverbs_flow_action_esp { pub spi : __u32 , pub seq : __u32 , pub tfc_pad : __u32 , pub flags : __u32 , pub hard_limit_pkts : __u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ib_uverbs_flow_action_esp"] [:: std :: mem :: size_of :: < ib_uverbs_flow_action_esp > () - 24usize] ; ["Alignment of ib_uverbs_flow_action_esp"] [:: std :: mem :: align_of :: < ib_uverbs_flow_action_esp > () - 8usize] ; ["Offset of field: ib_uverbs_flow_action_esp::spi"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp , spi) - 0usize] ; ["Offset of field: ib_uverbs_flow_action_esp::seq"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp , seq) - 4usize] ; ["Offset of field: ib_uverbs_flow_action_esp::tfc_pad"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp , tfc_pad) - 8usize] ; ["Offset of field: ib_uverbs_flow_action_esp::flags"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp , flags) - 12usize] ; ["Offset of field: ib_uverbs_flow_action_esp::hard_limit_pkts"] [:: std :: mem :: offset_of ! (ib_uverbs_flow_action_esp , hard_limit_pkts) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union ibv_gid { pub raw : [u8 ; 16usize] , pub global : ibv_gid__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_gid__bindgen_ty_1 { pub subnet_prefix : __be64 , pub interface_id : __be64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_gid__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_gid__bindgen_ty_1 > () - 16usize] ; ["Alignment of ibv_gid__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_gid__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ibv_gid__bindgen_ty_1::subnet_prefix"] [:: std :: mem :: offset_of ! (ibv_gid__bindgen_ty_1 , subnet_prefix) - 0usize] ; ["Offset of field: ibv_gid__bindgen_ty_1::interface_id"] [:: std :: mem :: offset_of ! (ibv_gid__bindgen_ty_1 , interface_id) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_gid"] [:: std :: mem :: size_of :: < ibv_gid > () - 16usize] ; ["Alignment of ibv_gid"] [:: std :: mem :: align_of :: < ibv_gid > () - 8usize] ; ["Offset of field: ibv_gid::raw"] [:: std :: mem :: offset_of ! (ibv_gid , raw) - 0usize] ; ["Offset of field: ibv_gid::global"] [:: std :: mem :: offset_of ! (ibv_gid , global) - 0usize] ; } ; impl Default for ibv_gid { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_GID_TYPE_IB : ibv_gid_type = 0 ; pub const IBV_GID_TYPE_ROCE_V1 : ibv_gid_type = 1 ; pub const IBV_GID_TYPE_ROCE_V2 : ibv_gid_type = 2 ; pub type ibv_gid_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_gid_entry { pub gid : ibv_gid , pub gid_index : u32 , pub port_num : u32 , pub gid_type : u32 , pub ndev_ifindex : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_gid_entry"] [:: std :: mem :: size_of :: < ibv_gid_entry > () - 32usize] ; ["Alignment of ibv_gid_entry"] [:: std :: mem :: align_of :: < ibv_gid_entry > () - 8usize] ; ["Offset of field: ibv_gid_entry::gid"] [:: std :: mem :: offset_of ! (ibv_gid_entry , gid) - 0usize] ; ["Offset of field: ibv_gid_entry::gid_index"] [:: std :: mem :: offset_of ! (ibv_gid_entry , gid_index) - 16usize] ; ["Offset of field: ibv_gid_entry::port_num"] [:: std :: mem :: offset_of ! (ibv_gid_entry , port_num) - 20usize] ; ["Offset of field: ibv_gid_entry::gid_type"] [:: std :: mem :: offset_of ! (ibv_gid_entry , gid_type) - 24usize] ; ["Offset of field: ibv_gid_entry::ndev_ifindex"] [:: std :: mem :: offset_of ! (ibv_gid_entry , ndev_ifindex) - 28usize] ; } ; impl Default for ibv_gid_entry { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_NODE_UNKNOWN : ibv_node_type = - 1 ; pub const IBV_NODE_CA : ibv_node_type = 1 ; pub const IBV_NODE_SWITCH : ibv_node_type = 2 ; pub const IBV_NODE_ROUTER : ibv_node_type = 3 ; pub const IBV_NODE_RNIC : ibv_node_type = 4 ; pub const IBV_NODE_USNIC : ibv_node_type = 5 ; pub const IBV_NODE_USNIC_UDP : ibv_node_type = 6 ; pub const IBV_NODE_UNSPECIFIED : ibv_node_type = 7 ; pub type ibv_node_type = :: std :: os :: raw :: c_int ; pub const IBV_TRANSPORT_UNKNOWN : ibv_transport_type = - 1 ; pub const IBV_TRANSPORT_IB : ibv_transport_type = 0 ; pub const IBV_TRANSPORT_IWARP : ibv_transport_type = 1 ; pub const IBV_TRANSPORT_USNIC : ibv_transport_type = 2 ; pub const IBV_TRANSPORT_USNIC_UDP : ibv_transport_type = 3 ; pub const IBV_TRANSPORT_UNSPECIFIED : ibv_transport_type = 4 ; pub type ibv_transport_type = :: std :: os :: raw :: c_int ; pub const IBV_DEVICE_RESIZE_MAX_WR : ibv_device_cap_flags = 1 ; pub const IBV_DEVICE_BAD_PKEY_CNTR : ibv_device_cap_flags = 2 ; pub const IBV_DEVICE_BAD_QKEY_CNTR : ibv_device_cap_flags = 4 ; pub const IBV_DEVICE_RAW_MULTI : ibv_device_cap_flags = 8 ; pub const IBV_DEVICE_AUTO_PATH_MIG : ibv_device_cap_flags = 16 ; pub const IBV_DEVICE_CHANGE_PHY_PORT : ibv_device_cap_flags = 32 ; pub const IBV_DEVICE_UD_AV_PORT_ENFORCE : ibv_device_cap_flags = 64 ; pub const IBV_DEVICE_CURR_QP_STATE_MOD : ibv_device_cap_flags = 128 ; pub const IBV_DEVICE_SHUTDOWN_PORT : ibv_device_cap_flags = 256 ; pub const IBV_DEVICE_INIT_TYPE : ibv_device_cap_flags = 512 ; pub const IBV_DEVICE_PORT_ACTIVE_EVENT : ibv_device_cap_flags = 1024 ; pub const IBV_DEVICE_SYS_IMAGE_GUID : ibv_device_cap_flags = 2048 ; pub const IBV_DEVICE_RC_RNR_NAK_GEN : ibv_device_cap_flags = 4096 ; pub const IBV_DEVICE_SRQ_RESIZE : ibv_device_cap_flags = 8192 ; pub const IBV_DEVICE_N_NOTIFY_CQ : ibv_device_cap_flags = 16384 ; pub const IBV_DEVICE_MEM_WINDOW : ibv_device_cap_flags = 131072 ; pub const IBV_DEVICE_UD_IP_CSUM : ibv_device_cap_flags = 262144 ; pub const IBV_DEVICE_XRC : ibv_device_cap_flags = 1048576 ; pub const IBV_DEVICE_MEM_MGT_EXTENSIONS : ibv_device_cap_flags = 2097152 ; pub const IBV_DEVICE_MEM_WINDOW_TYPE_2A : ibv_device_cap_flags = 8388608 ; pub const IBV_DEVICE_MEM_WINDOW_TYPE_2B : ibv_device_cap_flags = 16777216 ; pub const IBV_DEVICE_RC_IP_CSUM : ibv_device_cap_flags = 33554432 ; pub const IBV_DEVICE_RAW_IP_CSUM : ibv_device_cap_flags = 67108864 ; pub const IBV_DEVICE_MANAGED_FLOW_STEERING : ibv_device_cap_flags = 536870912 ; pub type ibv_device_cap_flags = :: std :: os :: raw :: c_uint ; pub const IBV_FORK_DISABLED : ibv_fork_status = 0 ; pub const IBV_FORK_ENABLED : ibv_fork_status = 1 ; pub const IBV_FORK_UNNEEDED : ibv_fork_status = 2 ; pub type ibv_fork_status = :: std :: os :: raw :: c_uint ; pub const IBV_ATOMIC_NONE : ibv_atomic_cap = 0 ; pub const IBV_ATOMIC_HCA : ibv_atomic_cap = 1 ; pub const IBV_ATOMIC_GLOB : ibv_atomic_cap = 2 ; pub type ibv_atomic_cap = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_alloc_dm_attr { pub length : usize , pub log_align_req : u32 , pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_alloc_dm_attr"] [:: std :: mem :: size_of :: < ibv_alloc_dm_attr > () - 16usize] ; ["Alignment of ibv_alloc_dm_attr"] [:: std :: mem :: align_of :: < ibv_alloc_dm_attr > () - 8usize] ; ["Offset of field: ibv_alloc_dm_attr::length"] [:: std :: mem :: offset_of ! (ibv_alloc_dm_attr , length) - 0usize] ; ["Offset of field: ibv_alloc_dm_attr::log_align_req"] [:: std :: mem :: offset_of ! (ibv_alloc_dm_attr , log_align_req) - 8usize] ; ["Offset of field: ibv_alloc_dm_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_alloc_dm_attr , comp_mask) - 12usize] ; } ; pub const IBV_DM_MASK_HANDLE : ibv_dm_mask = 1 ; pub type ibv_dm_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_dm { pub context : * mut ibv_context , pub memcpy_to_dm : :: std :: option :: Option < unsafe extern "C" fn (dm : * mut ibv_dm , dm_offset : u64 , host_addr : * const :: std :: os :: raw :: c_void , length : usize) -> :: std :: os :: raw :: c_int > , pub memcpy_from_dm : :: std :: option :: Option < unsafe extern "C" fn (host_addr : * mut :: std :: os :: raw :: c_void , dm : * mut ibv_dm , dm_offset : u64 , length : usize) -> :: std :: os :: raw :: c_int > , pub comp_mask : u32 , pub handle : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_dm"] [:: std :: mem :: size_of :: < ibv_dm > () - 32usize] ; ["Alignment of ibv_dm"] [:: std :: mem :: align_of :: < ibv_dm > () - 8usize] ; ["Offset of field: ibv_dm::context"] [:: std :: mem :: offset_of ! (ibv_dm , context) - 0usize] ; ["Offset of field: ibv_dm::memcpy_to_dm"] [:: std :: mem :: offset_of ! (ibv_dm , memcpy_to_dm) - 8usize] ; ["Offset of field: ibv_dm::memcpy_from_dm"] [:: std :: mem :: offset_of ! (ibv_dm , memcpy_from_dm) - 16usize] ; ["Offset of field: ibv_dm::comp_mask"] [:: std :: mem :: offset_of ! (ibv_dm , comp_mask) - 24usize] ; ["Offset of field: ibv_dm::handle"] [:: std :: mem :: offset_of ! (ibv_dm , handle) - 28usize] ; } ; impl Default for ibv_dm { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_device_attr { pub fw_ver : [:: std :: os :: raw :: c_char ; 64usize] , pub node_guid : __be64 , pub sys_image_guid : __be64 , pub max_mr_size : u64 , pub page_size_cap : u64 , pub vendor_id : u32 , pub vendor_part_id : u32 , pub hw_ver : u32 , pub max_qp : :: std :: os :: raw :: c_int , pub max_qp_wr : :: std :: os :: raw :: c_int , pub device_cap_flags : :: std :: os :: raw :: c_uint , pub max_sge : :: std :: os :: raw :: c_int , pub max_sge_rd : :: std :: os :: raw :: c_int , pub max_cq : :: std :: os :: raw :: c_int , pub max_cqe : :: std :: os :: raw :: c_int , pub max_mr : :: std :: os :: raw :: c_int , pub max_pd : :: std :: os :: raw :: c_int , pub max_qp_rd_atom : :: std :: os :: raw :: c_int , pub max_ee_rd_atom : :: std :: os :: raw :: c_int , pub max_res_rd_atom : :: std :: os :: raw :: c_int , pub max_qp_init_rd_atom : :: std :: os :: raw :: c_int , pub max_ee_init_rd_atom : :: std :: os :: raw :: c_int , pub atomic_cap : ibv_atomic_cap , pub max_ee : :: std :: os :: raw :: c_int , pub max_rdd : :: std :: os :: raw :: c_int , pub max_mw : :: std :: os :: raw :: c_int , pub max_raw_ipv6_qp : :: std :: os :: raw :: c_int , pub max_raw_ethy_qp : :: std :: os :: raw :: c_int , pub max_mcast_grp : :: std :: os :: raw :: c_int , pub max_mcast_qp_attach : :: std :: os :: raw :: c_int , pub max_total_mcast_qp_attach : :: std :: os :: raw :: c_int , pub max_ah : :: std :: os :: raw :: c_int , pub max_fmr : :: std :: os :: raw :: c_int , pub max_map_per_fmr : :: std :: os :: raw :: c_int , pub max_srq : :: std :: os :: raw :: c_int , pub max_srq_wr : :: std :: os :: raw :: c_int , pub max_srq_sge : :: std :: os :: raw :: c_int , pub max_pkeys : u16 , pub local_ca_ack_delay : u8 , pub phys_port_cnt : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_device_attr"] [:: std :: mem :: size_of :: < ibv_device_attr > () - 232usize] ; ["Alignment of ibv_device_attr"] [:: std :: mem :: align_of :: < ibv_device_attr > () - 8usize] ; ["Offset of field: ibv_device_attr::fw_ver"] [:: std :: mem :: offset_of ! (ibv_device_attr , fw_ver) - 0usize] ; ["Offset of field: ibv_device_attr::node_guid"] [:: std :: mem :: offset_of ! (ibv_device_attr , node_guid) - 64usize] ; ["Offset of field: ibv_device_attr::sys_image_guid"] [:: std :: mem :: offset_of ! (ibv_device_attr , sys_image_guid) - 72usize] ; ["Offset of field: ibv_device_attr::max_mr_size"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_mr_size) - 80usize] ; ["Offset of field: ibv_device_attr::page_size_cap"] [:: std :: mem :: offset_of ! (ibv_device_attr , page_size_cap) - 88usize] ; ["Offset of field: ibv_device_attr::vendor_id"] [:: std :: mem :: offset_of ! (ibv_device_attr , vendor_id) - 96usize] ; ["Offset of field: ibv_device_attr::vendor_part_id"] [:: std :: mem :: offset_of ! (ibv_device_attr , vendor_part_id) - 100usize] ; ["Offset of field: ibv_device_attr::hw_ver"] [:: std :: mem :: offset_of ! (ibv_device_attr , hw_ver) - 104usize] ; ["Offset of field: ibv_device_attr::max_qp"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_qp) - 108usize] ; ["Offset of field: ibv_device_attr::max_qp_wr"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_qp_wr) - 112usize] ; ["Offset of field: ibv_device_attr::device_cap_flags"] [:: std :: mem :: offset_of ! (ibv_device_attr , device_cap_flags) - 116usize] ; ["Offset of field: ibv_device_attr::max_sge"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_sge) - 120usize] ; ["Offset of field: ibv_device_attr::max_sge_rd"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_sge_rd) - 124usize] ; ["Offset of field: ibv_device_attr::max_cq"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_cq) - 128usize] ; ["Offset of field: ibv_device_attr::max_cqe"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_cqe) - 132usize] ; ["Offset of field: ibv_device_attr::max_mr"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_mr) - 136usize] ; ["Offset of field: ibv_device_attr::max_pd"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_pd) - 140usize] ; ["Offset of field: ibv_device_attr::max_qp_rd_atom"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_qp_rd_atom) - 144usize] ; ["Offset of field: ibv_device_attr::max_ee_rd_atom"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_ee_rd_atom) - 148usize] ; ["Offset of field: ibv_device_attr::max_res_rd_atom"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_res_rd_atom) - 152usize] ; ["Offset of field: ibv_device_attr::max_qp_init_rd_atom"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_qp_init_rd_atom) - 156usize] ; ["Offset of field: ibv_device_attr::max_ee_init_rd_atom"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_ee_init_rd_atom) - 160usize] ; ["Offset of field: ibv_device_attr::atomic_cap"] [:: std :: mem :: offset_of ! (ibv_device_attr , atomic_cap) - 164usize] ; ["Offset of field: ibv_device_attr::max_ee"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_ee) - 168usize] ; ["Offset of field: ibv_device_attr::max_rdd"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_rdd) - 172usize] ; ["Offset of field: ibv_device_attr::max_mw"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_mw) - 176usize] ; ["Offset of field: ibv_device_attr::max_raw_ipv6_qp"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_raw_ipv6_qp) - 180usize] ; ["Offset of field: ibv_device_attr::max_raw_ethy_qp"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_raw_ethy_qp) - 184usize] ; ["Offset of field: ibv_device_attr::max_mcast_grp"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_mcast_grp) - 188usize] ; ["Offset of field: ibv_device_attr::max_mcast_qp_attach"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_mcast_qp_attach) - 192usize] ; ["Offset of field: ibv_device_attr::max_total_mcast_qp_attach"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_total_mcast_qp_attach) - 196usize] ; ["Offset of field: ibv_device_attr::max_ah"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_ah) - 200usize] ; ["Offset of field: ibv_device_attr::max_fmr"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_fmr) - 204usize] ; ["Offset of field: ibv_device_attr::max_map_per_fmr"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_map_per_fmr) - 208usize] ; ["Offset of field: ibv_device_attr::max_srq"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_srq) - 212usize] ; ["Offset of field: ibv_device_attr::max_srq_wr"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_srq_wr) - 216usize] ; ["Offset of field: ibv_device_attr::max_srq_sge"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_srq_sge) - 220usize] ; ["Offset of field: ibv_device_attr::max_pkeys"] [:: std :: mem :: offset_of ! (ibv_device_attr , max_pkeys) - 224usize] ; ["Offset of field: ibv_device_attr::local_ca_ack_delay"] [:: std :: mem :: offset_of ! (ibv_device_attr , local_ca_ack_delay) - 226usize] ; ["Offset of field: ibv_device_attr::phys_port_cnt"] [:: std :: mem :: offset_of ! (ibv_device_attr , phys_port_cnt) - 227usize] ; } ; impl Default for ibv_device_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_query_device_ex_input { pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_query_device_ex_input"] [:: std :: mem :: size_of :: < ibv_query_device_ex_input > () - 4usize] ; ["Alignment of ibv_query_device_ex_input"] [:: std :: mem :: align_of :: < ibv_query_device_ex_input > () - 4usize] ; ["Offset of field: ibv_query_device_ex_input::comp_mask"] [:: std :: mem :: offset_of ! (ibv_query_device_ex_input , comp_mask) - 0usize] ; } ; pub const IBV_ODP_SUPPORT : ibv_odp_general_caps = 1 ; pub const IBV_ODP_SUPPORT_IMPLICIT : ibv_odp_general_caps = 2 ; pub type ibv_odp_general_caps = :: std :: os :: raw :: c_uint ; pub const IBV_ODP_SUPPORT_SEND : ibv_odp_transport_cap_bits = 1 ; pub const IBV_ODP_SUPPORT_RECV : ibv_odp_transport_cap_bits = 2 ; pub const IBV_ODP_SUPPORT_WRITE : ibv_odp_transport_cap_bits = 4 ; pub const IBV_ODP_SUPPORT_READ : ibv_odp_transport_cap_bits = 8 ; pub const IBV_ODP_SUPPORT_ATOMIC : ibv_odp_transport_cap_bits = 16 ; pub const IBV_ODP_SUPPORT_SRQ_RECV : ibv_odp_transport_cap_bits = 32 ; pub const IBV_ODP_SUPPORT_FLUSH : ibv_odp_transport_cap_bits = 64 ; pub const IBV_ODP_SUPPORT_ATOMIC_WRITE : ibv_odp_transport_cap_bits = 128 ; pub type ibv_odp_transport_cap_bits = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_odp_caps { pub general_caps : u64 , pub per_transport_caps : ibv_odp_caps__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_odp_caps__bindgen_ty_1 { pub rc_odp_caps : u32 , pub uc_odp_caps : u32 , pub ud_odp_caps : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_odp_caps__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_odp_caps__bindgen_ty_1 > () - 12usize] ; ["Alignment of ibv_odp_caps__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_odp_caps__bindgen_ty_1 > () - 4usize] ; ["Offset of field: ibv_odp_caps__bindgen_ty_1::rc_odp_caps"] [:: std :: mem :: offset_of ! (ibv_odp_caps__bindgen_ty_1 , rc_odp_caps) - 0usize] ; ["Offset of field: ibv_odp_caps__bindgen_ty_1::uc_odp_caps"] [:: std :: mem :: offset_of ! (ibv_odp_caps__bindgen_ty_1 , uc_odp_caps) - 4usize] ; ["Offset of field: ibv_odp_caps__bindgen_ty_1::ud_odp_caps"] [:: std :: mem :: offset_of ! (ibv_odp_caps__bindgen_ty_1 , ud_odp_caps) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_odp_caps"] [:: std :: mem :: size_of :: < ibv_odp_caps > () - 24usize] ; ["Alignment of ibv_odp_caps"] [:: std :: mem :: align_of :: < ibv_odp_caps > () - 8usize] ; ["Offset of field: ibv_odp_caps::general_caps"] [:: std :: mem :: offset_of ! (ibv_odp_caps , general_caps) - 0usize] ; ["Offset of field: ibv_odp_caps::per_transport_caps"] [:: std :: mem :: offset_of ! (ibv_odp_caps , per_transport_caps) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_tso_caps { pub max_tso : u32 , pub supported_qpts : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_tso_caps"] [:: std :: mem :: size_of :: < ibv_tso_caps > () - 8usize] ; ["Alignment of ibv_tso_caps"] [:: std :: mem :: align_of :: < ibv_tso_caps > () - 4usize] ; ["Offset of field: ibv_tso_caps::max_tso"] [:: std :: mem :: offset_of ! (ibv_tso_caps , max_tso) - 0usize] ; ["Offset of field: ibv_tso_caps::supported_qpts"] [:: std :: mem :: offset_of ! (ibv_tso_caps , supported_qpts) - 4usize] ; } ; pub const IBV_RX_HASH_FUNC_TOEPLITZ : ibv_rx_hash_function_flags = 1 ; pub type ibv_rx_hash_function_flags = :: std :: os :: raw :: c_uint ; pub const IBV_RX_HASH_SRC_IPV4 : ibv_rx_hash_fields = 1 ; pub const IBV_RX_HASH_DST_IPV4 : ibv_rx_hash_fields = 2 ; pub const IBV_RX_HASH_SRC_IPV6 : ibv_rx_hash_fields = 4 ; pub const IBV_RX_HASH_DST_IPV6 : ibv_rx_hash_fields = 8 ; pub const IBV_RX_HASH_SRC_PORT_TCP : ibv_rx_hash_fields = 16 ; pub const IBV_RX_HASH_DST_PORT_TCP : ibv_rx_hash_fields = 32 ; pub const IBV_RX_HASH_SRC_PORT_UDP : ibv_rx_hash_fields = 64 ; pub const IBV_RX_HASH_DST_PORT_UDP : ibv_rx_hash_fields = 128 ; pub const IBV_RX_HASH_IPSEC_SPI : ibv_rx_hash_fields = 256 ; pub const IBV_RX_HASH_INNER : ibv_rx_hash_fields = 2147483648 ; pub type ibv_rx_hash_fields = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_rss_caps { pub supported_qpts : u32 , pub max_rwq_indirection_tables : u32 , pub max_rwq_indirection_table_size : u32 , pub rx_hash_fields_mask : u64 , pub rx_hash_function : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_rss_caps"] [:: std :: mem :: size_of :: < ibv_rss_caps > () - 32usize] ; ["Alignment of ibv_rss_caps"] [:: std :: mem :: align_of :: < ibv_rss_caps > () - 8usize] ; ["Offset of field: ibv_rss_caps::supported_qpts"] [:: std :: mem :: offset_of ! (ibv_rss_caps , supported_qpts) - 0usize] ; ["Offset of field: ibv_rss_caps::max_rwq_indirection_tables"] [:: std :: mem :: offset_of ! (ibv_rss_caps , max_rwq_indirection_tables) - 4usize] ; ["Offset of field: ibv_rss_caps::max_rwq_indirection_table_size"] [:: std :: mem :: offset_of ! (ibv_rss_caps , max_rwq_indirection_table_size) - 8usize] ; ["Offset of field: ibv_rss_caps::rx_hash_fields_mask"] [:: std :: mem :: offset_of ! (ibv_rss_caps , rx_hash_fields_mask) - 16usize] ; ["Offset of field: ibv_rss_caps::rx_hash_function"] [:: std :: mem :: offset_of ! (ibv_rss_caps , rx_hash_function) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_packet_pacing_caps { pub qp_rate_limit_min : u32 , pub qp_rate_limit_max : u32 , pub supported_qpts : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_packet_pacing_caps"] [:: std :: mem :: size_of :: < ibv_packet_pacing_caps > () - 12usize] ; ["Alignment of ibv_packet_pacing_caps"] [:: std :: mem :: align_of :: < ibv_packet_pacing_caps > () - 4usize] ; ["Offset of field: ibv_packet_pacing_caps::qp_rate_limit_min"] [:: std :: mem :: offset_of ! (ibv_packet_pacing_caps , qp_rate_limit_min) - 0usize] ; ["Offset of field: ibv_packet_pacing_caps::qp_rate_limit_max"] [:: std :: mem :: offset_of ! (ibv_packet_pacing_caps , qp_rate_limit_max) - 4usize] ; ["Offset of field: ibv_packet_pacing_caps::supported_qpts"] [:: std :: mem :: offset_of ! (ibv_packet_pacing_caps , supported_qpts) - 8usize] ; } ; pub const IBV_RAW_PACKET_CAP_CVLAN_STRIPPING : ibv_raw_packet_caps = 1 ; pub const IBV_RAW_PACKET_CAP_SCATTER_FCS : ibv_raw_packet_caps = 2 ; pub const IBV_RAW_PACKET_CAP_IP_CSUM : ibv_raw_packet_caps = 4 ; pub const IBV_RAW_PACKET_CAP_DELAY_DROP : ibv_raw_packet_caps = 8 ; pub type ibv_raw_packet_caps = :: std :: os :: raw :: c_uint ; pub const IBV_TM_CAP_RC : ibv_tm_cap_flags = 1 ; pub type ibv_tm_cap_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_tm_caps { pub max_rndv_hdr_size : u32 , pub max_num_tags : u32 , pub flags : u32 , pub max_ops : u32 , pub max_sge : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_tm_caps"] [:: std :: mem :: size_of :: < ibv_tm_caps > () - 20usize] ; ["Alignment of ibv_tm_caps"] [:: std :: mem :: align_of :: < ibv_tm_caps > () - 4usize] ; ["Offset of field: ibv_tm_caps::max_rndv_hdr_size"] [:: std :: mem :: offset_of ! (ibv_tm_caps , max_rndv_hdr_size) - 0usize] ; ["Offset of field: ibv_tm_caps::max_num_tags"] [:: std :: mem :: offset_of ! (ibv_tm_caps , max_num_tags) - 4usize] ; ["Offset of field: ibv_tm_caps::flags"] [:: std :: mem :: offset_of ! (ibv_tm_caps , flags) - 8usize] ; ["Offset of field: ibv_tm_caps::max_ops"] [:: std :: mem :: offset_of ! (ibv_tm_caps , max_ops) - 12usize] ; ["Offset of field: ibv_tm_caps::max_sge"] [:: std :: mem :: offset_of ! (ibv_tm_caps , max_sge) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_cq_moderation_caps { pub max_cq_count : u16 , pub max_cq_period : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_cq_moderation_caps"] [:: std :: mem :: size_of :: < ibv_cq_moderation_caps > () - 4usize] ; ["Alignment of ibv_cq_moderation_caps"] [:: std :: mem :: align_of :: < ibv_cq_moderation_caps > () - 2usize] ; ["Offset of field: ibv_cq_moderation_caps::max_cq_count"] [:: std :: mem :: offset_of ! (ibv_cq_moderation_caps , max_cq_count) - 0usize] ; ["Offset of field: ibv_cq_moderation_caps::max_cq_period"] [:: std :: mem :: offset_of ! (ibv_cq_moderation_caps , max_cq_period) - 2usize] ; } ; pub const IBV_PCI_ATOMIC_OPERATION_4_BYTE_SIZE_SUP : ibv_pci_atomic_op_size = 1 ; pub const IBV_PCI_ATOMIC_OPERATION_8_BYTE_SIZE_SUP : ibv_pci_atomic_op_size = 2 ; pub const IBV_PCI_ATOMIC_OPERATION_16_BYTE_SIZE_SUP : ibv_pci_atomic_op_size = 4 ; pub type ibv_pci_atomic_op_size = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_pci_atomic_caps { pub fetch_add : u16 , pub swap : u16 , pub compare_swap : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_pci_atomic_caps"] [:: std :: mem :: size_of :: < ibv_pci_atomic_caps > () - 6usize] ; ["Alignment of ibv_pci_atomic_caps"] [:: std :: mem :: align_of :: < ibv_pci_atomic_caps > () - 2usize] ; ["Offset of field: ibv_pci_atomic_caps::fetch_add"] [:: std :: mem :: offset_of ! (ibv_pci_atomic_caps , fetch_add) - 0usize] ; ["Offset of field: ibv_pci_atomic_caps::swap"] [:: std :: mem :: offset_of ! (ibv_pci_atomic_caps , swap) - 2usize] ; ["Offset of field: ibv_pci_atomic_caps::compare_swap"] [:: std :: mem :: offset_of ! (ibv_pci_atomic_caps , compare_swap) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_device_attr_ex { pub orig_attr : ibv_device_attr , pub comp_mask : u32 , pub odp_caps : ibv_odp_caps , pub completion_timestamp_mask : u64 , pub hca_core_clock : u64 , pub device_cap_flags_ex : u64 , pub tso_caps : ibv_tso_caps , pub rss_caps : ibv_rss_caps , pub max_wq_type_rq : u32 , pub packet_pacing_caps : ibv_packet_pacing_caps , pub raw_packet_caps : u32 , pub tm_caps : ibv_tm_caps , pub cq_mod_caps : ibv_cq_moderation_caps , pub max_dm_size : u64 , pub pci_atomic_caps : ibv_pci_atomic_caps , pub xrc_odp_caps : u32 , pub phys_port_cnt_ex : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_device_attr_ex"] [:: std :: mem :: size_of :: < ibv_device_attr_ex > () - 400usize] ; ["Alignment of ibv_device_attr_ex"] [:: std :: mem :: align_of :: < ibv_device_attr_ex > () - 8usize] ; ["Offset of field: ibv_device_attr_ex::orig_attr"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , orig_attr) - 0usize] ; ["Offset of field: ibv_device_attr_ex::comp_mask"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , comp_mask) - 232usize] ; ["Offset of field: ibv_device_attr_ex::odp_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , odp_caps) - 240usize] ; ["Offset of field: ibv_device_attr_ex::completion_timestamp_mask"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , completion_timestamp_mask) - 264usize] ; ["Offset of field: ibv_device_attr_ex::hca_core_clock"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , hca_core_clock) - 272usize] ; ["Offset of field: ibv_device_attr_ex::device_cap_flags_ex"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , device_cap_flags_ex) - 280usize] ; ["Offset of field: ibv_device_attr_ex::tso_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , tso_caps) - 288usize] ; ["Offset of field: ibv_device_attr_ex::rss_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , rss_caps) - 296usize] ; ["Offset of field: ibv_device_attr_ex::max_wq_type_rq"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , max_wq_type_rq) - 328usize] ; ["Offset of field: ibv_device_attr_ex::packet_pacing_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , packet_pacing_caps) - 332usize] ; ["Offset of field: ibv_device_attr_ex::raw_packet_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , raw_packet_caps) - 344usize] ; ["Offset of field: ibv_device_attr_ex::tm_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , tm_caps) - 348usize] ; ["Offset of field: ibv_device_attr_ex::cq_mod_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , cq_mod_caps) - 368usize] ; ["Offset of field: ibv_device_attr_ex::max_dm_size"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , max_dm_size) - 376usize] ; ["Offset of field: ibv_device_attr_ex::pci_atomic_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , pci_atomic_caps) - 384usize] ; ["Offset of field: ibv_device_attr_ex::xrc_odp_caps"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , xrc_odp_caps) - 392usize] ; ["Offset of field: ibv_device_attr_ex::phys_port_cnt_ex"] [:: std :: mem :: offset_of ! (ibv_device_attr_ex , phys_port_cnt_ex) - 396usize] ; } ; impl Default for ibv_device_attr_ex { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_MTU_256 : ibv_mtu = 1 ; pub const IBV_MTU_512 : ibv_mtu = 2 ; pub const IBV_MTU_1024 : ibv_mtu = 3 ; pub const IBV_MTU_2048 : ibv_mtu = 4 ; pub const IBV_MTU_4096 : ibv_mtu = 5 ; pub type ibv_mtu = :: std :: os :: raw :: c_uint ; pub mod ibv_port_state { pub type Type = :: std :: os :: raw :: c_uint ; pub const IBV_PORT_NOP : Type = 0 ; pub const IBV_PORT_DOWN : Type = 1 ; pub const IBV_PORT_INIT : Type = 2 ; pub const IBV_PORT_ARMED : Type = 3 ; pub const IBV_PORT_ACTIVE : Type = 4 ; pub const IBV_PORT_ACTIVE_DEFER : Type = 5 ; } pub const IBV_LINK_LAYER_UNSPECIFIED : _bindgen_ty_13 = 0 ; pub const IBV_LINK_LAYER_INFINIBAND : _bindgen_ty_13 = 1 ; pub const IBV_LINK_LAYER_ETHERNET : _bindgen_ty_13 = 2 ; pub type _bindgen_ty_13 = :: std :: os :: raw :: c_uint ; impl ibv_port_cap_flags { pub const IBV_PORT_SM : ibv_port_cap_flags = ibv_port_cap_flags (2) ; pub const IBV_PORT_NOTICE_SUP : ibv_port_cap_flags = ibv_port_cap_flags (4) ; pub const IBV_PORT_TRAP_SUP : ibv_port_cap_flags = ibv_port_cap_flags (8) ; pub const IBV_PORT_OPT_IPD_SUP : ibv_port_cap_flags = ibv_port_cap_flags (16) ; pub const IBV_PORT_AUTO_MIGR_SUP : ibv_port_cap_flags = ibv_port_cap_flags (32) ; pub const IBV_PORT_SL_MAP_SUP : ibv_port_cap_flags = ibv_port_cap_flags (64) ; pub const IBV_PORT_MKEY_NVRAM : ibv_port_cap_flags = ibv_port_cap_flags (128) ; pub const IBV_PORT_PKEY_NVRAM : ibv_port_cap_flags = ibv_port_cap_flags (256) ; pub const IBV_PORT_LED_INFO_SUP : ibv_port_cap_flags = ibv_port_cap_flags (512) ; pub const IBV_PORT_SYS_IMAGE_GUID_SUP : ibv_port_cap_flags = ibv_port_cap_flags (2048) ; pub const IBV_PORT_PKEY_SW_EXT_PORT_TRAP_SUP : ibv_port_cap_flags = ibv_port_cap_flags (4096) ; pub const IBV_PORT_EXTENDED_SPEEDS_SUP : ibv_port_cap_flags = ibv_port_cap_flags (16384) ; pub const IBV_PORT_CAP_MASK2_SUP : ibv_port_cap_flags = ibv_port_cap_flags (32768) ; pub const IBV_PORT_CM_SUP : ibv_port_cap_flags = ibv_port_cap_flags (65536) ; pub const IBV_PORT_SNMP_TUNNEL_SUP : ibv_port_cap_flags = ibv_port_cap_flags (131072) ; pub const IBV_PORT_REINIT_SUP : ibv_port_cap_flags = ibv_port_cap_flags (262144) ; pub const IBV_PORT_DEVICE_MGMT_SUP : ibv_port_cap_flags = ibv_port_cap_flags (524288) ; pub const IBV_PORT_VENDOR_CLASS_SUP : ibv_port_cap_flags = ibv_port_cap_flags (1048576) ; pub const IBV_PORT_DR_NOTICE_SUP : ibv_port_cap_flags = ibv_port_cap_flags (2097152) ; pub const IBV_PORT_CAP_MASK_NOTICE_SUP : ibv_port_cap_flags = ibv_port_cap_flags (4194304) ; pub const IBV_PORT_BOOT_MGMT_SUP : ibv_port_cap_flags = ibv_port_cap_flags (8388608) ; pub const IBV_PORT_LINK_LATENCY_SUP : ibv_port_cap_flags = ibv_port_cap_flags (16777216) ; pub const IBV_PORT_CLIENT_REG_SUP : ibv_port_cap_flags = ibv_port_cap_flags (33554432) ; pub const IBV_PORT_IP_BASED_GIDS : ibv_port_cap_flags = ibv_port_cap_flags (67108864) ; } impl :: std :: ops :: BitOr < ibv_port_cap_flags > for ibv_port_cap_flags { type Output = Self ; # [inline] fn bitor (self , other : Self) -> Self { ibv_port_cap_flags (self . 0 | other . 0) } } impl :: std :: ops :: BitOrAssign for ibv_port_cap_flags { # [inline] fn bitor_assign (& mut self , rhs : ibv_port_cap_flags) { self . 0 |= rhs . 0 ; } } impl :: std :: ops :: BitAnd < ibv_port_cap_flags > for ibv_port_cap_flags { type Output = Self ; # [inline] fn bitand (self , other : Self) -> Self { ibv_port_cap_flags (self . 0 & other . 0) } } impl :: std :: ops :: BitAndAssign for ibv_port_cap_flags { # [inline] fn bitand_assign (& mut self , rhs : ibv_port_cap_flags) { self . 0 &= rhs . 0 ; } } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct ibv_port_cap_flags (pub :: std :: os :: raw :: c_uint) ; pub const IBV_PORT_SET_NODE_DESC_SUP : ibv_port_cap_flags2 = 1 ; pub const IBV_PORT_INFO_EXT_SUP : ibv_port_cap_flags2 = 2 ; pub const IBV_PORT_VIRT_SUP : ibv_port_cap_flags2 = 4 ; pub const IBV_PORT_SWITCH_PORT_STATE_TABLE_SUP : ibv_port_cap_flags2 = 8 ; pub const IBV_PORT_LINK_WIDTH_2X_SUP : ibv_port_cap_flags2 = 16 ; pub const IBV_PORT_LINK_SPEED_HDR_SUP : ibv_port_cap_flags2 = 32 ; pub const IBV_PORT_LINK_SPEED_NDR_SUP : ibv_port_cap_flags2 = 1024 ; pub const IBV_PORT_LINK_SPEED_XDR_SUP : ibv_port_cap_flags2 = 4096 ; pub type ibv_port_cap_flags2 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_port_attr { pub state : ibv_port_state :: Type , pub max_mtu : ibv_mtu , pub active_mtu : ibv_mtu , pub gid_tbl_len : :: std :: os :: raw :: c_int , pub port_cap_flags : u32 , pub max_msg_sz : u32 , pub bad_pkey_cntr : u32 , pub qkey_viol_cntr : u32 , pub pkey_tbl_len : u16 , pub lid : u16 , pub sm_lid : u16 , pub lmc : u8 , pub max_vl_num : u8 , pub sm_sl : u8 , pub subnet_timeout : u8 , pub init_type_reply : u8 , pub active_width : u8 , pub active_speed : u8 , pub phys_state : u8 , pub link_layer : u8 , pub flags : u8 , pub port_cap_flags2 : u16 , pub active_speed_ex : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_port_attr"] [:: std :: mem :: size_of :: < ibv_port_attr > () - 56usize] ; ["Alignment of ibv_port_attr"] [:: std :: mem :: align_of :: < ibv_port_attr > () - 4usize] ; ["Offset of field: ibv_port_attr::state"] [:: std :: mem :: offset_of ! (ibv_port_attr , state) - 0usize] ; ["Offset of field: ibv_port_attr::max_mtu"] [:: std :: mem :: offset_of ! (ibv_port_attr , max_mtu) - 4usize] ; ["Offset of field: ibv_port_attr::active_mtu"] [:: std :: mem :: offset_of ! (ibv_port_attr , active_mtu) - 8usize] ; ["Offset of field: ibv_port_attr::gid_tbl_len"] [:: std :: mem :: offset_of ! (ibv_port_attr , gid_tbl_len) - 12usize] ; ["Offset of field: ibv_port_attr::port_cap_flags"] [:: std :: mem :: offset_of ! (ibv_port_attr , port_cap_flags) - 16usize] ; ["Offset of field: ibv_port_attr::max_msg_sz"] [:: std :: mem :: offset_of ! (ibv_port_attr , max_msg_sz) - 20usize] ; ["Offset of field: ibv_port_attr::bad_pkey_cntr"] [:: std :: mem :: offset_of ! (ibv_port_attr , bad_pkey_cntr) - 24usize] ; ["Offset of field: ibv_port_attr::qkey_viol_cntr"] [:: std :: mem :: offset_of ! (ibv_port_attr , qkey_viol_cntr) - 28usize] ; ["Offset of field: ibv_port_attr::pkey_tbl_len"] [:: std :: mem :: offset_of ! (ibv_port_attr , pkey_tbl_len) - 32usize] ; ["Offset of field: ibv_port_attr::lid"] [:: std :: mem :: offset_of ! (ibv_port_attr , lid) - 34usize] ; ["Offset of field: ibv_port_attr::sm_lid"] [:: std :: mem :: offset_of ! (ibv_port_attr , sm_lid) - 36usize] ; ["Offset of field: ibv_port_attr::lmc"] [:: std :: mem :: offset_of ! (ibv_port_attr , lmc) - 38usize] ; ["Offset of field: ibv_port_attr::max_vl_num"] [:: std :: mem :: offset_of ! (ibv_port_attr , max_vl_num) - 39usize] ; ["Offset of field: ibv_port_attr::sm_sl"] [:: std :: mem :: offset_of ! (ibv_port_attr , sm_sl) - 40usize] ; ["Offset of field: ibv_port_attr::subnet_timeout"] [:: std :: mem :: offset_of ! (ibv_port_attr , subnet_timeout) - 41usize] ; ["Offset of field: ibv_port_attr::init_type_reply"] [:: std :: mem :: offset_of ! (ibv_port_attr , init_type_reply) - 42usize] ; ["Offset of field: ibv_port_attr::active_width"] [:: std :: mem :: offset_of ! (ibv_port_attr , active_width) - 43usize] ; ["Offset of field: ibv_port_attr::active_speed"] [:: std :: mem :: offset_of ! (ibv_port_attr , active_speed) - 44usize] ; ["Offset of field: ibv_port_attr::phys_state"] [:: std :: mem :: offset_of ! (ibv_port_attr , phys_state) - 45usize] ; ["Offset of field: ibv_port_attr::link_layer"] [:: std :: mem :: offset_of ! (ibv_port_attr , link_layer) - 46usize] ; ["Offset of field: ibv_port_attr::flags"] [:: std :: mem :: offset_of ! (ibv_port_attr , flags) - 47usize] ; ["Offset of field: ibv_port_attr::port_cap_flags2"] [:: std :: mem :: offset_of ! (ibv_port_attr , port_cap_flags2) - 48usize] ; ["Offset of field: ibv_port_attr::active_speed_ex"] [:: std :: mem :: offset_of ! (ibv_port_attr , active_speed_ex) - 52usize] ; } ; impl Default for ibv_port_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_EVENT_CQ_ERR : ibv_event_type = 0 ; pub const IBV_EVENT_QP_FATAL : ibv_event_type = 1 ; pub const IBV_EVENT_QP_REQ_ERR : ibv_event_type = 2 ; pub const IBV_EVENT_QP_ACCESS_ERR : ibv_event_type = 3 ; pub const IBV_EVENT_COMM_EST : ibv_event_type = 4 ; pub const IBV_EVENT_SQ_DRAINED : ibv_event_type = 5 ; pub const IBV_EVENT_PATH_MIG : ibv_event_type = 6 ; pub const IBV_EVENT_PATH_MIG_ERR : ibv_event_type = 7 ; pub const IBV_EVENT_DEVICE_FATAL : ibv_event_type = 8 ; pub const IBV_EVENT_PORT_ACTIVE : ibv_event_type = 9 ; pub const IBV_EVENT_PORT_ERR : ibv_event_type = 10 ; pub const IBV_EVENT_LID_CHANGE : ibv_event_type = 11 ; pub const IBV_EVENT_PKEY_CHANGE : ibv_event_type = 12 ; pub const IBV_EVENT_SM_CHANGE : ibv_event_type = 13 ; pub const IBV_EVENT_SRQ_ERR : ibv_event_type = 14 ; pub const IBV_EVENT_SRQ_LIMIT_REACHED : ibv_event_type = 15 ; pub const IBV_EVENT_QP_LAST_WQE_REACHED : ibv_event_type = 16 ; pub const IBV_EVENT_CLIENT_REREGISTER : ibv_event_type = 17 ; pub const IBV_EVENT_GID_CHANGE : ibv_event_type = 18 ; pub const IBV_EVENT_WQ_FATAL : ibv_event_type = 19 ; pub type ibv_event_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_async_event { pub element : ibv_async_event__bindgen_ty_1 , pub event_type : ibv_event_type , } # [repr (C)] # [derive (Copy , Clone)] pub union ibv_async_event__bindgen_ty_1 { pub cq : * mut ibv_cq , pub qp : * mut ibv_qp , pub srq : * mut ibv_srq , pub wq : * mut ibv_wq , pub port_num : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_async_event__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_async_event__bindgen_ty_1 > () - 8usize] ; ["Alignment of ibv_async_event__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_async_event__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ibv_async_event__bindgen_ty_1::cq"] [:: std :: mem :: offset_of ! (ibv_async_event__bindgen_ty_1 , cq) - 0usize] ; ["Offset of field: ibv_async_event__bindgen_ty_1::qp"] [:: std :: mem :: offset_of ! (ibv_async_event__bindgen_ty_1 , qp) - 0usize] ; ["Offset of field: ibv_async_event__bindgen_ty_1::srq"] [:: std :: mem :: offset_of ! (ibv_async_event__bindgen_ty_1 , srq) - 0usize] ; ["Offset of field: ibv_async_event__bindgen_ty_1::wq"] [:: std :: mem :: offset_of ! (ibv_async_event__bindgen_ty_1 , wq) - 0usize] ; ["Offset of field: ibv_async_event__bindgen_ty_1::port_num"] [:: std :: mem :: offset_of ! (ibv_async_event__bindgen_ty_1 , port_num) - 0usize] ; } ; impl Default for ibv_async_event__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_async_event"] [:: std :: mem :: size_of :: < ibv_async_event > () - 16usize] ; ["Alignment of ibv_async_event"] [:: std :: mem :: align_of :: < ibv_async_event > () - 8usize] ; ["Offset of field: ibv_async_event::element"] [:: std :: mem :: offset_of ! (ibv_async_event , element) - 0usize] ; ["Offset of field: ibv_async_event::event_type"] [:: std :: mem :: offset_of ! (ibv_async_event , event_type) - 8usize] ; } ; impl Default for ibv_async_event { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub mod ibv_wc_status { pub type Type = :: std :: os :: raw :: c_uint ; pub const IBV_WC_SUCCESS : Type = 0 ; pub const IBV_WC_LOC_LEN_ERR : Type = 1 ; pub const IBV_WC_LOC_QP_OP_ERR : Type = 2 ; pub const IBV_WC_LOC_EEC_OP_ERR : Type = 3 ; pub const IBV_WC_LOC_PROT_ERR : Type = 4 ; pub const IBV_WC_WR_FLUSH_ERR : Type = 5 ; pub const IBV_WC_MW_BIND_ERR : Type = 6 ; pub const IBV_WC_BAD_RESP_ERR : Type = 7 ; pub const IBV_WC_LOC_ACCESS_ERR : Type = 8 ; pub const IBV_WC_REM_INV_REQ_ERR : Type = 9 ; pub const IBV_WC_REM_ACCESS_ERR : Type = 10 ; pub const IBV_WC_REM_OP_ERR : Type = 11 ; pub const IBV_WC_RETRY_EXC_ERR : Type = 12 ; pub const IBV_WC_RNR_RETRY_EXC_ERR : Type = 13 ; pub const IBV_WC_LOC_RDD_VIOL_ERR : Type = 14 ; pub const IBV_WC_REM_INV_RD_REQ_ERR : Type = 15 ; pub const IBV_WC_REM_ABORT_ERR : Type = 16 ; pub const IBV_WC_INV_EECN_ERR : Type = 17 ; pub const IBV_WC_INV_EEC_STATE_ERR : Type = 18 ; pub const IBV_WC_FATAL_ERR : Type = 19 ; pub const IBV_WC_RESP_TIMEOUT_ERR : Type = 20 ; pub const IBV_WC_GENERAL_ERR : Type = 21 ; pub const IBV_WC_TM_ERR : Type = 22 ; pub const IBV_WC_TM_RNDV_INCOMPLETE : Type = 23 ; } unsafe extern "C" { pub fn ibv_wc_status_str (status : ibv_wc_status :: Type) -> * const :: std :: os :: raw :: c_char ; } pub mod ibv_wc_opcode { pub type Type = :: std :: os :: raw :: c_uint ; pub const IBV_WC_SEND : Type = 0 ; pub const IBV_WC_RDMA_WRITE : Type = 1 ; pub const IBV_WC_RDMA_READ : Type = 2 ; pub const IBV_WC_COMP_SWAP : Type = 3 ; pub const IBV_WC_FETCH_ADD : Type = 4 ; pub const IBV_WC_BIND_MW : Type = 5 ; pub const IBV_WC_LOCAL_INV : Type = 6 ; pub const IBV_WC_TSO : Type = 7 ; pub const IBV_WC_FLUSH : Type = 8 ; pub const IBV_WC_ATOMIC_WRITE : Type = 9 ; pub const IBV_WC_RECV : Type = 128 ; pub const IBV_WC_RECV_RDMA_WITH_IMM : Type = 129 ; pub const IBV_WC_TM_ADD : Type = 130 ; pub const IBV_WC_TM_DEL : Type = 131 ; pub const IBV_WC_TM_SYNC : Type = 132 ; pub const IBV_WC_TM_RECV : Type = 133 ; pub const IBV_WC_TM_NO_TAG : Type = 134 ; pub const IBV_WC_DRIVER1 : Type = 135 ; pub const IBV_WC_DRIVER2 : Type = 136 ; pub const IBV_WC_DRIVER3 : Type = 137 ; } pub const IBV_WC_IP_CSUM_OK_SHIFT : _bindgen_ty_14 = 2 ; pub type _bindgen_ty_14 = :: std :: os :: raw :: c_uint ; pub const IBV_WC_EX_WITH_BYTE_LEN : ibv_create_cq_wc_flags = 1 ; pub const IBV_WC_EX_WITH_IMM : ibv_create_cq_wc_flags = 2 ; pub const IBV_WC_EX_WITH_QP_NUM : ibv_create_cq_wc_flags = 4 ; pub const IBV_WC_EX_WITH_SRC_QP : ibv_create_cq_wc_flags = 8 ; pub const IBV_WC_EX_WITH_SLID : ibv_create_cq_wc_flags = 16 ; pub const IBV_WC_EX_WITH_SL : ibv_create_cq_wc_flags = 32 ; pub const IBV_WC_EX_WITH_DLID_PATH_BITS : ibv_create_cq_wc_flags = 64 ; pub const IBV_WC_EX_WITH_COMPLETION_TIMESTAMP : ibv_create_cq_wc_flags = 128 ; pub const IBV_WC_EX_WITH_CVLAN : ibv_create_cq_wc_flags = 256 ; pub const IBV_WC_EX_WITH_FLOW_TAG : ibv_create_cq_wc_flags = 512 ; pub const IBV_WC_EX_WITH_TM_INFO : ibv_create_cq_wc_flags = 1024 ; pub const IBV_WC_EX_WITH_COMPLETION_TIMESTAMP_WALLCLOCK : ibv_create_cq_wc_flags = 2048 ; pub type ibv_create_cq_wc_flags = :: std :: os :: raw :: c_uint ; pub const IBV_WC_STANDARD_FLAGS : _bindgen_ty_15 = 127 ; pub type _bindgen_ty_15 = :: std :: os :: raw :: c_uint ; pub const IBV_CREATE_CQ_SUP_WC_FLAGS : _bindgen_ty_16 = 4095 ; pub type _bindgen_ty_16 = :: std :: os :: raw :: c_uint ; impl ibv_wc_flags { pub const IBV_WC_GRH : ibv_wc_flags = ibv_wc_flags (1) ; pub const IBV_WC_WITH_IMM : ibv_wc_flags = ibv_wc_flags (2) ; pub const IBV_WC_IP_CSUM_OK : ibv_wc_flags = ibv_wc_flags (4) ; pub const IBV_WC_WITH_INV : ibv_wc_flags = ibv_wc_flags (8) ; pub const IBV_WC_TM_SYNC_REQ : ibv_wc_flags = ibv_wc_flags (16) ; pub const IBV_WC_TM_MATCH : ibv_wc_flags = ibv_wc_flags (32) ; pub const IBV_WC_TM_DATA_VALID : ibv_wc_flags = ibv_wc_flags (64) ; } impl :: std :: ops :: BitOr < ibv_wc_flags > for ibv_wc_flags { type Output = Self ; # [inline] fn bitor (self , other : Self) -> Self { ibv_wc_flags (self . 0 | other . 0) } } impl :: std :: ops :: BitOrAssign for ibv_wc_flags { # [inline] fn bitor_assign (& mut self , rhs : ibv_wc_flags) { self . 0 |= rhs . 0 ; } } impl :: std :: ops :: BitAnd < ibv_wc_flags > for ibv_wc_flags { type Output = Self ; # [inline] fn bitand (self , other : Self) -> Self { ibv_wc_flags (self . 0 & other . 0) } } impl :: std :: ops :: BitAndAssign for ibv_wc_flags { # [inline] fn bitand_assign (& mut self , rhs : ibv_wc_flags) { self . 0 &= rhs . 0 ; } } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct ibv_wc_flags (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Copy , Clone)] pub union ibv_wc__bindgen_ty_1 { pub imm_data : __be32 , pub invalidated_rkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_wc__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_wc__bindgen_ty_1 > () - 4usize] ; ["Alignment of ibv_wc__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_wc__bindgen_ty_1 > () - 4usize] ; ["Offset of field: ibv_wc__bindgen_ty_1::imm_data"] [:: std :: mem :: offset_of ! (ibv_wc__bindgen_ty_1 , imm_data) - 0usize] ; ["Offset of field: ibv_wc__bindgen_ty_1::invalidated_rkey"] [:: std :: mem :: offset_of ! (ibv_wc__bindgen_ty_1 , invalidated_rkey) - 0usize] ; } ; impl Default for ibv_wc__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } impl ibv_access_flags { pub const IBV_ACCESS_LOCAL_WRITE : ibv_access_flags = ibv_access_flags (1) ; pub const IBV_ACCESS_REMOTE_WRITE : ibv_access_flags = ibv_access_flags (2) ; pub const IBV_ACCESS_REMOTE_READ : ibv_access_flags = ibv_access_flags (4) ; pub const IBV_ACCESS_REMOTE_ATOMIC : ibv_access_flags = ibv_access_flags (8) ; pub const IBV_ACCESS_MW_BIND : ibv_access_flags = ibv_access_flags (16) ; pub const IBV_ACCESS_ZERO_BASED : ibv_access_flags = ibv_access_flags (32) ; pub const IBV_ACCESS_ON_DEMAND : ibv_access_flags = ibv_access_flags (64) ; pub const IBV_ACCESS_HUGETLB : ibv_access_flags = ibv_access_flags (128) ; pub const IBV_ACCESS_FLUSH_GLOBAL : ibv_access_flags = ibv_access_flags (256) ; pub const IBV_ACCESS_FLUSH_PERSISTENT : ibv_access_flags = ibv_access_flags (512) ; pub const IBV_ACCESS_RELAXED_ORDERING : ibv_access_flags = ibv_access_flags (1048576) ; } impl :: std :: ops :: BitOr < ibv_access_flags > for ibv_access_flags { type Output = Self ; # [inline] fn bitor (self , other : Self) -> Self { ibv_access_flags (self . 0 | other . 0) } } impl :: std :: ops :: BitOrAssign for ibv_access_flags { # [inline] fn bitor_assign (& mut self , rhs : ibv_access_flags) { self . 0 |= rhs . 0 ; } } impl :: std :: ops :: BitAnd < ibv_access_flags > for ibv_access_flags { type Output = Self ; # [inline] fn bitand (self , other : Self) -> Self { ibv_access_flags (self . 0 & other . 0) } } impl :: std :: ops :: BitAndAssign for ibv_access_flags { # [inline] fn bitand_assign (& mut self , rhs : ibv_access_flags) { self . 0 &= rhs . 0 ; } } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct ibv_access_flags (pub :: std :: os :: raw :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_mw_bind_info { pub mr : * mut ibv_mr , pub addr : u64 , pub length : u64 , pub mw_access_flags : :: std :: os :: raw :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_mw_bind_info"] [:: std :: mem :: size_of :: < ibv_mw_bind_info > () - 32usize] ; ["Alignment of ibv_mw_bind_info"] [:: std :: mem :: align_of :: < ibv_mw_bind_info > () - 8usize] ; ["Offset of field: ibv_mw_bind_info::mr"] [:: std :: mem :: offset_of ! (ibv_mw_bind_info , mr) - 0usize] ; ["Offset of field: ibv_mw_bind_info::addr"] [:: std :: mem :: offset_of ! (ibv_mw_bind_info , addr) - 8usize] ; ["Offset of field: ibv_mw_bind_info::length"] [:: std :: mem :: offset_of ! (ibv_mw_bind_info , length) - 16usize] ; ["Offset of field: ibv_mw_bind_info::mw_access_flags"] [:: std :: mem :: offset_of ! (ibv_mw_bind_info , mw_access_flags) - 24usize] ; } ; impl Default for ibv_mw_bind_info { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_dmah { pub context : * mut ibv_context , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_dmah"] [:: std :: mem :: size_of :: < ibv_dmah > () - 8usize] ; ["Alignment of ibv_dmah"] [:: std :: mem :: align_of :: < ibv_dmah > () - 8usize] ; ["Offset of field: ibv_dmah::context"] [:: std :: mem :: offset_of ! (ibv_dmah , context) - 0usize] ; } ; impl Default for ibv_dmah { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_pd { pub context : * mut ibv_context , pub handle : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_pd"] [:: std :: mem :: size_of :: < ibv_pd > () - 16usize] ; ["Alignment of ibv_pd"] [:: std :: mem :: align_of :: < ibv_pd > () - 8usize] ; ["Offset of field: ibv_pd::context"] [:: std :: mem :: offset_of ! (ibv_pd , context) - 0usize] ; ["Offset of field: ibv_pd::handle"] [:: std :: mem :: offset_of ! (ibv_pd , handle) - 8usize] ; } ; impl Default for ibv_pd { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_td_init_attr { pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_td_init_attr"] [:: std :: mem :: size_of :: < ibv_td_init_attr > () - 4usize] ; ["Alignment of ibv_td_init_attr"] [:: std :: mem :: align_of :: < ibv_td_init_attr > () - 4usize] ; ["Offset of field: ibv_td_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_td_init_attr , comp_mask) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_td { pub context : * mut ibv_context , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_td"] [:: std :: mem :: size_of :: < ibv_td > () - 8usize] ; ["Alignment of ibv_td"] [:: std :: mem :: align_of :: < ibv_td > () - 8usize] ; ["Offset of field: ibv_td::context"] [:: std :: mem :: offset_of ! (ibv_td , context) - 0usize] ; } ; impl Default for ibv_td { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_XRCD_INIT_ATTR_FD : ibv_xrcd_init_attr_mask = 1 ; pub const IBV_XRCD_INIT_ATTR_OFLAGS : ibv_xrcd_init_attr_mask = 2 ; pub const IBV_XRCD_INIT_ATTR_RESERVED : ibv_xrcd_init_attr_mask = 4 ; pub type ibv_xrcd_init_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_xrcd_init_attr { pub comp_mask : u32 , pub fd : :: std :: os :: raw :: c_int , pub oflags : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_xrcd_init_attr"] [:: std :: mem :: size_of :: < ibv_xrcd_init_attr > () - 12usize] ; ["Alignment of ibv_xrcd_init_attr"] [:: std :: mem :: align_of :: < ibv_xrcd_init_attr > () - 4usize] ; ["Offset of field: ibv_xrcd_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_xrcd_init_attr , comp_mask) - 0usize] ; ["Offset of field: ibv_xrcd_init_attr::fd"] [:: std :: mem :: offset_of ! (ibv_xrcd_init_attr , fd) - 4usize] ; ["Offset of field: ibv_xrcd_init_attr::oflags"] [:: std :: mem :: offset_of ! (ibv_xrcd_init_attr , oflags) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_xrcd { pub context : * mut ibv_context , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_xrcd"] [:: std :: mem :: size_of :: < ibv_xrcd > () - 8usize] ; ["Alignment of ibv_xrcd"] [:: std :: mem :: align_of :: < ibv_xrcd > () - 8usize] ; ["Offset of field: ibv_xrcd::context"] [:: std :: mem :: offset_of ! (ibv_xrcd , context) - 0usize] ; } ; impl Default for ibv_xrcd { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_REREG_MR_CHANGE_TRANSLATION : ibv_rereg_mr_flags = 1 ; pub const IBV_REREG_MR_CHANGE_PD : ibv_rereg_mr_flags = 2 ; pub const IBV_REREG_MR_CHANGE_ACCESS : ibv_rereg_mr_flags = 4 ; pub const IBV_REREG_MR_FLAGS_SUPPORTED : ibv_rereg_mr_flags = 7 ; pub type ibv_rereg_mr_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_mr { pub context : * mut ibv_context , pub pd : * mut ibv_pd , pub addr : * mut :: std :: os :: raw :: c_void , pub length : usize , pub handle : u32 , pub lkey : u32 , pub rkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_mr"] [:: std :: mem :: size_of :: < ibv_mr > () - 48usize] ; ["Alignment of ibv_mr"] [:: std :: mem :: align_of :: < ibv_mr > () - 8usize] ; ["Offset of field: ibv_mr::context"] [:: std :: mem :: offset_of ! (ibv_mr , context) - 0usize] ; ["Offset of field: ibv_mr::pd"] [:: std :: mem :: offset_of ! (ibv_mr , pd) - 8usize] ; ["Offset of field: ibv_mr::addr"] [:: std :: mem :: offset_of ! (ibv_mr , addr) - 16usize] ; ["Offset of field: ibv_mr::length"] [:: std :: mem :: offset_of ! (ibv_mr , length) - 24usize] ; ["Offset of field: ibv_mr::handle"] [:: std :: mem :: offset_of ! (ibv_mr , handle) - 32usize] ; ["Offset of field: ibv_mr::lkey"] [:: std :: mem :: offset_of ! (ibv_mr , lkey) - 36usize] ; ["Offset of field: ibv_mr::rkey"] [:: std :: mem :: offset_of ! (ibv_mr , rkey) - 40usize] ; } ; impl Default for ibv_mr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_REG_MR_MASK_IOVA : ibv_mr_init_attr_mask = 1 ; pub const IBV_REG_MR_MASK_ADDR : ibv_mr_init_attr_mask = 2 ; pub const IBV_REG_MR_MASK_FD : ibv_mr_init_attr_mask = 4 ; pub const IBV_REG_MR_MASK_FD_OFFSET : ibv_mr_init_attr_mask = 8 ; pub const IBV_REG_MR_MASK_DMAH : ibv_mr_init_attr_mask = 16 ; pub type ibv_mr_init_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_mr_init_attr { pub length : usize , pub access : :: std :: os :: raw :: c_int , pub comp_mask : u64 , pub iova : u64 , pub addr : * mut :: std :: os :: raw :: c_void , pub fd : :: std :: os :: raw :: c_int , pub fd_offset : u64 , pub dmah : * mut ibv_dmah , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_mr_init_attr"] [:: std :: mem :: size_of :: < ibv_mr_init_attr > () - 64usize] ; ["Alignment of ibv_mr_init_attr"] [:: std :: mem :: align_of :: < ibv_mr_init_attr > () - 8usize] ; ["Offset of field: ibv_mr_init_attr::length"] [:: std :: mem :: offset_of ! (ibv_mr_init_attr , length) - 0usize] ; ["Offset of field: ibv_mr_init_attr::access"] [:: std :: mem :: offset_of ! (ibv_mr_init_attr , access) - 8usize] ; ["Offset of field: ibv_mr_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_mr_init_attr , comp_mask) - 16usize] ; ["Offset of field: ibv_mr_init_attr::iova"] [:: std :: mem :: offset_of ! (ibv_mr_init_attr , iova) - 24usize] ; ["Offset of field: ibv_mr_init_attr::addr"] [:: std :: mem :: offset_of ! (ibv_mr_init_attr , addr) - 32usize] ; ["Offset of field: ibv_mr_init_attr::fd"] [:: std :: mem :: offset_of ! (ibv_mr_init_attr , fd) - 40usize] ; ["Offset of field: ibv_mr_init_attr::fd_offset"] [:: std :: mem :: offset_of ! (ibv_mr_init_attr , fd_offset) - 48usize] ; ["Offset of field: ibv_mr_init_attr::dmah"] [:: std :: mem :: offset_of ! (ibv_mr_init_attr , dmah) - 56usize] ; } ; impl Default for ibv_mr_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_MW_TYPE_1 : ibv_mw_type = 1 ; pub const IBV_MW_TYPE_2 : ibv_mw_type = 2 ; pub type ibv_mw_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_mw { pub context : * mut ibv_context , pub pd : * mut ibv_pd , pub rkey : u32 , pub handle : u32 , pub type_ : ibv_mw_type , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_mw"] [:: std :: mem :: size_of :: < ibv_mw > () - 32usize] ; ["Alignment of ibv_mw"] [:: std :: mem :: align_of :: < ibv_mw > () - 8usize] ; ["Offset of field: ibv_mw::context"] [:: std :: mem :: offset_of ! (ibv_mw , context) - 0usize] ; ["Offset of field: ibv_mw::pd"] [:: std :: mem :: offset_of ! (ibv_mw , pd) - 8usize] ; ["Offset of field: ibv_mw::rkey"] [:: std :: mem :: offset_of ! (ibv_mw , rkey) - 16usize] ; ["Offset of field: ibv_mw::handle"] [:: std :: mem :: offset_of ! (ibv_mw , handle) - 20usize] ; ["Offset of field: ibv_mw::type_"] [:: std :: mem :: offset_of ! (ibv_mw , type_) - 24usize] ; } ; impl Default for ibv_mw { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_global_route { pub dgid : ibv_gid , pub flow_label : u32 , pub sgid_index : u8 , pub hop_limit : u8 , pub traffic_class : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_global_route"] [:: std :: mem :: size_of :: < ibv_global_route > () - 24usize] ; ["Alignment of ibv_global_route"] [:: std :: mem :: align_of :: < ibv_global_route > () - 8usize] ; ["Offset of field: ibv_global_route::dgid"] [:: std :: mem :: offset_of ! (ibv_global_route , dgid) - 0usize] ; ["Offset of field: ibv_global_route::flow_label"] [:: std :: mem :: offset_of ! (ibv_global_route , flow_label) - 16usize] ; ["Offset of field: ibv_global_route::sgid_index"] [:: std :: mem :: offset_of ! (ibv_global_route , sgid_index) - 20usize] ; ["Offset of field: ibv_global_route::hop_limit"] [:: std :: mem :: offset_of ! (ibv_global_route , hop_limit) - 21usize] ; ["Offset of field: ibv_global_route::traffic_class"] [:: std :: mem :: offset_of ! (ibv_global_route , traffic_class) - 22usize] ; } ; impl Default for ibv_global_route { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_grh { pub version_tclass_flow : __be32 , pub paylen : __be16 , pub next_hdr : u8 , pub hop_limit : u8 , pub sgid : ibv_gid , pub dgid : ibv_gid , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_grh"] [:: std :: mem :: size_of :: < ibv_grh > () - 40usize] ; ["Alignment of ibv_grh"] [:: std :: mem :: align_of :: < ibv_grh > () - 8usize] ; ["Offset of field: ibv_grh::version_tclass_flow"] [:: std :: mem :: offset_of ! (ibv_grh , version_tclass_flow) - 0usize] ; ["Offset of field: ibv_grh::paylen"] [:: std :: mem :: offset_of ! (ibv_grh , paylen) - 4usize] ; ["Offset of field: ibv_grh::next_hdr"] [:: std :: mem :: offset_of ! (ibv_grh , next_hdr) - 6usize] ; ["Offset of field: ibv_grh::hop_limit"] [:: std :: mem :: offset_of ! (ibv_grh , hop_limit) - 7usize] ; ["Offset of field: ibv_grh::sgid"] [:: std :: mem :: offset_of ! (ibv_grh , sgid) - 8usize] ; ["Offset of field: ibv_grh::dgid"] [:: std :: mem :: offset_of ! (ibv_grh , dgid) - 24usize] ; } ; impl Default for ibv_grh { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_RATE_MAX : ibv_rate = 0 ; pub const IBV_RATE_2_5_GBPS : ibv_rate = 2 ; pub const IBV_RATE_5_GBPS : ibv_rate = 5 ; pub const IBV_RATE_10_GBPS : ibv_rate = 3 ; pub const IBV_RATE_20_GBPS : ibv_rate = 6 ; pub const IBV_RATE_30_GBPS : ibv_rate = 4 ; pub const IBV_RATE_40_GBPS : ibv_rate = 7 ; pub const IBV_RATE_60_GBPS : ibv_rate = 8 ; pub const IBV_RATE_80_GBPS : ibv_rate = 9 ; pub const IBV_RATE_120_GBPS : ibv_rate = 10 ; pub const IBV_RATE_14_GBPS : ibv_rate = 11 ; pub const IBV_RATE_56_GBPS : ibv_rate = 12 ; pub const IBV_RATE_112_GBPS : ibv_rate = 13 ; pub const IBV_RATE_168_GBPS : ibv_rate = 14 ; pub const IBV_RATE_25_GBPS : ibv_rate = 15 ; pub const IBV_RATE_100_GBPS : ibv_rate = 16 ; pub const IBV_RATE_200_GBPS : ibv_rate = 17 ; pub const IBV_RATE_300_GBPS : ibv_rate = 18 ; pub const IBV_RATE_28_GBPS : ibv_rate = 19 ; pub const IBV_RATE_50_GBPS : ibv_rate = 20 ; pub const IBV_RATE_400_GBPS : ibv_rate = 21 ; pub const IBV_RATE_600_GBPS : ibv_rate = 22 ; pub const IBV_RATE_800_GBPS : ibv_rate = 23 ; pub const IBV_RATE_1200_GBPS : ibv_rate = 24 ; pub type ibv_rate = :: std :: os :: raw :: c_uint ; unsafe extern "C" { # [doc = " ibv_rate_to_mult - Convert the IB rate enum to a multiple of the\n base rate of 2.5 Gbit/sec.  For example, IBV_RATE_5_GBPS will be\n converted to 2, since 5 Gbit/sec is 2 * 2.5 Gbit/sec.\n @rate: rate to convert."] pub fn ibv_rate_to_mult (rate : ibv_rate) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_rate_to_mbps - Convert the IB rate enum to Mbit/sec.\n For example, IBV_RATE_5_GBPS will return the value 5000.\n @rate: rate to convert."] pub fn ibv_rate_to_mbps (rate : ibv_rate) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_ah_attr { pub grh : ibv_global_route , pub dlid : u16 , pub sl : u8 , pub src_path_bits : u8 , pub static_rate : u8 , pub is_global : u8 , pub port_num : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_ah_attr"] [:: std :: mem :: size_of :: < ibv_ah_attr > () - 32usize] ; ["Alignment of ibv_ah_attr"] [:: std :: mem :: align_of :: < ibv_ah_attr > () - 8usize] ; ["Offset of field: ibv_ah_attr::grh"] [:: std :: mem :: offset_of ! (ibv_ah_attr , grh) - 0usize] ; ["Offset of field: ibv_ah_attr::dlid"] [:: std :: mem :: offset_of ! (ibv_ah_attr , dlid) - 24usize] ; ["Offset of field: ibv_ah_attr::sl"] [:: std :: mem :: offset_of ! (ibv_ah_attr , sl) - 26usize] ; ["Offset of field: ibv_ah_attr::src_path_bits"] [:: std :: mem :: offset_of ! (ibv_ah_attr , src_path_bits) - 27usize] ; ["Offset of field: ibv_ah_attr::static_rate"] [:: std :: mem :: offset_of ! (ibv_ah_attr , static_rate) - 28usize] ; ["Offset of field: ibv_ah_attr::is_global"] [:: std :: mem :: offset_of ! (ibv_ah_attr , is_global) - 29usize] ; ["Offset of field: ibv_ah_attr::port_num"] [:: std :: mem :: offset_of ! (ibv_ah_attr , port_num) - 30usize] ; } ; impl Default for ibv_ah_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_SRQ_MAX_WR : ibv_srq_attr_mask = 1 ; pub const IBV_SRQ_LIMIT : ibv_srq_attr_mask = 2 ; pub type ibv_srq_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_srq_attr { pub max_wr : u32 , pub max_sge : u32 , pub srq_limit : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_srq_attr"] [:: std :: mem :: size_of :: < ibv_srq_attr > () - 12usize] ; ["Alignment of ibv_srq_attr"] [:: std :: mem :: align_of :: < ibv_srq_attr > () - 4usize] ; ["Offset of field: ibv_srq_attr::max_wr"] [:: std :: mem :: offset_of ! (ibv_srq_attr , max_wr) - 0usize] ; ["Offset of field: ibv_srq_attr::max_sge"] [:: std :: mem :: offset_of ! (ibv_srq_attr , max_sge) - 4usize] ; ["Offset of field: ibv_srq_attr::srq_limit"] [:: std :: mem :: offset_of ! (ibv_srq_attr , srq_limit) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_srq_init_attr { pub srq_context : * mut :: std :: os :: raw :: c_void , pub attr : ibv_srq_attr , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_srq_init_attr"] [:: std :: mem :: size_of :: < ibv_srq_init_attr > () - 24usize] ; ["Alignment of ibv_srq_init_attr"] [:: std :: mem :: align_of :: < ibv_srq_init_attr > () - 8usize] ; ["Offset of field: ibv_srq_init_attr::srq_context"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr , srq_context) - 0usize] ; ["Offset of field: ibv_srq_init_attr::attr"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr , attr) - 8usize] ; } ; impl Default for ibv_srq_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_SRQT_BASIC : ibv_srq_type = 0 ; pub const IBV_SRQT_XRC : ibv_srq_type = 1 ; pub const IBV_SRQT_TM : ibv_srq_type = 2 ; pub type ibv_srq_type = :: std :: os :: raw :: c_uint ; pub const IBV_SRQ_INIT_ATTR_TYPE : ibv_srq_init_attr_mask = 1 ; pub const IBV_SRQ_INIT_ATTR_PD : ibv_srq_init_attr_mask = 2 ; pub const IBV_SRQ_INIT_ATTR_XRCD : ibv_srq_init_attr_mask = 4 ; pub const IBV_SRQ_INIT_ATTR_CQ : ibv_srq_init_attr_mask = 8 ; pub const IBV_SRQ_INIT_ATTR_TM : ibv_srq_init_attr_mask = 16 ; pub const IBV_SRQ_INIT_ATTR_RESERVED : ibv_srq_init_attr_mask = 32 ; pub type ibv_srq_init_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_tm_cap { pub max_num_tags : u32 , pub max_ops : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_tm_cap"] [:: std :: mem :: size_of :: < ibv_tm_cap > () - 8usize] ; ["Alignment of ibv_tm_cap"] [:: std :: mem :: align_of :: < ibv_tm_cap > () - 4usize] ; ["Offset of field: ibv_tm_cap::max_num_tags"] [:: std :: mem :: offset_of ! (ibv_tm_cap , max_num_tags) - 0usize] ; ["Offset of field: ibv_tm_cap::max_ops"] [:: std :: mem :: offset_of ! (ibv_tm_cap , max_ops) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_srq_init_attr_ex { pub srq_context : * mut :: std :: os :: raw :: c_void , pub attr : ibv_srq_attr , pub comp_mask : u32 , pub srq_type : ibv_srq_type , pub pd : * mut ibv_pd , pub xrcd : * mut ibv_xrcd , pub cq : * mut ibv_cq , pub tm_cap : ibv_tm_cap , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_srq_init_attr_ex"] [:: std :: mem :: size_of :: < ibv_srq_init_attr_ex > () - 64usize] ; ["Alignment of ibv_srq_init_attr_ex"] [:: std :: mem :: align_of :: < ibv_srq_init_attr_ex > () - 8usize] ; ["Offset of field: ibv_srq_init_attr_ex::srq_context"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr_ex , srq_context) - 0usize] ; ["Offset of field: ibv_srq_init_attr_ex::attr"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr_ex , attr) - 8usize] ; ["Offset of field: ibv_srq_init_attr_ex::comp_mask"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr_ex , comp_mask) - 20usize] ; ["Offset of field: ibv_srq_init_attr_ex::srq_type"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr_ex , srq_type) - 24usize] ; ["Offset of field: ibv_srq_init_attr_ex::pd"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr_ex , pd) - 32usize] ; ["Offset of field: ibv_srq_init_attr_ex::xrcd"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr_ex , xrcd) - 40usize] ; ["Offset of field: ibv_srq_init_attr_ex::cq"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr_ex , cq) - 48usize] ; ["Offset of field: ibv_srq_init_attr_ex::tm_cap"] [:: std :: mem :: offset_of ! (ibv_srq_init_attr_ex , tm_cap) - 56usize] ; } ; impl Default for ibv_srq_init_attr_ex { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_WQT_RQ : ibv_wq_type = 0 ; pub type ibv_wq_type = :: std :: os :: raw :: c_uint ; pub const IBV_WQ_INIT_ATTR_FLAGS : ibv_wq_init_attr_mask = 1 ; pub const IBV_WQ_INIT_ATTR_RESERVED : ibv_wq_init_attr_mask = 2 ; pub type ibv_wq_init_attr_mask = :: std :: os :: raw :: c_uint ; pub const IBV_WQ_FLAGS_CVLAN_STRIPPING : ibv_wq_flags = 1 ; pub const IBV_WQ_FLAGS_SCATTER_FCS : ibv_wq_flags = 2 ; pub const IBV_WQ_FLAGS_DELAY_DROP : ibv_wq_flags = 4 ; pub const IBV_WQ_FLAGS_PCI_WRITE_END_PADDING : ibv_wq_flags = 8 ; pub const IBV_WQ_FLAGS_RESERVED : ibv_wq_flags = 16 ; pub type ibv_wq_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_wq_init_attr { pub wq_context : * mut :: std :: os :: raw :: c_void , pub wq_type : ibv_wq_type , pub max_wr : u32 , pub max_sge : u32 , pub pd : * mut ibv_pd , pub cq : * mut ibv_cq , pub comp_mask : u32 , pub create_flags : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_wq_init_attr"] [:: std :: mem :: size_of :: < ibv_wq_init_attr > () - 48usize] ; ["Alignment of ibv_wq_init_attr"] [:: std :: mem :: align_of :: < ibv_wq_init_attr > () - 8usize] ; ["Offset of field: ibv_wq_init_attr::wq_context"] [:: std :: mem :: offset_of ! (ibv_wq_init_attr , wq_context) - 0usize] ; ["Offset of field: ibv_wq_init_attr::wq_type"] [:: std :: mem :: offset_of ! (ibv_wq_init_attr , wq_type) - 8usize] ; ["Offset of field: ibv_wq_init_attr::max_wr"] [:: std :: mem :: offset_of ! (ibv_wq_init_attr , max_wr) - 12usize] ; ["Offset of field: ibv_wq_init_attr::max_sge"] [:: std :: mem :: offset_of ! (ibv_wq_init_attr , max_sge) - 16usize] ; ["Offset of field: ibv_wq_init_attr::pd"] [:: std :: mem :: offset_of ! (ibv_wq_init_attr , pd) - 24usize] ; ["Offset of field: ibv_wq_init_attr::cq"] [:: std :: mem :: offset_of ! (ibv_wq_init_attr , cq) - 32usize] ; ["Offset of field: ibv_wq_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_wq_init_attr , comp_mask) - 40usize] ; ["Offset of field: ibv_wq_init_attr::create_flags"] [:: std :: mem :: offset_of ! (ibv_wq_init_attr , create_flags) - 44usize] ; } ; impl Default for ibv_wq_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_WQS_RESET : ibv_wq_state = 0 ; pub const IBV_WQS_RDY : ibv_wq_state = 1 ; pub const IBV_WQS_ERR : ibv_wq_state = 2 ; pub const IBV_WQS_UNKNOWN : ibv_wq_state = 3 ; pub type ibv_wq_state = :: std :: os :: raw :: c_uint ; pub const IBV_WQ_ATTR_STATE : ibv_wq_attr_mask = 1 ; pub const IBV_WQ_ATTR_CURR_STATE : ibv_wq_attr_mask = 2 ; pub const IBV_WQ_ATTR_FLAGS : ibv_wq_attr_mask = 4 ; pub const IBV_WQ_ATTR_RESERVED : ibv_wq_attr_mask = 8 ; pub type ibv_wq_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_wq_attr { pub attr_mask : u32 , pub wq_state : ibv_wq_state , pub curr_wq_state : ibv_wq_state , pub flags : u32 , pub flags_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_wq_attr"] [:: std :: mem :: size_of :: < ibv_wq_attr > () - 20usize] ; ["Alignment of ibv_wq_attr"] [:: std :: mem :: align_of :: < ibv_wq_attr > () - 4usize] ; ["Offset of field: ibv_wq_attr::attr_mask"] [:: std :: mem :: offset_of ! (ibv_wq_attr , attr_mask) - 0usize] ; ["Offset of field: ibv_wq_attr::wq_state"] [:: std :: mem :: offset_of ! (ibv_wq_attr , wq_state) - 4usize] ; ["Offset of field: ibv_wq_attr::curr_wq_state"] [:: std :: mem :: offset_of ! (ibv_wq_attr , curr_wq_state) - 8usize] ; ["Offset of field: ibv_wq_attr::flags"] [:: std :: mem :: offset_of ! (ibv_wq_attr , flags) - 12usize] ; ["Offset of field: ibv_wq_attr::flags_mask"] [:: std :: mem :: offset_of ! (ibv_wq_attr , flags_mask) - 16usize] ; } ; impl Default for ibv_wq_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_rwq_ind_table { pub context : * mut ibv_context , pub ind_tbl_handle : :: std :: os :: raw :: c_int , pub ind_tbl_num : :: std :: os :: raw :: c_int , pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_rwq_ind_table"] [:: std :: mem :: size_of :: < ibv_rwq_ind_table > () - 24usize] ; ["Alignment of ibv_rwq_ind_table"] [:: std :: mem :: align_of :: < ibv_rwq_ind_table > () - 8usize] ; ["Offset of field: ibv_rwq_ind_table::context"] [:: std :: mem :: offset_of ! (ibv_rwq_ind_table , context) - 0usize] ; ["Offset of field: ibv_rwq_ind_table::ind_tbl_handle"] [:: std :: mem :: offset_of ! (ibv_rwq_ind_table , ind_tbl_handle) - 8usize] ; ["Offset of field: ibv_rwq_ind_table::ind_tbl_num"] [:: std :: mem :: offset_of ! (ibv_rwq_ind_table , ind_tbl_num) - 12usize] ; ["Offset of field: ibv_rwq_ind_table::comp_mask"] [:: std :: mem :: offset_of ! (ibv_rwq_ind_table , comp_mask) - 16usize] ; } ; impl Default for ibv_rwq_ind_table { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_CREATE_IND_TABLE_RESERVED : ibv_ind_table_init_attr_mask = 1 ; pub type ibv_ind_table_init_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_rwq_ind_table_init_attr { pub log_ind_tbl_size : u32 , pub ind_tbl : * mut * mut ibv_wq , pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_rwq_ind_table_init_attr"] [:: std :: mem :: size_of :: < ibv_rwq_ind_table_init_attr > () - 24usize] ; ["Alignment of ibv_rwq_ind_table_init_attr"] [:: std :: mem :: align_of :: < ibv_rwq_ind_table_init_attr > () - 8usize] ; ["Offset of field: ibv_rwq_ind_table_init_attr::log_ind_tbl_size"] [:: std :: mem :: offset_of ! (ibv_rwq_ind_table_init_attr , log_ind_tbl_size) - 0usize] ; ["Offset of field: ibv_rwq_ind_table_init_attr::ind_tbl"] [:: std :: mem :: offset_of ! (ibv_rwq_ind_table_init_attr , ind_tbl) - 8usize] ; ["Offset of field: ibv_rwq_ind_table_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_rwq_ind_table_init_attr , comp_mask) - 16usize] ; } ; impl Default for ibv_rwq_ind_table_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub mod ibv_qp_type { pub type Type = :: std :: os :: raw :: c_uint ; pub const IBV_QPT_RC : Type = 2 ; pub const IBV_QPT_UC : Type = 3 ; pub const IBV_QPT_UD : Type = 4 ; pub const IBV_QPT_RAW_PACKET : Type = 8 ; pub const IBV_QPT_XRC_SEND : Type = 9 ; pub const IBV_QPT_XRC_RECV : Type = 10 ; pub const IBV_QPT_DRIVER : Type = 255 ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_qp_cap { pub max_send_wr : u32 , pub max_recv_wr : u32 , pub max_send_sge : u32 , pub max_recv_sge : u32 , pub max_inline_data : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_qp_cap"] [:: std :: mem :: size_of :: < ibv_qp_cap > () - 20usize] ; ["Alignment of ibv_qp_cap"] [:: std :: mem :: align_of :: < ibv_qp_cap > () - 4usize] ; ["Offset of field: ibv_qp_cap::max_send_wr"] [:: std :: mem :: offset_of ! (ibv_qp_cap , max_send_wr) - 0usize] ; ["Offset of field: ibv_qp_cap::max_recv_wr"] [:: std :: mem :: offset_of ! (ibv_qp_cap , max_recv_wr) - 4usize] ; ["Offset of field: ibv_qp_cap::max_send_sge"] [:: std :: mem :: offset_of ! (ibv_qp_cap , max_send_sge) - 8usize] ; ["Offset of field: ibv_qp_cap::max_recv_sge"] [:: std :: mem :: offset_of ! (ibv_qp_cap , max_recv_sge) - 12usize] ; ["Offset of field: ibv_qp_cap::max_inline_data"] [:: std :: mem :: offset_of ! (ibv_qp_cap , max_inline_data) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_qp_init_attr { pub qp_context : * mut :: std :: os :: raw :: c_void , pub send_cq : * mut ibv_cq , pub recv_cq : * mut ibv_cq , pub srq : * mut ibv_srq , pub cap : ibv_qp_cap , pub qp_type : ibv_qp_type :: Type , pub sq_sig_all : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_qp_init_attr"] [:: std :: mem :: size_of :: < ibv_qp_init_attr > () - 64usize] ; ["Alignment of ibv_qp_init_attr"] [:: std :: mem :: align_of :: < ibv_qp_init_attr > () - 8usize] ; ["Offset of field: ibv_qp_init_attr::qp_context"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr , qp_context) - 0usize] ; ["Offset of field: ibv_qp_init_attr::send_cq"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr , send_cq) - 8usize] ; ["Offset of field: ibv_qp_init_attr::recv_cq"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr , recv_cq) - 16usize] ; ["Offset of field: ibv_qp_init_attr::srq"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr , srq) - 24usize] ; ["Offset of field: ibv_qp_init_attr::cap"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr , cap) - 32usize] ; ["Offset of field: ibv_qp_init_attr::qp_type"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr , qp_type) - 52usize] ; ["Offset of field: ibv_qp_init_attr::sq_sig_all"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr , sq_sig_all) - 56usize] ; } ; impl Default for ibv_qp_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_QP_INIT_ATTR_PD : ibv_qp_init_attr_mask = 1 ; pub const IBV_QP_INIT_ATTR_XRCD : ibv_qp_init_attr_mask = 2 ; pub const IBV_QP_INIT_ATTR_CREATE_FLAGS : ibv_qp_init_attr_mask = 4 ; pub const IBV_QP_INIT_ATTR_MAX_TSO_HEADER : ibv_qp_init_attr_mask = 8 ; pub const IBV_QP_INIT_ATTR_IND_TABLE : ibv_qp_init_attr_mask = 16 ; pub const IBV_QP_INIT_ATTR_RX_HASH : ibv_qp_init_attr_mask = 32 ; pub const IBV_QP_INIT_ATTR_SEND_OPS_FLAGS : ibv_qp_init_attr_mask = 64 ; pub type ibv_qp_init_attr_mask = :: std :: os :: raw :: c_uint ; pub const IBV_QP_CREATE_BLOCK_SELF_MCAST_LB : ibv_qp_create_flags = 2 ; pub const IBV_QP_CREATE_SCATTER_FCS : ibv_qp_create_flags = 256 ; pub const IBV_QP_CREATE_CVLAN_STRIPPING : ibv_qp_create_flags = 512 ; pub const IBV_QP_CREATE_SOURCE_QPN : ibv_qp_create_flags = 1024 ; pub const IBV_QP_CREATE_PCI_WRITE_END_PADDING : ibv_qp_create_flags = 2048 ; pub type ibv_qp_create_flags = :: std :: os :: raw :: c_uint ; pub const IBV_QP_EX_WITH_RDMA_WRITE : ibv_qp_create_send_ops_flags = 1 ; pub const IBV_QP_EX_WITH_RDMA_WRITE_WITH_IMM : ibv_qp_create_send_ops_flags = 2 ; pub const IBV_QP_EX_WITH_SEND : ibv_qp_create_send_ops_flags = 4 ; pub const IBV_QP_EX_WITH_SEND_WITH_IMM : ibv_qp_create_send_ops_flags = 8 ; pub const IBV_QP_EX_WITH_RDMA_READ : ibv_qp_create_send_ops_flags = 16 ; pub const IBV_QP_EX_WITH_ATOMIC_CMP_AND_SWP : ibv_qp_create_send_ops_flags = 32 ; pub const IBV_QP_EX_WITH_ATOMIC_FETCH_AND_ADD : ibv_qp_create_send_ops_flags = 64 ; pub const IBV_QP_EX_WITH_LOCAL_INV : ibv_qp_create_send_ops_flags = 128 ; pub const IBV_QP_EX_WITH_BIND_MW : ibv_qp_create_send_ops_flags = 256 ; pub const IBV_QP_EX_WITH_SEND_WITH_INV : ibv_qp_create_send_ops_flags = 512 ; pub const IBV_QP_EX_WITH_TSO : ibv_qp_create_send_ops_flags = 1024 ; pub const IBV_QP_EX_WITH_FLUSH : ibv_qp_create_send_ops_flags = 2048 ; pub const IBV_QP_EX_WITH_ATOMIC_WRITE : ibv_qp_create_send_ops_flags = 4096 ; pub type ibv_qp_create_send_ops_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_rx_hash_conf { pub rx_hash_function : u8 , pub rx_hash_key_len : u8 , pub rx_hash_key : * mut u8 , pub rx_hash_fields_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_rx_hash_conf"] [:: std :: mem :: size_of :: < ibv_rx_hash_conf > () - 24usize] ; ["Alignment of ibv_rx_hash_conf"] [:: std :: mem :: align_of :: < ibv_rx_hash_conf > () - 8usize] ; ["Offset of field: ibv_rx_hash_conf::rx_hash_function"] [:: std :: mem :: offset_of ! (ibv_rx_hash_conf , rx_hash_function) - 0usize] ; ["Offset of field: ibv_rx_hash_conf::rx_hash_key_len"] [:: std :: mem :: offset_of ! (ibv_rx_hash_conf , rx_hash_key_len) - 1usize] ; ["Offset of field: ibv_rx_hash_conf::rx_hash_key"] [:: std :: mem :: offset_of ! (ibv_rx_hash_conf , rx_hash_key) - 8usize] ; ["Offset of field: ibv_rx_hash_conf::rx_hash_fields_mask"] [:: std :: mem :: offset_of ! (ibv_rx_hash_conf , rx_hash_fields_mask) - 16usize] ; } ; impl Default for ibv_rx_hash_conf { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_qp_init_attr_ex { pub qp_context : * mut :: std :: os :: raw :: c_void , pub send_cq : * mut ibv_cq , pub recv_cq : * mut ibv_cq , pub srq : * mut ibv_srq , pub cap : ibv_qp_cap , pub qp_type : ibv_qp_type :: Type , pub sq_sig_all : :: std :: os :: raw :: c_int , pub comp_mask : u32 , pub pd : * mut ibv_pd , pub xrcd : * mut ibv_xrcd , pub create_flags : u32 , pub max_tso_header : u16 , pub rwq_ind_tbl : * mut ibv_rwq_ind_table , pub rx_hash_conf : ibv_rx_hash_conf , pub source_qpn : u32 , pub send_ops_flags : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_qp_init_attr_ex"] [:: std :: mem :: size_of :: < ibv_qp_init_attr_ex > () - 136usize] ; ["Alignment of ibv_qp_init_attr_ex"] [:: std :: mem :: align_of :: < ibv_qp_init_attr_ex > () - 8usize] ; ["Offset of field: ibv_qp_init_attr_ex::qp_context"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , qp_context) - 0usize] ; ["Offset of field: ibv_qp_init_attr_ex::send_cq"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , send_cq) - 8usize] ; ["Offset of field: ibv_qp_init_attr_ex::recv_cq"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , recv_cq) - 16usize] ; ["Offset of field: ibv_qp_init_attr_ex::srq"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , srq) - 24usize] ; ["Offset of field: ibv_qp_init_attr_ex::cap"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , cap) - 32usize] ; ["Offset of field: ibv_qp_init_attr_ex::qp_type"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , qp_type) - 52usize] ; ["Offset of field: ibv_qp_init_attr_ex::sq_sig_all"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , sq_sig_all) - 56usize] ; ["Offset of field: ibv_qp_init_attr_ex::comp_mask"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , comp_mask) - 60usize] ; ["Offset of field: ibv_qp_init_attr_ex::pd"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , pd) - 64usize] ; ["Offset of field: ibv_qp_init_attr_ex::xrcd"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , xrcd) - 72usize] ; ["Offset of field: ibv_qp_init_attr_ex::create_flags"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , create_flags) - 80usize] ; ["Offset of field: ibv_qp_init_attr_ex::max_tso_header"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , max_tso_header) - 84usize] ; ["Offset of field: ibv_qp_init_attr_ex::rwq_ind_tbl"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , rwq_ind_tbl) - 88usize] ; ["Offset of field: ibv_qp_init_attr_ex::rx_hash_conf"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , rx_hash_conf) - 96usize] ; ["Offset of field: ibv_qp_init_attr_ex::source_qpn"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , source_qpn) - 120usize] ; ["Offset of field: ibv_qp_init_attr_ex::send_ops_flags"] [:: std :: mem :: offset_of ! (ibv_qp_init_attr_ex , send_ops_flags) - 128usize] ; } ; impl Default for ibv_qp_init_attr_ex { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_QP_OPEN_ATTR_NUM : ibv_qp_open_attr_mask = 1 ; pub const IBV_QP_OPEN_ATTR_XRCD : ibv_qp_open_attr_mask = 2 ; pub const IBV_QP_OPEN_ATTR_CONTEXT : ibv_qp_open_attr_mask = 4 ; pub const IBV_QP_OPEN_ATTR_TYPE : ibv_qp_open_attr_mask = 8 ; pub const IBV_QP_OPEN_ATTR_RESERVED : ibv_qp_open_attr_mask = 16 ; pub type ibv_qp_open_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_qp_open_attr { pub comp_mask : u32 , pub qp_num : u32 , pub xrcd : * mut ibv_xrcd , pub qp_context : * mut :: std :: os :: raw :: c_void , pub qp_type : ibv_qp_type :: Type , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_qp_open_attr"] [:: std :: mem :: size_of :: < ibv_qp_open_attr > () - 32usize] ; ["Alignment of ibv_qp_open_attr"] [:: std :: mem :: align_of :: < ibv_qp_open_attr > () - 8usize] ; ["Offset of field: ibv_qp_open_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_qp_open_attr , comp_mask) - 0usize] ; ["Offset of field: ibv_qp_open_attr::qp_num"] [:: std :: mem :: offset_of ! (ibv_qp_open_attr , qp_num) - 4usize] ; ["Offset of field: ibv_qp_open_attr::xrcd"] [:: std :: mem :: offset_of ! (ibv_qp_open_attr , xrcd) - 8usize] ; ["Offset of field: ibv_qp_open_attr::qp_context"] [:: std :: mem :: offset_of ! (ibv_qp_open_attr , qp_context) - 16usize] ; ["Offset of field: ibv_qp_open_attr::qp_type"] [:: std :: mem :: offset_of ! (ibv_qp_open_attr , qp_type) - 24usize] ; } ; impl Default for ibv_qp_open_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } impl ibv_qp_attr_mask { pub const IBV_QP_STATE : ibv_qp_attr_mask = ibv_qp_attr_mask (1) ; pub const IBV_QP_CUR_STATE : ibv_qp_attr_mask = ibv_qp_attr_mask (2) ; pub const IBV_QP_EN_SQD_ASYNC_NOTIFY : ibv_qp_attr_mask = ibv_qp_attr_mask (4) ; pub const IBV_QP_ACCESS_FLAGS : ibv_qp_attr_mask = ibv_qp_attr_mask (8) ; pub const IBV_QP_PKEY_INDEX : ibv_qp_attr_mask = ibv_qp_attr_mask (16) ; pub const IBV_QP_PORT : ibv_qp_attr_mask = ibv_qp_attr_mask (32) ; pub const IBV_QP_QKEY : ibv_qp_attr_mask = ibv_qp_attr_mask (64) ; pub const IBV_QP_AV : ibv_qp_attr_mask = ibv_qp_attr_mask (128) ; pub const IBV_QP_PATH_MTU : ibv_qp_attr_mask = ibv_qp_attr_mask (256) ; pub const IBV_QP_TIMEOUT : ibv_qp_attr_mask = ibv_qp_attr_mask (512) ; pub const IBV_QP_RETRY_CNT : ibv_qp_attr_mask = ibv_qp_attr_mask (1024) ; pub const IBV_QP_RNR_RETRY : ibv_qp_attr_mask = ibv_qp_attr_mask (2048) ; pub const IBV_QP_RQ_PSN : ibv_qp_attr_mask = ibv_qp_attr_mask (4096) ; pub const IBV_QP_MAX_QP_RD_ATOMIC : ibv_qp_attr_mask = ibv_qp_attr_mask (8192) ; pub const IBV_QP_ALT_PATH : ibv_qp_attr_mask = ibv_qp_attr_mask (16384) ; pub const IBV_QP_MIN_RNR_TIMER : ibv_qp_attr_mask = ibv_qp_attr_mask (32768) ; pub const IBV_QP_SQ_PSN : ibv_qp_attr_mask = ibv_qp_attr_mask (65536) ; pub const IBV_QP_MAX_DEST_RD_ATOMIC : ibv_qp_attr_mask = ibv_qp_attr_mask (131072) ; pub const IBV_QP_PATH_MIG_STATE : ibv_qp_attr_mask = ibv_qp_attr_mask (262144) ; pub const IBV_QP_CAP : ibv_qp_attr_mask = ibv_qp_attr_mask (524288) ; pub const IBV_QP_DEST_QPN : ibv_qp_attr_mask = ibv_qp_attr_mask (1048576) ; pub const IBV_QP_RATE_LIMIT : ibv_qp_attr_mask = ibv_qp_attr_mask (33554432) ; } impl :: std :: ops :: BitOr < ibv_qp_attr_mask > for ibv_qp_attr_mask { type Output = Self ; # [inline] fn bitor (self , other : Self) -> Self { ibv_qp_attr_mask (self . 0 | other . 0) } } impl :: std :: ops :: BitOrAssign for ibv_qp_attr_mask { # [inline] fn bitor_assign (& mut self , rhs : ibv_qp_attr_mask) { self . 0 |= rhs . 0 ; } } impl :: std :: ops :: BitAnd < ibv_qp_attr_mask > for ibv_qp_attr_mask { type Output = Self ; # [inline] fn bitand (self , other : Self) -> Self { ibv_qp_attr_mask (self . 0 & other . 0) } } impl :: std :: ops :: BitAndAssign for ibv_qp_attr_mask { # [inline] fn bitand_assign (& mut self , rhs : ibv_qp_attr_mask) { self . 0 &= rhs . 0 ; } } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct ibv_qp_attr_mask (pub :: std :: os :: raw :: c_uint) ; pub const IBV_QUERY_QP_DATA_IN_ORDER_RETURN_CAPS : ibv_query_qp_data_in_order_flags = 1 ; pub const IBV_QUERY_QP_DATA_IN_ORDER_DEVICE_ONLY : ibv_query_qp_data_in_order_flags = 2 ; pub type ibv_query_qp_data_in_order_flags = :: std :: os :: raw :: c_uint ; pub const IBV_QUERY_QP_DATA_IN_ORDER_WHOLE_MSG : ibv_query_qp_data_in_order_caps = 1 ; pub const IBV_QUERY_QP_DATA_IN_ORDER_ALIGNED_128_BYTES : ibv_query_qp_data_in_order_caps = 2 ; pub type ibv_query_qp_data_in_order_caps = :: std :: os :: raw :: c_uint ; pub mod ibv_qp_state { pub type Type = :: std :: os :: raw :: c_uint ; pub const IBV_QPS_RESET : Type = 0 ; pub const IBV_QPS_INIT : Type = 1 ; pub const IBV_QPS_RTR : Type = 2 ; pub const IBV_QPS_RTS : Type = 3 ; pub const IBV_QPS_SQD : Type = 4 ; pub const IBV_QPS_SQE : Type = 5 ; pub const IBV_QPS_ERR : Type = 6 ; pub const IBV_QPS_UNKNOWN : Type = 7 ; } pub const IBV_MIG_MIGRATED : ibv_mig_state = 0 ; pub const IBV_MIG_REARM : ibv_mig_state = 1 ; pub const IBV_MIG_ARMED : ibv_mig_state = 2 ; pub type ibv_mig_state = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_qp_attr { pub qp_state : ibv_qp_state :: Type , pub cur_qp_state : ibv_qp_state :: Type , pub path_mtu : ibv_mtu , pub path_mig_state : ibv_mig_state , pub qkey : u32 , pub rq_psn : u32 , pub sq_psn : u32 , pub dest_qp_num : u32 , pub qp_access_flags : :: std :: os :: raw :: c_uint , pub cap : ibv_qp_cap , pub ah_attr : ibv_ah_attr , pub alt_ah_attr : ibv_ah_attr , pub pkey_index : u16 , pub alt_pkey_index : u16 , pub en_sqd_async_notify : u8 , pub sq_draining : u8 , pub max_rd_atomic : u8 , pub max_dest_rd_atomic : u8 , pub min_rnr_timer : u8 , pub port_num : u8 , pub timeout : u8 , pub retry_cnt : u8 , pub rnr_retry : u8 , pub alt_port_num : u8 , pub alt_timeout : u8 , pub rate_limit : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_qp_attr"] [:: std :: mem :: size_of :: < ibv_qp_attr > () - 144usize] ; ["Alignment of ibv_qp_attr"] [:: std :: mem :: align_of :: < ibv_qp_attr > () - 8usize] ; ["Offset of field: ibv_qp_attr::qp_state"] [:: std :: mem :: offset_of ! (ibv_qp_attr , qp_state) - 0usize] ; ["Offset of field: ibv_qp_attr::cur_qp_state"] [:: std :: mem :: offset_of ! (ibv_qp_attr , cur_qp_state) - 4usize] ; ["Offset of field: ibv_qp_attr::path_mtu"] [:: std :: mem :: offset_of ! (ibv_qp_attr , path_mtu) - 8usize] ; ["Offset of field: ibv_qp_attr::path_mig_state"] [:: std :: mem :: offset_of ! (ibv_qp_attr , path_mig_state) - 12usize] ; ["Offset of field: ibv_qp_attr::qkey"] [:: std :: mem :: offset_of ! (ibv_qp_attr , qkey) - 16usize] ; ["Offset of field: ibv_qp_attr::rq_psn"] [:: std :: mem :: offset_of ! (ibv_qp_attr , rq_psn) - 20usize] ; ["Offset of field: ibv_qp_attr::sq_psn"] [:: std :: mem :: offset_of ! (ibv_qp_attr , sq_psn) - 24usize] ; ["Offset of field: ibv_qp_attr::dest_qp_num"] [:: std :: mem :: offset_of ! (ibv_qp_attr , dest_qp_num) - 28usize] ; ["Offset of field: ibv_qp_attr::qp_access_flags"] [:: std :: mem :: offset_of ! (ibv_qp_attr , qp_access_flags) - 32usize] ; ["Offset of field: ibv_qp_attr::cap"] [:: std :: mem :: offset_of ! (ibv_qp_attr , cap) - 36usize] ; ["Offset of field: ibv_qp_attr::ah_attr"] [:: std :: mem :: offset_of ! (ibv_qp_attr , ah_attr) - 56usize] ; ["Offset of field: ibv_qp_attr::alt_ah_attr"] [:: std :: mem :: offset_of ! (ibv_qp_attr , alt_ah_attr) - 88usize] ; ["Offset of field: ibv_qp_attr::pkey_index"] [:: std :: mem :: offset_of ! (ibv_qp_attr , pkey_index) - 120usize] ; ["Offset of field: ibv_qp_attr::alt_pkey_index"] [:: std :: mem :: offset_of ! (ibv_qp_attr , alt_pkey_index) - 122usize] ; ["Offset of field: ibv_qp_attr::en_sqd_async_notify"] [:: std :: mem :: offset_of ! (ibv_qp_attr , en_sqd_async_notify) - 124usize] ; ["Offset of field: ibv_qp_attr::sq_draining"] [:: std :: mem :: offset_of ! (ibv_qp_attr , sq_draining) - 125usize] ; ["Offset of field: ibv_qp_attr::max_rd_atomic"] [:: std :: mem :: offset_of ! (ibv_qp_attr , max_rd_atomic) - 126usize] ; ["Offset of field: ibv_qp_attr::max_dest_rd_atomic"] [:: std :: mem :: offset_of ! (ibv_qp_attr , max_dest_rd_atomic) - 127usize] ; ["Offset of field: ibv_qp_attr::min_rnr_timer"] [:: std :: mem :: offset_of ! (ibv_qp_attr , min_rnr_timer) - 128usize] ; ["Offset of field: ibv_qp_attr::port_num"] [:: std :: mem :: offset_of ! (ibv_qp_attr , port_num) - 129usize] ; ["Offset of field: ibv_qp_attr::timeout"] [:: std :: mem :: offset_of ! (ibv_qp_attr , timeout) - 130usize] ; ["Offset of field: ibv_qp_attr::retry_cnt"] [:: std :: mem :: offset_of ! (ibv_qp_attr , retry_cnt) - 131usize] ; ["Offset of field: ibv_qp_attr::rnr_retry"] [:: std :: mem :: offset_of ! (ibv_qp_attr , rnr_retry) - 132usize] ; ["Offset of field: ibv_qp_attr::alt_port_num"] [:: std :: mem :: offset_of ! (ibv_qp_attr , alt_port_num) - 133usize] ; ["Offset of field: ibv_qp_attr::alt_timeout"] [:: std :: mem :: offset_of ! (ibv_qp_attr , alt_timeout) - 134usize] ; ["Offset of field: ibv_qp_attr::rate_limit"] [:: std :: mem :: offset_of ! (ibv_qp_attr , rate_limit) - 136usize] ; } ; impl Default for ibv_qp_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_qp_rate_limit_attr { pub rate_limit : u32 , pub max_burst_sz : u32 , pub typical_pkt_sz : u16 , pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_qp_rate_limit_attr"] [:: std :: mem :: size_of :: < ibv_qp_rate_limit_attr > () - 16usize] ; ["Alignment of ibv_qp_rate_limit_attr"] [:: std :: mem :: align_of :: < ibv_qp_rate_limit_attr > () - 4usize] ; ["Offset of field: ibv_qp_rate_limit_attr::rate_limit"] [:: std :: mem :: offset_of ! (ibv_qp_rate_limit_attr , rate_limit) - 0usize] ; ["Offset of field: ibv_qp_rate_limit_attr::max_burst_sz"] [:: std :: mem :: offset_of ! (ibv_qp_rate_limit_attr , max_burst_sz) - 4usize] ; ["Offset of field: ibv_qp_rate_limit_attr::typical_pkt_sz"] [:: std :: mem :: offset_of ! (ibv_qp_rate_limit_attr , typical_pkt_sz) - 8usize] ; ["Offset of field: ibv_qp_rate_limit_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_qp_rate_limit_attr , comp_mask) - 12usize] ; } ; pub mod ibv_wr_opcode { pub type Type = :: std :: os :: raw :: c_uint ; pub const IBV_WR_RDMA_WRITE : Type = 0 ; pub const IBV_WR_RDMA_WRITE_WITH_IMM : Type = 1 ; pub const IBV_WR_SEND : Type = 2 ; pub const IBV_WR_SEND_WITH_IMM : Type = 3 ; pub const IBV_WR_RDMA_READ : Type = 4 ; pub const IBV_WR_ATOMIC_CMP_AND_SWP : Type = 5 ; pub const IBV_WR_ATOMIC_FETCH_AND_ADD : Type = 6 ; pub const IBV_WR_LOCAL_INV : Type = 7 ; pub const IBV_WR_BIND_MW : Type = 8 ; pub const IBV_WR_SEND_WITH_INV : Type = 9 ; pub const IBV_WR_TSO : Type = 10 ; pub const IBV_WR_DRIVER1 : Type = 11 ; pub const IBV_WR_FLUSH : Type = 14 ; pub const IBV_WR_ATOMIC_WRITE : Type = 15 ; } unsafe extern "C" { pub fn ibv_wr_opcode_str (opcode : ibv_wr_opcode :: Type) -> * const :: std :: os :: raw :: c_char ; } impl ibv_send_flags { pub const IBV_SEND_FENCE : ibv_send_flags = ibv_send_flags (1) ; pub const IBV_SEND_SIGNALED : ibv_send_flags = ibv_send_flags (2) ; pub const IBV_SEND_SOLICITED : ibv_send_flags = ibv_send_flags (4) ; pub const IBV_SEND_INLINE : ibv_send_flags = ibv_send_flags (8) ; pub const IBV_SEND_IP_CSUM : ibv_send_flags = ibv_send_flags (16) ; } impl :: std :: ops :: BitOr < ibv_send_flags > for ibv_send_flags { type Output = Self ; # [inline] fn bitor (self , other : Self) -> Self { ibv_send_flags (self . 0 | other . 0) } } impl :: std :: ops :: BitOrAssign for ibv_send_flags { # [inline] fn bitor_assign (& mut self , rhs : ibv_send_flags) { self . 0 |= rhs . 0 ; } } impl :: std :: ops :: BitAnd < ibv_send_flags > for ibv_send_flags { type Output = Self ; # [inline] fn bitand (self , other : Self) -> Self { ibv_send_flags (self . 0 & other . 0) } } impl :: std :: ops :: BitAndAssign for ibv_send_flags { # [inline] fn bitand_assign (& mut self , rhs : ibv_send_flags) { self . 0 &= rhs . 0 ; } } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct ibv_send_flags (pub :: std :: os :: raw :: c_uint) ; pub const IBV_FLUSH_GLOBAL : ibv_placement_type = 1 ; pub const IBV_FLUSH_PERSISTENT : ibv_placement_type = 2 ; pub type ibv_placement_type = :: std :: os :: raw :: c_uint ; pub const IBV_FLUSH_RANGE : ibv_selectivity_level = 0 ; pub const IBV_FLUSH_MR : ibv_selectivity_level = 1 ; pub type ibv_selectivity_level = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_data_buf { pub addr : * mut :: std :: os :: raw :: c_void , pub length : usize , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_data_buf"] [:: std :: mem :: size_of :: < ibv_data_buf > () - 16usize] ; ["Alignment of ibv_data_buf"] [:: std :: mem :: align_of :: < ibv_data_buf > () - 8usize] ; ["Offset of field: ibv_data_buf::addr"] [:: std :: mem :: offset_of ! (ibv_data_buf , addr) - 0usize] ; ["Offset of field: ibv_data_buf::length"] [:: std :: mem :: offset_of ! (ibv_data_buf , length) - 8usize] ; } ; impl Default for ibv_data_buf { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_sge { pub addr : u64 , pub length : u32 , pub lkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_sge"] [:: std :: mem :: size_of :: < ibv_sge > () - 16usize] ; ["Alignment of ibv_sge"] [:: std :: mem :: align_of :: < ibv_sge > () - 8usize] ; ["Offset of field: ibv_sge::addr"] [:: std :: mem :: offset_of ! (ibv_sge , addr) - 0usize] ; ["Offset of field: ibv_sge::length"] [:: std :: mem :: offset_of ! (ibv_sge , length) - 8usize] ; ["Offset of field: ibv_sge::lkey"] [:: std :: mem :: offset_of ! (ibv_sge , lkey) - 12usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_fd_arr { pub arr : * mut :: std :: os :: raw :: c_int , pub count : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_fd_arr"] [:: std :: mem :: size_of :: < ibv_fd_arr > () - 16usize] ; ["Alignment of ibv_fd_arr"] [:: std :: mem :: align_of :: < ibv_fd_arr > () - 8usize] ; ["Offset of field: ibv_fd_arr::arr"] [:: std :: mem :: offset_of ! (ibv_fd_arr , arr) - 0usize] ; ["Offset of field: ibv_fd_arr::count"] [:: std :: mem :: offset_of ! (ibv_fd_arr , count) - 8usize] ; } ; impl Default for ibv_fd_arr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_send_wr { pub wr_id : u64 , pub next : * mut ibv_send_wr , pub sg_list : * mut ibv_sge , pub num_sge : :: std :: os :: raw :: c_int , pub opcode : ibv_wr_opcode :: Type , pub send_flags : :: std :: os :: raw :: c_uint , pub __bindgen_anon_1 : ibv_send_wr__bindgen_ty_1 , pub wr : ibv_send_wr__bindgen_ty_2 , pub qp_type : ibv_send_wr__bindgen_ty_3 , pub __bindgen_anon_2 : ibv_send_wr__bindgen_ty_4 , } # [repr (C)] # [derive (Copy , Clone)] pub union ibv_send_wr__bindgen_ty_1 { pub imm_data : __be32 , pub invalidate_rkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_1 > () - 4usize] ; ["Alignment of ibv_send_wr__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_1 > () - 4usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_1::imm_data"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_1 , imm_data) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_1::invalidate_rkey"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_1 , invalidate_rkey) - 0usize] ; } ; impl Default for ibv_send_wr__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub union ibv_send_wr__bindgen_ty_2 { pub rdma : ibv_send_wr__bindgen_ty_2__bindgen_ty_1 , pub atomic : ibv_send_wr__bindgen_ty_2__bindgen_ty_2 , pub ud : ibv_send_wr__bindgen_ty_2__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_send_wr__bindgen_ty_2__bindgen_ty_1 { pub remote_addr : u64 , pub rkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_2__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_2__bindgen_ty_1 > () - 16usize] ; ["Alignment of ibv_send_wr__bindgen_ty_2__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_2__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_1::remote_addr"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_1 , remote_addr) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_1::rkey"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_1 , rkey) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_send_wr__bindgen_ty_2__bindgen_ty_2 { pub remote_addr : u64 , pub compare_add : u64 , pub swap : u64 , pub rkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_2__bindgen_ty_2"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_2__bindgen_ty_2 > () - 32usize] ; ["Alignment of ibv_send_wr__bindgen_ty_2__bindgen_ty_2"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_2__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_2::remote_addr"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_2 , remote_addr) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_2::compare_add"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_2 , compare_add) - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_2::swap"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_2 , swap) - 16usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_2::rkey"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_2 , rkey) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_send_wr__bindgen_ty_2__bindgen_ty_3 { pub ah : * mut ibv_ah , pub remote_qpn : u32 , pub remote_qkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_2__bindgen_ty_3"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_2__bindgen_ty_3 > () - 16usize] ; ["Alignment of ibv_send_wr__bindgen_ty_2__bindgen_ty_3"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_2__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_3::ah"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_3 , ah) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_3::remote_qpn"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_3 , remote_qpn) - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2__bindgen_ty_3::remote_qkey"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2__bindgen_ty_3 , remote_qkey) - 12usize] ; } ; impl Default for ibv_send_wr__bindgen_ty_2__bindgen_ty_3 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_2"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_2 > () - 32usize] ; ["Alignment of ibv_send_wr__bindgen_ty_2"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2::rdma"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2 , rdma) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2::atomic"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2 , atomic) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_2::ud"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_2 , ud) - 0usize] ; } ; impl Default for ibv_send_wr__bindgen_ty_2 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub union ibv_send_wr__bindgen_ty_3 { pub xrc : ibv_send_wr__bindgen_ty_3__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_send_wr__bindgen_ty_3__bindgen_ty_1 { pub remote_srqn : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_3__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_3__bindgen_ty_1 > () - 4usize] ; ["Alignment of ibv_send_wr__bindgen_ty_3__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_3__bindgen_ty_1 > () - 4usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_3__bindgen_ty_1::remote_srqn"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_3__bindgen_ty_1 , remote_srqn) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_3"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_3 > () - 4usize] ; ["Alignment of ibv_send_wr__bindgen_ty_3"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_3 > () - 4usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_3::xrc"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_3 , xrc) - 0usize] ; } ; impl Default for ibv_send_wr__bindgen_ty_3 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub union ibv_send_wr__bindgen_ty_4 { pub bind_mw : ibv_send_wr__bindgen_ty_4__bindgen_ty_1 , pub tso : ibv_send_wr__bindgen_ty_4__bindgen_ty_2 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_send_wr__bindgen_ty_4__bindgen_ty_1 { pub mw : * mut ibv_mw , pub rkey : u32 , pub bind_info : ibv_mw_bind_info , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_4__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_4__bindgen_ty_1 > () - 48usize] ; ["Alignment of ibv_send_wr__bindgen_ty_4__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_4__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_4__bindgen_ty_1::mw"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_4__bindgen_ty_1 , mw) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_4__bindgen_ty_1::rkey"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_4__bindgen_ty_1 , rkey) - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_4__bindgen_ty_1::bind_info"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_4__bindgen_ty_1 , bind_info) - 16usize] ; } ; impl Default for ibv_send_wr__bindgen_ty_4__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_send_wr__bindgen_ty_4__bindgen_ty_2 { pub hdr : * mut :: std :: os :: raw :: c_void , pub hdr_sz : u16 , pub mss : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_4__bindgen_ty_2"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_4__bindgen_ty_2 > () - 16usize] ; ["Alignment of ibv_send_wr__bindgen_ty_4__bindgen_ty_2"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_4__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_4__bindgen_ty_2::hdr"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_4__bindgen_ty_2 , hdr) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_4__bindgen_ty_2::hdr_sz"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_4__bindgen_ty_2 , hdr_sz) - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_4__bindgen_ty_2::mss"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_4__bindgen_ty_2 , mss) - 10usize] ; } ; impl Default for ibv_send_wr__bindgen_ty_4__bindgen_ty_2 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr__bindgen_ty_4"] [:: std :: mem :: size_of :: < ibv_send_wr__bindgen_ty_4 > () - 48usize] ; ["Alignment of ibv_send_wr__bindgen_ty_4"] [:: std :: mem :: align_of :: < ibv_send_wr__bindgen_ty_4 > () - 8usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_4::bind_mw"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_4 , bind_mw) - 0usize] ; ["Offset of field: ibv_send_wr__bindgen_ty_4::tso"] [:: std :: mem :: offset_of ! (ibv_send_wr__bindgen_ty_4 , tso) - 0usize] ; } ; impl Default for ibv_send_wr__bindgen_ty_4 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_send_wr"] [:: std :: mem :: size_of :: < ibv_send_wr > () - 128usize] ; ["Alignment of ibv_send_wr"] [:: std :: mem :: align_of :: < ibv_send_wr > () - 8usize] ; ["Offset of field: ibv_send_wr::wr_id"] [:: std :: mem :: offset_of ! (ibv_send_wr , wr_id) - 0usize] ; ["Offset of field: ibv_send_wr::next"] [:: std :: mem :: offset_of ! (ibv_send_wr , next) - 8usize] ; ["Offset of field: ibv_send_wr::sg_list"] [:: std :: mem :: offset_of ! (ibv_send_wr , sg_list) - 16usize] ; ["Offset of field: ibv_send_wr::num_sge"] [:: std :: mem :: offset_of ! (ibv_send_wr , num_sge) - 24usize] ; ["Offset of field: ibv_send_wr::opcode"] [:: std :: mem :: offset_of ! (ibv_send_wr , opcode) - 28usize] ; ["Offset of field: ibv_send_wr::send_flags"] [:: std :: mem :: offset_of ! (ibv_send_wr , send_flags) - 32usize] ; ["Offset of field: ibv_send_wr::wr"] [:: std :: mem :: offset_of ! (ibv_send_wr , wr) - 40usize] ; ["Offset of field: ibv_send_wr::qp_type"] [:: std :: mem :: offset_of ! (ibv_send_wr , qp_type) - 72usize] ; } ; impl Default for ibv_send_wr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_recv_wr { pub wr_id : u64 , pub next : * mut ibv_recv_wr , pub sg_list : * mut ibv_sge , pub num_sge : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_recv_wr"] [:: std :: mem :: size_of :: < ibv_recv_wr > () - 32usize] ; ["Alignment of ibv_recv_wr"] [:: std :: mem :: align_of :: < ibv_recv_wr > () - 8usize] ; ["Offset of field: ibv_recv_wr::wr_id"] [:: std :: mem :: offset_of ! (ibv_recv_wr , wr_id) - 0usize] ; ["Offset of field: ibv_recv_wr::next"] [:: std :: mem :: offset_of ! (ibv_recv_wr , next) - 8usize] ; ["Offset of field: ibv_recv_wr::sg_list"] [:: std :: mem :: offset_of ! (ibv_recv_wr , sg_list) - 16usize] ; ["Offset of field: ibv_recv_wr::num_sge"] [:: std :: mem :: offset_of ! (ibv_recv_wr , num_sge) - 24usize] ; } ; impl Default for ibv_recv_wr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_WR_TAG_ADD : ibv_ops_wr_opcode = 0 ; pub const IBV_WR_TAG_DEL : ibv_ops_wr_opcode = 1 ; pub const IBV_WR_TAG_SYNC : ibv_ops_wr_opcode = 2 ; pub type ibv_ops_wr_opcode = :: std :: os :: raw :: c_uint ; pub const IBV_OPS_SIGNALED : ibv_ops_flags = 1 ; pub const IBV_OPS_TM_SYNC : ibv_ops_flags = 2 ; pub type ibv_ops_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_ops_wr { pub wr_id : u64 , pub next : * mut ibv_ops_wr , pub opcode : ibv_ops_wr_opcode , pub flags : :: std :: os :: raw :: c_int , pub tm : ibv_ops_wr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_ops_wr__bindgen_ty_1 { pub unexpected_cnt : u32 , pub handle : u32 , pub add : ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 { pub recv_wr_id : u64 , pub sg_list : * mut ibv_sge , pub num_sge : :: std :: os :: raw :: c_int , pub tag : u64 , pub mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_ops_wr__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 > () - 40usize] ; ["Alignment of ibv_ops_wr__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ibv_ops_wr__bindgen_ty_1__bindgen_ty_1::recv_wr_id"] [:: std :: mem :: offset_of ! (ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 , recv_wr_id) - 0usize] ; ["Offset of field: ibv_ops_wr__bindgen_ty_1__bindgen_ty_1::sg_list"] [:: std :: mem :: offset_of ! (ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 , sg_list) - 8usize] ; ["Offset of field: ibv_ops_wr__bindgen_ty_1__bindgen_ty_1::num_sge"] [:: std :: mem :: offset_of ! (ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 , num_sge) - 16usize] ; ["Offset of field: ibv_ops_wr__bindgen_ty_1__bindgen_ty_1::tag"] [:: std :: mem :: offset_of ! (ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 , tag) - 24usize] ; ["Offset of field: ibv_ops_wr__bindgen_ty_1__bindgen_ty_1::mask"] [:: std :: mem :: offset_of ! (ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 , mask) - 32usize] ; } ; impl Default for ibv_ops_wr__bindgen_ty_1__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_ops_wr__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_ops_wr__bindgen_ty_1 > () - 48usize] ; ["Alignment of ibv_ops_wr__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_ops_wr__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ibv_ops_wr__bindgen_ty_1::unexpected_cnt"] [:: std :: mem :: offset_of ! (ibv_ops_wr__bindgen_ty_1 , unexpected_cnt) - 0usize] ; ["Offset of field: ibv_ops_wr__bindgen_ty_1::handle"] [:: std :: mem :: offset_of ! (ibv_ops_wr__bindgen_ty_1 , handle) - 4usize] ; ["Offset of field: ibv_ops_wr__bindgen_ty_1::add"] [:: std :: mem :: offset_of ! (ibv_ops_wr__bindgen_ty_1 , add) - 8usize] ; } ; impl Default for ibv_ops_wr__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_ops_wr"] [:: std :: mem :: size_of :: < ibv_ops_wr > () - 72usize] ; ["Alignment of ibv_ops_wr"] [:: std :: mem :: align_of :: < ibv_ops_wr > () - 8usize] ; ["Offset of field: ibv_ops_wr::wr_id"] [:: std :: mem :: offset_of ! (ibv_ops_wr , wr_id) - 0usize] ; ["Offset of field: ibv_ops_wr::next"] [:: std :: mem :: offset_of ! (ibv_ops_wr , next) - 8usize] ; ["Offset of field: ibv_ops_wr::opcode"] [:: std :: mem :: offset_of ! (ibv_ops_wr , opcode) - 16usize] ; ["Offset of field: ibv_ops_wr::flags"] [:: std :: mem :: offset_of ! (ibv_ops_wr , flags) - 20usize] ; ["Offset of field: ibv_ops_wr::tm"] [:: std :: mem :: offset_of ! (ibv_ops_wr , tm) - 24usize] ; } ; impl Default for ibv_ops_wr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_mw_bind { pub wr_id : u64 , pub send_flags : :: std :: os :: raw :: c_uint , pub bind_info : ibv_mw_bind_info , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_mw_bind"] [:: std :: mem :: size_of :: < ibv_mw_bind > () - 48usize] ; ["Alignment of ibv_mw_bind"] [:: std :: mem :: align_of :: < ibv_mw_bind > () - 8usize] ; ["Offset of field: ibv_mw_bind::wr_id"] [:: std :: mem :: offset_of ! (ibv_mw_bind , wr_id) - 0usize] ; ["Offset of field: ibv_mw_bind::send_flags"] [:: std :: mem :: offset_of ! (ibv_mw_bind , send_flags) - 8usize] ; ["Offset of field: ibv_mw_bind::bind_info"] [:: std :: mem :: offset_of ! (ibv_mw_bind , bind_info) - 16usize] ; } ; impl Default for ibv_mw_bind { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_srq { pub context : * mut ibv_context , pub srq_context : * mut :: std :: os :: raw :: c_void , pub pd : * mut ibv_pd , pub handle : u32 , pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , pub events_completed : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_srq"] [:: std :: mem :: size_of :: < ibv_srq > () - 128usize] ; ["Alignment of ibv_srq"] [:: std :: mem :: align_of :: < ibv_srq > () - 8usize] ; ["Offset of field: ibv_srq::context"] [:: std :: mem :: offset_of ! (ibv_srq , context) - 0usize] ; ["Offset of field: ibv_srq::srq_context"] [:: std :: mem :: offset_of ! (ibv_srq , srq_context) - 8usize] ; ["Offset of field: ibv_srq::pd"] [:: std :: mem :: offset_of ! (ibv_srq , pd) - 16usize] ; ["Offset of field: ibv_srq::handle"] [:: std :: mem :: offset_of ! (ibv_srq , handle) - 24usize] ; ["Offset of field: ibv_srq::mutex"] [:: std :: mem :: offset_of ! (ibv_srq , mutex) - 32usize] ; ["Offset of field: ibv_srq::cond"] [:: std :: mem :: offset_of ! (ibv_srq , cond) - 72usize] ; ["Offset of field: ibv_srq::events_completed"] [:: std :: mem :: offset_of ! (ibv_srq , events_completed) - 120usize] ; } ; impl Default for ibv_srq { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_wq { pub context : * mut ibv_context , pub wq_context : * mut :: std :: os :: raw :: c_void , pub pd : * mut ibv_pd , pub cq : * mut ibv_cq , pub wq_num : u32 , pub handle : u32 , pub state : ibv_wq_state , pub wq_type : ibv_wq_type , pub post_recv : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_wq , recv_wr : * mut ibv_recv_wr , bad_recv_wr : * mut * mut ibv_recv_wr) -> :: std :: os :: raw :: c_int > , pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , pub events_completed : u32 , pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_wq"] [:: std :: mem :: size_of :: < ibv_wq > () - 152usize] ; ["Alignment of ibv_wq"] [:: std :: mem :: align_of :: < ibv_wq > () - 8usize] ; ["Offset of field: ibv_wq::context"] [:: std :: mem :: offset_of ! (ibv_wq , context) - 0usize] ; ["Offset of field: ibv_wq::wq_context"] [:: std :: mem :: offset_of ! (ibv_wq , wq_context) - 8usize] ; ["Offset of field: ibv_wq::pd"] [:: std :: mem :: offset_of ! (ibv_wq , pd) - 16usize] ; ["Offset of field: ibv_wq::cq"] [:: std :: mem :: offset_of ! (ibv_wq , cq) - 24usize] ; ["Offset of field: ibv_wq::wq_num"] [:: std :: mem :: offset_of ! (ibv_wq , wq_num) - 32usize] ; ["Offset of field: ibv_wq::handle"] [:: std :: mem :: offset_of ! (ibv_wq , handle) - 36usize] ; ["Offset of field: ibv_wq::state"] [:: std :: mem :: offset_of ! (ibv_wq , state) - 40usize] ; ["Offset of field: ibv_wq::wq_type"] [:: std :: mem :: offset_of ! (ibv_wq , wq_type) - 44usize] ; ["Offset of field: ibv_wq::post_recv"] [:: std :: mem :: offset_of ! (ibv_wq , post_recv) - 48usize] ; ["Offset of field: ibv_wq::mutex"] [:: std :: mem :: offset_of ! (ibv_wq , mutex) - 56usize] ; ["Offset of field: ibv_wq::cond"] [:: std :: mem :: offset_of ! (ibv_wq , cond) - 96usize] ; ["Offset of field: ibv_wq::events_completed"] [:: std :: mem :: offset_of ! (ibv_wq , events_completed) - 144usize] ; ["Offset of field: ibv_wq::comp_mask"] [:: std :: mem :: offset_of ! (ibv_wq , comp_mask) - 148usize] ; } ; impl Default for ibv_wq { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_qp { pub context : * mut ibv_context , pub qp_context : * mut :: std :: os :: raw :: c_void , pub pd : * mut ibv_pd , pub send_cq : * mut ibv_cq , pub recv_cq : * mut ibv_cq , pub srq : * mut ibv_srq , pub handle : u32 , pub qp_num : u32 , pub state : ibv_qp_state :: Type , pub qp_type : ibv_qp_type :: Type , pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , pub events_completed : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_qp"] [:: std :: mem :: size_of :: < ibv_qp > () - 160usize] ; ["Alignment of ibv_qp"] [:: std :: mem :: align_of :: < ibv_qp > () - 8usize] ; ["Offset of field: ibv_qp::context"] [:: std :: mem :: offset_of ! (ibv_qp , context) - 0usize] ; ["Offset of field: ibv_qp::qp_context"] [:: std :: mem :: offset_of ! (ibv_qp , qp_context) - 8usize] ; ["Offset of field: ibv_qp::pd"] [:: std :: mem :: offset_of ! (ibv_qp , pd) - 16usize] ; ["Offset of field: ibv_qp::send_cq"] [:: std :: mem :: offset_of ! (ibv_qp , send_cq) - 24usize] ; ["Offset of field: ibv_qp::recv_cq"] [:: std :: mem :: offset_of ! (ibv_qp , recv_cq) - 32usize] ; ["Offset of field: ibv_qp::srq"] [:: std :: mem :: offset_of ! (ibv_qp , srq) - 40usize] ; ["Offset of field: ibv_qp::handle"] [:: std :: mem :: offset_of ! (ibv_qp , handle) - 48usize] ; ["Offset of field: ibv_qp::qp_num"] [:: std :: mem :: offset_of ! (ibv_qp , qp_num) - 52usize] ; ["Offset of field: ibv_qp::state"] [:: std :: mem :: offset_of ! (ibv_qp , state) - 56usize] ; ["Offset of field: ibv_qp::qp_type"] [:: std :: mem :: offset_of ! (ibv_qp , qp_type) - 60usize] ; ["Offset of field: ibv_qp::mutex"] [:: std :: mem :: offset_of ! (ibv_qp , mutex) - 64usize] ; ["Offset of field: ibv_qp::cond"] [:: std :: mem :: offset_of ! (ibv_qp , cond) - 104usize] ; ["Offset of field: ibv_qp::events_completed"] [:: std :: mem :: offset_of ! (ibv_qp , events_completed) - 152usize] ; } ; impl Default for ibv_qp { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_qp_ex { pub qp_base : ibv_qp , pub comp_mask : u64 , pub wr_id : u64 , pub wr_flags : :: std :: os :: raw :: c_uint , pub wr_atomic_cmp_swp : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , rkey : u32 , remote_addr : u64 , compare : u64 , swap : u64) > , pub wr_atomic_fetch_add : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , rkey : u32 , remote_addr : u64 , add : u64) > , pub wr_bind_mw : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , mw : * mut ibv_mw , rkey : u32 , bind_info : * const ibv_mw_bind_info) > , pub wr_local_inv : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , invalidate_rkey : u32) > , pub wr_rdma_read : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , rkey : u32 , remote_addr : u64) > , pub wr_rdma_write : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , rkey : u32 , remote_addr : u64) > , pub wr_rdma_write_imm : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , rkey : u32 , remote_addr : u64 , imm_data : __be32) > , pub wr_send : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex) > , pub wr_send_imm : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , imm_data : __be32) > , pub wr_send_inv : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , invalidate_rkey : u32) > , pub wr_send_tso : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , hdr : * mut :: std :: os :: raw :: c_void , hdr_sz : u16 , mss : u16) > , pub wr_set_ud_addr : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , ah : * mut ibv_ah , remote_qpn : u32 , remote_qkey : u32) > , pub wr_set_xrc_srqn : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , remote_srqn : u32) > , pub wr_set_inline_data : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , addr : * mut :: std :: os :: raw :: c_void , length : usize) > , pub wr_set_inline_data_list : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , num_buf : usize , buf_list : * const ibv_data_buf) > , pub wr_set_sge : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , lkey : u32 , addr : u64 , length : u32) > , pub wr_set_sge_list : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , num_sge : usize , sg_list : * const ibv_sge) > , pub wr_start : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex) > , pub wr_complete : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex) -> :: std :: os :: raw :: c_int > , pub wr_abort : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex) > , pub wr_atomic_write : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , rkey : u32 , remote_addr : u64 , atomic_wr : * const :: std :: os :: raw :: c_void) > , pub wr_flush : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp_ex , rkey : u32 , remote_addr : u64 , len : usize , type_ : u8 , level : u8) > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_qp_ex"] [:: std :: mem :: size_of :: < ibv_qp_ex > () - 360usize] ; ["Alignment of ibv_qp_ex"] [:: std :: mem :: align_of :: < ibv_qp_ex > () - 8usize] ; ["Offset of field: ibv_qp_ex::qp_base"] [:: std :: mem :: offset_of ! (ibv_qp_ex , qp_base) - 0usize] ; ["Offset of field: ibv_qp_ex::comp_mask"] [:: std :: mem :: offset_of ! (ibv_qp_ex , comp_mask) - 160usize] ; ["Offset of field: ibv_qp_ex::wr_id"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_id) - 168usize] ; ["Offset of field: ibv_qp_ex::wr_flags"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_flags) - 176usize] ; ["Offset of field: ibv_qp_ex::wr_atomic_cmp_swp"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_atomic_cmp_swp) - 184usize] ; ["Offset of field: ibv_qp_ex::wr_atomic_fetch_add"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_atomic_fetch_add) - 192usize] ; ["Offset of field: ibv_qp_ex::wr_bind_mw"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_bind_mw) - 200usize] ; ["Offset of field: ibv_qp_ex::wr_local_inv"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_local_inv) - 208usize] ; ["Offset of field: ibv_qp_ex::wr_rdma_read"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_rdma_read) - 216usize] ; ["Offset of field: ibv_qp_ex::wr_rdma_write"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_rdma_write) - 224usize] ; ["Offset of field: ibv_qp_ex::wr_rdma_write_imm"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_rdma_write_imm) - 232usize] ; ["Offset of field: ibv_qp_ex::wr_send"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_send) - 240usize] ; ["Offset of field: ibv_qp_ex::wr_send_imm"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_send_imm) - 248usize] ; ["Offset of field: ibv_qp_ex::wr_send_inv"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_send_inv) - 256usize] ; ["Offset of field: ibv_qp_ex::wr_send_tso"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_send_tso) - 264usize] ; ["Offset of field: ibv_qp_ex::wr_set_ud_addr"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_set_ud_addr) - 272usize] ; ["Offset of field: ibv_qp_ex::wr_set_xrc_srqn"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_set_xrc_srqn) - 280usize] ; ["Offset of field: ibv_qp_ex::wr_set_inline_data"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_set_inline_data) - 288usize] ; ["Offset of field: ibv_qp_ex::wr_set_inline_data_list"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_set_inline_data_list) - 296usize] ; ["Offset of field: ibv_qp_ex::wr_set_sge"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_set_sge) - 304usize] ; ["Offset of field: ibv_qp_ex::wr_set_sge_list"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_set_sge_list) - 312usize] ; ["Offset of field: ibv_qp_ex::wr_start"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_start) - 320usize] ; ["Offset of field: ibv_qp_ex::wr_complete"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_complete) - 328usize] ; ["Offset of field: ibv_qp_ex::wr_abort"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_abort) - 336usize] ; ["Offset of field: ibv_qp_ex::wr_atomic_write"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_atomic_write) - 344usize] ; ["Offset of field: ibv_qp_ex::wr_flush"] [:: std :: mem :: offset_of ! (ibv_qp_ex , wr_flush) - 352usize] ; } ; impl Default for ibv_qp_ex { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn ibv_qp_to_qp_ex (qp : * mut ibv_qp) -> * mut ibv_qp_ex ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_ece { pub vendor_id : u32 , pub options : u32 , pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_ece"] [:: std :: mem :: size_of :: < ibv_ece > () - 12usize] ; ["Alignment of ibv_ece"] [:: std :: mem :: align_of :: < ibv_ece > () - 4usize] ; ["Offset of field: ibv_ece::vendor_id"] [:: std :: mem :: offset_of ! (ibv_ece , vendor_id) - 0usize] ; ["Offset of field: ibv_ece::options"] [:: std :: mem :: offset_of ! (ibv_ece , options) - 4usize] ; ["Offset of field: ibv_ece::comp_mask"] [:: std :: mem :: offset_of ! (ibv_ece , comp_mask) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_comp_channel { pub context : * mut ibv_context , pub fd : :: std :: os :: raw :: c_int , pub refcnt : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_comp_channel"] [:: std :: mem :: size_of :: < ibv_comp_channel > () - 16usize] ; ["Alignment of ibv_comp_channel"] [:: std :: mem :: align_of :: < ibv_comp_channel > () - 8usize] ; ["Offset of field: ibv_comp_channel::context"] [:: std :: mem :: offset_of ! (ibv_comp_channel , context) - 0usize] ; ["Offset of field: ibv_comp_channel::fd"] [:: std :: mem :: offset_of ! (ibv_comp_channel , fd) - 8usize] ; ["Offset of field: ibv_comp_channel::refcnt"] [:: std :: mem :: offset_of ! (ibv_comp_channel , refcnt) - 12usize] ; } ; impl Default for ibv_comp_channel { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_cq { pub context : * mut ibv_context , pub channel : * mut ibv_comp_channel , pub cq_context : * mut :: std :: os :: raw :: c_void , pub handle : u32 , pub cqe : :: std :: os :: raw :: c_int , pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , pub comp_events_completed : u32 , pub async_events_completed : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_cq"] [:: std :: mem :: size_of :: < ibv_cq > () - 128usize] ; ["Alignment of ibv_cq"] [:: std :: mem :: align_of :: < ibv_cq > () - 8usize] ; ["Offset of field: ibv_cq::context"] [:: std :: mem :: offset_of ! (ibv_cq , context) - 0usize] ; ["Offset of field: ibv_cq::channel"] [:: std :: mem :: offset_of ! (ibv_cq , channel) - 8usize] ; ["Offset of field: ibv_cq::cq_context"] [:: std :: mem :: offset_of ! (ibv_cq , cq_context) - 16usize] ; ["Offset of field: ibv_cq::handle"] [:: std :: mem :: offset_of ! (ibv_cq , handle) - 24usize] ; ["Offset of field: ibv_cq::cqe"] [:: std :: mem :: offset_of ! (ibv_cq , cqe) - 28usize] ; ["Offset of field: ibv_cq::mutex"] [:: std :: mem :: offset_of ! (ibv_cq , mutex) - 32usize] ; ["Offset of field: ibv_cq::cond"] [:: std :: mem :: offset_of ! (ibv_cq , cond) - 72usize] ; ["Offset of field: ibv_cq::comp_events_completed"] [:: std :: mem :: offset_of ! (ibv_cq , comp_events_completed) - 120usize] ; ["Offset of field: ibv_cq::async_events_completed"] [:: std :: mem :: offset_of ! (ibv_cq , async_events_completed) - 124usize] ; } ; impl Default for ibv_cq { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_poll_cq_attr { pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_poll_cq_attr"] [:: std :: mem :: size_of :: < ibv_poll_cq_attr > () - 4usize] ; ["Alignment of ibv_poll_cq_attr"] [:: std :: mem :: align_of :: < ibv_poll_cq_attr > () - 4usize] ; ["Offset of field: ibv_poll_cq_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_poll_cq_attr , comp_mask) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_wc_tm_info { pub tag : u64 , pub priv_ : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_wc_tm_info"] [:: std :: mem :: size_of :: < ibv_wc_tm_info > () - 16usize] ; ["Alignment of ibv_wc_tm_info"] [:: std :: mem :: align_of :: < ibv_wc_tm_info > () - 8usize] ; ["Offset of field: ibv_wc_tm_info::tag"] [:: std :: mem :: offset_of ! (ibv_wc_tm_info , tag) - 0usize] ; ["Offset of field: ibv_wc_tm_info::priv_"] [:: std :: mem :: offset_of ! (ibv_wc_tm_info , priv_) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_cq_ex { pub context : * mut ibv_context , pub channel : * mut ibv_comp_channel , pub cq_context : * mut :: std :: os :: raw :: c_void , pub handle : u32 , pub cqe : :: std :: os :: raw :: c_int , pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , pub comp_events_completed : u32 , pub async_events_completed : u32 , pub comp_mask : u32 , pub status : ibv_wc_status :: Type , pub wr_id : u64 , pub start_poll : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex , attr : * mut ibv_poll_cq_attr) -> :: std :: os :: raw :: c_int > , pub next_poll : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> :: std :: os :: raw :: c_int > , pub end_poll : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) > , pub read_opcode : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> ibv_wc_opcode :: Type > , pub read_vendor_err : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u32 > , pub read_byte_len : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u32 > , pub read_imm_data : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> __be32 > , pub read_qp_num : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u32 > , pub read_src_qp : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u32 > , pub read_wc_flags : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> :: std :: os :: raw :: c_uint > , pub read_slid : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u32 > , pub read_sl : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u8 > , pub read_dlid_path_bits : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u8 > , pub read_completion_ts : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u64 > , pub read_cvlan : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u16 > , pub read_flow_tag : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u32 > , pub read_tm_info : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex , tm_info : * mut ibv_wc_tm_info) > , pub read_completion_wallclock_ns : :: std :: option :: Option < unsafe extern "C" fn (current : * mut ibv_cq_ex) -> u64 > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_cq_ex"] [:: std :: mem :: size_of :: < ibv_cq_ex > () - 288usize] ; ["Alignment of ibv_cq_ex"] [:: std :: mem :: align_of :: < ibv_cq_ex > () - 8usize] ; ["Offset of field: ibv_cq_ex::context"] [:: std :: mem :: offset_of ! (ibv_cq_ex , context) - 0usize] ; ["Offset of field: ibv_cq_ex::channel"] [:: std :: mem :: offset_of ! (ibv_cq_ex , channel) - 8usize] ; ["Offset of field: ibv_cq_ex::cq_context"] [:: std :: mem :: offset_of ! (ibv_cq_ex , cq_context) - 16usize] ; ["Offset of field: ibv_cq_ex::handle"] [:: std :: mem :: offset_of ! (ibv_cq_ex , handle) - 24usize] ; ["Offset of field: ibv_cq_ex::cqe"] [:: std :: mem :: offset_of ! (ibv_cq_ex , cqe) - 28usize] ; ["Offset of field: ibv_cq_ex::mutex"] [:: std :: mem :: offset_of ! (ibv_cq_ex , mutex) - 32usize] ; ["Offset of field: ibv_cq_ex::cond"] [:: std :: mem :: offset_of ! (ibv_cq_ex , cond) - 72usize] ; ["Offset of field: ibv_cq_ex::comp_events_completed"] [:: std :: mem :: offset_of ! (ibv_cq_ex , comp_events_completed) - 120usize] ; ["Offset of field: ibv_cq_ex::async_events_completed"] [:: std :: mem :: offset_of ! (ibv_cq_ex , async_events_completed) - 124usize] ; ["Offset of field: ibv_cq_ex::comp_mask"] [:: std :: mem :: offset_of ! (ibv_cq_ex , comp_mask) - 128usize] ; ["Offset of field: ibv_cq_ex::status"] [:: std :: mem :: offset_of ! (ibv_cq_ex , status) - 132usize] ; ["Offset of field: ibv_cq_ex::wr_id"] [:: std :: mem :: offset_of ! (ibv_cq_ex , wr_id) - 136usize] ; ["Offset of field: ibv_cq_ex::start_poll"] [:: std :: mem :: offset_of ! (ibv_cq_ex , start_poll) - 144usize] ; ["Offset of field: ibv_cq_ex::next_poll"] [:: std :: mem :: offset_of ! (ibv_cq_ex , next_poll) - 152usize] ; ["Offset of field: ibv_cq_ex::end_poll"] [:: std :: mem :: offset_of ! (ibv_cq_ex , end_poll) - 160usize] ; ["Offset of field: ibv_cq_ex::read_opcode"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_opcode) - 168usize] ; ["Offset of field: ibv_cq_ex::read_vendor_err"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_vendor_err) - 176usize] ; ["Offset of field: ibv_cq_ex::read_byte_len"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_byte_len) - 184usize] ; ["Offset of field: ibv_cq_ex::read_imm_data"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_imm_data) - 192usize] ; ["Offset of field: ibv_cq_ex::read_qp_num"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_qp_num) - 200usize] ; ["Offset of field: ibv_cq_ex::read_src_qp"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_src_qp) - 208usize] ; ["Offset of field: ibv_cq_ex::read_wc_flags"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_wc_flags) - 216usize] ; ["Offset of field: ibv_cq_ex::read_slid"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_slid) - 224usize] ; ["Offset of field: ibv_cq_ex::read_sl"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_sl) - 232usize] ; ["Offset of field: ibv_cq_ex::read_dlid_path_bits"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_dlid_path_bits) - 240usize] ; ["Offset of field: ibv_cq_ex::read_completion_ts"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_completion_ts) - 248usize] ; ["Offset of field: ibv_cq_ex::read_cvlan"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_cvlan) - 256usize] ; ["Offset of field: ibv_cq_ex::read_flow_tag"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_flow_tag) - 264usize] ; ["Offset of field: ibv_cq_ex::read_tm_info"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_tm_info) - 272usize] ; ["Offset of field: ibv_cq_ex::read_completion_wallclock_ns"] [:: std :: mem :: offset_of ! (ibv_cq_ex , read_completion_wallclock_ns) - 280usize] ; } ; impl Default for ibv_cq_ex { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_CQ_ATTR_MODERATE : ibv_cq_attr_mask = 1 ; pub const IBV_CQ_ATTR_RESERVED : ibv_cq_attr_mask = 2 ; pub type ibv_cq_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_moderate_cq { pub cq_count : u16 , pub cq_period : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_moderate_cq"] [:: std :: mem :: size_of :: < ibv_moderate_cq > () - 4usize] ; ["Alignment of ibv_moderate_cq"] [:: std :: mem :: align_of :: < ibv_moderate_cq > () - 2usize] ; ["Offset of field: ibv_moderate_cq::cq_count"] [:: std :: mem :: offset_of ! (ibv_moderate_cq , cq_count) - 0usize] ; ["Offset of field: ibv_moderate_cq::cq_period"] [:: std :: mem :: offset_of ! (ibv_moderate_cq , cq_period) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_modify_cq_attr { pub attr_mask : u32 , pub moderate : ibv_moderate_cq , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_modify_cq_attr"] [:: std :: mem :: size_of :: < ibv_modify_cq_attr > () - 8usize] ; ["Alignment of ibv_modify_cq_attr"] [:: std :: mem :: align_of :: < ibv_modify_cq_attr > () - 4usize] ; ["Offset of field: ibv_modify_cq_attr::attr_mask"] [:: std :: mem :: offset_of ! (ibv_modify_cq_attr , attr_mask) - 0usize] ; ["Offset of field: ibv_modify_cq_attr::moderate"] [:: std :: mem :: offset_of ! (ibv_modify_cq_attr , moderate) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_ah { pub context : * mut ibv_context , pub pd : * mut ibv_pd , pub handle : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_ah"] [:: std :: mem :: size_of :: < ibv_ah > () - 24usize] ; ["Alignment of ibv_ah"] [:: std :: mem :: align_of :: < ibv_ah > () - 8usize] ; ["Offset of field: ibv_ah::context"] [:: std :: mem :: offset_of ! (ibv_ah , context) - 0usize] ; ["Offset of field: ibv_ah::pd"] [:: std :: mem :: offset_of ! (ibv_ah , pd) - 8usize] ; ["Offset of field: ibv_ah::handle"] [:: std :: mem :: offset_of ! (ibv_ah , handle) - 16usize] ; } ; impl Default for ibv_ah { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_FLOW_ATTR_FLAGS_DONT_TRAP : ibv_flow_flags = 2 ; pub const IBV_FLOW_ATTR_FLAGS_EGRESS : ibv_flow_flags = 4 ; pub type ibv_flow_flags = :: std :: os :: raw :: c_uint ; pub const IBV_FLOW_ATTR_NORMAL : ibv_flow_attr_type = 0 ; pub const IBV_FLOW_ATTR_ALL_DEFAULT : ibv_flow_attr_type = 1 ; pub const IBV_FLOW_ATTR_MC_DEFAULT : ibv_flow_attr_type = 2 ; pub const IBV_FLOW_ATTR_SNIFFER : ibv_flow_attr_type = 3 ; pub type ibv_flow_attr_type = :: std :: os :: raw :: c_uint ; pub const IBV_FLOW_SPEC_ETH : ibv_flow_spec_type = 32 ; pub const IBV_FLOW_SPEC_IPV4 : ibv_flow_spec_type = 48 ; pub const IBV_FLOW_SPEC_IPV6 : ibv_flow_spec_type = 49 ; pub const IBV_FLOW_SPEC_IPV4_EXT : ibv_flow_spec_type = 50 ; pub const IBV_FLOW_SPEC_ESP : ibv_flow_spec_type = 52 ; pub const IBV_FLOW_SPEC_TCP : ibv_flow_spec_type = 64 ; pub const IBV_FLOW_SPEC_UDP : ibv_flow_spec_type = 65 ; pub const IBV_FLOW_SPEC_VXLAN_TUNNEL : ibv_flow_spec_type = 80 ; pub const IBV_FLOW_SPEC_GRE : ibv_flow_spec_type = 81 ; pub const IBV_FLOW_SPEC_MPLS : ibv_flow_spec_type = 96 ; pub const IBV_FLOW_SPEC_INNER : ibv_flow_spec_type = 256 ; pub const IBV_FLOW_SPEC_ACTION_TAG : ibv_flow_spec_type = 4096 ; pub const IBV_FLOW_SPEC_ACTION_DROP : ibv_flow_spec_type = 4097 ; pub const IBV_FLOW_SPEC_ACTION_HANDLE : ibv_flow_spec_type = 4098 ; pub const IBV_FLOW_SPEC_ACTION_COUNT : ibv_flow_spec_type = 4099 ; pub type ibv_flow_spec_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_eth_filter { pub dst_mac : [u8 ; 6usize] , pub src_mac : [u8 ; 6usize] , pub ether_type : u16 , pub vlan_tag : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_eth_filter"] [:: std :: mem :: size_of :: < ibv_flow_eth_filter > () - 16usize] ; ["Alignment of ibv_flow_eth_filter"] [:: std :: mem :: align_of :: < ibv_flow_eth_filter > () - 2usize] ; ["Offset of field: ibv_flow_eth_filter::dst_mac"] [:: std :: mem :: offset_of ! (ibv_flow_eth_filter , dst_mac) - 0usize] ; ["Offset of field: ibv_flow_eth_filter::src_mac"] [:: std :: mem :: offset_of ! (ibv_flow_eth_filter , src_mac) - 6usize] ; ["Offset of field: ibv_flow_eth_filter::ether_type"] [:: std :: mem :: offset_of ! (ibv_flow_eth_filter , ether_type) - 12usize] ; ["Offset of field: ibv_flow_eth_filter::vlan_tag"] [:: std :: mem :: offset_of ! (ibv_flow_eth_filter , vlan_tag) - 14usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_eth { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_eth_filter , pub mask : ibv_flow_eth_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_eth"] [:: std :: mem :: size_of :: < ibv_flow_spec_eth > () - 40usize] ; ["Alignment of ibv_flow_spec_eth"] [:: std :: mem :: align_of :: < ibv_flow_spec_eth > () - 4usize] ; ["Offset of field: ibv_flow_spec_eth::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_eth , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_eth::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_eth , size) - 4usize] ; ["Offset of field: ibv_flow_spec_eth::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_eth , val) - 6usize] ; ["Offset of field: ibv_flow_spec_eth::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_eth , mask) - 22usize] ; } ; impl Default for ibv_flow_spec_eth { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_ipv4_filter { pub src_ip : u32 , pub dst_ip : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_ipv4_filter"] [:: std :: mem :: size_of :: < ibv_flow_ipv4_filter > () - 8usize] ; ["Alignment of ibv_flow_ipv4_filter"] [:: std :: mem :: align_of :: < ibv_flow_ipv4_filter > () - 4usize] ; ["Offset of field: ibv_flow_ipv4_filter::src_ip"] [:: std :: mem :: offset_of ! (ibv_flow_ipv4_filter , src_ip) - 0usize] ; ["Offset of field: ibv_flow_ipv4_filter::dst_ip"] [:: std :: mem :: offset_of ! (ibv_flow_ipv4_filter , dst_ip) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_ipv4 { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_ipv4_filter , pub mask : ibv_flow_ipv4_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_ipv4"] [:: std :: mem :: size_of :: < ibv_flow_spec_ipv4 > () - 24usize] ; ["Alignment of ibv_flow_spec_ipv4"] [:: std :: mem :: align_of :: < ibv_flow_spec_ipv4 > () - 4usize] ; ["Offset of field: ibv_flow_spec_ipv4::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv4 , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_ipv4::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv4 , size) - 4usize] ; ["Offset of field: ibv_flow_spec_ipv4::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv4 , val) - 8usize] ; ["Offset of field: ibv_flow_spec_ipv4::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv4 , mask) - 16usize] ; } ; impl Default for ibv_flow_spec_ipv4 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_ipv4_ext_filter { pub src_ip : u32 , pub dst_ip : u32 , pub proto : u8 , pub tos : u8 , pub ttl : u8 , pub flags : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_ipv4_ext_filter"] [:: std :: mem :: size_of :: < ibv_flow_ipv4_ext_filter > () - 12usize] ; ["Alignment of ibv_flow_ipv4_ext_filter"] [:: std :: mem :: align_of :: < ibv_flow_ipv4_ext_filter > () - 4usize] ; ["Offset of field: ibv_flow_ipv4_ext_filter::src_ip"] [:: std :: mem :: offset_of ! (ibv_flow_ipv4_ext_filter , src_ip) - 0usize] ; ["Offset of field: ibv_flow_ipv4_ext_filter::dst_ip"] [:: std :: mem :: offset_of ! (ibv_flow_ipv4_ext_filter , dst_ip) - 4usize] ; ["Offset of field: ibv_flow_ipv4_ext_filter::proto"] [:: std :: mem :: offset_of ! (ibv_flow_ipv4_ext_filter , proto) - 8usize] ; ["Offset of field: ibv_flow_ipv4_ext_filter::tos"] [:: std :: mem :: offset_of ! (ibv_flow_ipv4_ext_filter , tos) - 9usize] ; ["Offset of field: ibv_flow_ipv4_ext_filter::ttl"] [:: std :: mem :: offset_of ! (ibv_flow_ipv4_ext_filter , ttl) - 10usize] ; ["Offset of field: ibv_flow_ipv4_ext_filter::flags"] [:: std :: mem :: offset_of ! (ibv_flow_ipv4_ext_filter , flags) - 11usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_ipv4_ext { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_ipv4_ext_filter , pub mask : ibv_flow_ipv4_ext_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_ipv4_ext"] [:: std :: mem :: size_of :: < ibv_flow_spec_ipv4_ext > () - 32usize] ; ["Alignment of ibv_flow_spec_ipv4_ext"] [:: std :: mem :: align_of :: < ibv_flow_spec_ipv4_ext > () - 4usize] ; ["Offset of field: ibv_flow_spec_ipv4_ext::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv4_ext , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_ipv4_ext::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv4_ext , size) - 4usize] ; ["Offset of field: ibv_flow_spec_ipv4_ext::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv4_ext , val) - 8usize] ; ["Offset of field: ibv_flow_spec_ipv4_ext::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv4_ext , mask) - 20usize] ; } ; impl Default for ibv_flow_spec_ipv4_ext { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_ipv6_filter { pub src_ip : [u8 ; 16usize] , pub dst_ip : [u8 ; 16usize] , pub flow_label : u32 , pub next_hdr : u8 , pub traffic_class : u8 , pub hop_limit : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_ipv6_filter"] [:: std :: mem :: size_of :: < ibv_flow_ipv6_filter > () - 40usize] ; ["Alignment of ibv_flow_ipv6_filter"] [:: std :: mem :: align_of :: < ibv_flow_ipv6_filter > () - 4usize] ; ["Offset of field: ibv_flow_ipv6_filter::src_ip"] [:: std :: mem :: offset_of ! (ibv_flow_ipv6_filter , src_ip) - 0usize] ; ["Offset of field: ibv_flow_ipv6_filter::dst_ip"] [:: std :: mem :: offset_of ! (ibv_flow_ipv6_filter , dst_ip) - 16usize] ; ["Offset of field: ibv_flow_ipv6_filter::flow_label"] [:: std :: mem :: offset_of ! (ibv_flow_ipv6_filter , flow_label) - 32usize] ; ["Offset of field: ibv_flow_ipv6_filter::next_hdr"] [:: std :: mem :: offset_of ! (ibv_flow_ipv6_filter , next_hdr) - 36usize] ; ["Offset of field: ibv_flow_ipv6_filter::traffic_class"] [:: std :: mem :: offset_of ! (ibv_flow_ipv6_filter , traffic_class) - 37usize] ; ["Offset of field: ibv_flow_ipv6_filter::hop_limit"] [:: std :: mem :: offset_of ! (ibv_flow_ipv6_filter , hop_limit) - 38usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_ipv6 { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_ipv6_filter , pub mask : ibv_flow_ipv6_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_ipv6"] [:: std :: mem :: size_of :: < ibv_flow_spec_ipv6 > () - 88usize] ; ["Alignment of ibv_flow_spec_ipv6"] [:: std :: mem :: align_of :: < ibv_flow_spec_ipv6 > () - 4usize] ; ["Offset of field: ibv_flow_spec_ipv6::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv6 , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_ipv6::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv6 , size) - 4usize] ; ["Offset of field: ibv_flow_spec_ipv6::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv6 , val) - 8usize] ; ["Offset of field: ibv_flow_spec_ipv6::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_ipv6 , mask) - 48usize] ; } ; impl Default for ibv_flow_spec_ipv6 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_esp_filter { pub spi : u32 , pub seq : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_esp_filter"] [:: std :: mem :: size_of :: < ibv_flow_esp_filter > () - 8usize] ; ["Alignment of ibv_flow_esp_filter"] [:: std :: mem :: align_of :: < ibv_flow_esp_filter > () - 4usize] ; ["Offset of field: ibv_flow_esp_filter::spi"] [:: std :: mem :: offset_of ! (ibv_flow_esp_filter , spi) - 0usize] ; ["Offset of field: ibv_flow_esp_filter::seq"] [:: std :: mem :: offset_of ! (ibv_flow_esp_filter , seq) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_esp { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_esp_filter , pub mask : ibv_flow_esp_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_esp"] [:: std :: mem :: size_of :: < ibv_flow_spec_esp > () - 24usize] ; ["Alignment of ibv_flow_spec_esp"] [:: std :: mem :: align_of :: < ibv_flow_spec_esp > () - 4usize] ; ["Offset of field: ibv_flow_spec_esp::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_esp , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_esp::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_esp , size) - 4usize] ; ["Offset of field: ibv_flow_spec_esp::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_esp , val) - 8usize] ; ["Offset of field: ibv_flow_spec_esp::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_esp , mask) - 16usize] ; } ; impl Default for ibv_flow_spec_esp { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_tcp_udp_filter { pub dst_port : u16 , pub src_port : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_tcp_udp_filter"] [:: std :: mem :: size_of :: < ibv_flow_tcp_udp_filter > () - 4usize] ; ["Alignment of ibv_flow_tcp_udp_filter"] [:: std :: mem :: align_of :: < ibv_flow_tcp_udp_filter > () - 2usize] ; ["Offset of field: ibv_flow_tcp_udp_filter::dst_port"] [:: std :: mem :: offset_of ! (ibv_flow_tcp_udp_filter , dst_port) - 0usize] ; ["Offset of field: ibv_flow_tcp_udp_filter::src_port"] [:: std :: mem :: offset_of ! (ibv_flow_tcp_udp_filter , src_port) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_tcp_udp { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_tcp_udp_filter , pub mask : ibv_flow_tcp_udp_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_tcp_udp"] [:: std :: mem :: size_of :: < ibv_flow_spec_tcp_udp > () - 16usize] ; ["Alignment of ibv_flow_spec_tcp_udp"] [:: std :: mem :: align_of :: < ibv_flow_spec_tcp_udp > () - 4usize] ; ["Offset of field: ibv_flow_spec_tcp_udp::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_tcp_udp , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_tcp_udp::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_tcp_udp , size) - 4usize] ; ["Offset of field: ibv_flow_spec_tcp_udp::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_tcp_udp , val) - 6usize] ; ["Offset of field: ibv_flow_spec_tcp_udp::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_tcp_udp , mask) - 10usize] ; } ; impl Default for ibv_flow_spec_tcp_udp { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_gre_filter { pub c_ks_res0_ver : u16 , pub protocol : u16 , pub key : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_gre_filter"] [:: std :: mem :: size_of :: < ibv_flow_gre_filter > () - 8usize] ; ["Alignment of ibv_flow_gre_filter"] [:: std :: mem :: align_of :: < ibv_flow_gre_filter > () - 4usize] ; ["Offset of field: ibv_flow_gre_filter::c_ks_res0_ver"] [:: std :: mem :: offset_of ! (ibv_flow_gre_filter , c_ks_res0_ver) - 0usize] ; ["Offset of field: ibv_flow_gre_filter::protocol"] [:: std :: mem :: offset_of ! (ibv_flow_gre_filter , protocol) - 2usize] ; ["Offset of field: ibv_flow_gre_filter::key"] [:: std :: mem :: offset_of ! (ibv_flow_gre_filter , key) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_gre { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_gre_filter , pub mask : ibv_flow_gre_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_gre"] [:: std :: mem :: size_of :: < ibv_flow_spec_gre > () - 24usize] ; ["Alignment of ibv_flow_spec_gre"] [:: std :: mem :: align_of :: < ibv_flow_spec_gre > () - 4usize] ; ["Offset of field: ibv_flow_spec_gre::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_gre , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_gre::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_gre , size) - 4usize] ; ["Offset of field: ibv_flow_spec_gre::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_gre , val) - 8usize] ; ["Offset of field: ibv_flow_spec_gre::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_gre , mask) - 16usize] ; } ; impl Default for ibv_flow_spec_gre { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_mpls_filter { pub label : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_mpls_filter"] [:: std :: mem :: size_of :: < ibv_flow_mpls_filter > () - 4usize] ; ["Alignment of ibv_flow_mpls_filter"] [:: std :: mem :: align_of :: < ibv_flow_mpls_filter > () - 4usize] ; ["Offset of field: ibv_flow_mpls_filter::label"] [:: std :: mem :: offset_of ! (ibv_flow_mpls_filter , label) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_mpls { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_mpls_filter , pub mask : ibv_flow_mpls_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_mpls"] [:: std :: mem :: size_of :: < ibv_flow_spec_mpls > () - 16usize] ; ["Alignment of ibv_flow_spec_mpls"] [:: std :: mem :: align_of :: < ibv_flow_spec_mpls > () - 4usize] ; ["Offset of field: ibv_flow_spec_mpls::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_mpls , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_mpls::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_mpls , size) - 4usize] ; ["Offset of field: ibv_flow_spec_mpls::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_mpls , val) - 8usize] ; ["Offset of field: ibv_flow_spec_mpls::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_mpls , mask) - 12usize] ; } ; impl Default for ibv_flow_spec_mpls { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_flow_tunnel_filter { pub tunnel_id : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_tunnel_filter"] [:: std :: mem :: size_of :: < ibv_flow_tunnel_filter > () - 4usize] ; ["Alignment of ibv_flow_tunnel_filter"] [:: std :: mem :: align_of :: < ibv_flow_tunnel_filter > () - 4usize] ; ["Offset of field: ibv_flow_tunnel_filter::tunnel_id"] [:: std :: mem :: offset_of ! (ibv_flow_tunnel_filter , tunnel_id) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_tunnel { pub type_ : ibv_flow_spec_type , pub size : u16 , pub val : ibv_flow_tunnel_filter , pub mask : ibv_flow_tunnel_filter , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_tunnel"] [:: std :: mem :: size_of :: < ibv_flow_spec_tunnel > () - 16usize] ; ["Alignment of ibv_flow_spec_tunnel"] [:: std :: mem :: align_of :: < ibv_flow_spec_tunnel > () - 4usize] ; ["Offset of field: ibv_flow_spec_tunnel::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_tunnel , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_tunnel::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_tunnel , size) - 4usize] ; ["Offset of field: ibv_flow_spec_tunnel::val"] [:: std :: mem :: offset_of ! (ibv_flow_spec_tunnel , val) - 8usize] ; ["Offset of field: ibv_flow_spec_tunnel::mask"] [:: std :: mem :: offset_of ! (ibv_flow_spec_tunnel , mask) - 12usize] ; } ; impl Default for ibv_flow_spec_tunnel { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_action_tag { pub type_ : ibv_flow_spec_type , pub size : u16 , pub tag_id : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_action_tag"] [:: std :: mem :: size_of :: < ibv_flow_spec_action_tag > () - 12usize] ; ["Alignment of ibv_flow_spec_action_tag"] [:: std :: mem :: align_of :: < ibv_flow_spec_action_tag > () - 4usize] ; ["Offset of field: ibv_flow_spec_action_tag::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_action_tag , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_action_tag::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_action_tag , size) - 4usize] ; ["Offset of field: ibv_flow_spec_action_tag::tag_id"] [:: std :: mem :: offset_of ! (ibv_flow_spec_action_tag , tag_id) - 8usize] ; } ; impl Default for ibv_flow_spec_action_tag { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_action_drop { pub type_ : ibv_flow_spec_type , pub size : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_action_drop"] [:: std :: mem :: size_of :: < ibv_flow_spec_action_drop > () - 8usize] ; ["Alignment of ibv_flow_spec_action_drop"] [:: std :: mem :: align_of :: < ibv_flow_spec_action_drop > () - 4usize] ; ["Offset of field: ibv_flow_spec_action_drop::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_action_drop , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_action_drop::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_action_drop , size) - 4usize] ; } ; impl Default for ibv_flow_spec_action_drop { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_action_handle { pub type_ : ibv_flow_spec_type , pub size : u16 , pub action : * const ibv_flow_action , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_action_handle"] [:: std :: mem :: size_of :: < ibv_flow_spec_action_handle > () - 16usize] ; ["Alignment of ibv_flow_spec_action_handle"] [:: std :: mem :: align_of :: < ibv_flow_spec_action_handle > () - 8usize] ; ["Offset of field: ibv_flow_spec_action_handle::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_action_handle , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_action_handle::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_action_handle , size) - 4usize] ; ["Offset of field: ibv_flow_spec_action_handle::action"] [:: std :: mem :: offset_of ! (ibv_flow_spec_action_handle , action) - 8usize] ; } ; impl Default for ibv_flow_spec_action_handle { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec_counter_action { pub type_ : ibv_flow_spec_type , pub size : u16 , pub counters : * mut ibv_counters , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec_counter_action"] [:: std :: mem :: size_of :: < ibv_flow_spec_counter_action > () - 16usize] ; ["Alignment of ibv_flow_spec_counter_action"] [:: std :: mem :: align_of :: < ibv_flow_spec_counter_action > () - 8usize] ; ["Offset of field: ibv_flow_spec_counter_action::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec_counter_action , type_) - 0usize] ; ["Offset of field: ibv_flow_spec_counter_action::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec_counter_action , size) - 4usize] ; ["Offset of field: ibv_flow_spec_counter_action::counters"] [:: std :: mem :: offset_of ! (ibv_flow_spec_counter_action , counters) - 8usize] ; } ; impl Default for ibv_flow_spec_counter_action { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_flow_spec { pub __bindgen_anon_1 : ibv_flow_spec__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union ibv_flow_spec__bindgen_ty_1 { pub hdr : ibv_flow_spec__bindgen_ty_1__bindgen_ty_1 , pub eth : ibv_flow_spec_eth , pub ipv4 : ibv_flow_spec_ipv4 , pub tcp_udp : ibv_flow_spec_tcp_udp , pub ipv4_ext : ibv_flow_spec_ipv4_ext , pub ipv6 : ibv_flow_spec_ipv6 , pub esp : ibv_flow_spec_esp , pub tunnel : ibv_flow_spec_tunnel , pub gre : ibv_flow_spec_gre , pub mpls : ibv_flow_spec_mpls , pub flow_tag : ibv_flow_spec_action_tag , pub drop : ibv_flow_spec_action_drop , pub handle : ibv_flow_spec_action_handle , pub flow_count : ibv_flow_spec_counter_action , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_spec__bindgen_ty_1__bindgen_ty_1 { pub type_ : ibv_flow_spec_type , pub size : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_flow_spec__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Alignment of ibv_flow_spec__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_flow_spec__bindgen_ty_1__bindgen_ty_1 > () - 4usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1__bindgen_ty_1::type_"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1__bindgen_ty_1 , type_) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1__bindgen_ty_1::size"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1__bindgen_ty_1 , size) - 4usize] ; } ; impl Default for ibv_flow_spec__bindgen_ty_1__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec__bindgen_ty_1"] [:: std :: mem :: size_of :: < ibv_flow_spec__bindgen_ty_1 > () - 88usize] ; ["Alignment of ibv_flow_spec__bindgen_ty_1"] [:: std :: mem :: align_of :: < ibv_flow_spec__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::hdr"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , hdr) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::eth"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , eth) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::ipv4"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , ipv4) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::tcp_udp"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , tcp_udp) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::ipv4_ext"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , ipv4_ext) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::ipv6"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , ipv6) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::esp"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , esp) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::tunnel"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , tunnel) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::gre"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , gre) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::mpls"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , mpls) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::flow_tag"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , flow_tag) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::drop"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , drop) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::handle"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , handle) - 0usize] ; ["Offset of field: ibv_flow_spec__bindgen_ty_1::flow_count"] [:: std :: mem :: offset_of ! (ibv_flow_spec__bindgen_ty_1 , flow_count) - 0usize] ; } ; impl Default for ibv_flow_spec__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_spec"] [:: std :: mem :: size_of :: < ibv_flow_spec > () - 88usize] ; ["Alignment of ibv_flow_spec"] [:: std :: mem :: align_of :: < ibv_flow_spec > () - 8usize] ; } ; impl Default for ibv_flow_spec { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_attr { pub comp_mask : u32 , pub type_ : ibv_flow_attr_type , pub size : u16 , pub priority : u16 , pub num_of_specs : u8 , pub port : u8 , pub flags : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_attr"] [:: std :: mem :: size_of :: < ibv_flow_attr > () - 20usize] ; ["Alignment of ibv_flow_attr"] [:: std :: mem :: align_of :: < ibv_flow_attr > () - 4usize] ; ["Offset of field: ibv_flow_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_flow_attr , comp_mask) - 0usize] ; ["Offset of field: ibv_flow_attr::type_"] [:: std :: mem :: offset_of ! (ibv_flow_attr , type_) - 4usize] ; ["Offset of field: ibv_flow_attr::size"] [:: std :: mem :: offset_of ! (ibv_flow_attr , size) - 8usize] ; ["Offset of field: ibv_flow_attr::priority"] [:: std :: mem :: offset_of ! (ibv_flow_attr , priority) - 10usize] ; ["Offset of field: ibv_flow_attr::num_of_specs"] [:: std :: mem :: offset_of ! (ibv_flow_attr , num_of_specs) - 12usize] ; ["Offset of field: ibv_flow_attr::port"] [:: std :: mem :: offset_of ! (ibv_flow_attr , port) - 13usize] ; ["Offset of field: ibv_flow_attr::flags"] [:: std :: mem :: offset_of ! (ibv_flow_attr , flags) - 16usize] ; } ; impl Default for ibv_flow_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow { pub comp_mask : u32 , pub context : * mut ibv_context , pub handle : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow"] [:: std :: mem :: size_of :: < ibv_flow > () - 24usize] ; ["Alignment of ibv_flow"] [:: std :: mem :: align_of :: < ibv_flow > () - 8usize] ; ["Offset of field: ibv_flow::comp_mask"] [:: std :: mem :: offset_of ! (ibv_flow , comp_mask) - 0usize] ; ["Offset of field: ibv_flow::context"] [:: std :: mem :: offset_of ! (ibv_flow , context) - 8usize] ; ["Offset of field: ibv_flow::handle"] [:: std :: mem :: offset_of ! (ibv_flow , handle) - 16usize] ; } ; impl Default for ibv_flow { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_action { pub context : * mut ibv_context , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_action"] [:: std :: mem :: size_of :: < ibv_flow_action > () - 8usize] ; ["Alignment of ibv_flow_action"] [:: std :: mem :: align_of :: < ibv_flow_action > () - 8usize] ; ["Offset of field: ibv_flow_action::context"] [:: std :: mem :: offset_of ! (ibv_flow_action , context) - 0usize] ; } ; impl Default for ibv_flow_action { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_FLOW_ACTION_ESP_MASK_ESN : ibv_flow_action_esp_mask = 1 ; pub type ibv_flow_action_esp_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_flow_action_esp_attr { pub esp_attr : * mut ib_uverbs_flow_action_esp , pub keymat_proto : ib_uverbs_flow_action_esp_keymat , pub keymat_len : u16 , pub keymat_ptr : * mut :: std :: os :: raw :: c_void , pub replay_proto : ib_uverbs_flow_action_esp_replay , pub replay_len : u16 , pub replay_ptr : * mut :: std :: os :: raw :: c_void , pub esp_encap : * mut ib_uverbs_flow_action_esp_encap , pub comp_mask : u32 , pub esn : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_flow_action_esp_attr"] [:: std :: mem :: size_of :: < ibv_flow_action_esp_attr > () - 56usize] ; ["Alignment of ibv_flow_action_esp_attr"] [:: std :: mem :: align_of :: < ibv_flow_action_esp_attr > () - 8usize] ; ["Offset of field: ibv_flow_action_esp_attr::esp_attr"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , esp_attr) - 0usize] ; ["Offset of field: ibv_flow_action_esp_attr::keymat_proto"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , keymat_proto) - 8usize] ; ["Offset of field: ibv_flow_action_esp_attr::keymat_len"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , keymat_len) - 12usize] ; ["Offset of field: ibv_flow_action_esp_attr::keymat_ptr"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , keymat_ptr) - 16usize] ; ["Offset of field: ibv_flow_action_esp_attr::replay_proto"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , replay_proto) - 24usize] ; ["Offset of field: ibv_flow_action_esp_attr::replay_len"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , replay_len) - 28usize] ; ["Offset of field: ibv_flow_action_esp_attr::replay_ptr"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , replay_ptr) - 32usize] ; ["Offset of field: ibv_flow_action_esp_attr::esp_encap"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , esp_encap) - 40usize] ; ["Offset of field: ibv_flow_action_esp_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , comp_mask) - 48usize] ; ["Offset of field: ibv_flow_action_esp_attr::esn"] [:: std :: mem :: offset_of ! (ibv_flow_action_esp_attr , esn) - 52usize] ; } ; impl Default for ibv_flow_action_esp_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct _ibv_device_ops { pub _dummy1 : :: std :: option :: Option < unsafe extern "C" fn (device : * mut ibv_device , cmd_fd : :: std :: os :: raw :: c_int) -> * mut ibv_context > , pub _dummy2 : :: std :: option :: Option < unsafe extern "C" fn (context : * mut ibv_context) > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _ibv_device_ops"] [:: std :: mem :: size_of :: < _ibv_device_ops > () - 16usize] ; ["Alignment of _ibv_device_ops"] [:: std :: mem :: align_of :: < _ibv_device_ops > () - 8usize] ; ["Offset of field: _ibv_device_ops::_dummy1"] [:: std :: mem :: offset_of ! (_ibv_device_ops , _dummy1) - 0usize] ; ["Offset of field: _ibv_device_ops::_dummy2"] [:: std :: mem :: offset_of ! (_ibv_device_ops , _dummy2) - 8usize] ; } ; pub const IBV_SYSFS_NAME_MAX : _bindgen_ty_17 = 64 ; pub const IBV_SYSFS_PATH_MAX : _bindgen_ty_17 = 256 ; pub type _bindgen_ty_17 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_device { pub _ops : _ibv_device_ops , pub node_type : ibv_node_type , pub transport_type : ibv_transport_type , pub name : [:: std :: os :: raw :: c_char ; 64usize] , pub dev_name : [:: std :: os :: raw :: c_char ; 64usize] , pub dev_path : [:: std :: os :: raw :: c_char ; 256usize] , pub ibdev_path : [:: std :: os :: raw :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_device"] [:: std :: mem :: size_of :: < ibv_device > () - 664usize] ; ["Alignment of ibv_device"] [:: std :: mem :: align_of :: < ibv_device > () - 8usize] ; ["Offset of field: ibv_device::_ops"] [:: std :: mem :: offset_of ! (ibv_device , _ops) - 0usize] ; ["Offset of field: ibv_device::node_type"] [:: std :: mem :: offset_of ! (ibv_device , node_type) - 16usize] ; ["Offset of field: ibv_device::transport_type"] [:: std :: mem :: offset_of ! (ibv_device , transport_type) - 20usize] ; ["Offset of field: ibv_device::name"] [:: std :: mem :: offset_of ! (ibv_device , name) - 24usize] ; ["Offset of field: ibv_device::dev_name"] [:: std :: mem :: offset_of ! (ibv_device , dev_name) - 88usize] ; ["Offset of field: ibv_device::dev_path"] [:: std :: mem :: offset_of ! (ibv_device , dev_path) - 152usize] ; ["Offset of field: ibv_device::ibdev_path"] [:: std :: mem :: offset_of ! (ibv_device , ibdev_path) - 408usize] ; } ; impl Default for ibv_device { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _compat_ibv_port_attr { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_context_ops { pub _compat_query_device : :: std :: option :: Option < unsafe extern "C" fn (context : * mut ibv_context , device_attr : * mut ibv_device_attr) -> :: std :: os :: raw :: c_int > , pub _compat_query_port : :: std :: option :: Option < unsafe extern "C" fn (context : * mut ibv_context , port_num : u8 , port_attr : * mut _compat_ibv_port_attr) -> :: std :: os :: raw :: c_int > , pub _compat_alloc_pd : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_dealloc_pd : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_reg_mr : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_rereg_mr : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_dereg_mr : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub alloc_mw : :: std :: option :: Option < unsafe extern "C" fn (pd : * mut ibv_pd , type_ : ibv_mw_type) -> * mut ibv_mw > , pub bind_mw : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp , mw : * mut ibv_mw , mw_bind : * mut ibv_mw_bind) -> :: std :: os :: raw :: c_int > , pub dealloc_mw : :: std :: option :: Option < unsafe extern "C" fn (mw : * mut ibv_mw) -> :: std :: os :: raw :: c_int > , pub _compat_create_cq : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub poll_cq : :: std :: option :: Option < unsafe extern "C" fn (cq : * mut ibv_cq , num_entries : :: std :: os :: raw :: c_int , wc : * mut ibv_wc) -> :: std :: os :: raw :: c_int > , pub req_notify_cq : :: std :: option :: Option < unsafe extern "C" fn (cq : * mut ibv_cq , solicited_only : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub _compat_cq_event : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_resize_cq : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_destroy_cq : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_create_srq : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_modify_srq : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_query_srq : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_destroy_srq : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub post_srq_recv : :: std :: option :: Option < unsafe extern "C" fn (srq : * mut ibv_srq , recv_wr : * mut ibv_recv_wr , bad_recv_wr : * mut * mut ibv_recv_wr) -> :: std :: os :: raw :: c_int > , pub _compat_create_qp : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_query_qp : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_modify_qp : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_destroy_qp : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub post_send : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp , wr : * mut ibv_send_wr , bad_wr : * mut * mut ibv_send_wr) -> :: std :: os :: raw :: c_int > , pub post_recv : :: std :: option :: Option < unsafe extern "C" fn (qp : * mut ibv_qp , wr : * mut ibv_recv_wr , bad_wr : * mut * mut ibv_recv_wr) -> :: std :: os :: raw :: c_int > , pub _compat_create_ah : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_destroy_ah : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_attach_mcast : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_detach_mcast : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , pub _compat_async_event : :: std :: option :: Option < unsafe extern "C" fn () -> * mut :: std :: os :: raw :: c_void > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_context_ops"] [:: std :: mem :: size_of :: < ibv_context_ops > () - 256usize] ; ["Alignment of ibv_context_ops"] [:: std :: mem :: align_of :: < ibv_context_ops > () - 8usize] ; ["Offset of field: ibv_context_ops::_compat_query_device"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_query_device) - 0usize] ; ["Offset of field: ibv_context_ops::_compat_query_port"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_query_port) - 8usize] ; ["Offset of field: ibv_context_ops::_compat_alloc_pd"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_alloc_pd) - 16usize] ; ["Offset of field: ibv_context_ops::_compat_dealloc_pd"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_dealloc_pd) - 24usize] ; ["Offset of field: ibv_context_ops::_compat_reg_mr"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_reg_mr) - 32usize] ; ["Offset of field: ibv_context_ops::_compat_rereg_mr"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_rereg_mr) - 40usize] ; ["Offset of field: ibv_context_ops::_compat_dereg_mr"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_dereg_mr) - 48usize] ; ["Offset of field: ibv_context_ops::alloc_mw"] [:: std :: mem :: offset_of ! (ibv_context_ops , alloc_mw) - 56usize] ; ["Offset of field: ibv_context_ops::bind_mw"] [:: std :: mem :: offset_of ! (ibv_context_ops , bind_mw) - 64usize] ; ["Offset of field: ibv_context_ops::dealloc_mw"] [:: std :: mem :: offset_of ! (ibv_context_ops , dealloc_mw) - 72usize] ; ["Offset of field: ibv_context_ops::_compat_create_cq"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_create_cq) - 80usize] ; ["Offset of field: ibv_context_ops::poll_cq"] [:: std :: mem :: offset_of ! (ibv_context_ops , poll_cq) - 88usize] ; ["Offset of field: ibv_context_ops::req_notify_cq"] [:: std :: mem :: offset_of ! (ibv_context_ops , req_notify_cq) - 96usize] ; ["Offset of field: ibv_context_ops::_compat_cq_event"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_cq_event) - 104usize] ; ["Offset of field: ibv_context_ops::_compat_resize_cq"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_resize_cq) - 112usize] ; ["Offset of field: ibv_context_ops::_compat_destroy_cq"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_destroy_cq) - 120usize] ; ["Offset of field: ibv_context_ops::_compat_create_srq"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_create_srq) - 128usize] ; ["Offset of field: ibv_context_ops::_compat_modify_srq"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_modify_srq) - 136usize] ; ["Offset of field: ibv_context_ops::_compat_query_srq"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_query_srq) - 144usize] ; ["Offset of field: ibv_context_ops::_compat_destroy_srq"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_destroy_srq) - 152usize] ; ["Offset of field: ibv_context_ops::post_srq_recv"] [:: std :: mem :: offset_of ! (ibv_context_ops , post_srq_recv) - 160usize] ; ["Offset of field: ibv_context_ops::_compat_create_qp"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_create_qp) - 168usize] ; ["Offset of field: ibv_context_ops::_compat_query_qp"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_query_qp) - 176usize] ; ["Offset of field: ibv_context_ops::_compat_modify_qp"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_modify_qp) - 184usize] ; ["Offset of field: ibv_context_ops::_compat_destroy_qp"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_destroy_qp) - 192usize] ; ["Offset of field: ibv_context_ops::post_send"] [:: std :: mem :: offset_of ! (ibv_context_ops , post_send) - 200usize] ; ["Offset of field: ibv_context_ops::post_recv"] [:: std :: mem :: offset_of ! (ibv_context_ops , post_recv) - 208usize] ; ["Offset of field: ibv_context_ops::_compat_create_ah"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_create_ah) - 216usize] ; ["Offset of field: ibv_context_ops::_compat_destroy_ah"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_destroy_ah) - 224usize] ; ["Offset of field: ibv_context_ops::_compat_attach_mcast"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_attach_mcast) - 232usize] ; ["Offset of field: ibv_context_ops::_compat_detach_mcast"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_detach_mcast) - 240usize] ; ["Offset of field: ibv_context_ops::_compat_async_event"] [:: std :: mem :: offset_of ! (ibv_context_ops , _compat_async_event) - 248usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ibv_context { pub device : * mut ibv_device , pub ops : ibv_context_ops , pub cmd_fd : :: std :: os :: raw :: c_int , pub async_fd : :: std :: os :: raw :: c_int , pub num_comp_vectors : :: std :: os :: raw :: c_int , pub mutex : pthread_mutex_t , pub abi_compat : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_context"] [:: std :: mem :: size_of :: < ibv_context > () - 328usize] ; ["Alignment of ibv_context"] [:: std :: mem :: align_of :: < ibv_context > () - 8usize] ; ["Offset of field: ibv_context::device"] [:: std :: mem :: offset_of ! (ibv_context , device) - 0usize] ; ["Offset of field: ibv_context::ops"] [:: std :: mem :: offset_of ! (ibv_context , ops) - 8usize] ; ["Offset of field: ibv_context::cmd_fd"] [:: std :: mem :: offset_of ! (ibv_context , cmd_fd) - 264usize] ; ["Offset of field: ibv_context::async_fd"] [:: std :: mem :: offset_of ! (ibv_context , async_fd) - 268usize] ; ["Offset of field: ibv_context::num_comp_vectors"] [:: std :: mem :: offset_of ! (ibv_context , num_comp_vectors) - 272usize] ; ["Offset of field: ibv_context::mutex"] [:: std :: mem :: offset_of ! (ibv_context , mutex) - 280usize] ; ["Offset of field: ibv_context::abi_compat"] [:: std :: mem :: offset_of ! (ibv_context , abi_compat) - 320usize] ; } ; impl Default for ibv_context { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_CQ_INIT_ATTR_MASK_FLAGS : ibv_cq_init_attr_mask = 1 ; pub const IBV_CQ_INIT_ATTR_MASK_PD : ibv_cq_init_attr_mask = 2 ; pub type ibv_cq_init_attr_mask = :: std :: os :: raw :: c_uint ; pub const IBV_CREATE_CQ_ATTR_SINGLE_THREADED : ibv_create_cq_attr_flags = 1 ; pub const IBV_CREATE_CQ_ATTR_IGNORE_OVERRUN : ibv_create_cq_attr_flags = 2 ; pub type ibv_create_cq_attr_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_cq_init_attr_ex { pub cqe : u32 , pub cq_context : * mut :: std :: os :: raw :: c_void , pub channel : * mut ibv_comp_channel , pub comp_vector : u32 , pub wc_flags : u64 , pub comp_mask : u32 , pub flags : u32 , pub parent_domain : * mut ibv_pd , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_cq_init_attr_ex"] [:: std :: mem :: size_of :: < ibv_cq_init_attr_ex > () - 56usize] ; ["Alignment of ibv_cq_init_attr_ex"] [:: std :: mem :: align_of :: < ibv_cq_init_attr_ex > () - 8usize] ; ["Offset of field: ibv_cq_init_attr_ex::cqe"] [:: std :: mem :: offset_of ! (ibv_cq_init_attr_ex , cqe) - 0usize] ; ["Offset of field: ibv_cq_init_attr_ex::cq_context"] [:: std :: mem :: offset_of ! (ibv_cq_init_attr_ex , cq_context) - 8usize] ; ["Offset of field: ibv_cq_init_attr_ex::channel"] [:: std :: mem :: offset_of ! (ibv_cq_init_attr_ex , channel) - 16usize] ; ["Offset of field: ibv_cq_init_attr_ex::comp_vector"] [:: std :: mem :: offset_of ! (ibv_cq_init_attr_ex , comp_vector) - 24usize] ; ["Offset of field: ibv_cq_init_attr_ex::wc_flags"] [:: std :: mem :: offset_of ! (ibv_cq_init_attr_ex , wc_flags) - 32usize] ; ["Offset of field: ibv_cq_init_attr_ex::comp_mask"] [:: std :: mem :: offset_of ! (ibv_cq_init_attr_ex , comp_mask) - 40usize] ; ["Offset of field: ibv_cq_init_attr_ex::flags"] [:: std :: mem :: offset_of ! (ibv_cq_init_attr_ex , flags) - 44usize] ; ["Offset of field: ibv_cq_init_attr_ex::parent_domain"] [:: std :: mem :: offset_of ! (ibv_cq_init_attr_ex , parent_domain) - 48usize] ; } ; impl Default for ibv_cq_init_attr_ex { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_PARENT_DOMAIN_INIT_ATTR_ALLOCATORS : ibv_parent_domain_init_attr_mask = 1 ; pub const IBV_PARENT_DOMAIN_INIT_ATTR_PD_CONTEXT : ibv_parent_domain_init_attr_mask = 2 ; pub type ibv_parent_domain_init_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_parent_domain_init_attr { pub pd : * mut ibv_pd , pub td : * mut ibv_td , pub comp_mask : u32 , pub alloc : :: std :: option :: Option < unsafe extern "C" fn (pd : * mut ibv_pd , pd_context : * mut :: std :: os :: raw :: c_void , size : usize , alignment : usize , resource_type : u64) -> * mut :: std :: os :: raw :: c_void > , pub free : :: std :: option :: Option < unsafe extern "C" fn (pd : * mut ibv_pd , pd_context : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , resource_type : u64) > , pub pd_context : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_parent_domain_init_attr"] [:: std :: mem :: size_of :: < ibv_parent_domain_init_attr > () - 48usize] ; ["Alignment of ibv_parent_domain_init_attr"] [:: std :: mem :: align_of :: < ibv_parent_domain_init_attr > () - 8usize] ; ["Offset of field: ibv_parent_domain_init_attr::pd"] [:: std :: mem :: offset_of ! (ibv_parent_domain_init_attr , pd) - 0usize] ; ["Offset of field: ibv_parent_domain_init_attr::td"] [:: std :: mem :: offset_of ! (ibv_parent_domain_init_attr , td) - 8usize] ; ["Offset of field: ibv_parent_domain_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_parent_domain_init_attr , comp_mask) - 16usize] ; ["Offset of field: ibv_parent_domain_init_attr::alloc"] [:: std :: mem :: offset_of ! (ibv_parent_domain_init_attr , alloc) - 24usize] ; ["Offset of field: ibv_parent_domain_init_attr::free"] [:: std :: mem :: offset_of ! (ibv_parent_domain_init_attr , free) - 32usize] ; ["Offset of field: ibv_parent_domain_init_attr::pd_context"] [:: std :: mem :: offset_of ! (ibv_parent_domain_init_attr , pd_context) - 40usize] ; } ; impl Default for ibv_parent_domain_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_TPH_MEM_TYPE_VM : ibv_tph_mem_type = 0 ; pub const IBV_TPH_MEM_TYPE_PM : ibv_tph_mem_type = 1 ; pub type ibv_tph_mem_type = :: std :: os :: raw :: c_uint ; pub const IBV_DMAH_INIT_ATTR_MASK_CPU_ID : ibv_dmah_init_attr_mask = 1 ; pub const IBV_DMAH_INIT_ATTR_MASK_PH : ibv_dmah_init_attr_mask = 2 ; pub const IBV_DMAH_INIT_ATTR_MASK_TPH_MEM_TYPE : ibv_dmah_init_attr_mask = 4 ; pub type ibv_dmah_init_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_dmah_init_attr { pub comp_mask : u32 , pub cpu_id : u32 , pub ph : u8 , pub tph_mem_type : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_dmah_init_attr"] [:: std :: mem :: size_of :: < ibv_dmah_init_attr > () - 12usize] ; ["Alignment of ibv_dmah_init_attr"] [:: std :: mem :: align_of :: < ibv_dmah_init_attr > () - 4usize] ; ["Offset of field: ibv_dmah_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_dmah_init_attr , comp_mask) - 0usize] ; ["Offset of field: ibv_dmah_init_attr::cpu_id"] [:: std :: mem :: offset_of ! (ibv_dmah_init_attr , cpu_id) - 4usize] ; ["Offset of field: ibv_dmah_init_attr::ph"] [:: std :: mem :: offset_of ! (ibv_dmah_init_attr , ph) - 8usize] ; ["Offset of field: ibv_dmah_init_attr::tph_mem_type"] [:: std :: mem :: offset_of ! (ibv_dmah_init_attr , tph_mem_type) - 9usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_counters_init_attr { pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_counters_init_attr"] [:: std :: mem :: size_of :: < ibv_counters_init_attr > () - 4usize] ; ["Alignment of ibv_counters_init_attr"] [:: std :: mem :: align_of :: < ibv_counters_init_attr > () - 4usize] ; ["Offset of field: ibv_counters_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_counters_init_attr , comp_mask) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_counters { pub context : * mut ibv_context , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_counters"] [:: std :: mem :: size_of :: < ibv_counters > () - 8usize] ; ["Alignment of ibv_counters"] [:: std :: mem :: align_of :: < ibv_counters > () - 8usize] ; ["Offset of field: ibv_counters::context"] [:: std :: mem :: offset_of ! (ibv_counters , context) - 0usize] ; } ; impl Default for ibv_counters { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_COUNTER_PACKETS : ibv_counter_description = 0 ; pub const IBV_COUNTER_BYTES : ibv_counter_description = 1 ; pub type ibv_counter_description = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ibv_counter_attach_attr { pub counter_desc : ibv_counter_description , pub index : u32 , pub comp_mask : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_counter_attach_attr"] [:: std :: mem :: size_of :: < ibv_counter_attach_attr > () - 12usize] ; ["Alignment of ibv_counter_attach_attr"] [:: std :: mem :: align_of :: < ibv_counter_attach_attr > () - 4usize] ; ["Offset of field: ibv_counter_attach_attr::counter_desc"] [:: std :: mem :: offset_of ! (ibv_counter_attach_attr , counter_desc) - 0usize] ; ["Offset of field: ibv_counter_attach_attr::index"] [:: std :: mem :: offset_of ! (ibv_counter_attach_attr , index) - 4usize] ; ["Offset of field: ibv_counter_attach_attr::comp_mask"] [:: std :: mem :: offset_of ! (ibv_counter_attach_attr , comp_mask) - 8usize] ; } ; impl Default for ibv_counter_attach_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const IBV_READ_COUNTERS_ATTR_PREFER_CACHED : ibv_read_counters_flags = 1 ; pub type ibv_read_counters_flags = :: std :: os :: raw :: c_uint ; pub const IBV_VALUES_MASK_RAW_CLOCK : ibv_values_mask = 1 ; pub const IBV_VALUES_MASK_RESERVED : ibv_values_mask = 2 ; pub type ibv_values_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_values_ex { pub comp_mask : u32 , pub raw_clock : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_values_ex"] [:: std :: mem :: size_of :: < ibv_values_ex > () - 24usize] ; ["Alignment of ibv_values_ex"] [:: std :: mem :: align_of :: < ibv_values_ex > () - 8usize] ; ["Offset of field: ibv_values_ex::comp_mask"] [:: std :: mem :: offset_of ! (ibv_values_ex , comp_mask) - 0usize] ; ["Offset of field: ibv_values_ex::raw_clock"] [:: std :: mem :: offset_of ! (ibv_values_ex , raw_clock) - 8usize] ; } ; unsafe extern "C" { # [doc = " ibv_get_device_list - Get list of IB devices currently available\n @num_devices: optional.  if non-NULL, set to the number of devices\n returned in the array.\n\n Return a NULL-terminated array of IB devices.  The array can be\n released with ibv_free_device_list()."] pub fn ibv_get_device_list (num_devices : * mut :: std :: os :: raw :: c_int) -> * mut * mut ibv_device ; } unsafe extern "C" { # [doc = " ibv_free_device_list - Free list from ibv_get_device_list()\n\n Free an array of devices returned from ibv_get_device_list().  Once\n the array is freed, pointers to devices that were not opened with\n ibv_open_device() are no longer valid.  Client code must open all\n devices it intends to use before calling ibv_free_device_list()."] pub fn ibv_free_device_list (list : * mut * mut ibv_device) ; } unsafe extern "C" { # [doc = " ibv_get_device_name - Return kernel device name"] pub fn ibv_get_device_name (device : * mut ibv_device) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " ibv_get_device_index - Return kernel device index\n\n Available for the kernel with support of IB device query\n over netlink interface. For the unsupported kernels, the\n relevant -1 will be returned."] pub fn ibv_get_device_index (device : * mut ibv_device) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_get_device_guid - Return device's node GUID"] pub fn ibv_get_device_guid (device : * mut ibv_device) -> __be64 ; } unsafe extern "C" { # [doc = " ibv_open_device - Initialize device for use"] pub fn ibv_open_device (device : * mut ibv_device) -> * mut ibv_context ; } unsafe extern "C" { # [doc = " ibv_close_device - Release device"] pub fn ibv_close_device (context : * mut ibv_context) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_import_device - Import device"] pub fn ibv_import_device (cmd_fd : :: std :: os :: raw :: c_int) -> * mut ibv_context ; } unsafe extern "C" { # [doc = " ibv_import_pd - Import a protection domain"] pub fn ibv_import_pd (context : * mut ibv_context , pd_handle : u32) -> * mut ibv_pd ; } unsafe extern "C" { # [doc = " ibv_unimport_pd - Unimport a protection domain"] pub fn ibv_unimport_pd (pd : * mut ibv_pd) ; } unsafe extern "C" { # [doc = " ibv_import_mr - Import a memory region"] pub fn ibv_import_mr (pd : * mut ibv_pd , mr_handle : u32) -> * mut ibv_mr ; } unsafe extern "C" { # [doc = " ibv_unimport_mr - Unimport a memory region"] pub fn ibv_unimport_mr (mr : * mut ibv_mr) ; } unsafe extern "C" { # [doc = " ibv_import_dm - Import a device memory"] pub fn ibv_import_dm (context : * mut ibv_context , dm_handle : u32) -> * mut ibv_dm ; } unsafe extern "C" { # [doc = " ibv_unimport_dm - Unimport a device memory"] pub fn ibv_unimport_dm (dm : * mut ibv_dm) ; } unsafe extern "C" { # [doc = " ibv_get_async_event - Get next async event\n @event: Pointer to use to return async event\n\n All async events returned by ibv_get_async_event() must eventually\n be acknowledged with ibv_ack_async_event()."] pub fn ibv_get_async_event (context : * mut ibv_context , event : * mut ibv_async_event) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_ack_async_event - Acknowledge an async event\n @event: Event to be acknowledged.\n\n All async events which are returned by ibv_get_async_event() must\n be acknowledged.  To avoid races, destroying an object (CQ, SRQ or\n QP) will wait for all affiliated events to be acknowledged, so\n there should be a one-to-one correspondence between acks and\n successful gets."] pub fn ibv_ack_async_event (event : * mut ibv_async_event) ; } unsafe extern "C" { # [doc = " ibv_query_device - Get device properties"] pub fn ibv_query_device (context : * mut ibv_context , device_attr : * mut ibv_device_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_query_port - Get port properties"] pub fn ibv_query_port (context : * mut ibv_context , port_num : u8 , port_attr : * mut _compat_ibv_port_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_query_gid - Get a GID table entry"] pub fn ibv_query_gid (context : * mut ibv_context , port_num : u8 , index : :: std :: os :: raw :: c_int , gid : * mut ibv_gid) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_query_pkey - Get a P_Key table entry"] pub fn ibv_query_pkey (context : * mut ibv_context , port_num : u8 , index : :: std :: os :: raw :: c_int , pkey : * mut __be16) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_get_pkey_index - Translate a P_Key into a P_Key index"] pub fn ibv_get_pkey_index (context : * mut ibv_context , port_num : u8 , pkey : __be16) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_alloc_pd - Allocate a protection domain"] pub fn ibv_alloc_pd (context : * mut ibv_context) -> * mut ibv_pd ; } unsafe extern "C" { # [doc = " ibv_dealloc_pd - Free a protection domain"] pub fn ibv_dealloc_pd (pd : * mut ibv_pd) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_reg_mr_iova2 - Register memory region with a virtual offset address\n\n This version will be called if ibv_reg_mr or ibv_reg_mr_iova were called\n with at least one optional access flag from the IBV_ACCESS_OPTIONAL_RANGE\n bits flag range. The optional access flags will be masked if running over\n kernel that does not support passing them."] pub fn ibv_reg_mr_iova2 (pd : * mut ibv_pd , addr : * mut :: std :: os :: raw :: c_void , length : usize , iova : u64 , access : :: std :: os :: raw :: c_uint) -> * mut ibv_mr ; } unsafe extern "C" { # [doc = " ibv_reg_mr - Register a memory region"] pub fn ibv_reg_mr (pd : * mut ibv_pd , addr : * mut :: std :: os :: raw :: c_void , length : usize , access : :: std :: os :: raw :: c_int) -> * mut ibv_mr ; } unsafe extern "C" { # [doc = " ibv_reg_mr_iova - Register a memory region with a virtual offset\n address"] pub fn ibv_reg_mr_iova (pd : * mut ibv_pd , addr : * mut :: std :: os :: raw :: c_void , length : usize , iova : u64 , access : :: std :: os :: raw :: c_int) -> * mut ibv_mr ; } unsafe extern "C" { # [doc = " ibv_reg_dmabuf_mr - Register a dmabuf-based memory region"] pub fn ibv_reg_dmabuf_mr (pd : * mut ibv_pd , offset : u64 , length : usize , iova : u64 , fd : :: std :: os :: raw :: c_int , access : :: std :: os :: raw :: c_int) -> * mut ibv_mr ; } unsafe extern "C" { pub fn ibv_reg_mr_ex (pd : * mut ibv_pd , mr_init_attr : * mut ibv_mr_init_attr) -> * mut ibv_mr ; } pub const IBV_REREG_MR_ERR_INPUT : ibv_rereg_mr_err_code = - 1 ; pub const IBV_REREG_MR_ERR_DONT_FORK_NEW : ibv_rereg_mr_err_code = - 2 ; pub const IBV_REREG_MR_ERR_DO_FORK_OLD : ibv_rereg_mr_err_code = - 3 ; pub const IBV_REREG_MR_ERR_CMD : ibv_rereg_mr_err_code = - 4 ; pub const IBV_REREG_MR_ERR_CMD_AND_DO_FORK_NEW : ibv_rereg_mr_err_code = - 5 ; pub type ibv_rereg_mr_err_code = :: std :: os :: raw :: c_int ; unsafe extern "C" { # [doc = " ibv_rereg_mr - Re-Register a memory region"] pub fn ibv_rereg_mr (mr : * mut ibv_mr , flags : :: std :: os :: raw :: c_int , pd : * mut ibv_pd , addr : * mut :: std :: os :: raw :: c_void , length : usize , access : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_dereg_mr - Deregister a memory region"] pub fn ibv_dereg_mr (mr : * mut ibv_mr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_create_comp_channel - Create a completion event channel"] pub fn ibv_create_comp_channel (context : * mut ibv_context) -> * mut ibv_comp_channel ; } unsafe extern "C" { # [doc = " ibv_destroy_comp_channel - Destroy a completion event channel"] pub fn ibv_destroy_comp_channel (channel : * mut ibv_comp_channel) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_create_cq - Create a completion queue\n @context - Context CQ will be attached to\n @cqe - Minimum number of entries required for CQ\n @cq_context - Consumer-supplied context returned for completion events\n @channel - Completion channel where completion events will be queued.\n     May be NULL if completion events will not be used.\n @comp_vector - Completion vector used to signal completion events.\n     Must be >= 0 and < context->num_comp_vectors."] pub fn ibv_create_cq (context : * mut ibv_context , cqe : :: std :: os :: raw :: c_int , cq_context : * mut :: std :: os :: raw :: c_void , channel : * mut ibv_comp_channel , comp_vector : :: std :: os :: raw :: c_int) -> * mut ibv_cq ; } unsafe extern "C" { # [doc = " ibv_resize_cq - Modifies the capacity of the CQ.\n @cq: The CQ to resize.\n @cqe: The minimum size of the CQ.\n\n Users can examine the cq structure to determine the actual CQ size."] pub fn ibv_resize_cq (cq : * mut ibv_cq , cqe : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_destroy_cq - Destroy a completion queue"] pub fn ibv_destroy_cq (cq : * mut ibv_cq) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_get_cq_event - Read next CQ event\n @channel: Channel to get next event from.\n @cq: Used to return pointer to CQ.\n @cq_context: Used to return consumer-supplied CQ context.\n\n All completion events returned by ibv_get_cq_event() must\n eventually be acknowledged with ibv_ack_cq_events()."] pub fn ibv_get_cq_event (channel : * mut ibv_comp_channel , cq : * mut * mut ibv_cq , cq_context : * mut * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_ack_cq_events - Acknowledge CQ completion events\n @cq: CQ to acknowledge events for\n @nevents: Number of events to acknowledge.\n\n All completion events which are returned by ibv_get_cq_event() must\n be acknowledged.  To avoid races, ibv_destroy_cq() will wait for\n all completion events to be acknowledged, so there should be a\n one-to-one correspondence between acks and successful gets.  An\n application may accumulate multiple completion events and\n acknowledge them in a single call to ibv_ack_cq_events() by passing\n the number of events to ack in @nevents."] pub fn ibv_ack_cq_events (cq : * mut ibv_cq , nevents : :: std :: os :: raw :: c_uint) ; } unsafe extern "C" { # [doc = " ibv_create_srq - Creates a SRQ associated with the specified protection\n   domain.\n @pd: The protection domain associated with the SRQ.\n @srq_init_attr: A list of initial attributes required to create the SRQ.\n\n srq_attr->max_wr and srq_attr->max_sge are read the determine the\n requested size of the SRQ, and set to the actual values allocated\n on return.  If ibv_create_srq() succeeds, then max_wr and max_sge\n will always be at least as large as the requested values."] pub fn ibv_create_srq (pd : * mut ibv_pd , srq_init_attr : * mut ibv_srq_init_attr) -> * mut ibv_srq ; } unsafe extern "C" { # [doc = " ibv_modify_srq - Modifies the attributes for the specified SRQ.\n @srq: The SRQ to modify.\n @srq_attr: On input, specifies the SRQ attributes to modify.  On output,\n   the current values of selected SRQ attributes are returned.\n @srq_attr_mask: A bit-mask used to specify which attributes of the SRQ\n   are being modified.\n\n The mask may contain IBV_SRQ_MAX_WR to resize the SRQ and/or\n IBV_SRQ_LIMIT to set the SRQ's limit and request notification when\n the number of receives queued drops below the limit."] pub fn ibv_modify_srq (srq : * mut ibv_srq , srq_attr : * mut ibv_srq_attr , srq_attr_mask : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_query_srq - Returns the attribute list and current values for the\n   specified SRQ.\n @srq: The SRQ to query.\n @srq_attr: The attributes of the specified SRQ."] pub fn ibv_query_srq (srq : * mut ibv_srq , srq_attr : * mut ibv_srq_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_destroy_srq - Destroys the specified SRQ.\n @srq: The SRQ to destroy."] pub fn ibv_destroy_srq (srq : * mut ibv_srq) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_create_qp - Create a queue pair."] pub fn ibv_create_qp (pd : * mut ibv_pd , qp_init_attr : * mut ibv_qp_init_attr) -> * mut ibv_qp ; } unsafe extern "C" { # [doc = " ibv_alloc_dmah - Allocate a dma handle"] pub fn ibv_alloc_dmah (context : * mut ibv_context , attr : * mut ibv_dmah_init_attr) -> * mut ibv_dmah ; } unsafe extern "C" { # [doc = " ibv_dealloc_dmah - Free a dma handle"] pub fn ibv_dealloc_dmah (dmah : * mut ibv_dmah) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_modify_qp - Modify a queue pair."] pub fn ibv_modify_qp (qp : * mut ibv_qp , attr : * mut ibv_qp_attr , attr_mask : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_query_qp_data_in_order - Checks whether the data is guaranteed to be\n   written in-order.\n @qp: The QP to query.\n @op: Operation type.\n @flags: Flags are used to select a query type.\n For IBV_QUERY_QP_DATA_IN_ORDER_RETURN_CAPS, the function will return a\n capabilities vector. If 0, will query for IBV_QUERY_QP_DATA_IN_ORDER_WHOLE_MSG\n support and return 0/1 result.\n\n Return Value\n ibv_query_qp_data_in_order() return value is determined by flags.\n For each capability bit, 1 is returned if the data is guaranteed to be\n written in-order for selected operation and type, 0 otherwise."] pub fn ibv_query_qp_data_in_order (qp : * mut ibv_qp , op : ibv_wr_opcode :: Type , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_query_qp - Returns the attribute list and current values for the\n   specified QP.\n @qp: The QP to query.\n @attr: The attributes of the specified QP.\n @attr_mask: A bit-mask used to select specific attributes to query.\n @init_attr: Additional attributes of the selected QP.\n\n The qp_attr_mask may be used to limit the query to gathering only the\n selected attributes."] pub fn ibv_query_qp (qp : * mut ibv_qp , attr : * mut ibv_qp_attr , attr_mask : :: std :: os :: raw :: c_int , init_attr : * mut ibv_qp_init_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_destroy_qp - Destroy a queue pair."] pub fn ibv_destroy_qp (qp : * mut ibv_qp) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_create_ah - Create an address handle."] pub fn ibv_create_ah (pd : * mut ibv_pd , attr : * mut ibv_ah_attr) -> * mut ibv_ah ; } unsafe extern "C" { # [doc = " ibv_init_ah_from_wc - Initializes address handle attributes from a\n   work completion.\n @context: Device context on which the received message arrived.\n @port_num: Port on which the received message arrived.\n @wc: Work completion associated with the received message.\n @grh: References the received global route header.  This parameter is\n   ignored unless the work completion indicates that the GRH is valid.\n @ah_attr: Returned attributes that can be used when creating an address\n   handle for replying to the message."] pub fn ibv_init_ah_from_wc (context : * mut ibv_context , port_num : u8 , wc : * mut ibv_wc , grh : * mut ibv_grh , ah_attr : * mut ibv_ah_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_create_ah_from_wc - Creates an address handle associated with the\n   sender of the specified work completion.\n @pd: The protection domain associated with the address handle.\n @wc: Work completion information associated with a received message.\n @grh: References the received global route header.  This parameter is\n   ignored unless the work completion indicates that the GRH is valid.\n @port_num: The outbound port number to associate with the address.\n\n The address handle is used to reference a local or global destination\n in all UD QP post sends."] pub fn ibv_create_ah_from_wc (pd : * mut ibv_pd , wc : * mut ibv_wc , grh : * mut ibv_grh , port_num : u8) -> * mut ibv_ah ; } unsafe extern "C" { # [doc = " ibv_destroy_ah - Destroy an address handle."] pub fn ibv_destroy_ah (ah : * mut ibv_ah) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_attach_mcast - Attaches the specified QP to a multicast group.\n @qp: QP to attach to the multicast group.  The QP must be a UD QP.\n @gid: Multicast group GID.\n @lid: Multicast group LID in host byte order.\n\n In order to route multicast packets correctly, subnet\n administration must have created the multicast group and configured\n the fabric appropriately.  The port associated with the specified\n QP must also be a member of the multicast group."] pub fn ibv_attach_mcast (qp : * mut ibv_qp , gid : * const ibv_gid , lid : u16) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_detach_mcast - Detaches the specified QP from a multicast group.\n @qp: QP to detach from the multicast group.\n @gid: Multicast group GID.\n @lid: Multicast group LID in host byte order."] pub fn ibv_detach_mcast (qp : * mut ibv_qp , gid : * const ibv_gid , lid : u16) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_fork_init - Prepare data structures so that fork() may be used\n safely.  If this function is not called or returns a non-zero\n status, then libibverbs data structures are not fork()-safe and the\n effect of an application calling fork() is undefined."] pub fn ibv_fork_init () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_is_fork_initialized - Check if fork support\n (ibv_fork_init) was enabled."] pub fn ibv_is_fork_initialized () -> ibv_fork_status ; } unsafe extern "C" { # [doc = " ibv_node_type_str - Return string describing node_type enum value"] pub fn ibv_node_type_str (node_type : ibv_node_type) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " ibv_port_state_str - Return string describing port_state enum value"] pub fn ibv_port_state_str (port_state : ibv_port_state :: Type) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { # [doc = " ibv_event_type_str - Return string describing event_type enum value"] pub fn ibv_event_type_str (event : ibv_event_type) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn ibv_resolve_eth_l2_from_gid (context : * mut ibv_context , attr : * mut ibv_ah_attr , eth_mac : * mut u8 , vid : * mut u16) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_set_ece - Set ECE options"] pub fn ibv_set_ece (qp : * mut ibv_qp , ece : * mut ibv_ece) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { # [doc = " ibv_query_ece - Get accepted ECE options"] pub fn ibv_query_ece (qp : * mut ibv_qp , ece : * mut ibv_ece) -> :: std :: os :: raw :: c_int ; } pub const EFADV_DEVICE_ATTR_CAPS_RDMA_READ : _bindgen_ty_18 = 1 ; pub const EFADV_DEVICE_ATTR_CAPS_RNR_RETRY : _bindgen_ty_18 = 2 ; pub const EFADV_DEVICE_ATTR_CAPS_CQ_WITH_SGID : _bindgen_ty_18 = 4 ; pub const EFADV_DEVICE_ATTR_CAPS_RDMA_WRITE : _bindgen_ty_18 = 8 ; pub const EFADV_DEVICE_ATTR_CAPS_UNSOLICITED_WRITE_RECV : _bindgen_ty_18 = 16 ; pub const EFADV_DEVICE_ATTR_CAPS_CQ_WITH_EXT_MEM_DMABUF : _bindgen_ty_18 = 32 ; pub type _bindgen_ty_18 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct efadv_device_attr { pub comp_mask : u64 , pub max_sq_wr : u32 , pub max_rq_wr : u32 , pub max_sq_sge : u16 , pub max_rq_sge : u16 , pub inline_buf_size : u16 , pub reserved : [u8 ; 2usize] , pub device_caps : u32 , pub max_rdma_size : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_device_attr"] [:: std :: mem :: size_of :: < efadv_device_attr > () - 32usize] ; ["Alignment of efadv_device_attr"] [:: std :: mem :: align_of :: < efadv_device_attr > () - 8usize] ; ["Offset of field: efadv_device_attr::comp_mask"] [:: std :: mem :: offset_of ! (efadv_device_attr , comp_mask) - 0usize] ; ["Offset of field: efadv_device_attr::max_sq_wr"] [:: std :: mem :: offset_of ! (efadv_device_attr , max_sq_wr) - 8usize] ; ["Offset of field: efadv_device_attr::max_rq_wr"] [:: std :: mem :: offset_of ! (efadv_device_attr , max_rq_wr) - 12usize] ; ["Offset of field: efadv_device_attr::max_sq_sge"] [:: std :: mem :: offset_of ! (efadv_device_attr , max_sq_sge) - 16usize] ; ["Offset of field: efadv_device_attr::max_rq_sge"] [:: std :: mem :: offset_of ! (efadv_device_attr , max_rq_sge) - 18usize] ; ["Offset of field: efadv_device_attr::inline_buf_size"] [:: std :: mem :: offset_of ! (efadv_device_attr , inline_buf_size) - 20usize] ; ["Offset of field: efadv_device_attr::reserved"] [:: std :: mem :: offset_of ! (efadv_device_attr , reserved) - 22usize] ; ["Offset of field: efadv_device_attr::device_caps"] [:: std :: mem :: offset_of ! (efadv_device_attr , device_caps) - 24usize] ; ["Offset of field: efadv_device_attr::max_rdma_size"] [:: std :: mem :: offset_of ! (efadv_device_attr , max_rdma_size) - 28usize] ; } ; unsafe extern "C" { pub fn efadv_query_device (ibvctx : * mut ibv_context , attr : * mut efadv_device_attr , inlen : u32) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct efadv_ah_attr { pub comp_mask : u64 , pub ahn : u16 , pub reserved : [u8 ; 6usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_ah_attr"] [:: std :: mem :: size_of :: < efadv_ah_attr > () - 16usize] ; ["Alignment of efadv_ah_attr"] [:: std :: mem :: align_of :: < efadv_ah_attr > () - 8usize] ; ["Offset of field: efadv_ah_attr::comp_mask"] [:: std :: mem :: offset_of ! (efadv_ah_attr , comp_mask) - 0usize] ; ["Offset of field: efadv_ah_attr::ahn"] [:: std :: mem :: offset_of ! (efadv_ah_attr , ahn) - 8usize] ; ["Offset of field: efadv_ah_attr::reserved"] [:: std :: mem :: offset_of ! (efadv_ah_attr , reserved) - 10usize] ; } ; unsafe extern "C" { pub fn efadv_query_ah (ibvah : * mut ibv_ah , attr : * mut efadv_ah_attr , inlen : u32) -> :: std :: os :: raw :: c_int ; } pub const EFADV_QP_DRIVER_TYPE_SRD : _bindgen_ty_19 = 0 ; pub type _bindgen_ty_19 = :: std :: os :: raw :: c_uint ; unsafe extern "C" { pub fn efadv_create_driver_qp (ibvpd : * mut ibv_pd , attr : * mut ibv_qp_init_attr , driver_qp_type : u32) -> * mut ibv_qp ; } pub const EFADV_QP_FLAGS_UNSOLICITED_WRITE_RECV : _bindgen_ty_20 = 1 ; pub type _bindgen_ty_20 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct efadv_qp_init_attr { pub comp_mask : u64 , pub driver_qp_type : u32 , pub flags : u16 , pub sl : u8 , pub reserved : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_qp_init_attr"] [:: std :: mem :: size_of :: < efadv_qp_init_attr > () - 16usize] ; ["Alignment of efadv_qp_init_attr"] [:: std :: mem :: align_of :: < efadv_qp_init_attr > () - 8usize] ; ["Offset of field: efadv_qp_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (efadv_qp_init_attr , comp_mask) - 0usize] ; ["Offset of field: efadv_qp_init_attr::driver_qp_type"] [:: std :: mem :: offset_of ! (efadv_qp_init_attr , driver_qp_type) - 8usize] ; ["Offset of field: efadv_qp_init_attr::flags"] [:: std :: mem :: offset_of ! (efadv_qp_init_attr , flags) - 12usize] ; ["Offset of field: efadv_qp_init_attr::sl"] [:: std :: mem :: offset_of ! (efadv_qp_init_attr , sl) - 14usize] ; ["Offset of field: efadv_qp_init_attr::reserved"] [:: std :: mem :: offset_of ! (efadv_qp_init_attr , reserved) - 15usize] ; } ; unsafe extern "C" { pub fn efadv_create_qp_ex (ibvctx : * mut ibv_context , attr_ex : * mut ibv_qp_init_attr_ex , efa_attr : * mut efadv_qp_init_attr , inlen : u32) -> * mut ibv_qp ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct efadv_wq_attr { pub comp_mask : u64 , pub buffer : * mut u8 , pub entry_size : u32 , pub num_entries : u32 , pub doorbell : * mut u32 , pub max_batch : u32 , pub reserved : [u8 ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_wq_attr"] [:: std :: mem :: size_of :: < efadv_wq_attr > () - 40usize] ; ["Alignment of efadv_wq_attr"] [:: std :: mem :: align_of :: < efadv_wq_attr > () - 8usize] ; ["Offset of field: efadv_wq_attr::comp_mask"] [:: std :: mem :: offset_of ! (efadv_wq_attr , comp_mask) - 0usize] ; ["Offset of field: efadv_wq_attr::buffer"] [:: std :: mem :: offset_of ! (efadv_wq_attr , buffer) - 8usize] ; ["Offset of field: efadv_wq_attr::entry_size"] [:: std :: mem :: offset_of ! (efadv_wq_attr , entry_size) - 16usize] ; ["Offset of field: efadv_wq_attr::num_entries"] [:: std :: mem :: offset_of ! (efadv_wq_attr , num_entries) - 20usize] ; ["Offset of field: efadv_wq_attr::doorbell"] [:: std :: mem :: offset_of ! (efadv_wq_attr , doorbell) - 24usize] ; ["Offset of field: efadv_wq_attr::max_batch"] [:: std :: mem :: offset_of ! (efadv_wq_attr , max_batch) - 32usize] ; ["Offset of field: efadv_wq_attr::reserved"] [:: std :: mem :: offset_of ! (efadv_wq_attr , reserved) - 36usize] ; } ; impl Default for efadv_wq_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn efadv_query_qp_wqs (ibvqp : * mut ibv_qp , sq_attr : * mut efadv_wq_attr , rq_attr : * mut efadv_wq_attr , inlen : u32) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct efadv_cq { pub comp_mask : u64 , pub wc_read_sgid : :: std :: option :: Option < unsafe extern "C" fn (efadv_cq : * mut efadv_cq , sgid : * mut ibv_gid) -> :: std :: os :: raw :: c_int > , pub wc_is_unsolicited : :: std :: option :: Option < unsafe extern "C" fn (efadv_cq : * mut efadv_cq) -> bool > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_cq"] [:: std :: mem :: size_of :: < efadv_cq > () - 24usize] ; ["Alignment of efadv_cq"] [:: std :: mem :: align_of :: < efadv_cq > () - 8usize] ; ["Offset of field: efadv_cq::comp_mask"] [:: std :: mem :: offset_of ! (efadv_cq , comp_mask) - 0usize] ; ["Offset of field: efadv_cq::wc_read_sgid"] [:: std :: mem :: offset_of ! (efadv_cq , wc_read_sgid) - 8usize] ; ["Offset of field: efadv_cq::wc_is_unsolicited"] [:: std :: mem :: offset_of ! (efadv_cq , wc_is_unsolicited) - 16usize] ; } ; pub const EFADV_WC_EX_WITH_SGID : _bindgen_ty_21 = 1 ; pub const EFADV_WC_EX_WITH_IS_UNSOLICITED : _bindgen_ty_21 = 2 ; pub type _bindgen_ty_21 = :: std :: os :: raw :: c_uint ; pub const EFADV_CQ_INIT_FLAGS_EXT_MEM_DMABUF : _bindgen_ty_22 = 1 ; pub type _bindgen_ty_22 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct efadv_cq_init_attr { pub comp_mask : u64 , pub wc_flags : u64 , pub flags : u64 , pub ext_mem_dmabuf : efadv_cq_init_attr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct efadv_cq_init_attr__bindgen_ty_1 { pub buffer : * mut u8 , pub length : u64 , pub offset : u64 , pub fd : i32 , pub reserved : [u8 ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_cq_init_attr__bindgen_ty_1"] [:: std :: mem :: size_of :: < efadv_cq_init_attr__bindgen_ty_1 > () - 32usize] ; ["Alignment of efadv_cq_init_attr__bindgen_ty_1"] [:: std :: mem :: align_of :: < efadv_cq_init_attr__bindgen_ty_1 > () - 8usize] ; ["Offset of field: efadv_cq_init_attr__bindgen_ty_1::buffer"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: efadv_cq_init_attr__bindgen_ty_1::length"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr__bindgen_ty_1 , length) - 8usize] ; ["Offset of field: efadv_cq_init_attr__bindgen_ty_1::offset"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr__bindgen_ty_1 , offset) - 16usize] ; ["Offset of field: efadv_cq_init_attr__bindgen_ty_1::fd"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr__bindgen_ty_1 , fd) - 24usize] ; ["Offset of field: efadv_cq_init_attr__bindgen_ty_1::reserved"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr__bindgen_ty_1 , reserved) - 28usize] ; } ; impl Default for efadv_cq_init_attr__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_cq_init_attr"] [:: std :: mem :: size_of :: < efadv_cq_init_attr > () - 56usize] ; ["Alignment of efadv_cq_init_attr"] [:: std :: mem :: align_of :: < efadv_cq_init_attr > () - 8usize] ; ["Offset of field: efadv_cq_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr , comp_mask) - 0usize] ; ["Offset of field: efadv_cq_init_attr::wc_flags"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr , wc_flags) - 8usize] ; ["Offset of field: efadv_cq_init_attr::flags"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr , flags) - 16usize] ; ["Offset of field: efadv_cq_init_attr::ext_mem_dmabuf"] [:: std :: mem :: offset_of ! (efadv_cq_init_attr , ext_mem_dmabuf) - 24usize] ; } ; impl Default for efadv_cq_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn efadv_create_cq (ibvctx : * mut ibv_context , attr_ex : * mut ibv_cq_init_attr_ex , efa_attr : * mut efadv_cq_init_attr , inlen : u32) -> * mut ibv_cq_ex ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct efadv_cq_attr { pub comp_mask : u64 , pub buffer : * mut u8 , pub entry_size : u32 , pub num_entries : u32 , pub doorbell : * mut u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_cq_attr"] [:: std :: mem :: size_of :: < efadv_cq_attr > () - 32usize] ; ["Alignment of efadv_cq_attr"] [:: std :: mem :: align_of :: < efadv_cq_attr > () - 8usize] ; ["Offset of field: efadv_cq_attr::comp_mask"] [:: std :: mem :: offset_of ! (efadv_cq_attr , comp_mask) - 0usize] ; ["Offset of field: efadv_cq_attr::buffer"] [:: std :: mem :: offset_of ! (efadv_cq_attr , buffer) - 8usize] ; ["Offset of field: efadv_cq_attr::entry_size"] [:: std :: mem :: offset_of ! (efadv_cq_attr , entry_size) - 16usize] ; ["Offset of field: efadv_cq_attr::num_entries"] [:: std :: mem :: offset_of ! (efadv_cq_attr , num_entries) - 20usize] ; ["Offset of field: efadv_cq_attr::doorbell"] [:: std :: mem :: offset_of ! (efadv_cq_attr , doorbell) - 24usize] ; } ; impl Default for efadv_cq_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn efadv_query_cq (ibvcq : * mut ibv_cq , attr : * mut efadv_cq_attr , inlen : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn efadv_cq_from_ibv_cq_ex (ibvcqx : * mut ibv_cq_ex) -> * mut efadv_cq ; } pub const EFADV_MR_ATTR_VALIDITY_RECV_IC_ID : _bindgen_ty_23 = 1 ; pub const EFADV_MR_ATTR_VALIDITY_RDMA_READ_IC_ID : _bindgen_ty_23 = 2 ; pub const EFADV_MR_ATTR_VALIDITY_RDMA_RECV_IC_ID : _bindgen_ty_23 = 4 ; pub type _bindgen_ty_23 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct efadv_mr_attr { pub comp_mask : u64 , pub ic_id_validity : u16 , pub recv_ic_id : u16 , pub rdma_read_ic_id : u16 , pub rdma_recv_ic_id : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of efadv_mr_attr"] [:: std :: mem :: size_of :: < efadv_mr_attr > () - 16usize] ; ["Alignment of efadv_mr_attr"] [:: std :: mem :: align_of :: < efadv_mr_attr > () - 8usize] ; ["Offset of field: efadv_mr_attr::comp_mask"] [:: std :: mem :: offset_of ! (efadv_mr_attr , comp_mask) - 0usize] ; ["Offset of field: efadv_mr_attr::ic_id_validity"] [:: std :: mem :: offset_of ! (efadv_mr_attr , ic_id_validity) - 8usize] ; ["Offset of field: efadv_mr_attr::recv_ic_id"] [:: std :: mem :: offset_of ! (efadv_mr_attr , recv_ic_id) - 10usize] ; ["Offset of field: efadv_mr_attr::rdma_read_ic_id"] [:: std :: mem :: offset_of ! (efadv_mr_attr , rdma_read_ic_id) - 12usize] ; ["Offset of field: efadv_mr_attr::rdma_recv_ic_id"] [:: std :: mem :: offset_of ! (efadv_mr_attr , rdma_recv_ic_id) - 14usize] ; } ; unsafe extern "C" { pub fn efadv_query_mr (ibvmr : * mut ibv_mr , attr : * mut efadv_mr_attr , inlen : u32) -> :: std :: os :: raw :: c_int ; } pub const IBV_TMH_NO_TAG : ibv_tmh_op = 0 ; pub const IBV_TMH_RNDV : ibv_tmh_op = 1 ; pub const IBV_TMH_FIN : ibv_tmh_op = 2 ; pub const IBV_TMH_EAGER : ibv_tmh_op = 3 ; pub type ibv_tmh_op = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_tmh { pub opcode : u8 , pub reserved : [u8 ; 3usize] , pub app_ctx : __be32 , pub tag : __be64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_tmh"] [:: std :: mem :: size_of :: < ibv_tmh > () - 16usize] ; ["Alignment of ibv_tmh"] [:: std :: mem :: align_of :: < ibv_tmh > () - 8usize] ; ["Offset of field: ibv_tmh::opcode"] [:: std :: mem :: offset_of ! (ibv_tmh , opcode) - 0usize] ; ["Offset of field: ibv_tmh::reserved"] [:: std :: mem :: offset_of ! (ibv_tmh , reserved) - 1usize] ; ["Offset of field: ibv_tmh::app_ctx"] [:: std :: mem :: offset_of ! (ibv_tmh , app_ctx) - 4usize] ; ["Offset of field: ibv_tmh::tag"] [:: std :: mem :: offset_of ! (ibv_tmh , tag) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct ibv_rvh { pub va : __be64 , pub rkey : __be32 , pub len : __be32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ibv_rvh"] [:: std :: mem :: size_of :: < ibv_rvh > () - 16usize] ; ["Alignment of ibv_rvh"] [:: std :: mem :: align_of :: < ibv_rvh > () - 8usize] ; ["Offset of field: ibv_rvh::va"] [:: std :: mem :: offset_of ! (ibv_rvh , va) - 0usize] ; ["Offset of field: ibv_rvh::rkey"] [:: std :: mem :: offset_of ! (ibv_rvh , rkey) - 8usize] ; ["Offset of field: ibv_rvh::len"] [:: std :: mem :: offset_of ! (ibv_rvh , len) - 12usize] ; } ; pub const MLX5_IB_UAPI_FLOW_TABLE_TYPE_NIC_RX : mlx5_ib_uapi_flow_table_type = 0 ; pub const MLX5_IB_UAPI_FLOW_TABLE_TYPE_NIC_TX : mlx5_ib_uapi_flow_table_type = 1 ; pub const MLX5_IB_UAPI_FLOW_TABLE_TYPE_FDB : mlx5_ib_uapi_flow_table_type = 2 ; pub const MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_RX : mlx5_ib_uapi_flow_table_type = 3 ; pub const MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_TX : mlx5_ib_uapi_flow_table_type = 4 ; pub const MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_TRANSPORT_RX : mlx5_ib_uapi_flow_table_type = 5 ; pub const MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_TRANSPORT_TX : mlx5_ib_uapi_flow_table_type = 6 ; pub type mlx5_ib_uapi_flow_table_type = :: std :: os :: raw :: c_uint ; pub const MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TUNNEL_TO_L2 : mlx5_ib_uapi_flow_action_packet_reformat_type = 0 ; pub const MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L2_TUNNEL : mlx5_ib_uapi_flow_action_packet_reformat_type = 1 ; pub const MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L3_TUNNEL_TO_L2 : mlx5_ib_uapi_flow_action_packet_reformat_type = 2 ; pub const MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L3_TUNNEL : mlx5_ib_uapi_flow_action_packet_reformat_type = 3 ; pub type mlx5_ib_uapi_flow_action_packet_reformat_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default)] pub struct mlx5_ib_uapi_devx_async_cmd_hdr { pub wr_id : __u64 , pub out_data : __IncompleteArrayField < __u8 > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_ib_uapi_devx_async_cmd_hdr"] [:: std :: mem :: size_of :: < mlx5_ib_uapi_devx_async_cmd_hdr > () - 8usize] ; ["Alignment of mlx5_ib_uapi_devx_async_cmd_hdr"] [:: std :: mem :: align_of :: < mlx5_ib_uapi_devx_async_cmd_hdr > () - 8usize] ; ["Offset of field: mlx5_ib_uapi_devx_async_cmd_hdr::wr_id"] [:: std :: mem :: offset_of ! (mlx5_ib_uapi_devx_async_cmd_hdr , wr_id) - 0usize] ; ["Offset of field: mlx5_ib_uapi_devx_async_cmd_hdr::out_data"] [:: std :: mem :: offset_of ! (mlx5_ib_uapi_devx_async_cmd_hdr , out_data) - 8usize] ; } ; pub const MLX5_IB_UAPI_DM_TYPE_MEMIC : mlx5_ib_uapi_dm_type = 0 ; pub const MLX5_IB_UAPI_DM_TYPE_STEERING_SW_ICM : mlx5_ib_uapi_dm_type = 1 ; pub const MLX5_IB_UAPI_DM_TYPE_HEADER_MODIFY_SW_ICM : mlx5_ib_uapi_dm_type = 2 ; pub const MLX5_IB_UAPI_DM_TYPE_HEADER_MODIFY_PATTERN_SW_ICM : mlx5_ib_uapi_dm_type = 3 ; pub const MLX5_IB_UAPI_DM_TYPE_ENCAP_SW_ICM : mlx5_ib_uapi_dm_type = 4 ; pub type mlx5_ib_uapi_dm_type = :: std :: os :: raw :: c_uint ; pub const MLX5_IB_UAPI_DEVX_CR_EV_CH_FLAGS_OMIT_DATA : mlx5_ib_uapi_devx_create_event_channel_flags = 1 ; pub type mlx5_ib_uapi_devx_create_event_channel_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default)] pub struct mlx5_ib_uapi_devx_async_event_hdr { pub cookie : __u64 , pub out_data : __IncompleteArrayField < __u8 > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_ib_uapi_devx_async_event_hdr"] [:: std :: mem :: size_of :: < mlx5_ib_uapi_devx_async_event_hdr > () - 8usize] ; ["Alignment of mlx5_ib_uapi_devx_async_event_hdr"] [:: std :: mem :: align_of :: < mlx5_ib_uapi_devx_async_event_hdr > () - 8usize] ; ["Offset of field: mlx5_ib_uapi_devx_async_event_hdr::cookie"] [:: std :: mem :: offset_of ! (mlx5_ib_uapi_devx_async_event_hdr , cookie) - 0usize] ; ["Offset of field: mlx5_ib_uapi_devx_async_event_hdr::out_data"] [:: std :: mem :: offset_of ! (mlx5_ib_uapi_devx_async_event_hdr , out_data) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_ib_uapi_reg { pub value : __u32 , pub mask : __u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_ib_uapi_reg"] [:: std :: mem :: size_of :: < mlx5_ib_uapi_reg > () - 8usize] ; ["Alignment of mlx5_ib_uapi_reg"] [:: std :: mem :: align_of :: < mlx5_ib_uapi_reg > () - 4usize] ; ["Offset of field: mlx5_ib_uapi_reg::value"] [:: std :: mem :: offset_of ! (mlx5_ib_uapi_reg , value) - 0usize] ; ["Offset of field: mlx5_ib_uapi_reg::mask"] [:: std :: mem :: offset_of ! (mlx5_ib_uapi_reg , mask) - 4usize] ; } ; pub const MLX5_RCV_DBR : _bindgen_ty_24 = 0 ; pub const MLX5_SND_DBR : _bindgen_ty_24 = 1 ; pub type _bindgen_ty_24 = :: std :: os :: raw :: c_uint ; pub const MLX5DV_CONTEXT_MASK_CQE_COMPRESION : mlx5dv_context_comp_mask = 1 ; pub const MLX5DV_CONTEXT_MASK_SWP : mlx5dv_context_comp_mask = 2 ; pub const MLX5DV_CONTEXT_MASK_STRIDING_RQ : mlx5dv_context_comp_mask = 4 ; pub const MLX5DV_CONTEXT_MASK_TUNNEL_OFFLOADS : mlx5dv_context_comp_mask = 8 ; pub const MLX5DV_CONTEXT_MASK_DYN_BFREGS : mlx5dv_context_comp_mask = 16 ; pub const MLX5DV_CONTEXT_MASK_CLOCK_INFO_UPDATE : mlx5dv_context_comp_mask = 32 ; pub const MLX5DV_CONTEXT_MASK_FLOW_ACTION_FLAGS : mlx5dv_context_comp_mask = 64 ; pub const MLX5DV_CONTEXT_MASK_DC_ODP_CAPS : mlx5dv_context_comp_mask = 128 ; pub const MLX5DV_CONTEXT_MASK_HCA_CORE_CLOCK : mlx5dv_context_comp_mask = 256 ; pub const MLX5DV_CONTEXT_MASK_NUM_LAG_PORTS : mlx5dv_context_comp_mask = 512 ; pub const MLX5DV_CONTEXT_MASK_SIGNATURE_OFFLOAD : mlx5dv_context_comp_mask = 1024 ; pub const MLX5DV_CONTEXT_MASK_DCI_STREAMS : mlx5dv_context_comp_mask = 2048 ; pub const MLX5DV_CONTEXT_MASK_WR_MEMCPY_LENGTH : mlx5dv_context_comp_mask = 4096 ; pub const MLX5DV_CONTEXT_MASK_CRYPTO_OFFLOAD : mlx5dv_context_comp_mask = 8192 ; pub const MLX5DV_CONTEXT_MASK_MAX_DC_RD_ATOM : mlx5dv_context_comp_mask = 16384 ; pub const MLX5DV_CONTEXT_MASK_REG_C0 : mlx5dv_context_comp_mask = 32768 ; pub const MLX5DV_CONTEXT_MASK_OOO_RECV_WRS : mlx5dv_context_comp_mask = 65536 ; pub type mlx5dv_context_comp_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_cqe_comp_caps { pub max_num : u32 , pub supported_format : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_cqe_comp_caps"] [:: std :: mem :: size_of :: < mlx5dv_cqe_comp_caps > () - 8usize] ; ["Alignment of mlx5dv_cqe_comp_caps"] [:: std :: mem :: align_of :: < mlx5dv_cqe_comp_caps > () - 4usize] ; ["Offset of field: mlx5dv_cqe_comp_caps::max_num"] [:: std :: mem :: offset_of ! (mlx5dv_cqe_comp_caps , max_num) - 0usize] ; ["Offset of field: mlx5dv_cqe_comp_caps::supported_format"] [:: std :: mem :: offset_of ! (mlx5dv_cqe_comp_caps , supported_format) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_sw_parsing_caps { pub sw_parsing_offloads : u32 , pub supported_qpts : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sw_parsing_caps"] [:: std :: mem :: size_of :: < mlx5dv_sw_parsing_caps > () - 8usize] ; ["Alignment of mlx5dv_sw_parsing_caps"] [:: std :: mem :: align_of :: < mlx5dv_sw_parsing_caps > () - 4usize] ; ["Offset of field: mlx5dv_sw_parsing_caps::sw_parsing_offloads"] [:: std :: mem :: offset_of ! (mlx5dv_sw_parsing_caps , sw_parsing_offloads) - 0usize] ; ["Offset of field: mlx5dv_sw_parsing_caps::supported_qpts"] [:: std :: mem :: offset_of ! (mlx5dv_sw_parsing_caps , supported_qpts) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_striding_rq_caps { pub min_single_stride_log_num_of_bytes : u32 , pub max_single_stride_log_num_of_bytes : u32 , pub min_single_wqe_log_num_of_strides : u32 , pub max_single_wqe_log_num_of_strides : u32 , pub supported_qpts : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_striding_rq_caps"] [:: std :: mem :: size_of :: < mlx5dv_striding_rq_caps > () - 20usize] ; ["Alignment of mlx5dv_striding_rq_caps"] [:: std :: mem :: align_of :: < mlx5dv_striding_rq_caps > () - 4usize] ; ["Offset of field: mlx5dv_striding_rq_caps::min_single_stride_log_num_of_bytes"] [:: std :: mem :: offset_of ! (mlx5dv_striding_rq_caps , min_single_stride_log_num_of_bytes) - 0usize] ; ["Offset of field: mlx5dv_striding_rq_caps::max_single_stride_log_num_of_bytes"] [:: std :: mem :: offset_of ! (mlx5dv_striding_rq_caps , max_single_stride_log_num_of_bytes) - 4usize] ; ["Offset of field: mlx5dv_striding_rq_caps::min_single_wqe_log_num_of_strides"] [:: std :: mem :: offset_of ! (mlx5dv_striding_rq_caps , min_single_wqe_log_num_of_strides) - 8usize] ; ["Offset of field: mlx5dv_striding_rq_caps::max_single_wqe_log_num_of_strides"] [:: std :: mem :: offset_of ! (mlx5dv_striding_rq_caps , max_single_wqe_log_num_of_strides) - 12usize] ; ["Offset of field: mlx5dv_striding_rq_caps::supported_qpts"] [:: std :: mem :: offset_of ! (mlx5dv_striding_rq_caps , supported_qpts) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_dci_streams_caps { pub max_log_num_concurent : u8 , pub max_log_num_errored : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dci_streams_caps"] [:: std :: mem :: size_of :: < mlx5dv_dci_streams_caps > () - 2usize] ; ["Alignment of mlx5dv_dci_streams_caps"] [:: std :: mem :: align_of :: < mlx5dv_dci_streams_caps > () - 1usize] ; ["Offset of field: mlx5dv_dci_streams_caps::max_log_num_concurent"] [:: std :: mem :: offset_of ! (mlx5dv_dci_streams_caps , max_log_num_concurent) - 0usize] ; ["Offset of field: mlx5dv_dci_streams_caps::max_log_num_errored"] [:: std :: mem :: offset_of ! (mlx5dv_dci_streams_caps , max_log_num_errored) - 1usize] ; } ; pub const MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_VXLAN : mlx5dv_tunnel_offloads = 1 ; pub const MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE : mlx5dv_tunnel_offloads = 2 ; pub const MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GENEVE : mlx5dv_tunnel_offloads = 4 ; pub const MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_CW_MPLS_OVER_GRE : mlx5dv_tunnel_offloads = 8 ; pub const MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_CW_MPLS_OVER_UDP : mlx5dv_tunnel_offloads = 16 ; pub type mlx5dv_tunnel_offloads = :: std :: os :: raw :: c_uint ; pub const MLX5DV_FLOW_ACTION_FLAGS_ESP_AES_GCM : mlx5dv_flow_action_cap_flags = 1 ; pub const MLX5DV_FLOW_ACTION_FLAGS_ESP_AES_GCM_REQ_METADATA : mlx5dv_flow_action_cap_flags = 2 ; pub const MLX5DV_FLOW_ACTION_FLAGS_ESP_AES_GCM_SPI_STEERING : mlx5dv_flow_action_cap_flags = 4 ; pub const MLX5DV_FLOW_ACTION_FLAGS_ESP_AES_GCM_FULL_OFFLOAD : mlx5dv_flow_action_cap_flags = 8 ; pub const MLX5DV_FLOW_ACTION_FLAGS_ESP_AES_GCM_TX_IV_IS_ESN : mlx5dv_flow_action_cap_flags = 16 ; pub type mlx5dv_flow_action_cap_flags = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SIG_TYPE_T10DIF : mlx5dv_sig_type = 0 ; pub const MLX5DV_SIG_TYPE_CRC : mlx5dv_sig_type = 1 ; pub type mlx5dv_sig_type = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SIG_PROT_CAP_T10DIF : mlx5dv_sig_prot_caps = 1 ; pub const MLX5DV_SIG_PROT_CAP_CRC : mlx5dv_sig_prot_caps = 2 ; pub type mlx5dv_sig_prot_caps = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SIG_T10DIF_CRC : mlx5dv_sig_t10dif_bg_type = 0 ; pub const MLX5DV_SIG_T10DIF_CSUM : mlx5dv_sig_t10dif_bg_type = 1 ; pub type mlx5dv_sig_t10dif_bg_type = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SIG_T10DIF_BG_CAP_CRC : mlx5dv_sig_t10dif_bg_caps = 1 ; pub const MLX5DV_SIG_T10DIF_BG_CAP_CSUM : mlx5dv_sig_t10dif_bg_caps = 2 ; pub type mlx5dv_sig_t10dif_bg_caps = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SIG_CRC_TYPE_CRC32 : mlx5dv_sig_crc_type = 0 ; pub const MLX5DV_SIG_CRC_TYPE_CRC32C : mlx5dv_sig_crc_type = 1 ; pub const MLX5DV_SIG_CRC_TYPE_CRC64_XP10 : mlx5dv_sig_crc_type = 2 ; pub type mlx5dv_sig_crc_type = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SIG_CRC_TYPE_CAP_CRC32 : mlx5dv_sig_crc_type_caps = 1 ; pub const MLX5DV_SIG_CRC_TYPE_CAP_CRC32C : mlx5dv_sig_crc_type_caps = 2 ; pub const MLX5DV_SIG_CRC_TYPE_CAP_CRC64_XP10 : mlx5dv_sig_crc_type_caps = 4 ; pub type mlx5dv_sig_crc_type_caps = :: std :: os :: raw :: c_uint ; pub const MLX5DV_BLOCK_SIZE_512 : mlx5dv_block_size = 0 ; pub const MLX5DV_BLOCK_SIZE_520 : mlx5dv_block_size = 1 ; pub const MLX5DV_BLOCK_SIZE_4048 : mlx5dv_block_size = 2 ; pub const MLX5DV_BLOCK_SIZE_4096 : mlx5dv_block_size = 3 ; pub const MLX5DV_BLOCK_SIZE_4160 : mlx5dv_block_size = 4 ; pub type mlx5dv_block_size = :: std :: os :: raw :: c_uint ; pub const MLX5DV_BLOCK_SIZE_CAP_512 : mlx5dv_block_size_caps = 1 ; pub const MLX5DV_BLOCK_SIZE_CAP_520 : mlx5dv_block_size_caps = 2 ; pub const MLX5DV_BLOCK_SIZE_CAP_4048 : mlx5dv_block_size_caps = 4 ; pub const MLX5DV_BLOCK_SIZE_CAP_4096 : mlx5dv_block_size_caps = 8 ; pub const MLX5DV_BLOCK_SIZE_CAP_4160 : mlx5dv_block_size_caps = 16 ; pub type mlx5dv_block_size_caps = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_sig_caps { pub block_size : u64 , pub block_prot : u32 , pub t10dif_bg : u16 , pub crc_type : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sig_caps"] [:: std :: mem :: size_of :: < mlx5dv_sig_caps > () - 16usize] ; ["Alignment of mlx5dv_sig_caps"] [:: std :: mem :: align_of :: < mlx5dv_sig_caps > () - 8usize] ; ["Offset of field: mlx5dv_sig_caps::block_size"] [:: std :: mem :: offset_of ! (mlx5dv_sig_caps , block_size) - 0usize] ; ["Offset of field: mlx5dv_sig_caps::block_prot"] [:: std :: mem :: offset_of ! (mlx5dv_sig_caps , block_prot) - 8usize] ; ["Offset of field: mlx5dv_sig_caps::t10dif_bg"] [:: std :: mem :: offset_of ! (mlx5dv_sig_caps , t10dif_bg) - 12usize] ; ["Offset of field: mlx5dv_sig_caps::crc_type"] [:: std :: mem :: offset_of ! (mlx5dv_sig_caps , crc_type) - 14usize] ; } ; pub const MLX5DV_CRYPTO_ENGINES_CAP_AES_XTS : mlx5dv_crypto_engines_caps = 1 ; pub const MLX5DV_CRYPTO_ENGINES_CAP_AES_XTS_SINGLE_BLOCK : mlx5dv_crypto_engines_caps = 2 ; pub const MLX5DV_CRYPTO_ENGINES_CAP_AES_XTS_MULTI_BLOCK : mlx5dv_crypto_engines_caps = 4 ; pub type mlx5dv_crypto_engines_caps = :: std :: os :: raw :: c_uint ; pub const MLX5DV_CRYPTO_WRAPPED_IMPORT_METHOD_CAP_AES_XTS : mlx5dv_crypto_wrapped_import_method_caps = 1 ; pub type mlx5dv_crypto_wrapped_import_method_caps = :: std :: os :: raw :: c_uint ; pub const MLX5DV_CRYPTO_CAPS_CRYPTO : mlx5dv_crypto_caps_flags = 1 ; pub const MLX5DV_CRYPTO_CAPS_WRAPPED_CRYPTO_OPERATIONAL : mlx5dv_crypto_caps_flags = 2 ; pub const MLX5DV_CRYPTO_CAPS_WRAPPED_CRYPTO_GOING_TO_COMMISSIONING : mlx5dv_crypto_caps_flags = 4 ; pub type mlx5dv_crypto_caps_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_crypto_caps { pub failed_selftests : u16 , pub crypto_engines : u8 , pub wrapped_import_method : u8 , pub log_max_num_deks : u8 , pub flags : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_crypto_caps"] [:: std :: mem :: size_of :: < mlx5dv_crypto_caps > () - 12usize] ; ["Alignment of mlx5dv_crypto_caps"] [:: std :: mem :: align_of :: < mlx5dv_crypto_caps > () - 4usize] ; ["Offset of field: mlx5dv_crypto_caps::failed_selftests"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_caps , failed_selftests) - 0usize] ; ["Offset of field: mlx5dv_crypto_caps::crypto_engines"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_caps , crypto_engines) - 2usize] ; ["Offset of field: mlx5dv_crypto_caps::wrapped_import_method"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_caps , wrapped_import_method) - 3usize] ; ["Offset of field: mlx5dv_crypto_caps::log_max_num_deks"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_caps , log_max_num_deks) - 4usize] ; ["Offset of field: mlx5dv_crypto_caps::flags"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_caps , flags) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_ooo_recv_wrs_caps { pub max_rc : u32 , pub max_xrc : u32 , pub max_dct : u32 , pub max_ud : u32 , pub max_uc : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_ooo_recv_wrs_caps"] [:: std :: mem :: size_of :: < mlx5dv_ooo_recv_wrs_caps > () - 20usize] ; ["Alignment of mlx5dv_ooo_recv_wrs_caps"] [:: std :: mem :: align_of :: < mlx5dv_ooo_recv_wrs_caps > () - 4usize] ; ["Offset of field: mlx5dv_ooo_recv_wrs_caps::max_rc"] [:: std :: mem :: offset_of ! (mlx5dv_ooo_recv_wrs_caps , max_rc) - 0usize] ; ["Offset of field: mlx5dv_ooo_recv_wrs_caps::max_xrc"] [:: std :: mem :: offset_of ! (mlx5dv_ooo_recv_wrs_caps , max_xrc) - 4usize] ; ["Offset of field: mlx5dv_ooo_recv_wrs_caps::max_dct"] [:: std :: mem :: offset_of ! (mlx5dv_ooo_recv_wrs_caps , max_dct) - 8usize] ; ["Offset of field: mlx5dv_ooo_recv_wrs_caps::max_ud"] [:: std :: mem :: offset_of ! (mlx5dv_ooo_recv_wrs_caps , max_ud) - 12usize] ; ["Offset of field: mlx5dv_ooo_recv_wrs_caps::max_uc"] [:: std :: mem :: offset_of ! (mlx5dv_ooo_recv_wrs_caps , max_uc) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_context { pub version : u8 , pub flags : u64 , pub comp_mask : u64 , pub cqe_comp_caps : mlx5dv_cqe_comp_caps , pub sw_parsing_caps : mlx5dv_sw_parsing_caps , pub striding_rq_caps : mlx5dv_striding_rq_caps , pub tunnel_offloads_caps : u32 , pub max_dynamic_bfregs : u32 , pub max_clock_info_update_nsec : u64 , pub flow_action_flags : u32 , pub dc_odp_caps : u32 , pub hca_core_clock : * mut :: std :: os :: raw :: c_void , pub num_lag_ports : u8 , pub sig_caps : mlx5dv_sig_caps , pub dci_streams_caps : mlx5dv_dci_streams_caps , pub max_wr_memcpy_length : usize , pub crypto_caps : mlx5dv_crypto_caps , pub max_dc_rd_atom : u64 , pub max_dc_init_rd_atom : u64 , pub reg_c0 : mlx5_ib_uapi_reg , pub ooo_recv_wrs_caps : mlx5dv_ooo_recv_wrs_caps , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_context"] [:: std :: mem :: size_of :: < mlx5dv_context > () - 200usize] ; ["Alignment of mlx5dv_context"] [:: std :: mem :: align_of :: < mlx5dv_context > () - 8usize] ; ["Offset of field: mlx5dv_context::version"] [:: std :: mem :: offset_of ! (mlx5dv_context , version) - 0usize] ; ["Offset of field: mlx5dv_context::flags"] [:: std :: mem :: offset_of ! (mlx5dv_context , flags) - 8usize] ; ["Offset of field: mlx5dv_context::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_context , comp_mask) - 16usize] ; ["Offset of field: mlx5dv_context::cqe_comp_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , cqe_comp_caps) - 24usize] ; ["Offset of field: mlx5dv_context::sw_parsing_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , sw_parsing_caps) - 32usize] ; ["Offset of field: mlx5dv_context::striding_rq_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , striding_rq_caps) - 40usize] ; ["Offset of field: mlx5dv_context::tunnel_offloads_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , tunnel_offloads_caps) - 60usize] ; ["Offset of field: mlx5dv_context::max_dynamic_bfregs"] [:: std :: mem :: offset_of ! (mlx5dv_context , max_dynamic_bfregs) - 64usize] ; ["Offset of field: mlx5dv_context::max_clock_info_update_nsec"] [:: std :: mem :: offset_of ! (mlx5dv_context , max_clock_info_update_nsec) - 72usize] ; ["Offset of field: mlx5dv_context::flow_action_flags"] [:: std :: mem :: offset_of ! (mlx5dv_context , flow_action_flags) - 80usize] ; ["Offset of field: mlx5dv_context::dc_odp_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , dc_odp_caps) - 84usize] ; ["Offset of field: mlx5dv_context::hca_core_clock"] [:: std :: mem :: offset_of ! (mlx5dv_context , hca_core_clock) - 88usize] ; ["Offset of field: mlx5dv_context::num_lag_ports"] [:: std :: mem :: offset_of ! (mlx5dv_context , num_lag_ports) - 96usize] ; ["Offset of field: mlx5dv_context::sig_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , sig_caps) - 104usize] ; ["Offset of field: mlx5dv_context::dci_streams_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , dci_streams_caps) - 120usize] ; ["Offset of field: mlx5dv_context::max_wr_memcpy_length"] [:: std :: mem :: offset_of ! (mlx5dv_context , max_wr_memcpy_length) - 128usize] ; ["Offset of field: mlx5dv_context::crypto_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , crypto_caps) - 136usize] ; ["Offset of field: mlx5dv_context::max_dc_rd_atom"] [:: std :: mem :: offset_of ! (mlx5dv_context , max_dc_rd_atom) - 152usize] ; ["Offset of field: mlx5dv_context::max_dc_init_rd_atom"] [:: std :: mem :: offset_of ! (mlx5dv_context , max_dc_init_rd_atom) - 160usize] ; ["Offset of field: mlx5dv_context::reg_c0"] [:: std :: mem :: offset_of ! (mlx5dv_context , reg_c0) - 168usize] ; ["Offset of field: mlx5dv_context::ooo_recv_wrs_caps"] [:: std :: mem :: offset_of ! (mlx5dv_context , ooo_recv_wrs_caps) - 176usize] ; } ; impl Default for mlx5dv_context { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_CONTEXT_FLAGS_CQE_V1 : mlx5dv_context_flags = 1 ; pub const MLX5DV_CONTEXT_FLAGS_OBSOLETE : mlx5dv_context_flags = 2 ; pub const MLX5DV_CONTEXT_FLAGS_MPW_ALLOWED : mlx5dv_context_flags = 4 ; pub const MLX5DV_CONTEXT_FLAGS_ENHANCED_MPW : mlx5dv_context_flags = 8 ; pub const MLX5DV_CONTEXT_FLAGS_CQE_128B_COMP : mlx5dv_context_flags = 16 ; pub const MLX5DV_CONTEXT_FLAGS_CQE_128B_PAD : mlx5dv_context_flags = 32 ; pub const MLX5DV_CONTEXT_FLAGS_PACKET_BASED_CREDIT_MODE : mlx5dv_context_flags = 64 ; pub const MLX5DV_CONTEXT_FLAGS_REAL_TIME_TS : mlx5dv_context_flags = 128 ; pub const MLX5DV_CONTEXT_FLAGS_BLUEFLAME : mlx5dv_context_flags = 256 ; pub type mlx5dv_context_flags = :: std :: os :: raw :: c_uint ; pub const MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE : mlx5dv_cq_init_attr_mask = 1 ; pub const MLX5DV_CQ_INIT_ATTR_MASK_FLAGS : mlx5dv_cq_init_attr_mask = 2 ; pub const MLX5DV_CQ_INIT_ATTR_MASK_CQE_SIZE : mlx5dv_cq_init_attr_mask = 4 ; pub type mlx5dv_cq_init_attr_mask = :: std :: os :: raw :: c_uint ; pub const MLX5DV_CQ_INIT_ATTR_FLAGS_CQE_PAD : mlx5dv_cq_init_attr_flags = 1 ; pub const MLX5DV_CQ_INIT_ATTR_FLAGS_RESERVED : mlx5dv_cq_init_attr_flags = 2 ; pub type mlx5dv_cq_init_attr_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_cq_init_attr { pub comp_mask : u64 , pub cqe_comp_res_format : u8 , pub flags : u32 , pub cqe_size : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_cq_init_attr"] [:: std :: mem :: size_of :: < mlx5dv_cq_init_attr > () - 24usize] ; ["Alignment of mlx5dv_cq_init_attr"] [:: std :: mem :: align_of :: < mlx5dv_cq_init_attr > () - 8usize] ; ["Offset of field: mlx5dv_cq_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_cq_init_attr , comp_mask) - 0usize] ; ["Offset of field: mlx5dv_cq_init_attr::cqe_comp_res_format"] [:: std :: mem :: offset_of ! (mlx5dv_cq_init_attr , cqe_comp_res_format) - 8usize] ; ["Offset of field: mlx5dv_cq_init_attr::flags"] [:: std :: mem :: offset_of ! (mlx5dv_cq_init_attr , flags) - 12usize] ; ["Offset of field: mlx5dv_cq_init_attr::cqe_size"] [:: std :: mem :: offset_of ! (mlx5dv_cq_init_attr , cqe_size) - 16usize] ; } ; unsafe extern "C" { pub fn mlx5dv_create_cq (context : * mut ibv_context , cq_attr : * mut ibv_cq_init_attr_ex , mlx5_cq_attr : * mut mlx5dv_cq_init_attr) -> * mut ibv_cq_ex ; } pub const MLX5DV_QP_CREATE_TUNNEL_OFFLOADS : mlx5dv_qp_create_flags = 1 ; pub const MLX5DV_QP_CREATE_TIR_ALLOW_SELF_LOOPBACK_UC : mlx5dv_qp_create_flags = 2 ; pub const MLX5DV_QP_CREATE_TIR_ALLOW_SELF_LOOPBACK_MC : mlx5dv_qp_create_flags = 4 ; pub const MLX5DV_QP_CREATE_DISABLE_SCATTER_TO_CQE : mlx5dv_qp_create_flags = 8 ; pub const MLX5DV_QP_CREATE_ALLOW_SCATTER_TO_CQE : mlx5dv_qp_create_flags = 16 ; pub const MLX5DV_QP_CREATE_PACKET_BASED_CREDIT_MODE : mlx5dv_qp_create_flags = 32 ; pub const MLX5DV_QP_CREATE_SIG_PIPELINING : mlx5dv_qp_create_flags = 64 ; pub const MLX5DV_QP_CREATE_OOO_DP : mlx5dv_qp_create_flags = 128 ; pub type mlx5dv_qp_create_flags = :: std :: os :: raw :: c_uint ; pub const MLX5DV_MKEY_INIT_ATTR_FLAGS_INDIRECT : mlx5dv_mkey_init_attr_flags = 1 ; pub const MLX5DV_MKEY_INIT_ATTR_FLAGS_BLOCK_SIGNATURE : mlx5dv_mkey_init_attr_flags = 2 ; pub const MLX5DV_MKEY_INIT_ATTR_FLAGS_CRYPTO : mlx5dv_mkey_init_attr_flags = 4 ; pub const MLX5DV_MKEY_INIT_ATTR_FLAGS_UPDATE_TAG : mlx5dv_mkey_init_attr_flags = 8 ; pub const MLX5DV_MKEY_INIT_ATTR_FLAGS_REMOTE_INVALIDATE : mlx5dv_mkey_init_attr_flags = 16 ; pub type mlx5dv_mkey_init_attr_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_mkey_init_attr { pub pd : * mut ibv_pd , pub create_flags : u32 , pub max_entries : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_mkey_init_attr"] [:: std :: mem :: size_of :: < mlx5dv_mkey_init_attr > () - 16usize] ; ["Alignment of mlx5dv_mkey_init_attr"] [:: std :: mem :: align_of :: < mlx5dv_mkey_init_attr > () - 8usize] ; ["Offset of field: mlx5dv_mkey_init_attr::pd"] [:: std :: mem :: offset_of ! (mlx5dv_mkey_init_attr , pd) - 0usize] ; ["Offset of field: mlx5dv_mkey_init_attr::create_flags"] [:: std :: mem :: offset_of ! (mlx5dv_mkey_init_attr , create_flags) - 8usize] ; ["Offset of field: mlx5dv_mkey_init_attr::max_entries"] [:: std :: mem :: offset_of ! (mlx5dv_mkey_init_attr , max_entries) - 12usize] ; } ; impl Default for mlx5dv_mkey_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_mkey { pub lkey : u32 , pub rkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_mkey"] [:: std :: mem :: size_of :: < mlx5dv_mkey > () - 8usize] ; ["Alignment of mlx5dv_mkey"] [:: std :: mem :: align_of :: < mlx5dv_mkey > () - 4usize] ; ["Offset of field: mlx5dv_mkey::lkey"] [:: std :: mem :: offset_of ! (mlx5dv_mkey , lkey) - 0usize] ; ["Offset of field: mlx5dv_mkey::rkey"] [:: std :: mem :: offset_of ! (mlx5dv_mkey , rkey) - 4usize] ; } ; unsafe extern "C" { pub fn mlx5dv_create_mkey (mkey_init_attr : * mut mlx5dv_mkey_init_attr) -> * mut mlx5dv_mkey ; } unsafe extern "C" { pub fn mlx5dv_destroy_mkey (mkey : * mut mlx5dv_mkey) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_QP_INIT_ATTR_MASK_QP_CREATE_FLAGS : mlx5dv_qp_init_attr_mask = 1 ; pub const MLX5DV_QP_INIT_ATTR_MASK_DC : mlx5dv_qp_init_attr_mask = 2 ; pub const MLX5DV_QP_INIT_ATTR_MASK_SEND_OPS_FLAGS : mlx5dv_qp_init_attr_mask = 4 ; pub const MLX5DV_QP_INIT_ATTR_MASK_DCI_STREAMS : mlx5dv_qp_init_attr_mask = 8 ; pub type mlx5dv_qp_init_attr_mask = :: std :: os :: raw :: c_uint ; pub const MLX5DV_DCTYPE_DCT : mlx5dv_dc_type = 1 ; pub const MLX5DV_DCTYPE_DCI : mlx5dv_dc_type = 2 ; pub type mlx5dv_dc_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_dci_streams { pub log_num_concurent : u8 , pub log_num_errored : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dci_streams"] [:: std :: mem :: size_of :: < mlx5dv_dci_streams > () - 2usize] ; ["Alignment of mlx5dv_dci_streams"] [:: std :: mem :: align_of :: < mlx5dv_dci_streams > () - 1usize] ; ["Offset of field: mlx5dv_dci_streams::log_num_concurent"] [:: std :: mem :: offset_of ! (mlx5dv_dci_streams , log_num_concurent) - 0usize] ; ["Offset of field: mlx5dv_dci_streams::log_num_errored"] [:: std :: mem :: offset_of ! (mlx5dv_dci_streams , log_num_errored) - 1usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5dv_dc_init_attr { pub dc_type : mlx5dv_dc_type , pub __bindgen_anon_1 : mlx5dv_dc_init_attr__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union mlx5dv_dc_init_attr__bindgen_ty_1 { pub dct_access_key : u64 , pub dci_streams : mlx5dv_dci_streams , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dc_init_attr__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5dv_dc_init_attr__bindgen_ty_1 > () - 8usize] ; ["Alignment of mlx5dv_dc_init_attr__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5dv_dc_init_attr__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5dv_dc_init_attr__bindgen_ty_1::dct_access_key"] [:: std :: mem :: offset_of ! (mlx5dv_dc_init_attr__bindgen_ty_1 , dct_access_key) - 0usize] ; ["Offset of field: mlx5dv_dc_init_attr__bindgen_ty_1::dci_streams"] [:: std :: mem :: offset_of ! (mlx5dv_dc_init_attr__bindgen_ty_1 , dci_streams) - 0usize] ; } ; impl Default for mlx5dv_dc_init_attr__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dc_init_attr"] [:: std :: mem :: size_of :: < mlx5dv_dc_init_attr > () - 16usize] ; ["Alignment of mlx5dv_dc_init_attr"] [:: std :: mem :: align_of :: < mlx5dv_dc_init_attr > () - 8usize] ; ["Offset of field: mlx5dv_dc_init_attr::dc_type"] [:: std :: mem :: offset_of ! (mlx5dv_dc_init_attr , dc_type) - 0usize] ; } ; impl Default for mlx5dv_dc_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_QP_EX_WITH_MR_INTERLEAVED : mlx5dv_qp_create_send_ops_flags = 1 ; pub const MLX5DV_QP_EX_WITH_MR_LIST : mlx5dv_qp_create_send_ops_flags = 2 ; pub const MLX5DV_QP_EX_WITH_MKEY_CONFIGURE : mlx5dv_qp_create_send_ops_flags = 4 ; pub const MLX5DV_QP_EX_WITH_RAW_WQE : mlx5dv_qp_create_send_ops_flags = 8 ; pub const MLX5DV_QP_EX_WITH_MEMCPY : mlx5dv_qp_create_send_ops_flags = 16 ; pub type mlx5dv_qp_create_send_ops_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5dv_qp_init_attr { pub comp_mask : u64 , pub create_flags : u32 , pub dc_init_attr : mlx5dv_dc_init_attr , pub send_ops_flags : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_qp_init_attr"] [:: std :: mem :: size_of :: < mlx5dv_qp_init_attr > () - 40usize] ; ["Alignment of mlx5dv_qp_init_attr"] [:: std :: mem :: align_of :: < mlx5dv_qp_init_attr > () - 8usize] ; ["Offset of field: mlx5dv_qp_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_qp_init_attr , comp_mask) - 0usize] ; ["Offset of field: mlx5dv_qp_init_attr::create_flags"] [:: std :: mem :: offset_of ! (mlx5dv_qp_init_attr , create_flags) - 8usize] ; ["Offset of field: mlx5dv_qp_init_attr::dc_init_attr"] [:: std :: mem :: offset_of ! (mlx5dv_qp_init_attr , dc_init_attr) - 16usize] ; ["Offset of field: mlx5dv_qp_init_attr::send_ops_flags"] [:: std :: mem :: offset_of ! (mlx5dv_qp_init_attr , send_ops_flags) - 32usize] ; } ; impl Default for mlx5dv_qp_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_create_qp (context : * mut ibv_context , qp_attr : * mut ibv_qp_init_attr_ex , mlx5_qp_attr : * mut mlx5dv_qp_init_attr) -> * mut ibv_qp ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_mr_interleaved { pub addr : u64 , pub bytes_count : u32 , pub bytes_skip : u32 , pub lkey : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_mr_interleaved"] [:: std :: mem :: size_of :: < mlx5dv_mr_interleaved > () - 24usize] ; ["Alignment of mlx5dv_mr_interleaved"] [:: std :: mem :: align_of :: < mlx5dv_mr_interleaved > () - 8usize] ; ["Offset of field: mlx5dv_mr_interleaved::addr"] [:: std :: mem :: offset_of ! (mlx5dv_mr_interleaved , addr) - 0usize] ; ["Offset of field: mlx5dv_mr_interleaved::bytes_count"] [:: std :: mem :: offset_of ! (mlx5dv_mr_interleaved , bytes_count) - 8usize] ; ["Offset of field: mlx5dv_mr_interleaved::bytes_skip"] [:: std :: mem :: offset_of ! (mlx5dv_mr_interleaved , bytes_skip) - 12usize] ; ["Offset of field: mlx5dv_mr_interleaved::lkey"] [:: std :: mem :: offset_of ! (mlx5dv_mr_interleaved , lkey) - 16usize] ; } ; pub const MLX5DV_SIG_T10DIF_FLAG_REF_REMAP : mlx5dv_sig_t10dif_flags = 1 ; pub const MLX5DV_SIG_T10DIF_FLAG_APP_ESCAPE : mlx5dv_sig_t10dif_flags = 2 ; pub const MLX5DV_SIG_T10DIF_FLAG_APP_REF_ESCAPE : mlx5dv_sig_t10dif_flags = 4 ; pub type mlx5dv_sig_t10dif_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_sig_t10dif { pub bg_type : mlx5dv_sig_t10dif_bg_type , pub bg : u16 , pub app_tag : u16 , pub ref_tag : u32 , pub flags : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sig_t10dif"] [:: std :: mem :: size_of :: < mlx5dv_sig_t10dif > () - 16usize] ; ["Alignment of mlx5dv_sig_t10dif"] [:: std :: mem :: align_of :: < mlx5dv_sig_t10dif > () - 4usize] ; ["Offset of field: mlx5dv_sig_t10dif::bg_type"] [:: std :: mem :: offset_of ! (mlx5dv_sig_t10dif , bg_type) - 0usize] ; ["Offset of field: mlx5dv_sig_t10dif::bg"] [:: std :: mem :: offset_of ! (mlx5dv_sig_t10dif , bg) - 4usize] ; ["Offset of field: mlx5dv_sig_t10dif::app_tag"] [:: std :: mem :: offset_of ! (mlx5dv_sig_t10dif , app_tag) - 6usize] ; ["Offset of field: mlx5dv_sig_t10dif::ref_tag"] [:: std :: mem :: offset_of ! (mlx5dv_sig_t10dif , ref_tag) - 8usize] ; ["Offset of field: mlx5dv_sig_t10dif::flags"] [:: std :: mem :: offset_of ! (mlx5dv_sig_t10dif , flags) - 12usize] ; } ; impl Default for mlx5dv_sig_t10dif { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_sig_crc { pub type_ : mlx5dv_sig_crc_type , pub seed : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sig_crc"] [:: std :: mem :: size_of :: < mlx5dv_sig_crc > () - 16usize] ; ["Alignment of mlx5dv_sig_crc"] [:: std :: mem :: align_of :: < mlx5dv_sig_crc > () - 8usize] ; ["Offset of field: mlx5dv_sig_crc::type_"] [:: std :: mem :: offset_of ! (mlx5dv_sig_crc , type_) - 0usize] ; ["Offset of field: mlx5dv_sig_crc::seed"] [:: std :: mem :: offset_of ! (mlx5dv_sig_crc , seed) - 8usize] ; } ; impl Default for mlx5dv_sig_crc { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5dv_sig_block_domain { pub sig_type : mlx5dv_sig_type , pub sig : mlx5dv_sig_block_domain__bindgen_ty_1 , pub block_size : mlx5dv_block_size , pub comp_mask : u64 , } # [repr (C)] # [derive (Copy , Clone)] pub union mlx5dv_sig_block_domain__bindgen_ty_1 { pub dif : * const mlx5dv_sig_t10dif , pub crc : * const mlx5dv_sig_crc , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sig_block_domain__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5dv_sig_block_domain__bindgen_ty_1 > () - 8usize] ; ["Alignment of mlx5dv_sig_block_domain__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5dv_sig_block_domain__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5dv_sig_block_domain__bindgen_ty_1::dif"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_domain__bindgen_ty_1 , dif) - 0usize] ; ["Offset of field: mlx5dv_sig_block_domain__bindgen_ty_1::crc"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_domain__bindgen_ty_1 , crc) - 0usize] ; } ; impl Default for mlx5dv_sig_block_domain__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sig_block_domain"] [:: std :: mem :: size_of :: < mlx5dv_sig_block_domain > () - 32usize] ; ["Alignment of mlx5dv_sig_block_domain"] [:: std :: mem :: align_of :: < mlx5dv_sig_block_domain > () - 8usize] ; ["Offset of field: mlx5dv_sig_block_domain::sig_type"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_domain , sig_type) - 0usize] ; ["Offset of field: mlx5dv_sig_block_domain::sig"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_domain , sig) - 8usize] ; ["Offset of field: mlx5dv_sig_block_domain::block_size"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_domain , block_size) - 16usize] ; ["Offset of field: mlx5dv_sig_block_domain::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_domain , comp_mask) - 24usize] ; } ; impl Default for mlx5dv_sig_block_domain { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_SIG_MASK_T10DIF_GUARD : mlx5dv_sig_mask = 192 ; pub const MLX5DV_SIG_MASK_T10DIF_APPTAG : mlx5dv_sig_mask = 48 ; pub const MLX5DV_SIG_MASK_T10DIF_REFTAG : mlx5dv_sig_mask = 15 ; pub const MLX5DV_SIG_MASK_CRC32 : mlx5dv_sig_mask = 240 ; pub const MLX5DV_SIG_MASK_CRC32C : mlx5dv_sig_mask = 240 ; pub const MLX5DV_SIG_MASK_CRC64_XP10 : mlx5dv_sig_mask = 255 ; pub type mlx5dv_sig_mask = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SIG_BLOCK_ATTR_FLAG_COPY_MASK : mlx5dv_sig_block_attr_flags = 1 ; pub type mlx5dv_sig_block_attr_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_sig_block_attr { pub mem : * const mlx5dv_sig_block_domain , pub wire : * const mlx5dv_sig_block_domain , pub flags : u32 , pub check_mask : u8 , pub copy_mask : u8 , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sig_block_attr"] [:: std :: mem :: size_of :: < mlx5dv_sig_block_attr > () - 32usize] ; ["Alignment of mlx5dv_sig_block_attr"] [:: std :: mem :: align_of :: < mlx5dv_sig_block_attr > () - 8usize] ; ["Offset of field: mlx5dv_sig_block_attr::mem"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_attr , mem) - 0usize] ; ["Offset of field: mlx5dv_sig_block_attr::wire"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_attr , wire) - 8usize] ; ["Offset of field: mlx5dv_sig_block_attr::flags"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_attr , flags) - 16usize] ; ["Offset of field: mlx5dv_sig_block_attr::check_mask"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_attr , check_mask) - 20usize] ; ["Offset of field: mlx5dv_sig_block_attr::copy_mask"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_attr , copy_mask) - 21usize] ; ["Offset of field: mlx5dv_sig_block_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_sig_block_attr , comp_mask) - 24usize] ; } ; impl Default for mlx5dv_sig_block_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_CRYPTO_STANDARD_AES_XTS : mlx5dv_crypto_standard = 0 ; pub type mlx5dv_crypto_standard = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SIGNATURE_CRYPTO_ORDER_SIGNATURE_AFTER_CRYPTO_ON_TX : mlx5dv_signature_crypto_order = 0 ; pub const MLX5DV_SIGNATURE_CRYPTO_ORDER_SIGNATURE_BEFORE_CRYPTO_ON_TX : mlx5dv_signature_crypto_order = 1 ; pub type mlx5dv_signature_crypto_order = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_crypto_attr { pub crypto_standard : mlx5dv_crypto_standard , pub encrypt_on_tx : bool , pub signature_crypto_order : mlx5dv_signature_crypto_order , pub data_unit_size : mlx5dv_block_size , pub initial_tweak : [:: std :: os :: raw :: c_char ; 16usize] , pub dek : * mut mlx5dv_dek , pub keytag : [:: std :: os :: raw :: c_char ; 8usize] , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_crypto_attr"] [:: std :: mem :: size_of :: < mlx5dv_crypto_attr > () - 56usize] ; ["Alignment of mlx5dv_crypto_attr"] [:: std :: mem :: align_of :: < mlx5dv_crypto_attr > () - 8usize] ; ["Offset of field: mlx5dv_crypto_attr::crypto_standard"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_attr , crypto_standard) - 0usize] ; ["Offset of field: mlx5dv_crypto_attr::encrypt_on_tx"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_attr , encrypt_on_tx) - 4usize] ; ["Offset of field: mlx5dv_crypto_attr::signature_crypto_order"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_attr , signature_crypto_order) - 8usize] ; ["Offset of field: mlx5dv_crypto_attr::data_unit_size"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_attr , data_unit_size) - 12usize] ; ["Offset of field: mlx5dv_crypto_attr::initial_tweak"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_attr , initial_tweak) - 16usize] ; ["Offset of field: mlx5dv_crypto_attr::dek"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_attr , dek) - 32usize] ; ["Offset of field: mlx5dv_crypto_attr::keytag"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_attr , keytag) - 40usize] ; ["Offset of field: mlx5dv_crypto_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_attr , comp_mask) - 48usize] ; } ; impl Default for mlx5dv_crypto_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_MKEY_CONF_FLAG_RESET_SIG_ATTR : mlx5dv_mkey_conf_flags = 1 ; pub type mlx5dv_mkey_conf_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_mkey_conf_attr { pub conf_flags : u32 , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_mkey_conf_attr"] [:: std :: mem :: size_of :: < mlx5dv_mkey_conf_attr > () - 16usize] ; ["Alignment of mlx5dv_mkey_conf_attr"] [:: std :: mem :: align_of :: < mlx5dv_mkey_conf_attr > () - 8usize] ; ["Offset of field: mlx5dv_mkey_conf_attr::conf_flags"] [:: std :: mem :: offset_of ! (mlx5dv_mkey_conf_attr , conf_flags) - 0usize] ; ["Offset of field: mlx5dv_mkey_conf_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_mkey_conf_attr , comp_mask) - 8usize] ; } ; pub const MLX5DV_WC_UMR : mlx5dv_wc_opcode = 135 ; pub const MLX5DV_WC_RAW_WQE : mlx5dv_wc_opcode = 136 ; pub const MLX5DV_WC_MEMCPY : mlx5dv_wc_opcode = 137 ; pub type mlx5dv_wc_opcode = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_qp_ex { pub comp_mask : u64 , pub wr_set_dc_addr : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , ah : * mut ibv_ah , remote_dctn : u32 , remote_dc_key : u64) > , pub wr_mr_interleaved : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , mkey : * mut mlx5dv_mkey , access_flags : u32 , repeat_count : u32 , num_interleaved : u16 , data : * mut mlx5dv_mr_interleaved) > , pub wr_mr_list : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , mkey : * mut mlx5dv_mkey , access_flags : u32 , num_sges : u16 , sge : * mut ibv_sge) > , pub wr_mkey_configure : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , mkey : * mut mlx5dv_mkey , num_setters : u8 , attr : * mut mlx5dv_mkey_conf_attr) > , pub wr_set_mkey_access_flags : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , access_flags : u32) > , pub wr_set_mkey_layout_list : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , num_sges : u16 , sge : * const ibv_sge) > , pub wr_set_mkey_layout_interleaved : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , repeat_count : u32 , num_interleaved : u16 , data : * const mlx5dv_mr_interleaved) > , pub wr_set_mkey_sig_block : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , attr : * const mlx5dv_sig_block_attr) > , pub wr_raw_wqe : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , wqe : * const :: std :: os :: raw :: c_void) > , pub wr_set_dc_addr_stream : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , ah : * mut ibv_ah , remote_dctn : u32 , remote_dc_key : u64 , stream_id : u16) > , pub wr_memcpy : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , dest_lkey : u32 , dest_addr : u64 , src_lkey : u32 , src_addr : u64 , length : usize) > , pub wr_set_mkey_crypto : :: std :: option :: Option < unsafe extern "C" fn (mqp : * mut mlx5dv_qp_ex , attr : * const mlx5dv_crypto_attr) > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_qp_ex"] [:: std :: mem :: size_of :: < mlx5dv_qp_ex > () - 104usize] ; ["Alignment of mlx5dv_qp_ex"] [:: std :: mem :: align_of :: < mlx5dv_qp_ex > () - 8usize] ; ["Offset of field: mlx5dv_qp_ex::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , comp_mask) - 0usize] ; ["Offset of field: mlx5dv_qp_ex::wr_set_dc_addr"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_set_dc_addr) - 8usize] ; ["Offset of field: mlx5dv_qp_ex::wr_mr_interleaved"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_mr_interleaved) - 16usize] ; ["Offset of field: mlx5dv_qp_ex::wr_mr_list"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_mr_list) - 24usize] ; ["Offset of field: mlx5dv_qp_ex::wr_mkey_configure"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_mkey_configure) - 32usize] ; ["Offset of field: mlx5dv_qp_ex::wr_set_mkey_access_flags"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_set_mkey_access_flags) - 40usize] ; ["Offset of field: mlx5dv_qp_ex::wr_set_mkey_layout_list"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_set_mkey_layout_list) - 48usize] ; ["Offset of field: mlx5dv_qp_ex::wr_set_mkey_layout_interleaved"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_set_mkey_layout_interleaved) - 56usize] ; ["Offset of field: mlx5dv_qp_ex::wr_set_mkey_sig_block"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_set_mkey_sig_block) - 64usize] ; ["Offset of field: mlx5dv_qp_ex::wr_raw_wqe"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_raw_wqe) - 72usize] ; ["Offset of field: mlx5dv_qp_ex::wr_set_dc_addr_stream"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_set_dc_addr_stream) - 80usize] ; ["Offset of field: mlx5dv_qp_ex::wr_memcpy"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_memcpy) - 88usize] ; ["Offset of field: mlx5dv_qp_ex::wr_set_mkey_crypto"] [:: std :: mem :: offset_of ! (mlx5dv_qp_ex , wr_set_mkey_crypto) - 96usize] ; } ; unsafe extern "C" { pub fn mlx5dv_qp_ex_from_ibv_qp_ex (qp : * mut ibv_qp_ex) -> * mut mlx5dv_qp_ex ; } pub const MLX5DV_MKEY_NO_ERR : mlx5dv_mkey_err_type = 0 ; pub const MLX5DV_MKEY_SIG_BLOCK_BAD_GUARD : mlx5dv_mkey_err_type = 1 ; pub const MLX5DV_MKEY_SIG_BLOCK_BAD_REFTAG : mlx5dv_mkey_err_type = 2 ; pub const MLX5DV_MKEY_SIG_BLOCK_BAD_APPTAG : mlx5dv_mkey_err_type = 3 ; pub type mlx5dv_mkey_err_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_sig_err { pub actual_value : u64 , pub expected_value : u64 , pub offset : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sig_err"] [:: std :: mem :: size_of :: < mlx5dv_sig_err > () - 24usize] ; ["Alignment of mlx5dv_sig_err"] [:: std :: mem :: align_of :: < mlx5dv_sig_err > () - 8usize] ; ["Offset of field: mlx5dv_sig_err::actual_value"] [:: std :: mem :: offset_of ! (mlx5dv_sig_err , actual_value) - 0usize] ; ["Offset of field: mlx5dv_sig_err::expected_value"] [:: std :: mem :: offset_of ! (mlx5dv_sig_err , expected_value) - 8usize] ; ["Offset of field: mlx5dv_sig_err::offset"] [:: std :: mem :: offset_of ! (mlx5dv_sig_err , offset) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5dv_mkey_err { pub err_type : mlx5dv_mkey_err_type , pub err : mlx5dv_mkey_err__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union mlx5dv_mkey_err__bindgen_ty_1 { pub sig : mlx5dv_sig_err , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_mkey_err__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5dv_mkey_err__bindgen_ty_1 > () - 24usize] ; ["Alignment of mlx5dv_mkey_err__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5dv_mkey_err__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5dv_mkey_err__bindgen_ty_1::sig"] [:: std :: mem :: offset_of ! (mlx5dv_mkey_err__bindgen_ty_1 , sig) - 0usize] ; } ; impl Default for mlx5dv_mkey_err__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_mkey_err"] [:: std :: mem :: size_of :: < mlx5dv_mkey_err > () - 32usize] ; ["Alignment of mlx5dv_mkey_err"] [:: std :: mem :: align_of :: < mlx5dv_mkey_err > () - 8usize] ; ["Offset of field: mlx5dv_mkey_err::err_type"] [:: std :: mem :: offset_of ! (mlx5dv_mkey_err , err_type) - 0usize] ; ["Offset of field: mlx5dv_mkey_err::err"] [:: std :: mem :: offset_of ! (mlx5dv_mkey_err , err) - 8usize] ; } ; impl Default for mlx5dv_mkey_err { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_qp_cancel_posted_send_wrs (mqp : * mut mlx5dv_qp_ex , wr_id : u64) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_crypto_login_obj { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_crypto_login_attr { pub credential_id : u32 , pub import_kek_id : u32 , pub credential : [:: std :: os :: raw :: c_char ; 48usize] , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_crypto_login_attr"] [:: std :: mem :: size_of :: < mlx5dv_crypto_login_attr > () - 64usize] ; ["Alignment of mlx5dv_crypto_login_attr"] [:: std :: mem :: align_of :: < mlx5dv_crypto_login_attr > () - 8usize] ; ["Offset of field: mlx5dv_crypto_login_attr::credential_id"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr , credential_id) - 0usize] ; ["Offset of field: mlx5dv_crypto_login_attr::import_kek_id"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr , import_kek_id) - 4usize] ; ["Offset of field: mlx5dv_crypto_login_attr::credential"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr , credential) - 8usize] ; ["Offset of field: mlx5dv_crypto_login_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr , comp_mask) - 56usize] ; } ; impl Default for mlx5dv_crypto_login_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_crypto_login_attr_ex { pub credential_id : u32 , pub import_kek_id : u32 , pub credential : * const :: std :: os :: raw :: c_void , pub credential_len : usize , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_crypto_login_attr_ex"] [:: std :: mem :: size_of :: < mlx5dv_crypto_login_attr_ex > () - 32usize] ; ["Alignment of mlx5dv_crypto_login_attr_ex"] [:: std :: mem :: align_of :: < mlx5dv_crypto_login_attr_ex > () - 8usize] ; ["Offset of field: mlx5dv_crypto_login_attr_ex::credential_id"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr_ex , credential_id) - 0usize] ; ["Offset of field: mlx5dv_crypto_login_attr_ex::import_kek_id"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr_ex , import_kek_id) - 4usize] ; ["Offset of field: mlx5dv_crypto_login_attr_ex::credential"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr_ex , credential) - 8usize] ; ["Offset of field: mlx5dv_crypto_login_attr_ex::credential_len"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr_ex , credential_len) - 16usize] ; ["Offset of field: mlx5dv_crypto_login_attr_ex::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_attr_ex , comp_mask) - 24usize] ; } ; impl Default for mlx5dv_crypto_login_attr_ex { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_CRYPTO_LOGIN_STATE_VALID : mlx5dv_crypto_login_state = 0 ; pub const MLX5DV_CRYPTO_LOGIN_STATE_NO_LOGIN : mlx5dv_crypto_login_state = 1 ; pub const MLX5DV_CRYPTO_LOGIN_STATE_INVALID : mlx5dv_crypto_login_state = 2 ; pub type mlx5dv_crypto_login_state = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_crypto_login_query_attr { pub state : mlx5dv_crypto_login_state , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_crypto_login_query_attr"] [:: std :: mem :: size_of :: < mlx5dv_crypto_login_query_attr > () - 16usize] ; ["Alignment of mlx5dv_crypto_login_query_attr"] [:: std :: mem :: align_of :: < mlx5dv_crypto_login_query_attr > () - 8usize] ; ["Offset of field: mlx5dv_crypto_login_query_attr::state"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_query_attr , state) - 0usize] ; ["Offset of field: mlx5dv_crypto_login_query_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_crypto_login_query_attr , comp_mask) - 8usize] ; } ; impl Default for mlx5dv_crypto_login_query_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_crypto_login (context : * mut ibv_context , login_attr : * mut mlx5dv_crypto_login_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_crypto_login_query_state (context : * mut ibv_context , state : * mut mlx5dv_crypto_login_state) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_crypto_logout (context : * mut ibv_context) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_crypto_login_create (context : * mut ibv_context , login_attr : * mut mlx5dv_crypto_login_attr_ex) -> * mut mlx5dv_crypto_login_obj ; } unsafe extern "C" { pub fn mlx5dv_crypto_login_query (crypto_login : * mut mlx5dv_crypto_login_obj , query_attr : * mut mlx5dv_crypto_login_query_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_crypto_login_destroy (crypto_login : * mut mlx5dv_crypto_login_obj) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_CRYPTO_KEY_SIZE_128 : mlx5dv_crypto_key_size = 0 ; pub const MLX5DV_CRYPTO_KEY_SIZE_256 : mlx5dv_crypto_key_size = 1 ; pub type mlx5dv_crypto_key_size = :: std :: os :: raw :: c_uint ; pub const MLX5DV_CRYPTO_KEY_PURPOSE_AES_XTS : mlx5dv_crypto_key_purpose = 0 ; pub type mlx5dv_crypto_key_purpose = :: std :: os :: raw :: c_uint ; pub const MLX5DV_DEK_STATE_READY : mlx5dv_dek_state = 0 ; pub const MLX5DV_DEK_STATE_ERROR : mlx5dv_dek_state = 1 ; pub type mlx5dv_dek_state = :: std :: os :: raw :: c_uint ; pub const MLX5DV_DEK_INIT_ATTR_CRYPTO_LOGIN : mlx5dv_dek_init_attr_mask = 1 ; pub type mlx5dv_dek_init_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dek_init_attr { pub key_size : mlx5dv_crypto_key_size , pub has_keytag : bool , pub key_purpose : mlx5dv_crypto_key_purpose , pub pd : * mut ibv_pd , pub opaque : [:: std :: os :: raw :: c_char ; 8usize] , pub key : [:: std :: os :: raw :: c_char ; 128usize] , pub comp_mask : u64 , pub crypto_login : * mut mlx5dv_crypto_login_obj , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dek_init_attr"] [:: std :: mem :: size_of :: < mlx5dv_dek_init_attr > () - 176usize] ; ["Alignment of mlx5dv_dek_init_attr"] [:: std :: mem :: align_of :: < mlx5dv_dek_init_attr > () - 8usize] ; ["Offset of field: mlx5dv_dek_init_attr::key_size"] [:: std :: mem :: offset_of ! (mlx5dv_dek_init_attr , key_size) - 0usize] ; ["Offset of field: mlx5dv_dek_init_attr::has_keytag"] [:: std :: mem :: offset_of ! (mlx5dv_dek_init_attr , has_keytag) - 4usize] ; ["Offset of field: mlx5dv_dek_init_attr::key_purpose"] [:: std :: mem :: offset_of ! (mlx5dv_dek_init_attr , key_purpose) - 8usize] ; ["Offset of field: mlx5dv_dek_init_attr::pd"] [:: std :: mem :: offset_of ! (mlx5dv_dek_init_attr , pd) - 16usize] ; ["Offset of field: mlx5dv_dek_init_attr::opaque"] [:: std :: mem :: offset_of ! (mlx5dv_dek_init_attr , opaque) - 24usize] ; ["Offset of field: mlx5dv_dek_init_attr::key"] [:: std :: mem :: offset_of ! (mlx5dv_dek_init_attr , key) - 32usize] ; ["Offset of field: mlx5dv_dek_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_dek_init_attr , comp_mask) - 160usize] ; ["Offset of field: mlx5dv_dek_init_attr::crypto_login"] [:: std :: mem :: offset_of ! (mlx5dv_dek_init_attr , crypto_login) - 168usize] ; } ; impl Default for mlx5dv_dek_init_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dek_attr { pub state : mlx5dv_dek_state , pub opaque : [:: std :: os :: raw :: c_char ; 8usize] , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dek_attr"] [:: std :: mem :: size_of :: < mlx5dv_dek_attr > () - 24usize] ; ["Alignment of mlx5dv_dek_attr"] [:: std :: mem :: align_of :: < mlx5dv_dek_attr > () - 8usize] ; ["Offset of field: mlx5dv_dek_attr::state"] [:: std :: mem :: offset_of ! (mlx5dv_dek_attr , state) - 0usize] ; ["Offset of field: mlx5dv_dek_attr::opaque"] [:: std :: mem :: offset_of ! (mlx5dv_dek_attr , opaque) - 4usize] ; ["Offset of field: mlx5dv_dek_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_dek_attr , comp_mask) - 16usize] ; } ; impl Default for mlx5dv_dek_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dek { _unused : [u8 ; 0] , } unsafe extern "C" { pub fn mlx5dv_dek_create (context : * mut ibv_context , init_attr : * mut mlx5dv_dek_init_attr) -> * mut mlx5dv_dek ; } unsafe extern "C" { pub fn mlx5dv_dek_query (dek : * mut mlx5dv_dek , attr : * mut mlx5dv_dek_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dek_destroy (dek : * mut mlx5dv_dek) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_FLOW_ACTION_ESP_MASK_FLAGS : mlx5dv_flow_action_esp_mask = 1 ; pub type mlx5dv_flow_action_esp_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_flow_action_esp { pub comp_mask : u64 , pub action_flags : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_flow_action_esp"] [:: std :: mem :: size_of :: < mlx5dv_flow_action_esp > () - 16usize] ; ["Alignment of mlx5dv_flow_action_esp"] [:: std :: mem :: align_of :: < mlx5dv_flow_action_esp > () - 8usize] ; ["Offset of field: mlx5dv_flow_action_esp::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_esp , comp_mask) - 0usize] ; ["Offset of field: mlx5dv_flow_action_esp::action_flags"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_esp , action_flags) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default)] pub struct mlx5dv_flow_match_parameters { pub match_sz : usize , pub match_buf : __IncompleteArrayField < u64 > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_flow_match_parameters"] [:: std :: mem :: size_of :: < mlx5dv_flow_match_parameters > () - 8usize] ; ["Alignment of mlx5dv_flow_match_parameters"] [:: std :: mem :: align_of :: < mlx5dv_flow_match_parameters > () - 8usize] ; ["Offset of field: mlx5dv_flow_match_parameters::match_sz"] [:: std :: mem :: offset_of ! (mlx5dv_flow_match_parameters , match_sz) - 0usize] ; ["Offset of field: mlx5dv_flow_match_parameters::match_buf"] [:: std :: mem :: offset_of ! (mlx5dv_flow_match_parameters , match_buf) - 8usize] ; } ; pub const MLX5DV_FLOW_MATCHER_MASK_FT_TYPE : mlx5dv_flow_matcher_attr_mask = 1 ; pub const MLX5DV_FLOW_MATCHER_MASK_IB_PORT : mlx5dv_flow_matcher_attr_mask = 2 ; pub type mlx5dv_flow_matcher_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_flow_matcher_attr { pub type_ : ibv_flow_attr_type , pub flags : u32 , pub priority : u16 , pub match_criteria_enable : u8 , pub match_mask : * mut mlx5dv_flow_match_parameters , pub comp_mask : u64 , pub ft_type : mlx5_ib_uapi_flow_table_type , pub ib_port : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_flow_matcher_attr"] [:: std :: mem :: size_of :: < mlx5dv_flow_matcher_attr > () - 40usize] ; ["Alignment of mlx5dv_flow_matcher_attr"] [:: std :: mem :: align_of :: < mlx5dv_flow_matcher_attr > () - 8usize] ; ["Offset of field: mlx5dv_flow_matcher_attr::type_"] [:: std :: mem :: offset_of ! (mlx5dv_flow_matcher_attr , type_) - 0usize] ; ["Offset of field: mlx5dv_flow_matcher_attr::flags"] [:: std :: mem :: offset_of ! (mlx5dv_flow_matcher_attr , flags) - 4usize] ; ["Offset of field: mlx5dv_flow_matcher_attr::priority"] [:: std :: mem :: offset_of ! (mlx5dv_flow_matcher_attr , priority) - 8usize] ; ["Offset of field: mlx5dv_flow_matcher_attr::match_criteria_enable"] [:: std :: mem :: offset_of ! (mlx5dv_flow_matcher_attr , match_criteria_enable) - 10usize] ; ["Offset of field: mlx5dv_flow_matcher_attr::match_mask"] [:: std :: mem :: offset_of ! (mlx5dv_flow_matcher_attr , match_mask) - 16usize] ; ["Offset of field: mlx5dv_flow_matcher_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_flow_matcher_attr , comp_mask) - 24usize] ; ["Offset of field: mlx5dv_flow_matcher_attr::ft_type"] [:: std :: mem :: offset_of ! (mlx5dv_flow_matcher_attr , ft_type) - 32usize] ; ["Offset of field: mlx5dv_flow_matcher_attr::ib_port"] [:: std :: mem :: offset_of ! (mlx5dv_flow_matcher_attr , ib_port) - 36usize] ; } ; impl Default for mlx5dv_flow_matcher_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_flow_matcher { _unused : [u8 ; 0] , } unsafe extern "C" { pub fn mlx5dv_create_flow_matcher (context : * mut ibv_context , matcher_attr : * mut mlx5dv_flow_matcher_attr) -> * mut mlx5dv_flow_matcher ; } unsafe extern "C" { pub fn mlx5dv_destroy_flow_matcher (matcher : * mut mlx5dv_flow_matcher) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_steering_anchor_attr { pub ft_type : mlx5_ib_uapi_flow_table_type , pub priority : u16 , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_steering_anchor_attr"] [:: std :: mem :: size_of :: < mlx5dv_steering_anchor_attr > () - 16usize] ; ["Alignment of mlx5dv_steering_anchor_attr"] [:: std :: mem :: align_of :: < mlx5dv_steering_anchor_attr > () - 8usize] ; ["Offset of field: mlx5dv_steering_anchor_attr::ft_type"] [:: std :: mem :: offset_of ! (mlx5dv_steering_anchor_attr , ft_type) - 0usize] ; ["Offset of field: mlx5dv_steering_anchor_attr::priority"] [:: std :: mem :: offset_of ! (mlx5dv_steering_anchor_attr , priority) - 4usize] ; ["Offset of field: mlx5dv_steering_anchor_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_steering_anchor_attr , comp_mask) - 8usize] ; } ; impl Default for mlx5dv_steering_anchor_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_steering_anchor { pub id : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_steering_anchor"] [:: std :: mem :: size_of :: < mlx5dv_steering_anchor > () - 4usize] ; ["Alignment of mlx5dv_steering_anchor"] [:: std :: mem :: align_of :: < mlx5dv_steering_anchor > () - 4usize] ; ["Offset of field: mlx5dv_steering_anchor::id"] [:: std :: mem :: offset_of ! (mlx5dv_steering_anchor , id) - 0usize] ; } ; unsafe extern "C" { pub fn mlx5dv_create_steering_anchor (context : * mut ibv_context , attr : * mut mlx5dv_steering_anchor_attr) -> * mut mlx5dv_steering_anchor ; } unsafe extern "C" { pub fn mlx5dv_destroy_steering_anchor (sa : * mut mlx5dv_steering_anchor) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_FLOW_ACTION_DEST_IBV_QP : mlx5dv_flow_action_type = 0 ; pub const MLX5DV_FLOW_ACTION_DROP : mlx5dv_flow_action_type = 1 ; pub const MLX5DV_FLOW_ACTION_IBV_COUNTER : mlx5dv_flow_action_type = 2 ; pub const MLX5DV_FLOW_ACTION_IBV_FLOW_ACTION : mlx5dv_flow_action_type = 3 ; pub const MLX5DV_FLOW_ACTION_TAG : mlx5dv_flow_action_type = 4 ; pub const MLX5DV_FLOW_ACTION_DEST_DEVX : mlx5dv_flow_action_type = 5 ; pub const MLX5DV_FLOW_ACTION_COUNTERS_DEVX : mlx5dv_flow_action_type = 6 ; pub const MLX5DV_FLOW_ACTION_DEFAULT_MISS : mlx5dv_flow_action_type = 7 ; pub const MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET : mlx5dv_flow_action_type = 8 ; pub type mlx5dv_flow_action_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5dv_flow_action_attr { pub type_ : mlx5dv_flow_action_type , pub __bindgen_anon_1 : mlx5dv_flow_action_attr__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union mlx5dv_flow_action_attr__bindgen_ty_1 { pub qp : * mut ibv_qp , pub counter : * mut ibv_counters , pub action : * mut ibv_flow_action , pub tag_value : u32 , pub obj : * mut mlx5dv_devx_obj , pub bulk_obj : mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1 { pub obj : * mut mlx5dv_devx_obj , pub offset : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1::obj"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1 , obj) - 0usize] ; ["Offset of field: mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1::offset"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1 , offset) - 8usize] ; } ; impl Default for mlx5dv_flow_action_attr__bindgen_ty_1__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_flow_action_attr__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5dv_flow_action_attr__bindgen_ty_1 > () - 16usize] ; ["Alignment of mlx5dv_flow_action_attr__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5dv_flow_action_attr__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5dv_flow_action_attr__bindgen_ty_1::qp"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr__bindgen_ty_1 , qp) - 0usize] ; ["Offset of field: mlx5dv_flow_action_attr__bindgen_ty_1::counter"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr__bindgen_ty_1 , counter) - 0usize] ; ["Offset of field: mlx5dv_flow_action_attr__bindgen_ty_1::action"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr__bindgen_ty_1 , action) - 0usize] ; ["Offset of field: mlx5dv_flow_action_attr__bindgen_ty_1::tag_value"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr__bindgen_ty_1 , tag_value) - 0usize] ; ["Offset of field: mlx5dv_flow_action_attr__bindgen_ty_1::obj"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr__bindgen_ty_1 , obj) - 0usize] ; ["Offset of field: mlx5dv_flow_action_attr__bindgen_ty_1::bulk_obj"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr__bindgen_ty_1 , bulk_obj) - 0usize] ; } ; impl Default for mlx5dv_flow_action_attr__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_flow_action_attr"] [:: std :: mem :: size_of :: < mlx5dv_flow_action_attr > () - 24usize] ; ["Alignment of mlx5dv_flow_action_attr"] [:: std :: mem :: align_of :: < mlx5dv_flow_action_attr > () - 8usize] ; ["Offset of field: mlx5dv_flow_action_attr::type_"] [:: std :: mem :: offset_of ! (mlx5dv_flow_action_attr , type_) - 0usize] ; } ; impl Default for mlx5dv_flow_action_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_create_flow (matcher : * mut mlx5dv_flow_matcher , match_value : * mut mlx5dv_flow_match_parameters , num_actions : usize , actions_attr : * mut mlx5dv_flow_action_attr) -> * mut ibv_flow ; } unsafe extern "C" { pub fn mlx5dv_create_flow_action_esp (ctx : * mut ibv_context , esp : * mut ibv_flow_action_esp_attr , mlx5_attr : * mut mlx5dv_flow_action_esp) -> * mut ibv_flow_action ; } unsafe extern "C" { pub fn mlx5dv_create_flow_action_modify_header (ctx : * mut ibv_context , actions_sz : usize , actions : * mut u64 , ft_type : mlx5_ib_uapi_flow_table_type) -> * mut ibv_flow_action ; } unsafe extern "C" { pub fn mlx5dv_create_flow_action_packet_reformat (ctx : * mut ibv_context , data_sz : usize , data : * mut :: std :: os :: raw :: c_void , reformat_type : mlx5_ib_uapi_flow_action_packet_reformat_type , ft_type : mlx5_ib_uapi_flow_table_type) -> * mut ibv_flow_action ; } unsafe extern "C" { pub fn mlx5dv_query_device (ctx_in : * mut ibv_context , attrs_out : * mut mlx5dv_context) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_map_ah_to_qp (ah : * mut ibv_ah , qp_num : u32) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_QP_MASK_UAR_MMAP_OFFSET : mlx5dv_qp_comp_mask = 1 ; pub const MLX5DV_QP_MASK_RAW_QP_HANDLES : mlx5dv_qp_comp_mask = 2 ; pub const MLX5DV_QP_MASK_RAW_QP_TIR_ADDR : mlx5dv_qp_comp_mask = 4 ; pub type mlx5dv_qp_comp_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_qp { pub dbrec : * mut __be32 , pub sq : mlx5dv_qp__bindgen_ty_1 , pub rq : mlx5dv_qp__bindgen_ty_2 , pub bf : mlx5dv_qp__bindgen_ty_3 , pub comp_mask : u64 , pub uar_mmap_offset : off_t , pub tirn : u32 , pub tisn : u32 , pub rqn : u32 , pub sqn : u32 , pub tir_icm_addr : u64 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_qp__bindgen_ty_1 { pub buf : * mut :: std :: os :: raw :: c_void , pub wqe_cnt : u32 , pub stride : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_qp__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5dv_qp__bindgen_ty_1 > () - 16usize] ; ["Alignment of mlx5dv_qp__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5dv_qp__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5dv_qp__bindgen_ty_1::buf"] [:: std :: mem :: offset_of ! (mlx5dv_qp__bindgen_ty_1 , buf) - 0usize] ; ["Offset of field: mlx5dv_qp__bindgen_ty_1::wqe_cnt"] [:: std :: mem :: offset_of ! (mlx5dv_qp__bindgen_ty_1 , wqe_cnt) - 8usize] ; ["Offset of field: mlx5dv_qp__bindgen_ty_1::stride"] [:: std :: mem :: offset_of ! (mlx5dv_qp__bindgen_ty_1 , stride) - 12usize] ; } ; impl Default for mlx5dv_qp__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_qp__bindgen_ty_2 { pub buf : * mut :: std :: os :: raw :: c_void , pub wqe_cnt : u32 , pub stride : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_qp__bindgen_ty_2"] [:: std :: mem :: size_of :: < mlx5dv_qp__bindgen_ty_2 > () - 16usize] ; ["Alignment of mlx5dv_qp__bindgen_ty_2"] [:: std :: mem :: align_of :: < mlx5dv_qp__bindgen_ty_2 > () - 8usize] ; ["Offset of field: mlx5dv_qp__bindgen_ty_2::buf"] [:: std :: mem :: offset_of ! (mlx5dv_qp__bindgen_ty_2 , buf) - 0usize] ; ["Offset of field: mlx5dv_qp__bindgen_ty_2::wqe_cnt"] [:: std :: mem :: offset_of ! (mlx5dv_qp__bindgen_ty_2 , wqe_cnt) - 8usize] ; ["Offset of field: mlx5dv_qp__bindgen_ty_2::stride"] [:: std :: mem :: offset_of ! (mlx5dv_qp__bindgen_ty_2 , stride) - 12usize] ; } ; impl Default for mlx5dv_qp__bindgen_ty_2 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_qp__bindgen_ty_3 { pub reg : * mut :: std :: os :: raw :: c_void , pub size : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_qp__bindgen_ty_3"] [:: std :: mem :: size_of :: < mlx5dv_qp__bindgen_ty_3 > () - 16usize] ; ["Alignment of mlx5dv_qp__bindgen_ty_3"] [:: std :: mem :: align_of :: < mlx5dv_qp__bindgen_ty_3 > () - 8usize] ; ["Offset of field: mlx5dv_qp__bindgen_ty_3::reg"] [:: std :: mem :: offset_of ! (mlx5dv_qp__bindgen_ty_3 , reg) - 0usize] ; ["Offset of field: mlx5dv_qp__bindgen_ty_3::size"] [:: std :: mem :: offset_of ! (mlx5dv_qp__bindgen_ty_3 , size) - 8usize] ; } ; impl Default for mlx5dv_qp__bindgen_ty_3 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_qp"] [:: std :: mem :: size_of :: < mlx5dv_qp > () - 96usize] ; ["Alignment of mlx5dv_qp"] [:: std :: mem :: align_of :: < mlx5dv_qp > () - 8usize] ; ["Offset of field: mlx5dv_qp::dbrec"] [:: std :: mem :: offset_of ! (mlx5dv_qp , dbrec) - 0usize] ; ["Offset of field: mlx5dv_qp::sq"] [:: std :: mem :: offset_of ! (mlx5dv_qp , sq) - 8usize] ; ["Offset of field: mlx5dv_qp::rq"] [:: std :: mem :: offset_of ! (mlx5dv_qp , rq) - 24usize] ; ["Offset of field: mlx5dv_qp::bf"] [:: std :: mem :: offset_of ! (mlx5dv_qp , bf) - 40usize] ; ["Offset of field: mlx5dv_qp::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_qp , comp_mask) - 56usize] ; ["Offset of field: mlx5dv_qp::uar_mmap_offset"] [:: std :: mem :: offset_of ! (mlx5dv_qp , uar_mmap_offset) - 64usize] ; ["Offset of field: mlx5dv_qp::tirn"] [:: std :: mem :: offset_of ! (mlx5dv_qp , tirn) - 72usize] ; ["Offset of field: mlx5dv_qp::tisn"] [:: std :: mem :: offset_of ! (mlx5dv_qp , tisn) - 76usize] ; ["Offset of field: mlx5dv_qp::rqn"] [:: std :: mem :: offset_of ! (mlx5dv_qp , rqn) - 80usize] ; ["Offset of field: mlx5dv_qp::sqn"] [:: std :: mem :: offset_of ! (mlx5dv_qp , sqn) - 84usize] ; ["Offset of field: mlx5dv_qp::tir_icm_addr"] [:: std :: mem :: offset_of ! (mlx5dv_qp , tir_icm_addr) - 88usize] ; } ; impl Default for mlx5dv_qp { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_cq { pub buf : * mut :: std :: os :: raw :: c_void , pub dbrec : * mut __be32 , pub cqe_cnt : u32 , pub cqe_size : u32 , pub cq_uar : * mut :: std :: os :: raw :: c_void , pub cqn : u32 , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_cq"] [:: std :: mem :: size_of :: < mlx5dv_cq > () - 48usize] ; ["Alignment of mlx5dv_cq"] [:: std :: mem :: align_of :: < mlx5dv_cq > () - 8usize] ; ["Offset of field: mlx5dv_cq::buf"] [:: std :: mem :: offset_of ! (mlx5dv_cq , buf) - 0usize] ; ["Offset of field: mlx5dv_cq::dbrec"] [:: std :: mem :: offset_of ! (mlx5dv_cq , dbrec) - 8usize] ; ["Offset of field: mlx5dv_cq::cqe_cnt"] [:: std :: mem :: offset_of ! (mlx5dv_cq , cqe_cnt) - 16usize] ; ["Offset of field: mlx5dv_cq::cqe_size"] [:: std :: mem :: offset_of ! (mlx5dv_cq , cqe_size) - 20usize] ; ["Offset of field: mlx5dv_cq::cq_uar"] [:: std :: mem :: offset_of ! (mlx5dv_cq , cq_uar) - 24usize] ; ["Offset of field: mlx5dv_cq::cqn"] [:: std :: mem :: offset_of ! (mlx5dv_cq , cqn) - 32usize] ; ["Offset of field: mlx5dv_cq::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_cq , comp_mask) - 40usize] ; } ; impl Default for mlx5dv_cq { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_SRQ_MASK_SRQN : mlx5dv_srq_comp_mask = 1 ; pub type mlx5dv_srq_comp_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_srq { pub buf : * mut :: std :: os :: raw :: c_void , pub dbrec : * mut __be32 , pub stride : u32 , pub head : u32 , pub tail : u32 , pub comp_mask : u64 , pub srqn : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_srq"] [:: std :: mem :: size_of :: < mlx5dv_srq > () - 48usize] ; ["Alignment of mlx5dv_srq"] [:: std :: mem :: align_of :: < mlx5dv_srq > () - 8usize] ; ["Offset of field: mlx5dv_srq::buf"] [:: std :: mem :: offset_of ! (mlx5dv_srq , buf) - 0usize] ; ["Offset of field: mlx5dv_srq::dbrec"] [:: std :: mem :: offset_of ! (mlx5dv_srq , dbrec) - 8usize] ; ["Offset of field: mlx5dv_srq::stride"] [:: std :: mem :: offset_of ! (mlx5dv_srq , stride) - 16usize] ; ["Offset of field: mlx5dv_srq::head"] [:: std :: mem :: offset_of ! (mlx5dv_srq , head) - 20usize] ; ["Offset of field: mlx5dv_srq::tail"] [:: std :: mem :: offset_of ! (mlx5dv_srq , tail) - 24usize] ; ["Offset of field: mlx5dv_srq::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_srq , comp_mask) - 32usize] ; ["Offset of field: mlx5dv_srq::srqn"] [:: std :: mem :: offset_of ! (mlx5dv_srq , srqn) - 40usize] ; } ; impl Default for mlx5dv_srq { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_rwq { pub buf : * mut :: std :: os :: raw :: c_void , pub dbrec : * mut __be32 , pub wqe_cnt : u32 , pub stride : u32 , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_rwq"] [:: std :: mem :: size_of :: < mlx5dv_rwq > () - 32usize] ; ["Alignment of mlx5dv_rwq"] [:: std :: mem :: align_of :: < mlx5dv_rwq > () - 8usize] ; ["Offset of field: mlx5dv_rwq::buf"] [:: std :: mem :: offset_of ! (mlx5dv_rwq , buf) - 0usize] ; ["Offset of field: mlx5dv_rwq::dbrec"] [:: std :: mem :: offset_of ! (mlx5dv_rwq , dbrec) - 8usize] ; ["Offset of field: mlx5dv_rwq::wqe_cnt"] [:: std :: mem :: offset_of ! (mlx5dv_rwq , wqe_cnt) - 16usize] ; ["Offset of field: mlx5dv_rwq::stride"] [:: std :: mem :: offset_of ! (mlx5dv_rwq , stride) - 20usize] ; ["Offset of field: mlx5dv_rwq::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_rwq , comp_mask) - 24usize] ; } ; impl Default for mlx5dv_rwq { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_alloc_dm_attr { pub type_ : mlx5_ib_uapi_dm_type , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_alloc_dm_attr"] [:: std :: mem :: size_of :: < mlx5dv_alloc_dm_attr > () - 16usize] ; ["Alignment of mlx5dv_alloc_dm_attr"] [:: std :: mem :: align_of :: < mlx5dv_alloc_dm_attr > () - 8usize] ; ["Offset of field: mlx5dv_alloc_dm_attr::type_"] [:: std :: mem :: offset_of ! (mlx5dv_alloc_dm_attr , type_) - 0usize] ; ["Offset of field: mlx5dv_alloc_dm_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_alloc_dm_attr , comp_mask) - 8usize] ; } ; impl Default for mlx5dv_alloc_dm_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_DM_MASK_REMOTE_VA : mlx5dv_dm_comp_mask = 1 ; pub type mlx5dv_dm_comp_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dm { pub buf : * mut :: std :: os :: raw :: c_void , pub length : u64 , pub comp_mask : u64 , pub remote_va : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dm"] [:: std :: mem :: size_of :: < mlx5dv_dm > () - 32usize] ; ["Alignment of mlx5dv_dm"] [:: std :: mem :: align_of :: < mlx5dv_dm > () - 8usize] ; ["Offset of field: mlx5dv_dm::buf"] [:: std :: mem :: offset_of ! (mlx5dv_dm , buf) - 0usize] ; ["Offset of field: mlx5dv_dm::length"] [:: std :: mem :: offset_of ! (mlx5dv_dm , length) - 8usize] ; ["Offset of field: mlx5dv_dm::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_dm , comp_mask) - 16usize] ; ["Offset of field: mlx5dv_dm::remote_va"] [:: std :: mem :: offset_of ! (mlx5dv_dm , remote_va) - 24usize] ; } ; impl Default for mlx5dv_dm { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_alloc_dm (context : * mut ibv_context , dm_attr : * mut ibv_alloc_dm_attr , mlx5_dm_attr : * mut mlx5dv_alloc_dm_attr) -> * mut ibv_dm ; } unsafe extern "C" { pub fn mlx5dv_dm_map_op_addr (dm : * mut ibv_dm , op : u8) -> * mut :: std :: os :: raw :: c_void ; } unsafe extern "C" { pub fn mlx5dv_reg_dmabuf_mr (pd : * mut ibv_pd , offset : u64 , length : usize , iova : u64 , fd : :: std :: os :: raw :: c_int , access : :: std :: os :: raw :: c_int , mlx5_access : :: std :: os :: raw :: c_int) -> * mut ibv_mr ; } unsafe extern "C" { pub fn mlx5dv_get_data_direct_sysfs_path (context : * mut ibv_context , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_ah { pub av : * mut mlx5_wqe_av , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_ah"] [:: std :: mem :: size_of :: < mlx5dv_ah > () - 16usize] ; ["Alignment of mlx5dv_ah"] [:: std :: mem :: align_of :: < mlx5dv_ah > () - 8usize] ; ["Offset of field: mlx5dv_ah::av"] [:: std :: mem :: offset_of ! (mlx5dv_ah , av) - 0usize] ; ["Offset of field: mlx5dv_ah::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_ah , comp_mask) - 8usize] ; } ; impl Default for mlx5dv_ah { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_pd { pub pdn : u32 , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_pd"] [:: std :: mem :: size_of :: < mlx5dv_pd > () - 16usize] ; ["Alignment of mlx5dv_pd"] [:: std :: mem :: align_of :: < mlx5dv_pd > () - 8usize] ; ["Offset of field: mlx5dv_pd::pdn"] [:: std :: mem :: offset_of ! (mlx5dv_pd , pdn) - 0usize] ; ["Offset of field: mlx5dv_pd::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_pd , comp_mask) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_devx { pub handle : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_devx"] [:: std :: mem :: size_of :: < mlx5dv_devx > () - 4usize] ; ["Alignment of mlx5dv_devx"] [:: std :: mem :: align_of :: < mlx5dv_devx > () - 4usize] ; ["Offset of field: mlx5dv_devx::handle"] [:: std :: mem :: offset_of ! (mlx5dv_devx , handle) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj { pub qp : mlx5dv_obj__bindgen_ty_1 , pub cq : mlx5dv_obj__bindgen_ty_2 , pub srq : mlx5dv_obj__bindgen_ty_3 , pub rwq : mlx5dv_obj__bindgen_ty_4 , pub dm : mlx5dv_obj__bindgen_ty_5 , pub ah : mlx5dv_obj__bindgen_ty_6 , pub pd : mlx5dv_obj__bindgen_ty_7 , pub devx : mlx5dv_obj__bindgen_ty_8 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj__bindgen_ty_1 { pub in_ : * mut ibv_qp , pub out : * mut mlx5dv_qp , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5dv_obj__bindgen_ty_1 > () - 16usize] ; ["Alignment of mlx5dv_obj__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5dv_obj__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_1::in_"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_1 , in_) - 0usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_1::out"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_1 , out) - 8usize] ; } ; impl Default for mlx5dv_obj__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj__bindgen_ty_2 { pub in_ : * mut ibv_cq , pub out : * mut mlx5dv_cq , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj__bindgen_ty_2"] [:: std :: mem :: size_of :: < mlx5dv_obj__bindgen_ty_2 > () - 16usize] ; ["Alignment of mlx5dv_obj__bindgen_ty_2"] [:: std :: mem :: align_of :: < mlx5dv_obj__bindgen_ty_2 > () - 8usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_2::in_"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_2 , in_) - 0usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_2::out"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_2 , out) - 8usize] ; } ; impl Default for mlx5dv_obj__bindgen_ty_2 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj__bindgen_ty_3 { pub in_ : * mut ibv_srq , pub out : * mut mlx5dv_srq , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj__bindgen_ty_3"] [:: std :: mem :: size_of :: < mlx5dv_obj__bindgen_ty_3 > () - 16usize] ; ["Alignment of mlx5dv_obj__bindgen_ty_3"] [:: std :: mem :: align_of :: < mlx5dv_obj__bindgen_ty_3 > () - 8usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_3::in_"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_3 , in_) - 0usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_3::out"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_3 , out) - 8usize] ; } ; impl Default for mlx5dv_obj__bindgen_ty_3 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj__bindgen_ty_4 { pub in_ : * mut ibv_wq , pub out : * mut mlx5dv_rwq , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj__bindgen_ty_4"] [:: std :: mem :: size_of :: < mlx5dv_obj__bindgen_ty_4 > () - 16usize] ; ["Alignment of mlx5dv_obj__bindgen_ty_4"] [:: std :: mem :: align_of :: < mlx5dv_obj__bindgen_ty_4 > () - 8usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_4::in_"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_4 , in_) - 0usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_4::out"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_4 , out) - 8usize] ; } ; impl Default for mlx5dv_obj__bindgen_ty_4 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj__bindgen_ty_5 { pub in_ : * mut ibv_dm , pub out : * mut mlx5dv_dm , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj__bindgen_ty_5"] [:: std :: mem :: size_of :: < mlx5dv_obj__bindgen_ty_5 > () - 16usize] ; ["Alignment of mlx5dv_obj__bindgen_ty_5"] [:: std :: mem :: align_of :: < mlx5dv_obj__bindgen_ty_5 > () - 8usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_5::in_"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_5 , in_) - 0usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_5::out"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_5 , out) - 8usize] ; } ; impl Default for mlx5dv_obj__bindgen_ty_5 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj__bindgen_ty_6 { pub in_ : * mut ibv_ah , pub out : * mut mlx5dv_ah , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj__bindgen_ty_6"] [:: std :: mem :: size_of :: < mlx5dv_obj__bindgen_ty_6 > () - 16usize] ; ["Alignment of mlx5dv_obj__bindgen_ty_6"] [:: std :: mem :: align_of :: < mlx5dv_obj__bindgen_ty_6 > () - 8usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_6::in_"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_6 , in_) - 0usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_6::out"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_6 , out) - 8usize] ; } ; impl Default for mlx5dv_obj__bindgen_ty_6 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj__bindgen_ty_7 { pub in_ : * mut ibv_pd , pub out : * mut mlx5dv_pd , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj__bindgen_ty_7"] [:: std :: mem :: size_of :: < mlx5dv_obj__bindgen_ty_7 > () - 16usize] ; ["Alignment of mlx5dv_obj__bindgen_ty_7"] [:: std :: mem :: align_of :: < mlx5dv_obj__bindgen_ty_7 > () - 8usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_7::in_"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_7 , in_) - 0usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_7::out"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_7 , out) - 8usize] ; } ; impl Default for mlx5dv_obj__bindgen_ty_7 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_obj__bindgen_ty_8 { pub in_ : * mut mlx5dv_devx_obj , pub out : * mut mlx5dv_devx , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj__bindgen_ty_8"] [:: std :: mem :: size_of :: < mlx5dv_obj__bindgen_ty_8 > () - 16usize] ; ["Alignment of mlx5dv_obj__bindgen_ty_8"] [:: std :: mem :: align_of :: < mlx5dv_obj__bindgen_ty_8 > () - 8usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_8::in_"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_8 , in_) - 0usize] ; ["Offset of field: mlx5dv_obj__bindgen_ty_8::out"] [:: std :: mem :: offset_of ! (mlx5dv_obj__bindgen_ty_8 , out) - 8usize] ; } ; impl Default for mlx5dv_obj__bindgen_ty_8 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_obj"] [:: std :: mem :: size_of :: < mlx5dv_obj > () - 128usize] ; ["Alignment of mlx5dv_obj"] [:: std :: mem :: align_of :: < mlx5dv_obj > () - 8usize] ; ["Offset of field: mlx5dv_obj::qp"] [:: std :: mem :: offset_of ! (mlx5dv_obj , qp) - 0usize] ; ["Offset of field: mlx5dv_obj::cq"] [:: std :: mem :: offset_of ! (mlx5dv_obj , cq) - 16usize] ; ["Offset of field: mlx5dv_obj::srq"] [:: std :: mem :: offset_of ! (mlx5dv_obj , srq) - 32usize] ; ["Offset of field: mlx5dv_obj::rwq"] [:: std :: mem :: offset_of ! (mlx5dv_obj , rwq) - 48usize] ; ["Offset of field: mlx5dv_obj::dm"] [:: std :: mem :: offset_of ! (mlx5dv_obj , dm) - 64usize] ; ["Offset of field: mlx5dv_obj::ah"] [:: std :: mem :: offset_of ! (mlx5dv_obj , ah) - 80usize] ; ["Offset of field: mlx5dv_obj::pd"] [:: std :: mem :: offset_of ! (mlx5dv_obj , pd) - 96usize] ; ["Offset of field: mlx5dv_obj::devx"] [:: std :: mem :: offset_of ! (mlx5dv_obj , devx) - 112usize] ; } ; impl Default for mlx5dv_obj { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_OBJ_QP : mlx5dv_obj_type = 1 ; pub const MLX5DV_OBJ_CQ : mlx5dv_obj_type = 2 ; pub const MLX5DV_OBJ_SRQ : mlx5dv_obj_type = 4 ; pub const MLX5DV_OBJ_RWQ : mlx5dv_obj_type = 8 ; pub const MLX5DV_OBJ_DM : mlx5dv_obj_type = 16 ; pub const MLX5DV_OBJ_AH : mlx5dv_obj_type = 32 ; pub const MLX5DV_OBJ_PD : mlx5dv_obj_type = 64 ; pub const MLX5DV_OBJ_DEVX : mlx5dv_obj_type = 128 ; pub type mlx5dv_obj_type = :: std :: os :: raw :: c_uint ; pub const MLX5DV_WQ_INIT_ATTR_MASK_STRIDING_RQ : mlx5dv_wq_init_attr_mask = 1 ; pub type mlx5dv_wq_init_attr_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_striding_rq_init_attr { pub single_stride_log_num_of_bytes : u32 , pub single_wqe_log_num_of_strides : u32 , pub two_byte_shift_en : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_striding_rq_init_attr"] [:: std :: mem :: size_of :: < mlx5dv_striding_rq_init_attr > () - 12usize] ; ["Alignment of mlx5dv_striding_rq_init_attr"] [:: std :: mem :: align_of :: < mlx5dv_striding_rq_init_attr > () - 4usize] ; ["Offset of field: mlx5dv_striding_rq_init_attr::single_stride_log_num_of_bytes"] [:: std :: mem :: offset_of ! (mlx5dv_striding_rq_init_attr , single_stride_log_num_of_bytes) - 0usize] ; ["Offset of field: mlx5dv_striding_rq_init_attr::single_wqe_log_num_of_strides"] [:: std :: mem :: offset_of ! (mlx5dv_striding_rq_init_attr , single_wqe_log_num_of_strides) - 4usize] ; ["Offset of field: mlx5dv_striding_rq_init_attr::two_byte_shift_en"] [:: std :: mem :: offset_of ! (mlx5dv_striding_rq_init_attr , two_byte_shift_en) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_wq_init_attr { pub comp_mask : u64 , pub striding_rq_attrs : mlx5dv_striding_rq_init_attr , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_wq_init_attr"] [:: std :: mem :: size_of :: < mlx5dv_wq_init_attr > () - 24usize] ; ["Alignment of mlx5dv_wq_init_attr"] [:: std :: mem :: align_of :: < mlx5dv_wq_init_attr > () - 8usize] ; ["Offset of field: mlx5dv_wq_init_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_wq_init_attr , comp_mask) - 0usize] ; ["Offset of field: mlx5dv_wq_init_attr::striding_rq_attrs"] [:: std :: mem :: offset_of ! (mlx5dv_wq_init_attr , striding_rq_attrs) - 8usize] ; } ; unsafe extern "C" { pub fn mlx5dv_create_wq (context : * mut ibv_context , wq_init_attr : * mut ibv_wq_init_attr , mlx5_wq_attr : * mut mlx5dv_wq_init_attr) -> * mut ibv_wq ; } unsafe extern "C" { pub fn mlx5dv_init_obj (obj : * mut mlx5dv_obj , obj_type : u64) -> :: std :: os :: raw :: c_int ; } pub const MLX5_OPCODE_NOP : _bindgen_ty_25 = 0 ; pub const MLX5_OPCODE_SEND_INVAL : _bindgen_ty_25 = 1 ; pub const MLX5_OPCODE_RDMA_WRITE : _bindgen_ty_25 = 8 ; pub const MLX5_OPCODE_RDMA_WRITE_IMM : _bindgen_ty_25 = 9 ; pub const MLX5_OPCODE_SEND : _bindgen_ty_25 = 10 ; pub const MLX5_OPCODE_SEND_IMM : _bindgen_ty_25 = 11 ; pub const MLX5_OPCODE_TSO : _bindgen_ty_25 = 14 ; pub const MLX5_OPCODE_RDMA_READ : _bindgen_ty_25 = 16 ; pub const MLX5_OPCODE_ATOMIC_CS : _bindgen_ty_25 = 17 ; pub const MLX5_OPCODE_ATOMIC_FA : _bindgen_ty_25 = 18 ; pub const MLX5_OPCODE_ATOMIC_MASKED_CS : _bindgen_ty_25 = 20 ; pub const MLX5_OPCODE_ATOMIC_MASKED_FA : _bindgen_ty_25 = 21 ; pub const MLX5_OPCODE_FMR : _bindgen_ty_25 = 25 ; pub const MLX5_OPCODE_LOCAL_INVAL : _bindgen_ty_25 = 27 ; pub const MLX5_OPCODE_CONFIG_CMD : _bindgen_ty_25 = 31 ; pub const MLX5_OPCODE_SET_PSV : _bindgen_ty_25 = 32 ; pub const MLX5_OPCODE_UMR : _bindgen_ty_25 = 37 ; pub const MLX5_OPCODE_TAG_MATCHING : _bindgen_ty_25 = 40 ; pub const MLX5_OPCODE_FLOW_TBL_ACCESS : _bindgen_ty_25 = 44 ; pub const MLX5_OPCODE_MMO : _bindgen_ty_25 = 47 ; pub type _bindgen_ty_25 = :: std :: os :: raw :: c_uint ; pub const MLX5_INLINE_SCATTER_32 : _bindgen_ty_26 = 4 ; pub const MLX5_INLINE_SCATTER_64 : _bindgen_ty_26 = 8 ; pub type _bindgen_ty_26 = :: std :: os :: raw :: c_uint ; pub const MLX5_CQE_SYNDROME_LOCAL_LENGTH_ERR : _bindgen_ty_27 = 1 ; pub const MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR : _bindgen_ty_27 = 2 ; pub const MLX5_CQE_SYNDROME_LOCAL_PROT_ERR : _bindgen_ty_27 = 4 ; pub const MLX5_CQE_SYNDROME_WR_FLUSH_ERR : _bindgen_ty_27 = 5 ; pub const MLX5_CQE_SYNDROME_MW_BIND_ERR : _bindgen_ty_27 = 6 ; pub const MLX5_CQE_SYNDROME_BAD_RESP_ERR : _bindgen_ty_27 = 16 ; pub const MLX5_CQE_SYNDROME_LOCAL_ACCESS_ERR : _bindgen_ty_27 = 17 ; pub const MLX5_CQE_SYNDROME_REMOTE_INVAL_REQ_ERR : _bindgen_ty_27 = 18 ; pub const MLX5_CQE_SYNDROME_REMOTE_ACCESS_ERR : _bindgen_ty_27 = 19 ; pub const MLX5_CQE_SYNDROME_REMOTE_OP_ERR : _bindgen_ty_27 = 20 ; pub const MLX5_CQE_SYNDROME_TRANSPORT_RETRY_EXC_ERR : _bindgen_ty_27 = 21 ; pub const MLX5_CQE_SYNDROME_RNR_RETRY_EXC_ERR : _bindgen_ty_27 = 22 ; pub const MLX5_CQE_SYNDROME_REMOTE_ABORTED_ERR : _bindgen_ty_27 = 34 ; pub type _bindgen_ty_27 = :: std :: os :: raw :: c_uint ; pub const MLX5_CQE_VENDOR_SYNDROME_ODP_PFAULT : _bindgen_ty_28 = 147 ; pub type _bindgen_ty_28 = :: std :: os :: raw :: c_uint ; pub const MLX5_CQE_L2_OK : _bindgen_ty_29 = 1 ; pub const MLX5_CQE_L3_OK : _bindgen_ty_29 = 2 ; pub const MLX5_CQE_L4_OK : _bindgen_ty_29 = 4 ; pub type _bindgen_ty_29 = :: std :: os :: raw :: c_uint ; pub const MLX5_CQE_L3_HDR_TYPE_NONE : _bindgen_ty_30 = 0 ; pub const MLX5_CQE_L3_HDR_TYPE_IPV6 : _bindgen_ty_30 = 1 ; pub const MLX5_CQE_L3_HDR_TYPE_IPV4 : _bindgen_ty_30 = 2 ; pub type _bindgen_ty_30 = :: std :: os :: raw :: c_uint ; pub const MLX5_CQE_OWNER_MASK : _bindgen_ty_31 = 1 ; pub const MLX5_CQE_REQ : _bindgen_ty_31 = 0 ; pub const MLX5_CQE_RESP_WR_IMM : _bindgen_ty_31 = 1 ; pub const MLX5_CQE_RESP_SEND : _bindgen_ty_31 = 2 ; pub const MLX5_CQE_RESP_SEND_IMM : _bindgen_ty_31 = 3 ; pub const MLX5_CQE_RESP_SEND_INV : _bindgen_ty_31 = 4 ; pub const MLX5_CQE_RESIZE_CQ : _bindgen_ty_31 = 5 ; pub const MLX5_CQE_NO_PACKET : _bindgen_ty_31 = 6 ; pub const MLX5_CQE_SIG_ERR : _bindgen_ty_31 = 12 ; pub const MLX5_CQE_REQ_ERR : _bindgen_ty_31 = 13 ; pub const MLX5_CQE_RESP_ERR : _bindgen_ty_31 = 14 ; pub const MLX5_CQE_INVALID : _bindgen_ty_31 = 15 ; pub type _bindgen_ty_31 = :: std :: os :: raw :: c_uint ; pub const MLX5_CQ_DOORBELL : _bindgen_ty_32 = 32 ; pub type _bindgen_ty_32 = :: std :: os :: raw :: c_uint ; pub const MLX5_CQ_DB_REQ_NOT_SOL : _bindgen_ty_33 = 16777216 ; pub const MLX5_CQ_DB_REQ_NOT : _bindgen_ty_33 = 0 ; pub type _bindgen_ty_33 = :: std :: os :: raw :: c_uint ; pub const MLX5_TMC_SUCCESS : _bindgen_ty_34 = 2147483648 ; pub type _bindgen_ty_34 = :: std :: os :: raw :: c_uint ; pub const MLX5DV_CQE_RES_FORMAT_HASH : mlx5dv_cqe_comp_res_format = 1 ; pub const MLX5DV_CQE_RES_FORMAT_CSUM : mlx5dv_cqe_comp_res_format = 2 ; pub const MLX5DV_CQE_RES_FORMAT_CSUM_STRIDX : mlx5dv_cqe_comp_res_format = 4 ; pub type mlx5dv_cqe_comp_res_format = :: std :: os :: raw :: c_uint ; pub const MLX5DV_SW_PARSING : mlx5dv_sw_parsing_offloads = 1 ; pub const MLX5DV_SW_PARSING_CSUM : mlx5dv_sw_parsing_offloads = 2 ; pub const MLX5DV_SW_PARSING_LSO : mlx5dv_sw_parsing_offloads = 4 ; pub type mlx5dv_sw_parsing_offloads = :: std :: os :: raw :: c_uint ; pub const MLX5_INVALID_LKEY : _bindgen_ty_35 = 256 ; pub type _bindgen_ty_35 = :: std :: os :: raw :: c_uint ; pub const MLX5_EXTENDED_UD_AV : _bindgen_ty_36 = 2147483648 ; pub type _bindgen_ty_36 = :: std :: os :: raw :: c_uint ; pub const MLX5_WQE_CTRL_CQ_UPDATE : _bindgen_ty_37 = 8 ; pub const MLX5_WQE_CTRL_SOLICITED : _bindgen_ty_37 = 2 ; pub const MLX5_WQE_CTRL_FENCE : _bindgen_ty_37 = 128 ; pub const MLX5_WQE_CTRL_INITIATOR_SMALL_FENCE : _bindgen_ty_37 = 32 ; pub type _bindgen_ty_37 = :: std :: os :: raw :: c_uint ; pub const MLX5_SEND_WQE_BB : _bindgen_ty_38 = 64 ; pub const MLX5_SEND_WQE_SHIFT : _bindgen_ty_38 = 6 ; pub type _bindgen_ty_38 = :: std :: os :: raw :: c_uint ; pub const MLX5_INLINE_SEG : _bindgen_ty_39 = 2147483648 ; pub type _bindgen_ty_39 = :: std :: os :: raw :: c_uint ; pub const MLX5_ETH_WQE_L3_CSUM : _bindgen_ty_40 = 64 ; pub const MLX5_ETH_WQE_L4_CSUM : _bindgen_ty_40 = 128 ; pub type _bindgen_ty_40 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_srq_next_seg { pub rsvd0 : [u8 ; 2usize] , pub next_wqe_index : __be16 , pub signature : u8 , pub rsvd1 : [u8 ; 11usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_srq_next_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_srq_next_seg > () - 16usize] ; ["Alignment of mlx5_wqe_srq_next_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_srq_next_seg > () - 2usize] ; ["Offset of field: mlx5_wqe_srq_next_seg::rsvd0"] [:: std :: mem :: offset_of ! (mlx5_wqe_srq_next_seg , rsvd0) - 0usize] ; ["Offset of field: mlx5_wqe_srq_next_seg::next_wqe_index"] [:: std :: mem :: offset_of ! (mlx5_wqe_srq_next_seg , next_wqe_index) - 2usize] ; ["Offset of field: mlx5_wqe_srq_next_seg::signature"] [:: std :: mem :: offset_of ! (mlx5_wqe_srq_next_seg , signature) - 4usize] ; ["Offset of field: mlx5_wqe_srq_next_seg::rsvd1"] [:: std :: mem :: offset_of ! (mlx5_wqe_srq_next_seg , rsvd1) - 5usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_data_seg { pub byte_count : __be32 , pub lkey : __be32 , pub addr : __be64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_data_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_data_seg > () - 16usize] ; ["Alignment of mlx5_wqe_data_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_data_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_data_seg::byte_count"] [:: std :: mem :: offset_of ! (mlx5_wqe_data_seg , byte_count) - 0usize] ; ["Offset of field: mlx5_wqe_data_seg::lkey"] [:: std :: mem :: offset_of ! (mlx5_wqe_data_seg , lkey) - 4usize] ; ["Offset of field: mlx5_wqe_data_seg::addr"] [:: std :: mem :: offset_of ! (mlx5_wqe_data_seg , addr) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5_wqe_av { pub key : mlx5_wqe_av__bindgen_ty_1 , pub dqp_dct : __be32 , pub stat_rate_sl : u8 , pub fl_mlid : u8 , pub rlid : __be16 , pub reserved0 : [u8 ; 4usize] , pub rmac : [u8 ; 6usize] , pub tclass : u8 , pub hop_limit : u8 , pub grh_gid_fl : __be32 , pub rgid : [u8 ; 16usize] , } # [repr (C)] # [derive (Copy , Clone)] pub union mlx5_wqe_av__bindgen_ty_1 { pub qkey : mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1 , pub dc_key : __be64 , } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1 { pub qkey : __be32 , pub reserved : __be32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Alignment of mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1 > () - 4usize] ; ["Offset of field: mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1::qkey"] [:: std :: mem :: offset_of ! (mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1 , qkey) - 0usize] ; ["Offset of field: mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1::reserved"] [:: std :: mem :: offset_of ! (mlx5_wqe_av__bindgen_ty_1__bindgen_ty_1 , reserved) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_av__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5_wqe_av__bindgen_ty_1 > () - 8usize] ; ["Alignment of mlx5_wqe_av__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5_wqe_av__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5_wqe_av__bindgen_ty_1::qkey"] [:: std :: mem :: offset_of ! (mlx5_wqe_av__bindgen_ty_1 , qkey) - 0usize] ; ["Offset of field: mlx5_wqe_av__bindgen_ty_1::dc_key"] [:: std :: mem :: offset_of ! (mlx5_wqe_av__bindgen_ty_1 , dc_key) - 0usize] ; } ; impl Default for mlx5_wqe_av__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_av"] [:: std :: mem :: size_of :: < mlx5_wqe_av > () - 48usize] ; ["Alignment of mlx5_wqe_av"] [:: std :: mem :: align_of :: < mlx5_wqe_av > () - 8usize] ; ["Offset of field: mlx5_wqe_av::key"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , key) - 0usize] ; ["Offset of field: mlx5_wqe_av::dqp_dct"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , dqp_dct) - 8usize] ; ["Offset of field: mlx5_wqe_av::stat_rate_sl"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , stat_rate_sl) - 12usize] ; ["Offset of field: mlx5_wqe_av::fl_mlid"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , fl_mlid) - 13usize] ; ["Offset of field: mlx5_wqe_av::rlid"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , rlid) - 14usize] ; ["Offset of field: mlx5_wqe_av::reserved0"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , reserved0) - 16usize] ; ["Offset of field: mlx5_wqe_av::rmac"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , rmac) - 20usize] ; ["Offset of field: mlx5_wqe_av::tclass"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , tclass) - 26usize] ; ["Offset of field: mlx5_wqe_av::hop_limit"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , hop_limit) - 27usize] ; ["Offset of field: mlx5_wqe_av::grh_gid_fl"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , grh_gid_fl) - 28usize] ; ["Offset of field: mlx5_wqe_av::rgid"] [:: std :: mem :: offset_of ! (mlx5_wqe_av , rgid) - 32usize] ; } ; impl Default for mlx5_wqe_av { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5_wqe_datagram_seg { pub av : mlx5_wqe_av , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_datagram_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_datagram_seg > () - 48usize] ; ["Alignment of mlx5_wqe_datagram_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_datagram_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_datagram_seg::av"] [:: std :: mem :: offset_of ! (mlx5_wqe_datagram_seg , av) - 0usize] ; } ; impl Default for mlx5_wqe_datagram_seg { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_raddr_seg { pub raddr : __be64 , pub rkey : __be32 , pub reserved : __be32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_raddr_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_raddr_seg > () - 16usize] ; ["Alignment of mlx5_wqe_raddr_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_raddr_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_raddr_seg::raddr"] [:: std :: mem :: offset_of ! (mlx5_wqe_raddr_seg , raddr) - 0usize] ; ["Offset of field: mlx5_wqe_raddr_seg::rkey"] [:: std :: mem :: offset_of ! (mlx5_wqe_raddr_seg , rkey) - 8usize] ; ["Offset of field: mlx5_wqe_raddr_seg::reserved"] [:: std :: mem :: offset_of ! (mlx5_wqe_raddr_seg , reserved) - 12usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_atomic_seg { pub swap_add : __be64 , pub compare : __be64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_atomic_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_atomic_seg > () - 16usize] ; ["Alignment of mlx5_wqe_atomic_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_atomic_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_atomic_seg::swap_add"] [:: std :: mem :: offset_of ! (mlx5_wqe_atomic_seg , swap_add) - 0usize] ; ["Offset of field: mlx5_wqe_atomic_seg::compare"] [:: std :: mem :: offset_of ! (mlx5_wqe_atomic_seg , compare) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_inl_data_seg { pub byte_count : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_inl_data_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_inl_data_seg > () - 4usize] ; ["Alignment of mlx5_wqe_inl_data_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_inl_data_seg > () - 4usize] ; ["Offset of field: mlx5_wqe_inl_data_seg::byte_count"] [:: std :: mem :: offset_of ! (mlx5_wqe_inl_data_seg , byte_count) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_eth_seg { pub rsvd0 : __be32 , pub cs_flags : u8 , pub rsvd1 : u8 , pub mss : __be16 , pub rsvd2 : __be32 , pub inline_hdr_sz : __be16 , pub inline_hdr_start : [u8 ; 2usize] , pub inline_hdr : [u8 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_eth_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_eth_seg > () - 32usize] ; ["Alignment of mlx5_wqe_eth_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_eth_seg > () - 4usize] ; ["Offset of field: mlx5_wqe_eth_seg::rsvd0"] [:: std :: mem :: offset_of ! (mlx5_wqe_eth_seg , rsvd0) - 0usize] ; ["Offset of field: mlx5_wqe_eth_seg::cs_flags"] [:: std :: mem :: offset_of ! (mlx5_wqe_eth_seg , cs_flags) - 4usize] ; ["Offset of field: mlx5_wqe_eth_seg::rsvd1"] [:: std :: mem :: offset_of ! (mlx5_wqe_eth_seg , rsvd1) - 5usize] ; ["Offset of field: mlx5_wqe_eth_seg::mss"] [:: std :: mem :: offset_of ! (mlx5_wqe_eth_seg , mss) - 6usize] ; ["Offset of field: mlx5_wqe_eth_seg::rsvd2"] [:: std :: mem :: offset_of ! (mlx5_wqe_eth_seg , rsvd2) - 8usize] ; ["Offset of field: mlx5_wqe_eth_seg::inline_hdr_sz"] [:: std :: mem :: offset_of ! (mlx5_wqe_eth_seg , inline_hdr_sz) - 12usize] ; ["Offset of field: mlx5_wqe_eth_seg::inline_hdr_start"] [:: std :: mem :: offset_of ! (mlx5_wqe_eth_seg , inline_hdr_start) - 14usize] ; ["Offset of field: mlx5_wqe_eth_seg::inline_hdr"] [:: std :: mem :: offset_of ! (mlx5_wqe_eth_seg , inline_hdr) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_tm_seg { pub opcode : u8 , pub flags : u8 , pub index : __be16 , pub rsvd0 : [u8 ; 2usize] , pub sw_cnt : __be16 , pub rsvd1 : [u8 ; 8usize] , pub append_tag : __be64 , pub append_mask : __be64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_tm_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_tm_seg > () - 32usize] ; ["Alignment of mlx5_wqe_tm_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_tm_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_tm_seg::opcode"] [:: std :: mem :: offset_of ! (mlx5_wqe_tm_seg , opcode) - 0usize] ; ["Offset of field: mlx5_wqe_tm_seg::flags"] [:: std :: mem :: offset_of ! (mlx5_wqe_tm_seg , flags) - 1usize] ; ["Offset of field: mlx5_wqe_tm_seg::index"] [:: std :: mem :: offset_of ! (mlx5_wqe_tm_seg , index) - 2usize] ; ["Offset of field: mlx5_wqe_tm_seg::rsvd0"] [:: std :: mem :: offset_of ! (mlx5_wqe_tm_seg , rsvd0) - 4usize] ; ["Offset of field: mlx5_wqe_tm_seg::sw_cnt"] [:: std :: mem :: offset_of ! (mlx5_wqe_tm_seg , sw_cnt) - 6usize] ; ["Offset of field: mlx5_wqe_tm_seg::rsvd1"] [:: std :: mem :: offset_of ! (mlx5_wqe_tm_seg , rsvd1) - 8usize] ; ["Offset of field: mlx5_wqe_tm_seg::append_tag"] [:: std :: mem :: offset_of ! (mlx5_wqe_tm_seg , append_tag) - 16usize] ; ["Offset of field: mlx5_wqe_tm_seg::append_mask"] [:: std :: mem :: offset_of ! (mlx5_wqe_tm_seg , append_mask) - 24usize] ; } ; pub const MLX5_WQE_UMR_CTRL_FLAG_INLINE : _bindgen_ty_41 = 128 ; pub const MLX5_WQE_UMR_CTRL_FLAG_CHECK_FREE : _bindgen_ty_41 = 32 ; pub const MLX5_WQE_UMR_CTRL_FLAG_TRNSLATION_OFFSET : _bindgen_ty_41 = 16 ; pub const MLX5_WQE_UMR_CTRL_FLAG_CHECK_QPN : _bindgen_ty_41 = 8 ; pub type _bindgen_ty_41 = :: std :: os :: raw :: c_uint ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_LEN : _bindgen_ty_42 = 1 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_START_ADDR : _bindgen_ty_42 = 64 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_SIG_ERR : _bindgen_ty_42 = 512 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_BSF_ENABLE : _bindgen_ty_42 = 4096 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_MKEY : _bindgen_ty_42 = 8192 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_QPN : _bindgen_ty_42 = 16384 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_ACCESS_LOCAL_WRITE : _bindgen_ty_42 = 262144 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_ACCESS_REMOTE_READ : _bindgen_ty_42 = 524288 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_ACCESS_REMOTE_WRITE : _bindgen_ty_42 = 1048576 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_ACCESS_ATOMIC : _bindgen_ty_42 = 2097152 ; pub const MLX5_WQE_UMR_CTRL_MKEY_MASK_FREE : _bindgen_ty_42 = 536870912 ; pub type _bindgen_ty_42 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5_wqe_umr_ctrl_seg { pub flags : u8 , pub rsvd0 : [u8 ; 3usize] , pub klm_octowords : __be16 , pub __bindgen_anon_1 : mlx5_wqe_umr_ctrl_seg__bindgen_ty_1 , pub mkey_mask : __be64 , pub rsvd1 : [u8 ; 32usize] , } # [repr (C)] # [derive (Copy , Clone)] pub union mlx5_wqe_umr_ctrl_seg__bindgen_ty_1 { pub translation_offset : __be16 , pub bsf_octowords : __be16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_umr_ctrl_seg__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5_wqe_umr_ctrl_seg__bindgen_ty_1 > () - 2usize] ; ["Alignment of mlx5_wqe_umr_ctrl_seg__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5_wqe_umr_ctrl_seg__bindgen_ty_1 > () - 2usize] ; ["Offset of field: mlx5_wqe_umr_ctrl_seg__bindgen_ty_1::translation_offset"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_ctrl_seg__bindgen_ty_1 , translation_offset) - 0usize] ; ["Offset of field: mlx5_wqe_umr_ctrl_seg__bindgen_ty_1::bsf_octowords"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_ctrl_seg__bindgen_ty_1 , bsf_octowords) - 0usize] ; } ; impl Default for mlx5_wqe_umr_ctrl_seg__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_umr_ctrl_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_umr_ctrl_seg > () - 48usize] ; ["Alignment of mlx5_wqe_umr_ctrl_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_umr_ctrl_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_umr_ctrl_seg::flags"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_ctrl_seg , flags) - 0usize] ; ["Offset of field: mlx5_wqe_umr_ctrl_seg::rsvd0"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_ctrl_seg , rsvd0) - 1usize] ; ["Offset of field: mlx5_wqe_umr_ctrl_seg::klm_octowords"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_ctrl_seg , klm_octowords) - 4usize] ; ["Offset of field: mlx5_wqe_umr_ctrl_seg::mkey_mask"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_ctrl_seg , mkey_mask) - 8usize] ; ["Offset of field: mlx5_wqe_umr_ctrl_seg::rsvd1"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_ctrl_seg , rsvd1) - 16usize] ; } ; impl Default for mlx5_wqe_umr_ctrl_seg { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_umr_klm_seg { pub byte_count : __be32 , pub mkey : __be32 , pub address : __be64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_umr_klm_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_umr_klm_seg > () - 16usize] ; ["Alignment of mlx5_wqe_umr_klm_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_umr_klm_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_umr_klm_seg::byte_count"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_klm_seg , byte_count) - 0usize] ; ["Offset of field: mlx5_wqe_umr_klm_seg::mkey"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_klm_seg , mkey) - 4usize] ; ["Offset of field: mlx5_wqe_umr_klm_seg::address"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_klm_seg , address) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union mlx5_wqe_umr_inline_seg { pub klm : mlx5_wqe_umr_klm_seg , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_umr_inline_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_umr_inline_seg > () - 16usize] ; ["Alignment of mlx5_wqe_umr_inline_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_umr_inline_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_umr_inline_seg::klm"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_inline_seg , klm) - 0usize] ; } ; impl Default for mlx5_wqe_umr_inline_seg { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5_wqe_umr_repeat_ent_seg { pub stride : __be16 , pub byte_count : __be16 , pub memkey : __be32 , pub va : __be64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_umr_repeat_ent_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_umr_repeat_ent_seg > () - 16usize] ; ["Alignment of mlx5_wqe_umr_repeat_ent_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_umr_repeat_ent_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_umr_repeat_ent_seg::stride"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_ent_seg , stride) - 0usize] ; ["Offset of field: mlx5_wqe_umr_repeat_ent_seg::byte_count"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_ent_seg , byte_count) - 2usize] ; ["Offset of field: mlx5_wqe_umr_repeat_ent_seg::memkey"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_ent_seg , memkey) - 4usize] ; ["Offset of field: mlx5_wqe_umr_repeat_ent_seg::va"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_ent_seg , va) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Default)] pub struct mlx5_wqe_umr_repeat_block_seg { pub byte_count : __be32 , pub op : __be32 , pub repeat_count : __be32 , pub reserved : __be16 , pub num_ent : __be16 , pub entries : __IncompleteArrayField < mlx5_wqe_umr_repeat_ent_seg > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_umr_repeat_block_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_umr_repeat_block_seg > () - 16usize] ; ["Alignment of mlx5_wqe_umr_repeat_block_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_umr_repeat_block_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_umr_repeat_block_seg::byte_count"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_block_seg , byte_count) - 0usize] ; ["Offset of field: mlx5_wqe_umr_repeat_block_seg::op"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_block_seg , op) - 4usize] ; ["Offset of field: mlx5_wqe_umr_repeat_block_seg::repeat_count"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_block_seg , repeat_count) - 8usize] ; ["Offset of field: mlx5_wqe_umr_repeat_block_seg::reserved"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_block_seg , reserved) - 12usize] ; ["Offset of field: mlx5_wqe_umr_repeat_block_seg::num_ent"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_block_seg , num_ent) - 14usize] ; ["Offset of field: mlx5_wqe_umr_repeat_block_seg::entries"] [:: std :: mem :: offset_of ! (mlx5_wqe_umr_repeat_block_seg , entries) - 16usize] ; } ; pub const MLX5_WQE_MKEY_CONTEXT_FREE : _bindgen_ty_43 = 64 ; pub type _bindgen_ty_43 = :: std :: os :: raw :: c_uint ; pub const MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_ATOMIC : _bindgen_ty_44 = 64 ; pub const MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_WRITE : _bindgen_ty_44 = 32 ; pub const MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_READ : _bindgen_ty_44 = 16 ; pub const MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_WRITE : _bindgen_ty_44 = 8 ; pub const MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_READ : _bindgen_ty_44 = 4 ; pub type _bindgen_ty_44 = :: std :: os :: raw :: c_uint ; # [repr (C)] pub struct mlx5_wqe_mkey_context_seg { pub free : u8 , pub reserved1 : u8 , pub access_flags : u8 , pub sf : u8 , pub qpn_mkey : __be32 , pub reserved2 : __be32 , pub flags_pd : __be32 , pub start_addr : __be64 , pub len : __be64 , pub bsf_octword_size : __be32 , pub reserved3 : [__be32 ; 4usize] , pub translations_octword_size : __be32 , pub reserved4 : [u8 ; 3usize] , pub log_page_size : u8 , pub reserved : __be32 , pub inseg : __IncompleteArrayField < mlx5_wqe_umr_inline_seg > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5_wqe_mkey_context_seg"] [:: std :: mem :: size_of :: < mlx5_wqe_mkey_context_seg > () - 64usize] ; ["Alignment of mlx5_wqe_mkey_context_seg"] [:: std :: mem :: align_of :: < mlx5_wqe_mkey_context_seg > () - 8usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::free"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , free) - 0usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::reserved1"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , reserved1) - 1usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::access_flags"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , access_flags) - 2usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::sf"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , sf) - 3usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::qpn_mkey"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , qpn_mkey) - 4usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::reserved2"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , reserved2) - 8usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::flags_pd"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , flags_pd) - 12usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::start_addr"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , start_addr) - 16usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::len"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , len) - 24usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::bsf_octword_size"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , bsf_octword_size) - 32usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::reserved3"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , reserved3) - 36usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::translations_octword_size"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , translations_octword_size) - 52usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::reserved4"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , reserved4) - 56usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::log_page_size"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , log_page_size) - 59usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::reserved"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , reserved) - 60usize] ; ["Offset of field: mlx5_wqe_mkey_context_seg::inseg"] [:: std :: mem :: offset_of ! (mlx5_wqe_mkey_context_seg , inseg) - 64usize] ; } ; impl Default for mlx5_wqe_mkey_context_seg { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub const MLX5DV_CTX_ATTR_BUF_ALLOCATORS : mlx5dv_set_ctx_attr_type = 1 ; pub type mlx5dv_set_ctx_attr_type = :: std :: os :: raw :: c_uint ; pub const MLX5_MMAP_GET_REGULAR_PAGES_CMD : _bindgen_ty_45 = 0 ; pub const MLX5_MMAP_GET_NC_PAGES_CMD : _bindgen_ty_45 = 3 ; pub type _bindgen_ty_45 = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_ctx_allocators { pub alloc : :: std :: option :: Option < unsafe extern "C" fn (size : usize , priv_data : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_void > , pub free : :: std :: option :: Option < unsafe extern "C" fn (ptr : * mut :: std :: os :: raw :: c_void , priv_data : * mut :: std :: os :: raw :: c_void) > , pub data : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_ctx_allocators"] [:: std :: mem :: size_of :: < mlx5dv_ctx_allocators > () - 24usize] ; ["Alignment of mlx5dv_ctx_allocators"] [:: std :: mem :: align_of :: < mlx5dv_ctx_allocators > () - 8usize] ; ["Offset of field: mlx5dv_ctx_allocators::alloc"] [:: std :: mem :: offset_of ! (mlx5dv_ctx_allocators , alloc) - 0usize] ; ["Offset of field: mlx5dv_ctx_allocators::free"] [:: std :: mem :: offset_of ! (mlx5dv_ctx_allocators , free) - 8usize] ; ["Offset of field: mlx5dv_ctx_allocators::data"] [:: std :: mem :: offset_of ! (mlx5dv_ctx_allocators , data) - 16usize] ; } ; impl Default for mlx5dv_ctx_allocators { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_set_context_attr (context : * mut ibv_context , type_ : mlx5dv_set_ctx_attr_type , attr : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_clock_info { pub nsec : u64 , pub last_cycles : u64 , pub frac : u64 , pub mult : u32 , pub shift : u32 , pub mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_clock_info"] [:: std :: mem :: size_of :: < mlx5dv_clock_info > () - 40usize] ; ["Alignment of mlx5dv_clock_info"] [:: std :: mem :: align_of :: < mlx5dv_clock_info > () - 8usize] ; ["Offset of field: mlx5dv_clock_info::nsec"] [:: std :: mem :: offset_of ! (mlx5dv_clock_info , nsec) - 0usize] ; ["Offset of field: mlx5dv_clock_info::last_cycles"] [:: std :: mem :: offset_of ! (mlx5dv_clock_info , last_cycles) - 8usize] ; ["Offset of field: mlx5dv_clock_info::frac"] [:: std :: mem :: offset_of ! (mlx5dv_clock_info , frac) - 16usize] ; ["Offset of field: mlx5dv_clock_info::mult"] [:: std :: mem :: offset_of ! (mlx5dv_clock_info , mult) - 24usize] ; ["Offset of field: mlx5dv_clock_info::shift"] [:: std :: mem :: offset_of ! (mlx5dv_clock_info , shift) - 28usize] ; ["Offset of field: mlx5dv_clock_info::mask"] [:: std :: mem :: offset_of ! (mlx5dv_clock_info , mask) - 32usize] ; } ; unsafe extern "C" { pub fn mlx5dv_get_clock_info (context : * mut ibv_context , clock_info : * mut mlx5dv_clock_info) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_CONTEXT_FLAGS_DEVX : mlx5dv_context_attr_flags = 1 ; pub type mlx5dv_context_attr_flags = :: std :: os :: raw :: c_uint ; pub const MLX5DV_CONTEXT_ATTR_MASK_FD_ARRAY : mlx5dv_context_attr_comp_mask = 1 ; pub type mlx5dv_context_attr_comp_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_context_attr { pub flags : u32 , pub comp_mask : u64 , pub fds : * mut ibv_fd_arr , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_context_attr"] [:: std :: mem :: size_of :: < mlx5dv_context_attr > () - 24usize] ; ["Alignment of mlx5dv_context_attr"] [:: std :: mem :: align_of :: < mlx5dv_context_attr > () - 8usize] ; ["Offset of field: mlx5dv_context_attr::flags"] [:: std :: mem :: offset_of ! (mlx5dv_context_attr , flags) - 0usize] ; ["Offset of field: mlx5dv_context_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_context_attr , comp_mask) - 8usize] ; ["Offset of field: mlx5dv_context_attr::fds"] [:: std :: mem :: offset_of ! (mlx5dv_context_attr , fds) - 16usize] ; } ; impl Default for mlx5dv_context_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_is_supported (device : * mut ibv_device) -> bool ; } pub const MLX5DV_VFIO_CTX_FLAGS_INIT_LINK_DOWN : mlx5dv_vfio_context_attr_flags = 1 ; pub type mlx5dv_vfio_context_attr_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_vfio_context_attr { pub pci_name : * const :: std :: os :: raw :: c_char , pub flags : u32 , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_vfio_context_attr"] [:: std :: mem :: size_of :: < mlx5dv_vfio_context_attr > () - 24usize] ; ["Alignment of mlx5dv_vfio_context_attr"] [:: std :: mem :: align_of :: < mlx5dv_vfio_context_attr > () - 8usize] ; ["Offset of field: mlx5dv_vfio_context_attr::pci_name"] [:: std :: mem :: offset_of ! (mlx5dv_vfio_context_attr , pci_name) - 0usize] ; ["Offset of field: mlx5dv_vfio_context_attr::flags"] [:: std :: mem :: offset_of ! (mlx5dv_vfio_context_attr , flags) - 8usize] ; ["Offset of field: mlx5dv_vfio_context_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_vfio_context_attr , comp_mask) - 16usize] ; } ; impl Default for mlx5dv_vfio_context_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_get_vfio_device_list (attr : * mut mlx5dv_vfio_context_attr) -> * mut * mut ibv_device ; } unsafe extern "C" { pub fn mlx5dv_vfio_get_events_fd (ibctx : * mut ibv_context) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_vfio_process_events (context : * mut ibv_context) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_open_device (device : * mut ibv_device , attr : * mut mlx5dv_context_attr) -> * mut ibv_context ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_devx_obj { _unused : [u8 ; 0] , } unsafe extern "C" { pub fn mlx5dv_devx_obj_create (context : * mut ibv_context , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> * mut mlx5dv_devx_obj ; } unsafe extern "C" { pub fn mlx5dv_devx_obj_query (obj : * mut mlx5dv_devx_obj , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_obj_modify (obj : * mut mlx5dv_devx_obj , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_obj_destroy (obj : * mut mlx5dv_devx_obj) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_general_cmd (context : * mut ibv_context , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_devx_umem { pub umem_id : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_devx_umem"] [:: std :: mem :: size_of :: < mlx5dv_devx_umem > () - 4usize] ; ["Alignment of mlx5dv_devx_umem"] [:: std :: mem :: align_of :: < mlx5dv_devx_umem > () - 4usize] ; ["Offset of field: mlx5dv_devx_umem::umem_id"] [:: std :: mem :: offset_of ! (mlx5dv_devx_umem , umem_id) - 0usize] ; } ; unsafe extern "C" { pub fn mlx5dv_devx_umem_reg (ctx : * mut ibv_context , addr : * mut :: std :: os :: raw :: c_void , size : usize , access : u32) -> * mut mlx5dv_devx_umem ; } pub const MLX5DV_UMEM_MASK_DMABUF : mlx5dv_devx_umem_in_mask = 1 ; pub type mlx5dv_devx_umem_in_mask = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_devx_umem_in { pub addr : * mut :: std :: os :: raw :: c_void , pub size : usize , pub access : u32 , pub pgsz_bitmap : u64 , pub comp_mask : u64 , pub dmabuf_fd : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_devx_umem_in"] [:: std :: mem :: size_of :: < mlx5dv_devx_umem_in > () - 48usize] ; ["Alignment of mlx5dv_devx_umem_in"] [:: std :: mem :: align_of :: < mlx5dv_devx_umem_in > () - 8usize] ; ["Offset of field: mlx5dv_devx_umem_in::addr"] [:: std :: mem :: offset_of ! (mlx5dv_devx_umem_in , addr) - 0usize] ; ["Offset of field: mlx5dv_devx_umem_in::size"] [:: std :: mem :: offset_of ! (mlx5dv_devx_umem_in , size) - 8usize] ; ["Offset of field: mlx5dv_devx_umem_in::access"] [:: std :: mem :: offset_of ! (mlx5dv_devx_umem_in , access) - 16usize] ; ["Offset of field: mlx5dv_devx_umem_in::pgsz_bitmap"] [:: std :: mem :: offset_of ! (mlx5dv_devx_umem_in , pgsz_bitmap) - 24usize] ; ["Offset of field: mlx5dv_devx_umem_in::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_devx_umem_in , comp_mask) - 32usize] ; ["Offset of field: mlx5dv_devx_umem_in::dmabuf_fd"] [:: std :: mem :: offset_of ! (mlx5dv_devx_umem_in , dmabuf_fd) - 40usize] ; } ; impl Default for mlx5dv_devx_umem_in { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_devx_umem_reg_ex (ctx : * mut ibv_context , umem_in : * mut mlx5dv_devx_umem_in) -> * mut mlx5dv_devx_umem ; } unsafe extern "C" { pub fn mlx5dv_devx_umem_dereg (umem : * mut mlx5dv_devx_umem) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_devx_uar { pub reg_addr : * mut :: std :: os :: raw :: c_void , pub base_addr : * mut :: std :: os :: raw :: c_void , pub page_id : u32 , pub mmap_off : off_t , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_devx_uar"] [:: std :: mem :: size_of :: < mlx5dv_devx_uar > () - 40usize] ; ["Alignment of mlx5dv_devx_uar"] [:: std :: mem :: align_of :: < mlx5dv_devx_uar > () - 8usize] ; ["Offset of field: mlx5dv_devx_uar::reg_addr"] [:: std :: mem :: offset_of ! (mlx5dv_devx_uar , reg_addr) - 0usize] ; ["Offset of field: mlx5dv_devx_uar::base_addr"] [:: std :: mem :: offset_of ! (mlx5dv_devx_uar , base_addr) - 8usize] ; ["Offset of field: mlx5dv_devx_uar::page_id"] [:: std :: mem :: offset_of ! (mlx5dv_devx_uar , page_id) - 16usize] ; ["Offset of field: mlx5dv_devx_uar::mmap_off"] [:: std :: mem :: offset_of ! (mlx5dv_devx_uar , mmap_off) - 24usize] ; ["Offset of field: mlx5dv_devx_uar::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_devx_uar , comp_mask) - 32usize] ; } ; impl Default for mlx5dv_devx_uar { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_devx_alloc_uar (context : * mut ibv_context , flags : u32) -> * mut mlx5dv_devx_uar ; } unsafe extern "C" { pub fn mlx5dv_devx_free_uar (devx_uar : * mut mlx5dv_devx_uar) ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_var { pub page_id : u32 , pub length : u32 , pub mmap_off : off_t , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_var"] [:: std :: mem :: size_of :: < mlx5dv_var > () - 24usize] ; ["Alignment of mlx5dv_var"] [:: std :: mem :: align_of :: < mlx5dv_var > () - 8usize] ; ["Offset of field: mlx5dv_var::page_id"] [:: std :: mem :: offset_of ! (mlx5dv_var , page_id) - 0usize] ; ["Offset of field: mlx5dv_var::length"] [:: std :: mem :: offset_of ! (mlx5dv_var , length) - 4usize] ; ["Offset of field: mlx5dv_var::mmap_off"] [:: std :: mem :: offset_of ! (mlx5dv_var , mmap_off) - 8usize] ; ["Offset of field: mlx5dv_var::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_var , comp_mask) - 16usize] ; } ; unsafe extern "C" { pub fn mlx5dv_alloc_var (context : * mut ibv_context , flags : u32) -> * mut mlx5dv_var ; } unsafe extern "C" { pub fn mlx5dv_free_var (dv_var : * mut mlx5dv_var) ; } unsafe extern "C" { pub fn mlx5dv_devx_query_eqn (context : * mut ibv_context , vector : u32 , eqn : * mut u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_cq_query (cq : * mut ibv_cq , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_cq_modify (cq : * mut ibv_cq , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_qp_query (qp : * mut ibv_qp , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_qp_modify (qp : * mut ibv_qp , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_srq_query (srq : * mut ibv_srq , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_srq_modify (srq : * mut ibv_srq , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_wq_query (wq : * mut ibv_wq , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_wq_modify (wq : * mut ibv_wq , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_ind_tbl_query (ind_tbl : * mut ibv_rwq_ind_table , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_ind_tbl_modify (ind_tbl : * mut ibv_rwq_ind_table , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_devx_cmd_comp { pub fd : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_devx_cmd_comp"] [:: std :: mem :: size_of :: < mlx5dv_devx_cmd_comp > () - 4usize] ; ["Alignment of mlx5dv_devx_cmd_comp"] [:: std :: mem :: align_of :: < mlx5dv_devx_cmd_comp > () - 4usize] ; ["Offset of field: mlx5dv_devx_cmd_comp::fd"] [:: std :: mem :: offset_of ! (mlx5dv_devx_cmd_comp , fd) - 0usize] ; } ; unsafe extern "C" { pub fn mlx5dv_devx_create_cmd_comp (context : * mut ibv_context) -> * mut mlx5dv_devx_cmd_comp ; } unsafe extern "C" { pub fn mlx5dv_devx_destroy_cmd_comp (cmd_comp : * mut mlx5dv_devx_cmd_comp) ; } unsafe extern "C" { pub fn mlx5dv_devx_obj_query_async (obj : * mut mlx5dv_devx_obj , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , outlen : usize , wr_id : u64 , cmd_comp : * mut mlx5dv_devx_cmd_comp) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_get_async_cmd_comp (cmd_comp : * mut mlx5dv_devx_cmd_comp , cmd_resp : * mut mlx5_ib_uapi_devx_async_cmd_hdr , cmd_resp_len : usize) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_devx_event_channel { pub fd : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_devx_event_channel"] [:: std :: mem :: size_of :: < mlx5dv_devx_event_channel > () - 4usize] ; ["Alignment of mlx5dv_devx_event_channel"] [:: std :: mem :: align_of :: < mlx5dv_devx_event_channel > () - 4usize] ; ["Offset of field: mlx5dv_devx_event_channel::fd"] [:: std :: mem :: offset_of ! (mlx5dv_devx_event_channel , fd) - 0usize] ; } ; unsafe extern "C" { pub fn mlx5dv_devx_create_event_channel (context : * mut ibv_context , flags : mlx5_ib_uapi_devx_create_event_channel_flags) -> * mut mlx5dv_devx_event_channel ; } unsafe extern "C" { pub fn mlx5dv_devx_destroy_event_channel (event_channel : * mut mlx5dv_devx_event_channel) ; } unsafe extern "C" { pub fn mlx5dv_devx_subscribe_devx_event (event_channel : * mut mlx5dv_devx_event_channel , obj : * mut mlx5dv_devx_obj , events_sz : u16 , events_num : * mut u16 , cookie : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_subscribe_devx_event_fd (event_channel : * mut mlx5dv_devx_event_channel , fd : :: std :: os :: raw :: c_int , obj : * mut mlx5dv_devx_obj , event_num : u16) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_devx_get_event (event_channel : * mut mlx5dv_devx_event_channel , event_data : * mut mlx5_ib_uapi_devx_async_event_hdr , event_resp_len : usize) -> isize ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dr_domain { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dr_table { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dr_matcher { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dr_rule { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dr_action { _unused : [u8 ; 0] , } pub const MLX5DV_DR_DOMAIN_TYPE_NIC_RX : mlx5dv_dr_domain_type = 0 ; pub const MLX5DV_DR_DOMAIN_TYPE_NIC_TX : mlx5dv_dr_domain_type = 1 ; pub const MLX5DV_DR_DOMAIN_TYPE_FDB : mlx5dv_dr_domain_type = 2 ; pub type mlx5dv_dr_domain_type = :: std :: os :: raw :: c_uint ; pub const MLX5DV_DR_DOMAIN_SYNC_FLAGS_SW : mlx5dv_dr_domain_sync_flags = 1 ; pub const MLX5DV_DR_DOMAIN_SYNC_FLAGS_HW : mlx5dv_dr_domain_sync_flags = 2 ; pub const MLX5DV_DR_DOMAIN_SYNC_FLAGS_MEM : mlx5dv_dr_domain_sync_flags = 4 ; pub type mlx5dv_dr_domain_sync_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dr_flow_meter_attr { pub next_table : * mut mlx5dv_dr_table , pub active : u8 , pub reg_c_index : u8 , pub flow_meter_parameter_sz : usize , pub flow_meter_parameter : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dr_flow_meter_attr"] [:: std :: mem :: size_of :: < mlx5dv_dr_flow_meter_attr > () - 32usize] ; ["Alignment of mlx5dv_dr_flow_meter_attr"] [:: std :: mem :: align_of :: < mlx5dv_dr_flow_meter_attr > () - 8usize] ; ["Offset of field: mlx5dv_dr_flow_meter_attr::next_table"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_meter_attr , next_table) - 0usize] ; ["Offset of field: mlx5dv_dr_flow_meter_attr::active"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_meter_attr , active) - 8usize] ; ["Offset of field: mlx5dv_dr_flow_meter_attr::reg_c_index"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_meter_attr , reg_c_index) - 9usize] ; ["Offset of field: mlx5dv_dr_flow_meter_attr::flow_meter_parameter_sz"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_meter_attr , flow_meter_parameter_sz) - 16usize] ; ["Offset of field: mlx5dv_dr_flow_meter_attr::flow_meter_parameter"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_meter_attr , flow_meter_parameter) - 24usize] ; } ; impl Default for mlx5dv_dr_flow_meter_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dr_flow_sampler_attr { pub sample_ratio : u32 , pub default_next_table : * mut mlx5dv_dr_table , pub num_sample_actions : u32 , pub sample_actions : * mut * mut mlx5dv_dr_action , pub action : __be64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dr_flow_sampler_attr"] [:: std :: mem :: size_of :: < mlx5dv_dr_flow_sampler_attr > () - 40usize] ; ["Alignment of mlx5dv_dr_flow_sampler_attr"] [:: std :: mem :: align_of :: < mlx5dv_dr_flow_sampler_attr > () - 8usize] ; ["Offset of field: mlx5dv_dr_flow_sampler_attr::sample_ratio"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_sampler_attr , sample_ratio) - 0usize] ; ["Offset of field: mlx5dv_dr_flow_sampler_attr::default_next_table"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_sampler_attr , default_next_table) - 8usize] ; ["Offset of field: mlx5dv_dr_flow_sampler_attr::num_sample_actions"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_sampler_attr , num_sample_actions) - 16usize] ; ["Offset of field: mlx5dv_dr_flow_sampler_attr::sample_actions"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_sampler_attr , sample_actions) - 24usize] ; ["Offset of field: mlx5dv_dr_flow_sampler_attr::action"] [:: std :: mem :: offset_of ! (mlx5dv_dr_flow_sampler_attr , action) - 32usize] ; } ; impl Default for mlx5dv_dr_flow_sampler_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_dr_domain_create (ctx : * mut ibv_context , type_ : mlx5dv_dr_domain_type) -> * mut mlx5dv_dr_domain ; } unsafe extern "C" { pub fn mlx5dv_dr_domain_destroy (domain : * mut mlx5dv_dr_domain) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dr_domain_sync (domain : * mut mlx5dv_dr_domain , flags : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dr_domain_set_reclaim_device_memory (dmn : * mut mlx5dv_dr_domain , enable : bool) ; } unsafe extern "C" { pub fn mlx5dv_dr_domain_allow_duplicate_rules (domain : * mut mlx5dv_dr_domain , allow : bool) ; } unsafe extern "C" { pub fn mlx5dv_dr_table_create (domain : * mut mlx5dv_dr_domain , level : u32) -> * mut mlx5dv_dr_table ; } unsafe extern "C" { pub fn mlx5dv_dr_table_destroy (table : * mut mlx5dv_dr_table) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dr_matcher_create (table : * mut mlx5dv_dr_table , priority : u16 , match_criteria_enable : u8 , mask : * mut mlx5dv_flow_match_parameters) -> * mut mlx5dv_dr_matcher ; } unsafe extern "C" { pub fn mlx5dv_dr_matcher_destroy (matcher : * mut mlx5dv_dr_matcher) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_DR_MATCHER_LAYOUT_RESIZABLE : mlx5dv_dr_matcher_layout_flags = 1 ; pub const MLX5DV_DR_MATCHER_LAYOUT_NUM_RULE : mlx5dv_dr_matcher_layout_flags = 2 ; pub type mlx5dv_dr_matcher_layout_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_dr_matcher_layout { pub flags : u32 , pub log_num_of_rules_hint : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dr_matcher_layout"] [:: std :: mem :: size_of :: < mlx5dv_dr_matcher_layout > () - 8usize] ; ["Alignment of mlx5dv_dr_matcher_layout"] [:: std :: mem :: align_of :: < mlx5dv_dr_matcher_layout > () - 4usize] ; ["Offset of field: mlx5dv_dr_matcher_layout::flags"] [:: std :: mem :: offset_of ! (mlx5dv_dr_matcher_layout , flags) - 0usize] ; ["Offset of field: mlx5dv_dr_matcher_layout::log_num_of_rules_hint"] [:: std :: mem :: offset_of ! (mlx5dv_dr_matcher_layout , log_num_of_rules_hint) - 4usize] ; } ; unsafe extern "C" { pub fn mlx5dv_dr_matcher_set_layout (matcher : * mut mlx5dv_dr_matcher , layout : * mut mlx5dv_dr_matcher_layout) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dr_rule_create (matcher : * mut mlx5dv_dr_matcher , value : * mut mlx5dv_flow_match_parameters , num_actions : usize , actions : * mut * mut mlx5dv_dr_action) -> * mut mlx5dv_dr_rule ; } unsafe extern "C" { pub fn mlx5dv_dr_rule_destroy (rule : * mut mlx5dv_dr_rule) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_DR_ACTION_FLAGS_ROOT_LEVEL : mlx5dv_dr_action_flags = 1 ; pub type mlx5dv_dr_action_flags = :: std :: os :: raw :: c_uint ; unsafe extern "C" { pub fn mlx5dv_dr_action_create_dest_ibv_qp (ibqp : * mut ibv_qp) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_dest_table (table : * mut mlx5dv_dr_table) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_dest_vport (domain : * mut mlx5dv_dr_domain , vport : u32) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_dest_ib_port (domain : * mut mlx5dv_dr_domain , ib_port : u32) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_dest_devx_tir (devx_obj : * mut mlx5dv_devx_obj) -> * mut mlx5dv_dr_action ; } pub const MLX5DV_DR_ACTION_DEST : mlx5dv_dr_action_dest_type = 0 ; pub const MLX5DV_DR_ACTION_DEST_REFORMAT : mlx5dv_dr_action_dest_type = 1 ; pub type mlx5dv_dr_action_dest_type = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_dr_action_dest_reformat { pub reformat : * mut mlx5dv_dr_action , pub dest : * mut mlx5dv_dr_action , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dr_action_dest_reformat"] [:: std :: mem :: size_of :: < mlx5dv_dr_action_dest_reformat > () - 16usize] ; ["Alignment of mlx5dv_dr_action_dest_reformat"] [:: std :: mem :: align_of :: < mlx5dv_dr_action_dest_reformat > () - 8usize] ; ["Offset of field: mlx5dv_dr_action_dest_reformat::reformat"] [:: std :: mem :: offset_of ! (mlx5dv_dr_action_dest_reformat , reformat) - 0usize] ; ["Offset of field: mlx5dv_dr_action_dest_reformat::dest"] [:: std :: mem :: offset_of ! (mlx5dv_dr_action_dest_reformat , dest) - 8usize] ; } ; impl Default for mlx5dv_dr_action_dest_reformat { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Copy , Clone)] pub struct mlx5dv_dr_action_dest_attr { pub type_ : mlx5dv_dr_action_dest_type , pub __bindgen_anon_1 : mlx5dv_dr_action_dest_attr__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union mlx5dv_dr_action_dest_attr__bindgen_ty_1 { pub dest : * mut mlx5dv_dr_action , pub dest_reformat : * mut mlx5dv_dr_action_dest_reformat , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dr_action_dest_attr__bindgen_ty_1"] [:: std :: mem :: size_of :: < mlx5dv_dr_action_dest_attr__bindgen_ty_1 > () - 8usize] ; ["Alignment of mlx5dv_dr_action_dest_attr__bindgen_ty_1"] [:: std :: mem :: align_of :: < mlx5dv_dr_action_dest_attr__bindgen_ty_1 > () - 8usize] ; ["Offset of field: mlx5dv_dr_action_dest_attr__bindgen_ty_1::dest"] [:: std :: mem :: offset_of ! (mlx5dv_dr_action_dest_attr__bindgen_ty_1 , dest) - 0usize] ; ["Offset of field: mlx5dv_dr_action_dest_attr__bindgen_ty_1::dest_reformat"] [:: std :: mem :: offset_of ! (mlx5dv_dr_action_dest_attr__bindgen_ty_1 , dest_reformat) - 0usize] ; } ; impl Default for mlx5dv_dr_action_dest_attr__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_dr_action_dest_attr"] [:: std :: mem :: size_of :: < mlx5dv_dr_action_dest_attr > () - 16usize] ; ["Alignment of mlx5dv_dr_action_dest_attr"] [:: std :: mem :: align_of :: < mlx5dv_dr_action_dest_attr > () - 8usize] ; ["Offset of field: mlx5dv_dr_action_dest_attr::type_"] [:: std :: mem :: offset_of ! (mlx5dv_dr_action_dest_attr , type_) - 0usize] ; } ; impl Default for mlx5dv_dr_action_dest_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_dr_action_create_dest_array (domain : * mut mlx5dv_dr_domain , num_dest : usize , dests : * mut * mut mlx5dv_dr_action_dest_attr) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_drop () -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_default_miss () -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_tag (tag_value : u32) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_flow_counter (devx_obj : * mut mlx5dv_devx_obj , offset : u32) -> * mut mlx5dv_dr_action ; } pub const MLX5DV_DR_ACTION_FLAGS_ASO_FIRST_HIT_SET : mlx5dv_dr_action_aso_first_hit_flags = 1 ; pub type mlx5dv_dr_action_aso_first_hit_flags = :: std :: os :: raw :: c_uint ; pub const MLX5DV_DR_ACTION_FLAGS_ASO_FLOW_METER_RED : mlx5dv_dr_action_aso_flow_meter_flags = 1 ; pub const MLX5DV_DR_ACTION_FLAGS_ASO_FLOW_METER_YELLOW : mlx5dv_dr_action_aso_flow_meter_flags = 2 ; pub const MLX5DV_DR_ACTION_FLAGS_ASO_FLOW_METER_GREEN : mlx5dv_dr_action_aso_flow_meter_flags = 4 ; pub const MLX5DV_DR_ACTION_FLAGS_ASO_FLOW_METER_UNDEFINED : mlx5dv_dr_action_aso_flow_meter_flags = 8 ; pub type mlx5dv_dr_action_aso_flow_meter_flags = :: std :: os :: raw :: c_uint ; pub const MLX5DV_DR_ACTION_FLAGS_ASO_CT_DIRECTION_INITIATOR : mlx5dv_dr_action_aso_ct_flags = 1 ; pub const MLX5DV_DR_ACTION_FLAGS_ASO_CT_DIRECTION_RESPONDER : mlx5dv_dr_action_aso_ct_flags = 2 ; pub type mlx5dv_dr_action_aso_ct_flags = :: std :: os :: raw :: c_uint ; unsafe extern "C" { pub fn mlx5dv_dr_action_create_aso (domain : * mut mlx5dv_dr_domain , devx_obj : * mut mlx5dv_devx_obj , offset : u32 , flags : u32 , return_reg_c : u8) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_modify_aso (action : * mut mlx5dv_dr_action , offset : u32 , flags : u32 , return_reg_c : u8) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_packet_reformat (domain : * mut mlx5dv_dr_domain , flags : u32 , reformat_type : mlx5_ib_uapi_flow_action_packet_reformat_type , data_sz : usize , data : * mut :: std :: os :: raw :: c_void) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_modify_header (domain : * mut mlx5dv_dr_domain , flags : u32 , actions_sz : usize , actions : * mut __be64) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_flow_meter (attr : * mut mlx5dv_dr_flow_meter_attr) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_modify_flow_meter (action : * mut mlx5dv_dr_action , attr : * mut mlx5dv_dr_flow_meter_attr , modify_field_select : __be64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_flow_sampler (attr : * mut mlx5dv_dr_flow_sampler_attr) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_pop_vlan () -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_push_vlan (domain : * mut mlx5dv_dr_domain , vlan_hdr : __be32) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_create_dest_root_table (table : * mut mlx5dv_dr_table , priority : u16) -> * mut mlx5dv_dr_action ; } unsafe extern "C" { pub fn mlx5dv_dr_action_destroy (action : * mut mlx5dv_dr_action) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dump_dr_domain (fout : * mut FILE , domain : * mut mlx5dv_dr_domain) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dump_dr_table (fout : * mut FILE , table : * mut mlx5dv_dr_table) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dump_dr_matcher (fout : * mut FILE , matcher : * mut mlx5dv_dr_matcher) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dump_dr_rule (fout : * mut FILE , rule : * mut mlx5dv_dr_rule) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_pp { pub index : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_pp"] [:: std :: mem :: size_of :: < mlx5dv_pp > () - 2usize] ; ["Alignment of mlx5dv_pp"] [:: std :: mem :: align_of :: < mlx5dv_pp > () - 2usize] ; ["Offset of field: mlx5dv_pp::index"] [:: std :: mem :: offset_of ! (mlx5dv_pp , index) - 0usize] ; } ; unsafe extern "C" { pub fn mlx5dv_pp_alloc (context : * mut ibv_context , pp_context_sz : usize , pp_context : * const :: std :: os :: raw :: c_void , flags : u32) -> * mut mlx5dv_pp ; } unsafe extern "C" { pub fn mlx5dv_pp_free (pp : * mut mlx5dv_pp) ; } unsafe extern "C" { pub fn mlx5dv_query_qp_lag_port (qp : * mut ibv_qp , port_num : * mut u8 , active_port_num : * mut u8) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_modify_qp_lag_port (qp : * mut ibv_qp , port_num : u8) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_modify_qp_udp_sport (qp : * mut ibv_qp , udp_sport : u16) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dci_stream_id_reset (qp : * mut ibv_qp , stream_id : u16) -> :: std :: os :: raw :: c_int ; } pub const MLX5DV_SCHED_ELEM_ATTR_FLAGS_BW_SHARE : mlx5dv_sched_elem_attr_flags = 1 ; pub const MLX5DV_SCHED_ELEM_ATTR_FLAGS_MAX_AVG_BW : mlx5dv_sched_elem_attr_flags = 2 ; pub type mlx5dv_sched_elem_attr_flags = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_sched_attr { pub parent : * mut mlx5dv_sched_node , pub flags : u32 , pub bw_share : u32 , pub max_avg_bw : u32 , pub comp_mask : u64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_sched_attr"] [:: std :: mem :: size_of :: < mlx5dv_sched_attr > () - 32usize] ; ["Alignment of mlx5dv_sched_attr"] [:: std :: mem :: align_of :: < mlx5dv_sched_attr > () - 8usize] ; ["Offset of field: mlx5dv_sched_attr::parent"] [:: std :: mem :: offset_of ! (mlx5dv_sched_attr , parent) - 0usize] ; ["Offset of field: mlx5dv_sched_attr::flags"] [:: std :: mem :: offset_of ! (mlx5dv_sched_attr , flags) - 8usize] ; ["Offset of field: mlx5dv_sched_attr::bw_share"] [:: std :: mem :: offset_of ! (mlx5dv_sched_attr , bw_share) - 12usize] ; ["Offset of field: mlx5dv_sched_attr::max_avg_bw"] [:: std :: mem :: offset_of ! (mlx5dv_sched_attr , max_avg_bw) - 16usize] ; ["Offset of field: mlx5dv_sched_attr::comp_mask"] [:: std :: mem :: offset_of ! (mlx5dv_sched_attr , comp_mask) - 24usize] ; } ; impl Default for mlx5dv_sched_attr { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_sched_node { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_sched_leaf { _unused : [u8 ; 0] , } unsafe extern "C" { pub fn mlx5dv_sched_node_create (context : * mut ibv_context , sched_attr : * const mlx5dv_sched_attr) -> * mut mlx5dv_sched_node ; } unsafe extern "C" { pub fn mlx5dv_sched_leaf_create (context : * mut ibv_context , sched_attr : * const mlx5dv_sched_attr) -> * mut mlx5dv_sched_leaf ; } unsafe extern "C" { pub fn mlx5dv_sched_node_modify (node : * mut mlx5dv_sched_node , sched_attr : * const mlx5dv_sched_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_sched_leaf_modify (leaf : * mut mlx5dv_sched_leaf , sched_attr : * const mlx5dv_sched_attr) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_sched_node_destroy (node : * mut mlx5dv_sched_node) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_sched_leaf_destroy (leaf : * mut mlx5dv_sched_leaf) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_modify_qp_sched_elem (qp : * mut ibv_qp , requestor : * const mlx5dv_sched_leaf , responder : * const mlx5dv_sched_leaf) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_reserved_qpn_alloc (ctx : * mut ibv_context , qpn : * mut u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_reserved_qpn_dealloc (ctx : * mut ibv_context , qpn : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dr_aso_other_domain_link (devx_obj : * mut mlx5dv_devx_obj , peer_dmn : * mut mlx5dv_dr_domain , dmn : * mut mlx5dv_dr_domain , flags : u32 , return_reg_c : u8) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn mlx5dv_dr_aso_other_domain_unlink (devx_obj : * mut mlx5dv_devx_obj , dmn : * mut mlx5dv_dr_domain) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct mlx5dv_devx_msi_vector { pub vector : :: std :: os :: raw :: c_int , pub fd : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_devx_msi_vector"] [:: std :: mem :: size_of :: < mlx5dv_devx_msi_vector > () - 8usize] ; ["Alignment of mlx5dv_devx_msi_vector"] [:: std :: mem :: align_of :: < mlx5dv_devx_msi_vector > () - 4usize] ; ["Offset of field: mlx5dv_devx_msi_vector::vector"] [:: std :: mem :: offset_of ! (mlx5dv_devx_msi_vector , vector) - 0usize] ; ["Offset of field: mlx5dv_devx_msi_vector::fd"] [:: std :: mem :: offset_of ! (mlx5dv_devx_msi_vector , fd) - 4usize] ; } ; unsafe extern "C" { pub fn mlx5dv_devx_alloc_msi_vector (ibctx : * mut ibv_context) -> * mut mlx5dv_devx_msi_vector ; } unsafe extern "C" { pub fn mlx5dv_devx_free_msi_vector (msi : * mut mlx5dv_devx_msi_vector) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct mlx5dv_devx_eq { pub vaddr : * mut :: std :: os :: raw :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of mlx5dv_devx_eq"] [:: std :: mem :: size_of :: < mlx5dv_devx_eq > () - 8usize] ; ["Alignment of mlx5dv_devx_eq"] [:: std :: mem :: align_of :: < mlx5dv_devx_eq > () - 8usize] ; ["Offset of field: mlx5dv_devx_eq::vaddr"] [:: std :: mem :: offset_of ! (mlx5dv_devx_eq , vaddr) - 0usize] ; } ; impl Default for mlx5dv_devx_eq { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn mlx5dv_devx_create_eq (ibctx : * mut ibv_context , in_ : * const :: std :: os :: raw :: c_void , inlen : usize , out : * mut :: std :: os :: raw :: c_void , outlen : usize) -> * mut mlx5dv_devx_eq ; } unsafe extern "C" { pub fn mlx5dv_devx_destroy_eq (eq : * mut mlx5dv_devx_eq) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_set_mem_location_id (location : * mut CUmemLocation , id : :: std :: os :: raw :: c_int) ; } unsafe extern "C" { pub fn rdmaxcel_cuMemGetHandleForAddressRange (handle : * mut :: std :: os :: raw :: c_int , dptr : CUdeviceptr , size : usize , handleType : CUmemRangeHandleType , flags : :: std :: os :: raw :: c_ulonglong) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemGetAddressRange (base : * mut CUdeviceptr , size : * mut usize , dptr : CUdeviceptr) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemGetAllocationGranularity (granularity : * mut usize , prop : * const CUmemAllocationProp , option : CUmemAllocationGranularity_flags) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemCreate (handle : * mut CUmemGenericAllocationHandle , size : usize , prop : * const CUmemAllocationProp , flags : :: std :: os :: raw :: c_ulonglong) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemAddressReserve (ptr : * mut CUdeviceptr , size : usize , alignment : usize , addr : CUdeviceptr , flags : :: std :: os :: raw :: c_ulonglong) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemMap (ptr : CUdeviceptr , size : usize , offset : usize , handle : CUmemGenericAllocationHandle , flags : :: std :: os :: raw :: c_ulonglong) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemSetAccess (ptr : CUdeviceptr , size : usize , desc : * const CUmemAccessDesc , count : usize) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemUnmap (ptr : CUdeviceptr , size : usize) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemAddressFree (ptr : CUdeviceptr , size : usize) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemRelease (handle : CUmemGenericAllocationHandle) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemcpyHtoD_v2 (dstDevice : CUdeviceptr , srcHost : * const :: std :: os :: raw :: c_void , ByteCount : usize) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemcpyDtoH_v2 (dstHost : * mut :: std :: os :: raw :: c_void , srcDevice : CUdeviceptr , ByteCount : usize) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuMemsetD8_v2 (dstDevice : CUdeviceptr , uc : :: std :: os :: raw :: c_uchar , N : usize) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuPointerGetAttribute (data : * mut :: std :: os :: raw :: c_void , attribute : CUpointer_attribute , ptr : CUdeviceptr) -> CUresult ; } unsafe extern "C" { pub fn ensure_cuda_driver_loaded () -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_cuInit (Flags : :: std :: os :: raw :: c_uint) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuDeviceGet (device : * mut CUdevice , ordinal : :: std :: os :: raw :: c_int) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuDeviceGetCount (count : * mut :: std :: os :: raw :: c_int) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuDeviceGetAttribute (pi : * mut :: std :: os :: raw :: c_int , attrib : CUdevice_attribute , dev : CUdevice) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuCtxCreate_v2 (pctx : * mut CUcontext , flags : :: std :: os :: raw :: c_uint , dev : CUdevice) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuDevicePrimaryCtxRetain (pctx : * mut CUcontext , dev : CUdevice) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuDevicePrimaryCtxRelease (dev : CUdevice) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuCtxGetCurrent (pctx : * mut CUcontext) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuCtxSetCurrent (ctx : CUcontext) -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuCtxSynchronize () -> CUresult ; } unsafe extern "C" { pub fn rdmaxcel_cuGetErrorString (error : CUresult , pStr : * mut * const :: std :: os :: raw :: c_char) -> CUresult ; } pub const CQE_POLL_ERROR : cqe_poll_result_t = - 1 ; pub const CQE_POLL_FALSE : cqe_poll_result_t = 0 ; pub const CQE_POLL_TRUE : cqe_poll_result_t = 1 ; pub type cqe_poll_result_t = :: std :: os :: raw :: c_int ; pub const RDMA_QP_TYPE_STANDARD : rdma_qp_type_t = 1 ; pub const RDMA_QP_TYPE_MLX5DV : rdma_qp_type_t = 2 ; pub const RDMA_QP_TYPE_EFA : rdma_qp_type_t = 3 ; pub type rdma_qp_type_t = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct rdma_segment_info_t { pub phys_address : usize , pub phys_size : usize , pub device : i32 , pub is_expandable : :: std :: os :: raw :: c_int , pub lkey : u32 , pub rkey : u32 , pub mr_size : usize , pub mr_addr : usize , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of rdma_segment_info_t"] [:: std :: mem :: size_of :: < rdma_segment_info_t > () - 48usize] ; ["Alignment of rdma_segment_info_t"] [:: std :: mem :: align_of :: < rdma_segment_info_t > () - 8usize] ; ["Offset of field: rdma_segment_info_t::phys_address"] [:: std :: mem :: offset_of ! (rdma_segment_info_t , phys_address) - 0usize] ; ["Offset of field: rdma_segment_info_t::phys_size"] [:: std :: mem :: offset_of ! (rdma_segment_info_t , phys_size) - 8usize] ; ["Offset of field: rdma_segment_info_t::device"] [:: std :: mem :: offset_of ! (rdma_segment_info_t , device) - 16usize] ; ["Offset of field: rdma_segment_info_t::is_expandable"] [:: std :: mem :: offset_of ! (rdma_segment_info_t , is_expandable) - 20usize] ; ["Offset of field: rdma_segment_info_t::lkey"] [:: std :: mem :: offset_of ! (rdma_segment_info_t , lkey) - 24usize] ; ["Offset of field: rdma_segment_info_t::rkey"] [:: std :: mem :: offset_of ! (rdma_segment_info_t , rkey) - 28usize] ; ["Offset of field: rdma_segment_info_t::mr_size"] [:: std :: mem :: offset_of ! (rdma_segment_info_t , mr_size) - 32usize] ; ["Offset of field: rdma_segment_info_t::mr_addr"] [:: std :: mem :: offset_of ! (rdma_segment_info_t , mr_addr) - 40usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wqe_params_t { pub laddr : usize , pub lkey : u32 , pub length : usize , pub wr_id : u64 , pub signaled : bool , pub op_type : u32 , pub raddr : usize , pub rkey : u32 , pub qp_num : u32 , pub buf : * mut u8 , pub dbrec : * mut u32 , pub wqe_cnt : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wqe_params_t"] [:: std :: mem :: size_of :: < wqe_params_t > () - 80usize] ; ["Alignment of wqe_params_t"] [:: std :: mem :: align_of :: < wqe_params_t > () - 8usize] ; ["Offset of field: wqe_params_t::laddr"] [:: std :: mem :: offset_of ! (wqe_params_t , laddr) - 0usize] ; ["Offset of field: wqe_params_t::lkey"] [:: std :: mem :: offset_of ! (wqe_params_t , lkey) - 8usize] ; ["Offset of field: wqe_params_t::length"] [:: std :: mem :: offset_of ! (wqe_params_t , length) - 16usize] ; ["Offset of field: wqe_params_t::wr_id"] [:: std :: mem :: offset_of ! (wqe_params_t , wr_id) - 24usize] ; ["Offset of field: wqe_params_t::signaled"] [:: std :: mem :: offset_of ! (wqe_params_t , signaled) - 32usize] ; ["Offset of field: wqe_params_t::op_type"] [:: std :: mem :: offset_of ! (wqe_params_t , op_type) - 36usize] ; ["Offset of field: wqe_params_t::raddr"] [:: std :: mem :: offset_of ! (wqe_params_t , raddr) - 40usize] ; ["Offset of field: wqe_params_t::rkey"] [:: std :: mem :: offset_of ! (wqe_params_t , rkey) - 48usize] ; ["Offset of field: wqe_params_t::qp_num"] [:: std :: mem :: offset_of ! (wqe_params_t , qp_num) - 52usize] ; ["Offset of field: wqe_params_t::buf"] [:: std :: mem :: offset_of ! (wqe_params_t , buf) - 56usize] ; ["Offset of field: wqe_params_t::dbrec"] [:: std :: mem :: offset_of ! (wqe_params_t , dbrec) - 64usize] ; ["Offset of field: wqe_params_t::wqe_cnt"] [:: std :: mem :: offset_of ! (wqe_params_t , wqe_cnt) - 72usize] ; } ; impl Default for wqe_params_t { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cqe_poll_params_t { pub cqe_buf : * mut u8 , pub cqe_size : u32 , pub consumer_index : u32 , pub cqe_cnt : u32 , pub dbrec : * mut u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cqe_poll_params_t"] [:: std :: mem :: size_of :: < cqe_poll_params_t > () - 32usize] ; ["Alignment of cqe_poll_params_t"] [:: std :: mem :: align_of :: < cqe_poll_params_t > () - 8usize] ; ["Offset of field: cqe_poll_params_t::cqe_buf"] [:: std :: mem :: offset_of ! (cqe_poll_params_t , cqe_buf) - 0usize] ; ["Offset of field: cqe_poll_params_t::cqe_size"] [:: std :: mem :: offset_of ! (cqe_poll_params_t , cqe_size) - 8usize] ; ["Offset of field: cqe_poll_params_t::consumer_index"] [:: std :: mem :: offset_of ! (cqe_poll_params_t , consumer_index) - 12usize] ; ["Offset of field: cqe_poll_params_t::cqe_cnt"] [:: std :: mem :: offset_of ! (cqe_poll_params_t , cqe_cnt) - 16usize] ; ["Offset of field: cqe_poll_params_t::dbrec"] [:: std :: mem :: offset_of ! (cqe_poll_params_t , dbrec) - 24usize] ; } ; impl Default for cqe_poll_params_t { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } unsafe extern "C" { pub fn create_qp (context : * mut ibv_context , pd : * mut ibv_pd , cq_entries : :: std :: os :: raw :: c_int , max_send_wr : :: std :: os :: raw :: c_int , max_recv_wr : :: std :: os :: raw :: c_int , max_send_sge : :: std :: os :: raw :: c_int , max_recv_sge : :: std :: os :: raw :: c_int , qp_type : rdma_qp_type_t) -> * mut ibv_qp ; } unsafe extern "C" { pub fn create_mlx5dv_qp (qp : * mut ibv_qp) -> * mut mlx5dv_qp ; } unsafe extern "C" { pub fn create_mlx5dv_cq (qp : * mut ibv_qp) -> * mut mlx5dv_cq ; } unsafe extern "C" { pub fn create_mlx5dv_send_cq (qp : * mut ibv_qp) -> * mut mlx5dv_cq ; } unsafe extern "C" { pub fn create_mlx5dv_recv_cq (qp : * mut ibv_qp) -> * mut mlx5dv_cq ; } unsafe extern "C" { pub fn register_cuda_memory (dv_qp : * mut mlx5dv_qp , dv_recv_cq : * mut mlx5dv_cq , dv_send_cq : * mut mlx5dv_cq) -> cudaError_t ; } unsafe extern "C" { pub fn db_ring (dst : * mut :: std :: os :: raw :: c_void , src : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn launch_db_ring (dst : * mut :: std :: os :: raw :: c_void , src : * mut :: std :: os :: raw :: c_void) ; } unsafe extern "C" { pub fn launch_cqe_poll (mlx5dv_cq : * mut :: std :: os :: raw :: c_void , cqe_idx : i32) -> cqe_poll_result_t ; } unsafe extern "C" { pub fn cqe_poll (result : * mut i32 , params : cqe_poll_params_t) ; } unsafe extern "C" { pub fn send_wqe (params : wqe_params_t) ; } unsafe extern "C" { pub fn recv_wqe (params : wqe_params_t) ; } unsafe extern "C" { pub fn launch_send_wqe (params : wqe_params_t) ; } unsafe extern "C" { pub fn launch_recv_wqe (params : wqe_params_t) ; } unsafe extern "C" { pub fn rdmaxcel_print_device_info (context : * mut ibv_context) ; } unsafe extern "C" { pub fn rdmaxcel_error_string (error_code : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } unsafe extern "C" { pub fn rdma_get_active_segment_count (pd : * mut ibv_pd) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdma_get_all_registered_segment_info (pd : * mut ibv_pd , info_array : * mut rdma_segment_info_t , max_count : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn deregister_segments () -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct rdmaxcel_devx_mkey { _unused : [u8 ; 0] , } pub type rdmaxcel_devx_mkey_t = rdmaxcel_devx_mkey ; unsafe extern "C" { pub fn rdmaxcel_query_devx_mkey_max_entries (context : * mut ibv_context , max_entries : * mut usize) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_create_devx_dmabuf_mr (pd : * mut ibv_pd , access_flags : :: std :: os :: raw :: c_int , addr : usize , length : usize , page_shift : u8 , mkey : * mut * mut rdmaxcel_devx_mkey_t) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_advise_mr_write_async (pd : * mut ibv_pd , sg_list : * mut ibv_sge , num_sge : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_create_devx_mr_list (pd : * mut ibv_pd , access_flags : :: std :: os :: raw :: c_int , mrs : * const * mut rdmaxcel_devx_mkey_t , mrs_cnt : usize , mkey : * mut * mut rdmaxcel_devx_mkey_t , lkey : * mut u32 , rkey : * mut u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_destroy_devx_mkey (mkey : * mut rdmaxcel_devx_mkey_t) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Default , Copy , Clone)] pub struct rdmaxcel_scanned_segment_t { pub address : usize , pub size : usize , pub device : i32 , pub is_expandable : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of rdmaxcel_scanned_segment_t"] [:: std :: mem :: size_of :: < rdmaxcel_scanned_segment_t > () - 24usize] ; ["Alignment of rdmaxcel_scanned_segment_t"] [:: std :: mem :: align_of :: < rdmaxcel_scanned_segment_t > () - 8usize] ; ["Offset of field: rdmaxcel_scanned_segment_t::address"] [:: std :: mem :: offset_of ! (rdmaxcel_scanned_segment_t , address) - 0usize] ; ["Offset of field: rdmaxcel_scanned_segment_t::size"] [:: std :: mem :: offset_of ! (rdmaxcel_scanned_segment_t , size) - 8usize] ; ["Offset of field: rdmaxcel_scanned_segment_t::device"] [:: std :: mem :: offset_of ! (rdmaxcel_scanned_segment_t , device) - 16usize] ; ["Offset of field: rdmaxcel_scanned_segment_t::is_expandable"] [:: std :: mem :: offset_of ! (rdmaxcel_scanned_segment_t , is_expandable) - 20usize] ; } ; pub type rdmaxcel_segment_scanner_fn = :: std :: option :: Option < unsafe extern "C" fn (segments_out : * mut rdmaxcel_scanned_segment_t , max_segments : usize) -> usize > ; unsafe extern "C" { pub fn rdmaxcel_register_segment_scanner (scanner : rdmaxcel_segment_scanner_fn) ; } unsafe extern "C" { pub fn get_cuda_pci_address_from_ptr (cuda_ptr : CUdeviceptr , pci_addr_out : * mut :: std :: os :: raw :: c_char , pci_addr_size : usize) -> :: std :: os :: raw :: c_int ; } pub type completion_cache_t = completion_cache ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct rdmaxcel_qp { pub ibv_qp : * mut ibv_qp , pub qpex : * mut ibv_qp_ex , pub send_cq : * mut ibv_cq , pub recv_cq : * mut ibv_cq , pub is_efa : :: std :: os :: raw :: c_int , pub efa_ah : * mut ibv_ah , pub efa_remote_qpn : u32 , pub efa_qkey : u32 , pub send_wqe_idx : u64 , pub send_db_idx : u64 , pub send_cq_idx : u64 , pub recv_wqe_idx : u64 , pub recv_db_idx : u64 , pub recv_cq_idx : u64 , pub rts_timestamp : u64 , pub send_completion_cache : * mut completion_cache_t , pub recv_completion_cache : * mut completion_cache_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of rdmaxcel_qp"] [:: std :: mem :: size_of :: < rdmaxcel_qp > () - 128usize] ; ["Alignment of rdmaxcel_qp"] [:: std :: mem :: align_of :: < rdmaxcel_qp > () - 8usize] ; ["Offset of field: rdmaxcel_qp::ibv_qp"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , ibv_qp) - 0usize] ; ["Offset of field: rdmaxcel_qp::qpex"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , qpex) - 8usize] ; ["Offset of field: rdmaxcel_qp::send_cq"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , send_cq) - 16usize] ; ["Offset of field: rdmaxcel_qp::recv_cq"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , recv_cq) - 24usize] ; ["Offset of field: rdmaxcel_qp::is_efa"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , is_efa) - 32usize] ; ["Offset of field: rdmaxcel_qp::efa_ah"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , efa_ah) - 40usize] ; ["Offset of field: rdmaxcel_qp::efa_remote_qpn"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , efa_remote_qpn) - 48usize] ; ["Offset of field: rdmaxcel_qp::efa_qkey"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , efa_qkey) - 52usize] ; ["Offset of field: rdmaxcel_qp::send_wqe_idx"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , send_wqe_idx) - 56usize] ; ["Offset of field: rdmaxcel_qp::send_db_idx"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , send_db_idx) - 64usize] ; ["Offset of field: rdmaxcel_qp::send_cq_idx"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , send_cq_idx) - 72usize] ; ["Offset of field: rdmaxcel_qp::recv_wqe_idx"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , recv_wqe_idx) - 80usize] ; ["Offset of field: rdmaxcel_qp::recv_db_idx"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , recv_db_idx) - 88usize] ; ["Offset of field: rdmaxcel_qp::recv_cq_idx"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , recv_cq_idx) - 96usize] ; ["Offset of field: rdmaxcel_qp::rts_timestamp"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , rts_timestamp) - 104usize] ; ["Offset of field: rdmaxcel_qp::send_completion_cache"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , send_completion_cache) - 112usize] ; ["Offset of field: rdmaxcel_qp::recv_completion_cache"] [:: std :: mem :: offset_of ! (rdmaxcel_qp , recv_completion_cache) - 120usize] ; } ; impl Default for rdmaxcel_qp { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub type rdmaxcel_qp_t = rdmaxcel_qp ; unsafe extern "C" { pub fn rdmaxcel_qp_create (context : * mut ibv_context , pd : * mut ibv_pd , cq_entries : :: std :: os :: raw :: c_int , max_send_wr : :: std :: os :: raw :: c_int , max_recv_wr : :: std :: os :: raw :: c_int , max_send_sge : :: std :: os :: raw :: c_int , max_recv_sge : :: std :: os :: raw :: c_int , qp_type : rdma_qp_type_t) -> * mut rdmaxcel_qp_t ; } unsafe extern "C" { pub fn rdmaxcel_qp_destroy (qp : * mut rdmaxcel_qp_t) ; } unsafe extern "C" { pub fn rdmaxcel_qp_get_ibv_qp (qp : * mut rdmaxcel_qp_t) -> * mut ibv_qp ; } unsafe extern "C" { pub fn rdmaxcel_qp_fetch_add_send_wqe_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_fetch_add_send_db_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_fetch_add_send_cq_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_fetch_add_recv_wqe_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_fetch_add_recv_db_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_fetch_add_recv_cq_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_load_send_wqe_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_load_send_db_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_load_recv_wqe_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_load_send_cq_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_load_recv_cq_idx (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_load_rts_timestamp (qp : * mut rdmaxcel_qp_t) -> u64 ; } unsafe extern "C" { pub fn rdmaxcel_qp_store_send_db_idx (qp : * mut rdmaxcel_qp_t , value : u64) ; } unsafe extern "C" { pub fn rdmaxcel_qp_store_rts_timestamp (qp : * mut rdmaxcel_qp_t , value : u64) ; } unsafe extern "C" { pub fn rdmaxcel_qp_get_send_cache (qp : * mut rdmaxcel_qp_t) -> * mut completion_cache_t ; } unsafe extern "C" { pub fn rdmaxcel_qp_get_recv_cache (qp : * mut rdmaxcel_qp_t) -> * mut completion_cache_t ; } unsafe extern "C" { pub fn register_segments (pds : * mut * mut ibv_pd , qps : * mut * mut rdmaxcel_qp_t , num_devices : :: std :: os :: raw :: c_int , max_sge_override : i32) -> :: std :: os :: raw :: c_int ; } # [repr (C)] pub struct completion_node { pub wc : ibv_wc , pub next : :: std :: os :: raw :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of completion_node"] [:: std :: mem :: size_of :: < completion_node > () - 56usize] ; ["Alignment of completion_node"] [:: std :: mem :: align_of :: < completion_node > () - 8usize] ; ["Offset of field: completion_node::wc"] [:: std :: mem :: offset_of ! (completion_node , wc) - 0usize] ; ["Offset of field: completion_node::next"] [:: std :: mem :: offset_of ! (completion_node , next) - 48usize] ; } ; impl Default for completion_node { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub type completion_node_t = completion_node ; # [repr (C)] pub struct completion_cache { pub nodes : [completion_node_t ; 128usize] , pub head : :: std :: os :: raw :: c_int , pub tail : :: std :: os :: raw :: c_int , pub free_head : :: std :: os :: raw :: c_int , pub count : usize , pub lock : pthread_mutex_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of completion_cache"] [:: std :: mem :: size_of :: < completion_cache > () - 7232usize] ; ["Alignment of completion_cache"] [:: std :: mem :: align_of :: < completion_cache > () - 8usize] ; ["Offset of field: completion_cache::nodes"] [:: std :: mem :: offset_of ! (completion_cache , nodes) - 0usize] ; ["Offset of field: completion_cache::head"] [:: std :: mem :: offset_of ! (completion_cache , head) - 7168usize] ; ["Offset of field: completion_cache::tail"] [:: std :: mem :: offset_of ! (completion_cache , tail) - 7172usize] ; ["Offset of field: completion_cache::free_head"] [:: std :: mem :: offset_of ! (completion_cache , free_head) - 7176usize] ; ["Offset of field: completion_cache::count"] [:: std :: mem :: offset_of ! (completion_cache , count) - 7184usize] ; ["Offset of field: completion_cache::lock"] [:: std :: mem :: offset_of ! (completion_cache , lock) - 7192usize] ; } ; impl Default for completion_cache { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct poll_context { pub expected_wr_id : u64 , pub expected_qp_num : u32 , pub cache : * mut completion_cache_t , pub cq : * mut ibv_cq , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of poll_context"] [:: std :: mem :: size_of :: < poll_context > () - 32usize] ; ["Alignment of poll_context"] [:: std :: mem :: align_of :: < poll_context > () - 8usize] ; ["Offset of field: poll_context::expected_wr_id"] [:: std :: mem :: offset_of ! (poll_context , expected_wr_id) - 0usize] ; ["Offset of field: poll_context::expected_qp_num"] [:: std :: mem :: offset_of ! (poll_context , expected_qp_num) - 8usize] ; ["Offset of field: poll_context::cache"] [:: std :: mem :: offset_of ! (poll_context , cache) - 16usize] ; ["Offset of field: poll_context::cq"] [:: std :: mem :: offset_of ! (poll_context , cq) - 24usize] ; } ; impl Default for poll_context { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } } pub type poll_context_t = poll_context ; unsafe extern "C" { pub fn completion_cache_init (cache : * mut completion_cache_t) ; } unsafe extern "C" { pub fn completion_cache_destroy (cache : * mut completion_cache_t) ; } unsafe extern "C" { pub fn completion_cache_add (cache : * mut completion_cache_t , wc : * mut ibv_wc) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn completion_cache_find (cache : * mut completion_cache_t , wr_id : u64 , qp_num : u32 , out_wc : * mut ibv_wc) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn poll_cq_with_cache (ctx : * mut poll_context_t , out_wc : * mut ibv_wc) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_qp_post_op (qp : * mut rdmaxcel_qp_t , local_addr : * mut :: std :: os :: raw :: c_void , lkey : u32 , length : usize , remote_addr : * mut :: std :: os :: raw :: c_void , rkey : u32 , wr_id : u64 , signaled : :: std :: os :: raw :: c_int , op_type : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_is_efa_dev (ctx : * mut ibv_context) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_efa_post_write (qp : * mut rdmaxcel_qp_t , ah : * mut ibv_ah , remote_qpn : u32 , qkey : u32 , local_addr : * mut :: std :: os :: raw :: c_void , lkey : u32 , length : usize , remote_addr : * mut :: std :: os :: raw :: c_void , rkey : u32 , wr_id : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_efa_post_read (qp : * mut rdmaxcel_qp_t , ah : * mut ibv_ah , remote_qpn : u32 , qkey : u32 , local_addr : * mut :: std :: os :: raw :: c_void , lkey : u32 , length : usize , remote_addr : * mut :: std :: os :: raw :: c_void , rkey : u32 , wr_id : u64) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_efa_connect (qp : * mut rdmaxcel_qp_t , port_num : u8 , pkey_index : u16 , qkey : u32 , psn : u32 , gid_index : u8 , remote_gid : * const u8 , remote_qpn : u32) -> :: std :: os :: raw :: c_int ; } unsafe extern "C" { pub fn rdmaxcel_efa_post_op (qp : * mut rdmaxcel_qp_t , ah : * mut ibv_ah , remote_qpn : u32 , qkey : u32 , local_addr : * mut :: std :: os :: raw :: c_void , lkey : u32 , length : usize , remote_addr : * mut :: std :: os :: raw :: c_void , rkey : u32 , wr_id : u64 , op_type : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; }