linux/drivers/gpu/drm/i915/selftests/i915_sw_fence.c

/*
 * Copyright © 2017 Intel Corporation
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 */

#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)
{}