This source file includes following definitions.
- dma_fence_parent
1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef _LINUX_SYNC_H
14 #define _LINUX_SYNC_H
15
16 #include <linux/list.h>
17 #include <linux/rbtree.h>
18 #include <linux/spinlock.h>
19 #include <linux/dma-fence.h>
20
21 #include <linux/sync_file.h>
22 #include <uapi/linux/sync_file.h>
23
24
25
26
27
28
29
30
31
32
33 struct sync_timeline {
34 struct kref kref;
35 char name[32];
36
37
38 u64 context;
39 int value;
40
41 struct rb_root pt_tree;
42 struct list_head pt_list;
43 spinlock_t lock;
44
45 struct list_head sync_timeline_list;
46 };
47
48 static inline struct sync_timeline *dma_fence_parent(struct dma_fence *fence)
49 {
50 return container_of(fence->lock, struct sync_timeline, lock);
51 }
52
53
54
55
56
57
58
59 struct sync_pt {
60 struct dma_fence base;
61 struct list_head link;
62 struct rb_node node;
63 };
64
65 extern const struct file_operations sw_sync_debugfs_fops;
66
67 void sync_timeline_debug_add(struct sync_timeline *obj);
68 void sync_timeline_debug_remove(struct sync_timeline *obj);
69 void sync_file_debug_add(struct sync_file *fence);
70 void sync_file_debug_remove(struct sync_file *fence);
71
72 #endif