mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-04-28 02:01:29 +00:00
committed by
Gaurav Juvekar
parent
caa2dd11a0
commit
3084c04453
@@ -1,7 +1,14 @@
|
||||
|
||||
#ifndef _G_MEM_EXPORT_NVOC_H_
|
||||
#define _G_MEM_EXPORT_NVOC_H_
|
||||
#include "nvoc/runtime.h"
|
||||
|
||||
// Version of generated metadata structures
|
||||
#ifdef NVOC_METADATA_VERSION
|
||||
#undef NVOC_METADATA_VERSION
|
||||
#endif
|
||||
#define NVOC_METADATA_VERSION 0
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -36,6 +43,7 @@ extern "C" {
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#pragma once
|
||||
#include "g_mem_export_nvoc.h"
|
||||
|
||||
#ifndef _MEMORYEXPORT_H_
|
||||
@@ -63,38 +71,49 @@ typedef struct mem_export_info MEM_EXPORT_INFO;
|
||||
#define PRIVATE_FIELD(x) NVOC_PRIVATE_FIELD(x)
|
||||
#endif
|
||||
|
||||
|
||||
struct MemoryExport {
|
||||
|
||||
// Metadata
|
||||
const struct NVOC_RTTI *__nvoc_rtti;
|
||||
|
||||
// Parent (i.e. superclass or base class) object pointers
|
||||
struct RmResource __nvoc_base_RmResource;
|
||||
struct Object *__nvoc_pbase_Object;
|
||||
struct RsResource *__nvoc_pbase_RsResource;
|
||||
struct RmResourceCommon *__nvoc_pbase_RmResourceCommon;
|
||||
struct RmResource *__nvoc_pbase_RmResource;
|
||||
struct MemoryExport *__nvoc_pbase_MemoryExport;
|
||||
NvBool (*__memoryexportCanCopy__)(struct MemoryExport *);
|
||||
NV_STATUS (*__memoryexportControl__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
|
||||
NV_STATUS (*__memoryexportCtrlExportMem__)(struct MemoryExport *, NV00E0_CTRL_EXPORT_MEM_PARAMS *);
|
||||
NV_STATUS (*__memoryexportCtrlImportMem__)(struct MemoryExport *, NV00E0_CTRL_IMPORT_MEM_PARAMS *);
|
||||
NV_STATUS (*__memoryexportCtrlGetInfo__)(struct MemoryExport *, NV00E0_CTRL_GET_INFO_PARAMS *);
|
||||
NvBool (*__memoryexportShareCallback__)(struct MemoryExport *, struct RsClient *, struct RsResourceRef *, RS_SHARE_POLICY *);
|
||||
NV_STATUS (*__memoryexportCheckMemInterUnmap__)(struct MemoryExport *, NvBool);
|
||||
NV_STATUS (*__memoryexportGetMemInterMapParams__)(struct MemoryExport *, RMRES_MEM_INTER_MAP_PARAMS *);
|
||||
NV_STATUS (*__memoryexportGetMemoryMappingDescriptor__)(struct MemoryExport *, struct MEMORY_DESCRIPTOR **);
|
||||
NvU32 (*__memoryexportGetRefCount__)(struct MemoryExport *);
|
||||
NV_STATUS (*__memoryexportControlFilter__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
|
||||
void (*__memoryexportAddAdditionalDependants__)(struct RsClient *, struct MemoryExport *, RsResourceRef *);
|
||||
NV_STATUS (*__memoryexportControlSerialization_Prologue__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
|
||||
NV_STATUS (*__memoryexportControl_Prologue__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
|
||||
NV_STATUS (*__memoryexportUnmap__)(struct MemoryExport *, struct CALL_CONTEXT *, RsCpuMapping *);
|
||||
NvBool (*__memoryexportIsPartialUnmapSupported__)(struct MemoryExport *);
|
||||
void (*__memoryexportPreDestruct__)(struct MemoryExport *);
|
||||
NV_STATUS (*__memoryexportMapTo__)(struct MemoryExport *, RS_RES_MAP_TO_PARAMS *);
|
||||
NV_STATUS (*__memoryexportIsDuplicate__)(struct MemoryExport *, NvHandle, NvBool *);
|
||||
void (*__memoryexportControlSerialization_Epilogue__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
|
||||
void (*__memoryexportControl_Epilogue__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
|
||||
NV_STATUS (*__memoryexportUnmapFrom__)(struct MemoryExport *, RS_RES_UNMAP_FROM_PARAMS *);
|
||||
NV_STATUS (*__memoryexportMap__)(struct MemoryExport *, struct CALL_CONTEXT *, RS_CPU_MAP_PARAMS *, RsCpuMapping *);
|
||||
NvBool (*__memoryexportAccessCallback__)(struct MemoryExport *, struct RsClient *, void *, RsAccessRight);
|
||||
|
||||
// Ancestor object pointers for `staticCast` feature
|
||||
struct Object *__nvoc_pbase_Object; // obj super^3
|
||||
struct RsResource *__nvoc_pbase_RsResource; // res super^2
|
||||
struct RmResourceCommon *__nvoc_pbase_RmResourceCommon; // rmrescmn super^2
|
||||
struct RmResource *__nvoc_pbase_RmResource; // rmres super
|
||||
struct MemoryExport *__nvoc_pbase_MemoryExport; // memoryexport
|
||||
|
||||
// Vtable with 24 per-object function pointers
|
||||
NvBool (*__memoryexportCanCopy__)(struct MemoryExport * /*this*/); // virtual override (res) base (rmres)
|
||||
NV_STATUS (*__memoryexportControl__)(struct MemoryExport * /*this*/, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *); // virtual override (res) base (rmres)
|
||||
NV_STATUS (*__memoryexportCtrlExportMem__)(struct MemoryExport * /*this*/, NV00E0_CTRL_EXPORT_MEM_PARAMS *); // exported (id=0xe00101)
|
||||
NV_STATUS (*__memoryexportCtrlImportMem__)(struct MemoryExport * /*this*/, NV00E0_CTRL_IMPORT_MEM_PARAMS *); // exported (id=0xe00102)
|
||||
NV_STATUS (*__memoryexportCtrlGetInfo__)(struct MemoryExport * /*this*/, NV00E0_CTRL_GET_INFO_PARAMS *); // exported (id=0xe00103)
|
||||
NvBool (*__memoryexportAccessCallback__)(struct MemoryExport * /*this*/, struct RsClient *, void *, RsAccessRight); // virtual inherited (rmres) base (rmres)
|
||||
NvBool (*__memoryexportShareCallback__)(struct MemoryExport * /*this*/, struct RsClient *, struct RsResourceRef *, RS_SHARE_POLICY *); // virtual inherited (rmres) base (rmres)
|
||||
NV_STATUS (*__memoryexportGetMemInterMapParams__)(struct MemoryExport * /*this*/, RMRES_MEM_INTER_MAP_PARAMS *); // virtual inherited (rmres) base (rmres)
|
||||
NV_STATUS (*__memoryexportCheckMemInterUnmap__)(struct MemoryExport * /*this*/, NvBool); // virtual inherited (rmres) base (rmres)
|
||||
NV_STATUS (*__memoryexportGetMemoryMappingDescriptor__)(struct MemoryExport * /*this*/, struct MEMORY_DESCRIPTOR **); // virtual inherited (rmres) base (rmres)
|
||||
NV_STATUS (*__memoryexportControlSerialization_Prologue__)(struct MemoryExport * /*this*/, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *); // virtual inherited (rmres) base (rmres)
|
||||
void (*__memoryexportControlSerialization_Epilogue__)(struct MemoryExport * /*this*/, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *); // virtual inherited (rmres) base (rmres)
|
||||
NV_STATUS (*__memoryexportControl_Prologue__)(struct MemoryExport * /*this*/, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *); // virtual inherited (rmres) base (rmres)
|
||||
void (*__memoryexportControl_Epilogue__)(struct MemoryExport * /*this*/, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *); // virtual inherited (rmres) base (rmres)
|
||||
NV_STATUS (*__memoryexportIsDuplicate__)(struct MemoryExport * /*this*/, NvHandle, NvBool *); // virtual inherited (res) base (rmres)
|
||||
void (*__memoryexportPreDestruct__)(struct MemoryExport * /*this*/); // virtual inherited (res) base (rmres)
|
||||
NV_STATUS (*__memoryexportControlFilter__)(struct MemoryExport * /*this*/, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *); // virtual inherited (res) base (rmres)
|
||||
NV_STATUS (*__memoryexportMap__)(struct MemoryExport * /*this*/, struct CALL_CONTEXT *, RS_CPU_MAP_PARAMS *, RsCpuMapping *); // virtual inherited (res) base (rmres)
|
||||
NV_STATUS (*__memoryexportUnmap__)(struct MemoryExport * /*this*/, struct CALL_CONTEXT *, RsCpuMapping *); // virtual inherited (res) base (rmres)
|
||||
NvBool (*__memoryexportIsPartialUnmapSupported__)(struct MemoryExport * /*this*/); // inline virtual inherited (res) base (rmres) body
|
||||
NV_STATUS (*__memoryexportMapTo__)(struct MemoryExport * /*this*/, RS_RES_MAP_TO_PARAMS *); // virtual inherited (res) base (rmres)
|
||||
NV_STATUS (*__memoryexportUnmapFrom__)(struct MemoryExport * /*this*/, RS_RES_UNMAP_FROM_PARAMS *); // virtual inherited (res) base (rmres)
|
||||
NvU32 (*__memoryexportGetRefCount__)(struct MemoryExport * /*this*/); // virtual inherited (res) base (rmres)
|
||||
void (*__memoryexportAddAdditionalDependants__)(struct RsClient *, struct MemoryExport * /*this*/, RsResourceRef *); // virtual inherited (res) base (rmres)
|
||||
|
||||
// Data members
|
||||
MEM_EXPORT_INFO *PRIVATE_FIELD(pExportInfo);
|
||||
};
|
||||
|
||||
@@ -107,6 +126,7 @@ typedef struct MemoryExport MemoryExport;
|
||||
#define __nvoc_class_id_MemoryExport 0xe7ac53
|
||||
#endif /* __nvoc_class_id_MemoryExport */
|
||||
|
||||
// Casting support
|
||||
extern const struct NVOC_CLASS_DEF __nvoc_class_def_MemoryExport;
|
||||
|
||||
#define __staticCast_MemoryExport(pThis) \
|
||||
@@ -119,101 +139,134 @@ extern const struct NVOC_CLASS_DEF __nvoc_class_def_MemoryExport;
|
||||
((MemoryExport*)__nvoc_dynamicCast(staticCast((pThis), Dynamic), classInfo(MemoryExport)))
|
||||
#endif //__nvoc_mem_export_h_disabled
|
||||
|
||||
|
||||
NV_STATUS __nvoc_objCreateDynamic_MemoryExport(MemoryExport**, Dynamic*, NvU32, va_list);
|
||||
|
||||
NV_STATUS __nvoc_objCreate_MemoryExport(MemoryExport**, Dynamic*, NvU32, struct CALL_CONTEXT * arg_pCallContext, struct RS_RES_ALLOC_PARAMS_INTERNAL * arg_pParams);
|
||||
#define __objCreate_MemoryExport(ppNewObj, pParent, createFlags, arg_pCallContext, arg_pParams) \
|
||||
__nvoc_objCreate_MemoryExport((ppNewObj), staticCast((pParent), Dynamic), (createFlags), arg_pCallContext, arg_pParams)
|
||||
|
||||
#define memoryexportCanCopy(pMemoryExport) memoryexportCanCopy_DISPATCH(pMemoryExport)
|
||||
#define memoryexportControl(pMemoryExport, pCallContext, pParams) memoryexportControl_DISPATCH(pMemoryExport, pCallContext, pParams)
|
||||
#define memoryexportCtrlExportMem(pMemoryExport, pParams) memoryexportCtrlExportMem_DISPATCH(pMemoryExport, pParams)
|
||||
#define memoryexportCtrlImportMem(pMemoryExport, pParams) memoryexportCtrlImportMem_DISPATCH(pMemoryExport, pParams)
|
||||
#define memoryexportCtrlGetInfo(pMemoryExport, pParams) memoryexportCtrlGetInfo_DISPATCH(pMemoryExport, pParams)
|
||||
#define memoryexportShareCallback(pResource, pInvokingClient, pParentRef, pSharePolicy) memoryexportShareCallback_DISPATCH(pResource, pInvokingClient, pParentRef, pSharePolicy)
|
||||
#define memoryexportCheckMemInterUnmap(pRmResource, bSubdeviceHandleProvided) memoryexportCheckMemInterUnmap_DISPATCH(pRmResource, bSubdeviceHandleProvided)
|
||||
#define memoryexportGetMemInterMapParams(pRmResource, pParams) memoryexportGetMemInterMapParams_DISPATCH(pRmResource, pParams)
|
||||
#define memoryexportGetMemoryMappingDescriptor(pRmResource, ppMemDesc) memoryexportGetMemoryMappingDescriptor_DISPATCH(pRmResource, ppMemDesc)
|
||||
#define memoryexportGetRefCount(pResource) memoryexportGetRefCount_DISPATCH(pResource)
|
||||
#define memoryexportControlFilter(pResource, pCallContext, pParams) memoryexportControlFilter_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportAddAdditionalDependants(pClient, pResource, pReference) memoryexportAddAdditionalDependants_DISPATCH(pClient, pResource, pReference)
|
||||
#define memoryexportControlSerialization_Prologue(pResource, pCallContext, pParams) memoryexportControlSerialization_Prologue_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportControl_Prologue(pResource, pCallContext, pParams) memoryexportControl_Prologue_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportUnmap(pResource, pCallContext, pCpuMapping) memoryexportUnmap_DISPATCH(pResource, pCallContext, pCpuMapping)
|
||||
#define memoryexportIsPartialUnmapSupported(pResource) memoryexportIsPartialUnmapSupported_DISPATCH(pResource)
|
||||
#define memoryexportPreDestruct(pResource) memoryexportPreDestruct_DISPATCH(pResource)
|
||||
#define memoryexportMapTo(pResource, pParams) memoryexportMapTo_DISPATCH(pResource, pParams)
|
||||
#define memoryexportIsDuplicate(pResource, hMemory, pDuplicate) memoryexportIsDuplicate_DISPATCH(pResource, hMemory, pDuplicate)
|
||||
#define memoryexportControlSerialization_Epilogue(pResource, pCallContext, pParams) memoryexportControlSerialization_Epilogue_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportControl_Epilogue(pResource, pCallContext, pParams) memoryexportControl_Epilogue_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportUnmapFrom(pResource, pParams) memoryexportUnmapFrom_DISPATCH(pResource, pParams)
|
||||
#define memoryexportMap(pResource, pCallContext, pParams, pCpuMapping) memoryexportMap_DISPATCH(pResource, pCallContext, pParams, pCpuMapping)
|
||||
#define memoryexportAccessCallback(pResource, pInvokingClient, pAllocParams, accessRight) memoryexportAccessCallback_DISPATCH(pResource, pInvokingClient, pAllocParams, accessRight)
|
||||
NvBool memoryexportCanCopy_IMPL(struct MemoryExport *pMemoryExport);
|
||||
|
||||
// Wrapper macros
|
||||
#define memoryexportCanCopy_FNPTR(pMemoryExport) pMemoryExport->__memoryexportCanCopy__
|
||||
#define memoryexportCanCopy(pMemoryExport) memoryexportCanCopy_DISPATCH(pMemoryExport)
|
||||
#define memoryexportControl_FNPTR(pMemoryExport) pMemoryExport->__memoryexportControl__
|
||||
#define memoryexportControl(pMemoryExport, pCallContext, pParams) memoryexportControl_DISPATCH(pMemoryExport, pCallContext, pParams)
|
||||
#define memoryexportCtrlExportMem_FNPTR(pMemoryExport) pMemoryExport->__memoryexportCtrlExportMem__
|
||||
#define memoryexportCtrlExportMem(pMemoryExport, pParams) memoryexportCtrlExportMem_DISPATCH(pMemoryExport, pParams)
|
||||
#define memoryexportCtrlImportMem_FNPTR(pMemoryExport) pMemoryExport->__memoryexportCtrlImportMem__
|
||||
#define memoryexportCtrlImportMem(pMemoryExport, pParams) memoryexportCtrlImportMem_DISPATCH(pMemoryExport, pParams)
|
||||
#define memoryexportCtrlGetInfo_FNPTR(pMemoryExport) pMemoryExport->__memoryexportCtrlGetInfo__
|
||||
#define memoryexportCtrlGetInfo(pMemoryExport, pParams) memoryexportCtrlGetInfo_DISPATCH(pMemoryExport, pParams)
|
||||
#define memoryexportAccessCallback_FNPTR(pResource) pResource->__nvoc_base_RmResource.__rmresAccessCallback__
|
||||
#define memoryexportAccessCallback(pResource, pInvokingClient, pAllocParams, accessRight) memoryexportAccessCallback_DISPATCH(pResource, pInvokingClient, pAllocParams, accessRight)
|
||||
#define memoryexportShareCallback_FNPTR(pResource) pResource->__nvoc_base_RmResource.__rmresShareCallback__
|
||||
#define memoryexportShareCallback(pResource, pInvokingClient, pParentRef, pSharePolicy) memoryexportShareCallback_DISPATCH(pResource, pInvokingClient, pParentRef, pSharePolicy)
|
||||
#define memoryexportGetMemInterMapParams_FNPTR(pRmResource) pRmResource->__nvoc_base_RmResource.__rmresGetMemInterMapParams__
|
||||
#define memoryexportGetMemInterMapParams(pRmResource, pParams) memoryexportGetMemInterMapParams_DISPATCH(pRmResource, pParams)
|
||||
#define memoryexportCheckMemInterUnmap_FNPTR(pRmResource) pRmResource->__nvoc_base_RmResource.__rmresCheckMemInterUnmap__
|
||||
#define memoryexportCheckMemInterUnmap(pRmResource, bSubdeviceHandleProvided) memoryexportCheckMemInterUnmap_DISPATCH(pRmResource, bSubdeviceHandleProvided)
|
||||
#define memoryexportGetMemoryMappingDescriptor_FNPTR(pRmResource) pRmResource->__nvoc_base_RmResource.__rmresGetMemoryMappingDescriptor__
|
||||
#define memoryexportGetMemoryMappingDescriptor(pRmResource, ppMemDesc) memoryexportGetMemoryMappingDescriptor_DISPATCH(pRmResource, ppMemDesc)
|
||||
#define memoryexportControlSerialization_Prologue_FNPTR(pResource) pResource->__nvoc_base_RmResource.__rmresControlSerialization_Prologue__
|
||||
#define memoryexportControlSerialization_Prologue(pResource, pCallContext, pParams) memoryexportControlSerialization_Prologue_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportControlSerialization_Epilogue_FNPTR(pResource) pResource->__nvoc_base_RmResource.__rmresControlSerialization_Epilogue__
|
||||
#define memoryexportControlSerialization_Epilogue(pResource, pCallContext, pParams) memoryexportControlSerialization_Epilogue_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportControl_Prologue_FNPTR(pResource) pResource->__nvoc_base_RmResource.__rmresControl_Prologue__
|
||||
#define memoryexportControl_Prologue(pResource, pCallContext, pParams) memoryexportControl_Prologue_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportControl_Epilogue_FNPTR(pResource) pResource->__nvoc_base_RmResource.__rmresControl_Epilogue__
|
||||
#define memoryexportControl_Epilogue(pResource, pCallContext, pParams) memoryexportControl_Epilogue_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportIsDuplicate_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resIsDuplicate__
|
||||
#define memoryexportIsDuplicate(pResource, hMemory, pDuplicate) memoryexportIsDuplicate_DISPATCH(pResource, hMemory, pDuplicate)
|
||||
#define memoryexportPreDestruct_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resPreDestruct__
|
||||
#define memoryexportPreDestruct(pResource) memoryexportPreDestruct_DISPATCH(pResource)
|
||||
#define memoryexportControlFilter_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resControlFilter__
|
||||
#define memoryexportControlFilter(pResource, pCallContext, pParams) memoryexportControlFilter_DISPATCH(pResource, pCallContext, pParams)
|
||||
#define memoryexportMap_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resMap__
|
||||
#define memoryexportMap(pResource, pCallContext, pParams, pCpuMapping) memoryexportMap_DISPATCH(pResource, pCallContext, pParams, pCpuMapping)
|
||||
#define memoryexportUnmap_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resUnmap__
|
||||
#define memoryexportUnmap(pResource, pCallContext, pCpuMapping) memoryexportUnmap_DISPATCH(pResource, pCallContext, pCpuMapping)
|
||||
#define memoryexportIsPartialUnmapSupported_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resIsPartialUnmapSupported__
|
||||
#define memoryexportIsPartialUnmapSupported(pResource) memoryexportIsPartialUnmapSupported_DISPATCH(pResource)
|
||||
#define memoryexportMapTo_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resMapTo__
|
||||
#define memoryexportMapTo(pResource, pParams) memoryexportMapTo_DISPATCH(pResource, pParams)
|
||||
#define memoryexportUnmapFrom_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resUnmapFrom__
|
||||
#define memoryexportUnmapFrom(pResource, pParams) memoryexportUnmapFrom_DISPATCH(pResource, pParams)
|
||||
#define memoryexportGetRefCount_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resGetRefCount__
|
||||
#define memoryexportGetRefCount(pResource) memoryexportGetRefCount_DISPATCH(pResource)
|
||||
#define memoryexportAddAdditionalDependants_FNPTR(pResource) pResource->__nvoc_base_RmResource.__nvoc_base_RsResource.__resAddAdditionalDependants__
|
||||
#define memoryexportAddAdditionalDependants(pClient, pResource, pReference) memoryexportAddAdditionalDependants_DISPATCH(pClient, pResource, pReference)
|
||||
|
||||
// Dispatch functions
|
||||
static inline NvBool memoryexportCanCopy_DISPATCH(struct MemoryExport *pMemoryExport) {
|
||||
return pMemoryExport->__memoryexportCanCopy__(pMemoryExport);
|
||||
}
|
||||
|
||||
NV_STATUS memoryexportControl_IMPL(struct MemoryExport *pMemoryExport, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams);
|
||||
|
||||
static inline NV_STATUS memoryexportControl_DISPATCH(struct MemoryExport *pMemoryExport, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
return pMemoryExport->__memoryexportControl__(pMemoryExport, pCallContext, pParams);
|
||||
}
|
||||
|
||||
NV_STATUS memoryexportCtrlExportMem_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_EXPORT_MEM_PARAMS *pParams);
|
||||
|
||||
static inline NV_STATUS memoryexportCtrlExportMem_DISPATCH(struct MemoryExport *pMemoryExport, NV00E0_CTRL_EXPORT_MEM_PARAMS *pParams) {
|
||||
return pMemoryExport->__memoryexportCtrlExportMem__(pMemoryExport, pParams);
|
||||
}
|
||||
|
||||
NV_STATUS memoryexportCtrlImportMem_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_IMPORT_MEM_PARAMS *pParams);
|
||||
|
||||
static inline NV_STATUS memoryexportCtrlImportMem_DISPATCH(struct MemoryExport *pMemoryExport, NV00E0_CTRL_IMPORT_MEM_PARAMS *pParams) {
|
||||
return pMemoryExport->__memoryexportCtrlImportMem__(pMemoryExport, pParams);
|
||||
}
|
||||
|
||||
NV_STATUS memoryexportCtrlGetInfo_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_GET_INFO_PARAMS *pParams);
|
||||
|
||||
static inline NV_STATUS memoryexportCtrlGetInfo_DISPATCH(struct MemoryExport *pMemoryExport, NV00E0_CTRL_GET_INFO_PARAMS *pParams) {
|
||||
return pMemoryExport->__memoryexportCtrlGetInfo__(pMemoryExport, pParams);
|
||||
}
|
||||
|
||||
static inline NvBool memoryexportAccessCallback_DISPATCH(struct MemoryExport *pResource, struct RsClient *pInvokingClient, void *pAllocParams, RsAccessRight accessRight) {
|
||||
return pResource->__memoryexportAccessCallback__(pResource, pInvokingClient, pAllocParams, accessRight);
|
||||
}
|
||||
|
||||
static inline NvBool memoryexportShareCallback_DISPATCH(struct MemoryExport *pResource, struct RsClient *pInvokingClient, struct RsResourceRef *pParentRef, RS_SHARE_POLICY *pSharePolicy) {
|
||||
return pResource->__memoryexportShareCallback__(pResource, pInvokingClient, pParentRef, pSharePolicy);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportCheckMemInterUnmap_DISPATCH(struct MemoryExport *pRmResource, NvBool bSubdeviceHandleProvided) {
|
||||
return pRmResource->__memoryexportCheckMemInterUnmap__(pRmResource, bSubdeviceHandleProvided);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportGetMemInterMapParams_DISPATCH(struct MemoryExport *pRmResource, RMRES_MEM_INTER_MAP_PARAMS *pParams) {
|
||||
return pRmResource->__memoryexportGetMemInterMapParams__(pRmResource, pParams);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportCheckMemInterUnmap_DISPATCH(struct MemoryExport *pRmResource, NvBool bSubdeviceHandleProvided) {
|
||||
return pRmResource->__memoryexportCheckMemInterUnmap__(pRmResource, bSubdeviceHandleProvided);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportGetMemoryMappingDescriptor_DISPATCH(struct MemoryExport *pRmResource, struct MEMORY_DESCRIPTOR **ppMemDesc) {
|
||||
return pRmResource->__memoryexportGetMemoryMappingDescriptor__(pRmResource, ppMemDesc);
|
||||
}
|
||||
|
||||
static inline NvU32 memoryexportGetRefCount_DISPATCH(struct MemoryExport *pResource) {
|
||||
return pResource->__memoryexportGetRefCount__(pResource);
|
||||
static inline NV_STATUS memoryexportControlSerialization_Prologue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
return pResource->__memoryexportControlSerialization_Prologue__(pResource, pCallContext, pParams);
|
||||
}
|
||||
|
||||
static inline void memoryexportControlSerialization_Epilogue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
pResource->__memoryexportControlSerialization_Epilogue__(pResource, pCallContext, pParams);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportControl_Prologue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
return pResource->__memoryexportControl_Prologue__(pResource, pCallContext, pParams);
|
||||
}
|
||||
|
||||
static inline void memoryexportControl_Epilogue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
pResource->__memoryexportControl_Epilogue__(pResource, pCallContext, pParams);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportIsDuplicate_DISPATCH(struct MemoryExport *pResource, NvHandle hMemory, NvBool *pDuplicate) {
|
||||
return pResource->__memoryexportIsDuplicate__(pResource, hMemory, pDuplicate);
|
||||
}
|
||||
|
||||
static inline void memoryexportPreDestruct_DISPATCH(struct MemoryExport *pResource) {
|
||||
pResource->__memoryexportPreDestruct__(pResource);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportControlFilter_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
return pResource->__memoryexportControlFilter__(pResource, pCallContext, pParams);
|
||||
}
|
||||
|
||||
static inline void memoryexportAddAdditionalDependants_DISPATCH(struct RsClient *pClient, struct MemoryExport *pResource, RsResourceRef *pReference) {
|
||||
pResource->__memoryexportAddAdditionalDependants__(pClient, pResource, pReference);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportControlSerialization_Prologue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
return pResource->__memoryexportControlSerialization_Prologue__(pResource, pCallContext, pParams);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportControl_Prologue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
return pResource->__memoryexportControl_Prologue__(pResource, pCallContext, pParams);
|
||||
static inline NV_STATUS memoryexportMap_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, RS_CPU_MAP_PARAMS *pParams, RsCpuMapping *pCpuMapping) {
|
||||
return pResource->__memoryexportMap__(pResource, pCallContext, pParams, pCpuMapping);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportUnmap_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, RsCpuMapping *pCpuMapping) {
|
||||
@@ -224,38 +277,32 @@ static inline NvBool memoryexportIsPartialUnmapSupported_DISPATCH(struct MemoryE
|
||||
return pResource->__memoryexportIsPartialUnmapSupported__(pResource);
|
||||
}
|
||||
|
||||
static inline void memoryexportPreDestruct_DISPATCH(struct MemoryExport *pResource) {
|
||||
pResource->__memoryexportPreDestruct__(pResource);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportMapTo_DISPATCH(struct MemoryExport *pResource, RS_RES_MAP_TO_PARAMS *pParams) {
|
||||
return pResource->__memoryexportMapTo__(pResource, pParams);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportIsDuplicate_DISPATCH(struct MemoryExport *pResource, NvHandle hMemory, NvBool *pDuplicate) {
|
||||
return pResource->__memoryexportIsDuplicate__(pResource, hMemory, pDuplicate);
|
||||
}
|
||||
|
||||
static inline void memoryexportControlSerialization_Epilogue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
pResource->__memoryexportControlSerialization_Epilogue__(pResource, pCallContext, pParams);
|
||||
}
|
||||
|
||||
static inline void memoryexportControl_Epilogue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
|
||||
pResource->__memoryexportControl_Epilogue__(pResource, pCallContext, pParams);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportUnmapFrom_DISPATCH(struct MemoryExport *pResource, RS_RES_UNMAP_FROM_PARAMS *pParams) {
|
||||
return pResource->__memoryexportUnmapFrom__(pResource, pParams);
|
||||
}
|
||||
|
||||
static inline NV_STATUS memoryexportMap_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, RS_CPU_MAP_PARAMS *pParams, RsCpuMapping *pCpuMapping) {
|
||||
return pResource->__memoryexportMap__(pResource, pCallContext, pParams, pCpuMapping);
|
||||
static inline NvU32 memoryexportGetRefCount_DISPATCH(struct MemoryExport *pResource) {
|
||||
return pResource->__memoryexportGetRefCount__(pResource);
|
||||
}
|
||||
|
||||
static inline NvBool memoryexportAccessCallback_DISPATCH(struct MemoryExport *pResource, struct RsClient *pInvokingClient, void *pAllocParams, RsAccessRight accessRight) {
|
||||
return pResource->__memoryexportAccessCallback__(pResource, pInvokingClient, pAllocParams, accessRight);
|
||||
static inline void memoryexportAddAdditionalDependants_DISPATCH(struct RsClient *pClient, struct MemoryExport *pResource, RsResourceRef *pReference) {
|
||||
pResource->__memoryexportAddAdditionalDependants__(pClient, pResource, pReference);
|
||||
}
|
||||
|
||||
NvBool memoryexportCanCopy_IMPL(struct MemoryExport *pMemoryExport);
|
||||
|
||||
NV_STATUS memoryexportControl_IMPL(struct MemoryExport *pMemoryExport, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams);
|
||||
|
||||
NV_STATUS memoryexportCtrlExportMem_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_EXPORT_MEM_PARAMS *pParams);
|
||||
|
||||
NV_STATUS memoryexportCtrlImportMem_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_IMPORT_MEM_PARAMS *pParams);
|
||||
|
||||
NV_STATUS memoryexportCtrlGetInfo_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_GET_INFO_PARAMS *pParams);
|
||||
|
||||
NV_STATUS memoryexportConstruct_IMPL(struct MemoryExport *arg_pMemoryExport, struct CALL_CONTEXT *arg_pCallContext, struct RS_RES_ALLOC_PARAMS_INTERNAL *arg_pParams);
|
||||
|
||||
#define __nvoc_memoryexportConstruct(arg_pMemoryExport, arg_pCallContext, arg_pParams) memoryexportConstruct_IMPL(arg_pMemoryExport, arg_pCallContext, arg_pParams)
|
||||
|
||||
Reference in New Issue
Block a user