#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/prime_numbers.h>
#include "../i915_selftest.h"
static int
fence_notify(struct i915_sw_fence *fence, enum i915_sw_fence_notify state)
{ … }
static struct i915_sw_fence *alloc_fence(void)
{ … }
static void free_fence(struct i915_sw_fence *fence)
{ … }
static int __test_self(struct i915_sw_fence *fence)
{ … }
static int test_self(void *arg)
{ … }
static int test_dag(void *arg)
{ … }
static int test_AB(void *arg)
{ … }
static int test_ABC(void *arg)
{ … }
static int test_AB_C(void *arg)
{ … }
static int test_C_AB(void *arg)
{ … }
static int test_chain(void *arg)
{ … }
struct task_ipc { … };
static void task_ipc(struct work_struct *work)
{ … }
static int test_ipc(void *arg)
{ … }
static int test_timer(void *arg)
{ … }
static const char *mock_name(struct dma_fence *fence)
{ … }
static const struct dma_fence_ops mock_fence_ops = …;
static DEFINE_SPINLOCK(mock_fence_lock);
static struct dma_fence *alloc_dma_fence(void)
{ … }
static struct i915_sw_fence *
wrap_dma_fence(struct dma_fence *dma, unsigned long delay)
{ … }
static int test_dma_fence(void *arg)
{ … }
int i915_sw_fence_mock_selftests(void)
{ … }