#include <linux/dma-fence.h>
#include <linux/dma-fence-array.h>
#include <linux/dma-fence-chain.h>
#include <linux/dma-fence-unwrap.h>
#include "selftest.h"
#define CHAIN_SZ …
struct mock_fence { … };
static const char *mock_name(struct dma_fence *f)
{ … }
static const struct dma_fence_ops mock_ops = …;
static struct dma_fence *mock_fence(void)
{ … }
static struct dma_fence *mock_array(unsigned int num_fences, ...)
{ … }
static struct dma_fence *mock_chain(struct dma_fence *prev,
struct dma_fence *fence)
{ … }
static int sanitycheck(void *arg)
{ … }
static int unwrap_array(void *arg)
{ … }
static int unwrap_chain(void *arg)
{ … }
static int unwrap_chain_array(void *arg)
{ … }
static int unwrap_merge(void *arg)
{ … }
static int unwrap_merge_complex(void *arg)
{ … }
int dma_fence_unwrap(void)
{ … }