#include <drm/xe_drm.h>
#include <kunit/test.h>
#include <kunit/visibility.h>
#include "tests/xe_dma_buf_test.h"
#include "tests/xe_pci_test.h"
#include "xe_pci.h"
#include "xe_pm.h"
static bool p2p_enabled(struct dma_buf_test_params *params)
{ … }
static bool is_dynamic(struct dma_buf_test_params *params)
{ … }
static void check_residency(struct kunit *test, struct xe_bo *exported,
struct xe_bo *imported, struct dma_buf *dmabuf)
{ … }
static void xe_test_dmabuf_import_same_driver(struct xe_device *xe)
{ … }
static const struct dma_buf_attach_ops nop2p_attach_ops = …;
static const struct dma_buf_test_params test_params[] = …;
static int dma_buf_run_device(struct xe_device *xe)
{ … }
void xe_dma_buf_kunit(struct kunit *test)
{ … }
EXPORT_SYMBOL_IF_KUNIT(…);