#include "i915_drv.h"
#include "i915_selftest.h"
#include "gem/i915_gem_context.h"
#include "gt/intel_gt.h"
#include "mock_context.h"
#include "mock_dmabuf.h"
#include "igt_gem_utils.h"
#include "selftests/mock_drm.h"
#include "selftests/mock_gem_device.h"
static int igt_dmabuf_export(void *arg)
{ … }
static int igt_dmabuf_import_self(void *arg)
{ … }
static int igt_dmabuf_import_same_driver_lmem(void *arg)
{ … }
static int verify_access(struct drm_i915_private *i915,
struct drm_i915_gem_object *native_obj,
struct drm_i915_gem_object *import_obj)
{ … }
static int igt_dmabuf_import_same_driver(struct drm_i915_private *i915,
struct intel_memory_region **regions,
unsigned int num_regions)
{ … }
static int igt_dmabuf_import_same_driver_smem(void *arg)
{ … }
static int igt_dmabuf_import_same_driver_lmem_smem(void *arg)
{ … }
static int igt_dmabuf_import(void *arg)
{ … }
static int igt_dmabuf_import_ownership(void *arg)
{ … }
static int igt_dmabuf_export_vmap(void *arg)
{ … }
int i915_gem_dmabuf_mock_selftests(void)
{ … }
int i915_gem_dmabuf_live_selftests(struct drm_i915_private *i915)
{ … }