// SPDX-License-Identifier: GPL-2.0 /* * Copyright © 2020 Intel Corporation */ static struct intel_ring *mock_ring(unsigned long sz) { … } static void mock_ring_free(struct intel_ring *ring) { … } static int check_ring_direction(struct intel_ring *ring, u32 next, u32 prev, int expected) { … } static int check_ring_step(struct intel_ring *ring, u32 x, u32 step) { … } static int check_ring_offset(struct intel_ring *ring, u32 x, u32 step) { … } static int igt_ring_direction(void *dummy) { … } int intel_ring_mock_selftests(void) { … }