Home
last modified time | relevance | path

Searched refs:dma_fence (Results 1 – 25 of 190) sorted by relevance

12345678

/Linux-v5.15/include/linux/
Ddma-fence.h25 struct dma_fence;
65 struct dma_fence { struct
105 typedef void (*dma_fence_func_t)(struct dma_fence *fence, argument
143 const char * (*get_driver_name)(struct dma_fence *fence);
155 const char * (*get_timeline_name)(struct dma_fence *fence);
192 bool (*enable_signaling)(struct dma_fence *fence);
209 bool (*signaled)(struct dma_fence *fence);
231 signed long (*wait)(struct dma_fence *fence,
242 void (*release)(struct dma_fence *fence);
252 void (*fence_value_str)(struct dma_fence *fence, char *str, int size);
[all …]
Ddma-fence-chain.h26 struct dma_fence base;
27 struct dma_fence __rcu *prev;
29 struct dma_fence *fence;
62 to_dma_fence_chain(struct dma_fence *fence) in to_dma_fence_chain()
106 struct dma_fence *dma_fence_chain_walk(struct dma_fence *fence);
107 int dma_fence_chain_find_seqno(struct dma_fence **pfence, uint64_t seqno);
109 struct dma_fence *prev,
110 struct dma_fence *fence,
Ddma-resv.h60 struct dma_fence __rcu *shared[];
74 struct dma_fence __rcu *fence_excl;
225 static inline struct dma_fence *
242 static inline struct dma_fence *
245 struct dma_fence *fence; in dma_resv_get_excl_unlocked()
273 void dma_resv_add_shared_fence(struct dma_resv *obj, struct dma_fence *fence);
274 void dma_resv_add_excl_fence(struct dma_resv *obj, struct dma_fence *fence);
275 int dma_resv_get_fences(struct dma_resv *obj, struct dma_fence **pfence_excl,
276 unsigned *pshared_count, struct dma_fence ***pshared);
Ddma-fence-array.h38 struct dma_fence base;
43 struct dma_fence **fences;
56 static inline bool dma_fence_is_array(struct dma_fence *fence) in dma_fence_is_array()
69 to_dma_fence_array(struct dma_fence *fence) in to_dma_fence_array()
78 struct dma_fence **fences,
82 bool dma_fence_match_context(struct dma_fence *fence, u64 context);
/Linux-v5.15/include/trace/events/
Ddma_fence.h3 #define TRACE_SYSTEM dma_fence
10 struct dma_fence;
12 DECLARE_EVENT_CLASS(dma_fence,
14 TP_PROTO(struct dma_fence *fence),
37 DEFINE_EVENT(dma_fence, dma_fence_emit,
39 TP_PROTO(struct dma_fence *fence),
44 DEFINE_EVENT(dma_fence, dma_fence_init,
46 TP_PROTO(struct dma_fence *fence),
51 DEFINE_EVENT(dma_fence, dma_fence_destroy,
53 TP_PROTO(struct dma_fence *fence),
[all …]
/Linux-v5.15/drivers/dma-buf/
Ddma-fence-chain.c12 static bool dma_fence_chain_enable_signaling(struct dma_fence *fence);
21 static struct dma_fence *dma_fence_chain_get_prev(struct dma_fence_chain *chain) in dma_fence_chain_get_prev()
23 struct dma_fence *prev; in dma_fence_chain_get_prev()
39 struct dma_fence *dma_fence_chain_walk(struct dma_fence *fence) in dma_fence_chain_walk()
42 struct dma_fence *prev, *replacement, *tmp; in dma_fence_chain_walk()
65 tmp = cmpxchg((struct dma_fence __force **)&chain->prev, in dma_fence_chain_walk()
90 int dma_fence_chain_find_seqno(struct dma_fence **pfence, uint64_t seqno) in dma_fence_chain_find_seqno()
112 static const char *dma_fence_chain_get_driver_name(struct dma_fence *fence) in dma_fence_chain_get_driver_name()
117 static const char *dma_fence_chain_get_timeline_name(struct dma_fence *fence) in dma_fence_chain_get_timeline_name()
135 static void dma_fence_chain_cb(struct dma_fence *f, struct dma_fence_cb *cb) in dma_fence_chain_cb()
[all …]
Dst-dma-fence.c20 struct dma_fence base;
22 } *to_mock_fence(struct dma_fence *f) { in to_mock_fence()
26 static const char *mock_name(struct dma_fence *f) in mock_name()
31 static void mock_fence_release(struct dma_fence *f) in mock_fence_release()
41 static void mock_wakeup(struct dma_fence *f, struct dma_fence_cb *cb) in mock_wakeup()
46 static long mock_wait(struct dma_fence *f, bool intr, long timeout) in mock_wait()
83 static struct dma_fence *mock_fence(void) in mock_fence()
99 struct dma_fence *f; in sanitycheck()
113 struct dma_fence *f; in test_signaling()
151 static void simple_callback(struct dma_fence *f, struct dma_fence_cb *cb) in simple_callback()
[all …]
Ddma-fence.c27 static struct dma_fence dma_fence_stub;
113 static const char *dma_fence_stub_get_name(struct dma_fence *fence) in dma_fence_stub_get_name()
130 struct dma_fence *dma_fence_get_stub(void) in dma_fence_get_stub()
151 struct dma_fence *dma_fence_allocate_private_stub(void) in dma_fence_allocate_private_stub()
153 struct dma_fence *fence; in dma_fence_allocate_private_stub()
357 int dma_fence_signal_timestamp_locked(struct dma_fence *fence, in dma_fence_signal_timestamp_locked()
400 int dma_fence_signal_timestamp(struct dma_fence *fence, ktime_t timestamp) in dma_fence_signal_timestamp()
432 int dma_fence_signal_locked(struct dma_fence *fence) in dma_fence_signal_locked()
451 int dma_fence_signal(struct dma_fence *fence) in dma_fence_signal()
491 dma_fence_wait_timeout(struct dma_fence *fence, bool intr, signed long timeout) in dma_fence_wait_timeout()
[all …]
Ddma-resv.c117 struct dma_fence *excl; in dma_resv_fini()
172 struct dma_fence *fence; in dma_resv_reserve_shared()
198 struct dma_fence *fence; in dma_resv_reserve_shared()
240 void dma_resv_add_shared_fence(struct dma_resv *obj, struct dma_fence *fence) in dma_resv_add_shared_fence()
243 struct dma_fence *old; in dma_resv_add_shared_fence()
285 void dma_resv_add_excl_fence(struct dma_resv *obj, struct dma_fence *fence) in dma_resv_add_excl_fence()
287 struct dma_fence *old_fence = dma_resv_excl_fence(obj); in dma_resv_add_excl_fence()
326 struct dma_fence *old, *new; in dma_resv_copy_fences()
353 struct dma_fence __rcu **dst; in dma_resv_copy_fences()
354 struct dma_fence *fence; in dma_resv_copy_fences()
[all …]
Dseqno-fence.c16 static const char *seqno_fence_get_driver_name(struct dma_fence *fence) in seqno_fence_get_driver_name()
23 static const char *seqno_fence_get_timeline_name(struct dma_fence *fence) in seqno_fence_get_timeline_name()
30 static bool seqno_enable_signaling(struct dma_fence *fence) in seqno_enable_signaling()
37 static bool seqno_signaled(struct dma_fence *fence) in seqno_signaled()
44 static void seqno_release(struct dma_fence *fence) in seqno_release()
55 static signed long seqno_wait(struct dma_fence *fence, bool intr, in seqno_wait()
Ddma-fence-array.c18 static const char *dma_fence_array_get_driver_name(struct dma_fence *fence) in dma_fence_array_get_driver_name()
23 static const char *dma_fence_array_get_timeline_name(struct dma_fence *fence) in dma_fence_array_get_timeline_name()
55 static void dma_fence_array_cb_func(struct dma_fence *f, in dma_fence_array_cb_func()
70 static bool dma_fence_array_enable_signaling(struct dma_fence *fence) in dma_fence_array_enable_signaling()
103 static bool dma_fence_array_signaled(struct dma_fence *fence) in dma_fence_array_signaled()
110 static void dma_fence_array_release(struct dma_fence *fence) in dma_fence_array_release()
151 struct dma_fence **fences, in dma_fence_array_create()
188 bool dma_fence_match_context(struct dma_fence *fence, u64 context) in dma_fence_match_context()
Dsync_file.c46 static void fence_check_cb_func(struct dma_fence *f, struct dma_fence_cb *cb) in fence_check_cb_func()
64 struct sync_file *sync_file_create(struct dma_fence *fence) in sync_file_create()
102 struct dma_fence *sync_file_get_fence(int fd) in sync_file_get_fence()
105 struct dma_fence *fence; in sync_file_get_fence()
136 struct dma_fence *fence = sync_file->fence; in sync_file_get_name()
149 struct dma_fence **fences, int num_fences) in sync_file_set_fence()
175 static struct dma_fence **get_fences(struct sync_file *sync_file, in get_fences()
189 static void add_fence(struct dma_fence **fences, in add_fence()
190 int *i, struct dma_fence *fence) in add_fence()
214 struct dma_fence **fences = NULL, **nfences, **a_fences, **b_fences; in sync_file_merge()
[all …]
Dst-dma-fence-chain.c25 struct dma_fence base;
27 } *to_mock_fence(struct dma_fence *f) { in to_mock_fence()
31 static const char *mock_name(struct dma_fence *f) in mock_name()
36 static void mock_fence_release(struct dma_fence *f) in mock_fence_release()
47 static struct dma_fence *mock_fence(void) in mock_fence()
61 static struct dma_fence *mock_chain(struct dma_fence *prev, in mock_chain()
62 struct dma_fence *fence, in mock_chain()
79 struct dma_fence *f, *chain; in sanitycheck()
100 struct dma_fence **fences;
101 struct dma_fence **chains;
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_active.h48 void i915_active_noop(struct dma_fence *fence, struct dma_fence_cb *cb);
74 struct dma_fence *
76 struct dma_fence *fence);
100 static inline struct dma_fence *
103 struct dma_fence *fence; in i915_active_fence_get()
167 struct dma_fence *
168 __i915_active_ref(struct i915_active *ref, u64 idx, struct dma_fence *fence);
169 int i915_active_ref(struct i915_active *ref, u64 idx, struct dma_fence *fence);
179 struct dma_fence *
180 i915_active_set_exclusive(struct i915_active *ref, struct dma_fence *f);
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sync.c39 struct dma_fence *fence;
66 struct dma_fence *f) in amdgpu_sync_same_dev()
87 static void *amdgpu_sync_get_owner(struct dma_fence *f) in amdgpu_sync_get_owner()
114 static void amdgpu_sync_keep_later(struct dma_fence **keep, in amdgpu_sync_keep_later()
115 struct dma_fence *fence) in amdgpu_sync_keep_later()
133 static bool amdgpu_sync_add_later(struct amdgpu_sync *sync, struct dma_fence *f) in amdgpu_sync_add_later()
155 int amdgpu_sync_fence(struct amdgpu_sync *sync, struct dma_fence *f) in amdgpu_sync_fence()
182 int amdgpu_sync_vm_fence(struct amdgpu_sync *sync, struct dma_fence *fence) in amdgpu_sync_vm_fence()
194 void *owner, struct dma_fence *f) in amdgpu_sync_test_fence()
256 struct dma_fence *f; in amdgpu_sync_resv()
[all …]
Damdgpu_sync.h29 struct dma_fence;
46 struct dma_fence *last_vm_update;
50 int amdgpu_sync_fence(struct amdgpu_sync *sync, struct dma_fence *f);
51 int amdgpu_sync_vm_fence(struct amdgpu_sync *sync, struct dma_fence *fence);
55 struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync,
57 struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync);
Damdgpu_amdkfd_fence.c85 struct amdgpu_amdkfd_fence *to_amdgpu_amdkfd_fence(struct dma_fence *f) in to_amdgpu_amdkfd_fence()
99 static const char *amdkfd_fence_get_driver_name(struct dma_fence *f) in amdkfd_fence_get_driver_name()
104 static const char *amdkfd_fence_get_timeline_name(struct dma_fence *f) in amdkfd_fence_get_timeline_name()
119 static bool amdkfd_fence_enable_signaling(struct dma_fence *f) in amdkfd_fence_enable_signaling()
147 static void amdkfd_fence_release(struct dma_fence *f) in amdkfd_fence_release()
168 bool amdkfd_fence_check_mm(struct dma_fence *f, struct mm_struct *mm) in amdkfd_fence_check_mm()
/Linux-v5.15/include/drm/
Ddrm_syncobj.h51 struct dma_fence __rcu *fence;
102 static inline struct dma_fence *
105 struct dma_fence *fence; in drm_syncobj_fence_get()
118 struct dma_fence *fence,
121 struct dma_fence *fence);
124 struct dma_fence **fence);
127 struct dma_fence *fence);
Dgpu_scheduler.h97 struct dma_fence *dependency;
100 struct dma_fence *last_scheduled;
133 struct dma_fence scheduled;
145 struct dma_fence finished;
152 struct dma_fence *parent;
168 struct drm_sched_fence *to_drm_sched_fence(struct dma_fence *f);
227 struct dma_fence *(*dependency)(struct drm_sched_job *sched_job,
236 struct dma_fence *(*run_job)(struct drm_sched_job *sched_job);
364 bool drm_sched_dependency_optimized(struct dma_fence* fence,
/Linux-v5.15/drivers/gpu/drm/vgem/
Dvgem_fence.c33 struct dma_fence base;
38 static const char *vgem_fence_get_driver_name(struct dma_fence *fence) in vgem_fence_get_driver_name()
43 static const char *vgem_fence_get_timeline_name(struct dma_fence *fence) in vgem_fence_get_timeline_name()
48 static void vgem_fence_release(struct dma_fence *base) in vgem_fence_release()
56 static void vgem_fence_value_str(struct dma_fence *fence, char *str, int size) in vgem_fence_value_str()
61 static void vgem_fence_timeline_value_str(struct dma_fence *fence, char *str, in vgem_fence_timeline_value_str()
84 static struct dma_fence *vgem_fence_create(struct vgem_file *vfile, in vgem_fence_create()
133 struct dma_fence *fence; in vgem_fence_attach_ioctl()
210 struct dma_fence *fence; in vgem_fence_signal_ioctl()
/Linux-v5.15/drivers/gpu/drm/scheduler/
Dsched_fence.c75 static const char *drm_sched_fence_get_driver_name(struct dma_fence *fence) in drm_sched_fence_get_driver_name()
80 static const char *drm_sched_fence_get_timeline_name(struct dma_fence *f) in drm_sched_fence_get_timeline_name()
95 struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); in drm_sched_fence_free()
109 static void drm_sched_fence_release_scheduled(struct dma_fence *f) in drm_sched_fence_release_scheduled()
124 static void drm_sched_fence_release_finished(struct dma_fence *f) in drm_sched_fence_release_finished()
143 struct drm_sched_fence *to_drm_sched_fence(struct dma_fence *f) in to_drm_sched_fence()
/Linux-v5.15/drivers/gpu/drm/i915/gem/
Di915_gem_wait.c18 i915_gem_object_wait_fence(struct dma_fence *fence, in i915_gem_object_wait_fence()
40 struct dma_fence *excl; in i915_gem_object_wait_reservation()
44 struct dma_fence **shared; in i915_gem_object_wait_reservation()
94 static void fence_set_priority(struct dma_fence *fence, in fence_set_priority()
112 static inline bool __dma_fence_is_chain(const struct dma_fence *fence) in __dma_fence_is_chain()
117 void i915_gem_fence_wait_priority(struct dma_fence *fence, in i915_gem_fence_wait_priority()
133 struct dma_fence *iter; in i915_gem_fence_wait_priority()
154 struct dma_fence *excl; in i915_gem_object_wait_priority()
157 struct dma_fence **shared; in i915_gem_object_wait_priority()
/Linux-v5.15/drivers/gpu/host1x/
Dfence.c21 struct dma_fence base;
34 static const char *host1x_syncpt_fence_get_driver_name(struct dma_fence *f) in host1x_syncpt_fence_get_driver_name()
39 static const char *host1x_syncpt_fence_get_timeline_name(struct dma_fence *f) in host1x_syncpt_fence_get_timeline_name()
44 static struct host1x_syncpt_fence *to_host1x_fence(struct dma_fence *f) in to_host1x_fence()
49 static bool host1x_syncpt_fence_enable_signaling(struct dma_fence *f) in host1x_syncpt_fence_enable_signaling()
92 static void host1x_syncpt_fence_release(struct dma_fence *f) in host1x_syncpt_fence_release()
146 struct dma_fence *host1x_fence_create(struct host1x_syncpt *sp, u32 threshold) in host1x_fence_create()
/Linux-v5.15/drivers/gpu/drm/msm/
Dmsm_fence.c56 struct dma_fence base;
60 static inline struct msm_fence *to_msm_fence(struct dma_fence *fence) in to_msm_fence()
65 static const char *msm_fence_get_driver_name(struct dma_fence *fence) in msm_fence_get_driver_name()
70 static const char *msm_fence_get_timeline_name(struct dma_fence *fence) in msm_fence_get_timeline_name()
76 static bool msm_fence_signaled(struct dma_fence *fence) in msm_fence_signaled()
88 struct dma_fence *
/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dintel_migrate.h13 struct dma_fence;
26 struct dma_fence *await,
36 struct dma_fence *await,
48 struct dma_fence *await,
56 struct dma_fence *await,

12345678