summaryrefslogtreecommitdiff
path: root/rust/helpers/dma_fence.c
blob: 549f6b6a7171639db4b3bf8221045ec1f7a177ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// SPDX-License-Identifier: GPL-2.0

#include <linux/dma-fence.h>

__rust_helper void rust_helper_dma_fence_get(struct dma_fence *f)
{
	dma_fence_get(f);
}

__rust_helper void rust_helper_dma_fence_put(struct dma_fence *f)
{
	dma_fence_put(f);
}

__rust_helper bool rust_helper_dma_fence_begin_signalling(void)
{
	return dma_fence_begin_signalling();
}

__rust_helper void rust_helper_dma_fence_end_signalling(bool cookie)
{
	dma_fence_end_signalling(cookie);
}

__rust_helper bool rust_helper_dma_fence_is_signaled(struct dma_fence *f)
{
	return dma_fence_is_signaled(f);
}

__rust_helper bool rust_helper_dma_fence_test_signaled_flag(struct dma_fence *f)
{
	return dma_fence_test_signaled_flag(f);
}

__rust_helper void rust_helper_dma_fence_lock_irqsave(struct dma_fence *f, unsigned long *flags)
{
	dma_fence_lock_irqsave(f, *flags);
}

__rust_helper void rust_helper_dma_fence_unlock_irqrestore(struct dma_fence *f,
							   unsigned long *flags)
{
	dma_fence_unlock_irqrestore(f, *flags);
}

__rust_helper void rust_helper_dma_fence_set_error(struct dma_fence *f, int error)
{
	dma_fence_set_error(f, error);
}