Home
last modified time | relevance | path

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

12345678

/linux/include/linux/
A Ddma-fence.h25 struct dma_fence;
65 struct dma_fence { struct
209 bool (*signaled)(struct dma_fence *fence);
238 void (*release)(struct dma_fence *fence);
284 static inline struct dma_fence *dma_fence_get(struct dma_fence *fence) in dma_fence_get()
298 static inline struct dma_fence *dma_fence_get_rcu(struct dma_fence *fence) in dma_fence_get_rcu()
322 static inline struct dma_fence *
326 struct dma_fence *fence; in dma_fence_get_rcu_safe()
472 struct dma_fence *f2) in dma_fence_is_later()
489 static inline struct dma_fence *dma_fence_later(struct dma_fence *f1, in dma_fence_later()
[all …]
A Ddma-resv.h60 struct dma_fence __rcu *shared[];
129 struct dma_fence __rcu *fence_excl;
165 struct dma_fence *fence;
183 struct dma_fence *dma_resv_iter_first_unlocked(struct dma_resv_iter *cursor);
184 struct dma_fence *dma_resv_iter_next_unlocked(struct dma_resv_iter *cursor);
185 struct dma_fence *dma_resv_iter_first(struct dma_resv_iter *cursor);
186 struct dma_fence *dma_resv_iter_next(struct dma_resv_iter *cursor);
437 static inline struct dma_fence *
454 static inline struct dma_fence *
457 struct dma_fence *fence; in dma_resv_get_excl_unlocked()
[all …]
A 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,
A 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/include/trace/events/
A 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),
39 TP_PROTO(struct dma_fence *fence),
46 TP_PROTO(struct dma_fence *fence),
53 TP_PROTO(struct dma_fence *fence),
60 TP_PROTO(struct dma_fence *fence),
67 TP_PROTO(struct dma_fence *fence),
74 TP_PROTO(struct dma_fence *fence),
[all …]
/linux/drivers/dma-buf/
A Ddma-fence-chain.c23 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()
152 struct dma_fence *f = chain ? chain->fence : fence; in dma_fence_chain_enable_signaling()
165 static bool dma_fence_chain_signaled(struct dma_fence *fence) in dma_fence_chain_signaled()
169 struct dma_fence *f = chain ? chain->fence : fence; in dma_fence_chain_signaled()
180 static void dma_fence_chain_release(struct dma_fence *fence) in dma_fence_chain_release()
183 struct dma_fence *prev; in dma_fence_chain_release()
232 struct dma_fence *prev, in dma_fence_chain_init()
[all …]
A Dst-dma-fence.c20 struct dma_fence base;
99 struct dma_fence *f; in sanitycheck()
113 struct dma_fence *f; in test_signaling()
159 struct dma_fence *f; in test_add_callback()
186 struct dma_fence *f; in test_late_add_callback()
215 struct dma_fence *f; in test_rm_callback()
247 struct dma_fence *f; in test_late_rm_callback()
278 struct dma_fence *f; in test_status()
304 struct dma_fence *f; in test_error()
333 struct dma_fence *f; in test_wait()
[all …]
A Ddma-fence.c27 static struct dma_fence dma_fence_stub;
130 struct dma_fence *dma_fence_get_stub(void) in dma_fence_get_stub()
153 struct dma_fence *fence; in dma_fence_allocate_private_stub()
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()
521 struct dma_fence *fence = in dma_fence_release()
522 container_of(kref, struct dma_fence, refcount); in dma_fence_release()
561 void dma_fence_free(struct dma_fence *fence) in dma_fence_free()
676 int dma_fence_get_status(struct dma_fence *fence) in dma_fence_get_status()
811 struct dma_fence *fence = fences[i]; in dma_fence_test_signaled_any()
[all …]
A Ddma-resv.c119 struct dma_fence *excl; in dma_resv_fini()
178 struct dma_fence *fence; in dma_resv_reserve_shared()
204 struct dma_fence *fence; in dma_resv_reserve_shared()
251 struct dma_fence *old; in dma_resv_add_shared_fence()
297 struct dma_fence *old_fence = dma_resv_excl_fence(obj); in dma_resv_add_excl_fence()
439 struct dma_fence *fence; in dma_resv_iter_first()
492 struct dma_fence *f, *excl; in dma_resv_copy_fences()
555 unsigned int *shared_count, struct dma_fence ***shared) in dma_resv_get_fences()
558 struct dma_fence *fence; in dma_resv_get_fences()
622 struct dma_fence *fence; in dma_resv_wait_timeout()
[all …]
A 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()
A Dsync_file.c64 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()
189 static void add_fence(struct dma_fence **fences, in add_fence()
190 int *i, struct dma_fence *fence) in add_fence()
240 struct dma_fence *pt_a = a_fences[i_a]; in sync_file_merge()
241 struct dma_fence *pt_b = b_fences[i_b]; in sync_file_merge()
378 static int sync_fill_fence_info(struct dma_fence *fence, in sync_fill_fence_info()
[all …]
A Dst-dma-fence-chain.c25 struct dma_fence base;
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;
103 struct dma_fence *tail;
180 struct dma_fence *fence; in find_seqno()
258 struct dma_fence *fence; in find_signaled()
296 struct dma_fence *fence; in find_out_of_order()
[all …]
/linux/drivers/gpu/drm/i915/
A 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/drivers/gpu/drm/amd/amdgpu/
A 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()
194 void *owner, struct dma_fence *f) in amdgpu_sync_test_fence()
256 struct dma_fence *f; in amdgpu_sync_resv()
312 struct dma_fence *f = e->fence; in amdgpu_sync_peek_fence()
346 struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync) in amdgpu_sync_get_fence()
350 struct dma_fence *f; in amdgpu_sync_get_fence()
[all …]
A 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);
A Damdgpu_fence.c53 struct dma_fence base;
144 struct dma_fence *fence; in amdgpu_fence_emit()
146 struct dma_fence __rcu **ptr; in amdgpu_fence_emit()
182 struct dma_fence *old; in amdgpu_fence_emit()
288 struct dma_fence *fence, **ptr; in amdgpu_fence_process()
337 struct dma_fence *fence, **ptr; in amdgpu_fence_wait_empty()
625 struct dma_fence *old, **ptr; in amdgpu_fence_driver_clear_job_fences()
710 struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); in amdgpu_fence_free()
725 struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); in amdgpu_job_fence_free()
739 static void amdgpu_fence_release(struct dma_fence *f) in amdgpu_fence_release()
[all …]
A 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/include/drm/
A 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);
A Dgpu_scheduler.h152 struct dma_fence *dependency;
175 struct dma_fence *last_scheduled;
227 struct dma_fence scheduled;
239 struct dma_fence finished;
246 struct dma_fence *parent;
262 struct drm_sched_fence *to_drm_sched_fence(struct dma_fence *f);
338 struct dma_fence *(*dependency)(struct drm_sched_job *sched_job,
347 struct dma_fence *(*run_job)(struct drm_sched_job *sched_job);
464 struct dma_fence *fence);
483 bool drm_sched_dependency_optimized(struct dma_fence* fence,
/linux/drivers/gpu/drm/vgem/
A 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/drivers/gpu/drm/i915/gem/
A 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/drivers/gpu/drm/scheduler/
A Dsched_fence.c61 static const char *drm_sched_fence_get_driver_name(struct dma_fence *fence) in drm_sched_fence_get_driver_name()
66 static const char *drm_sched_fence_get_timeline_name(struct dma_fence *f) in drm_sched_fence_get_timeline_name()
74 struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); in drm_sched_fence_free_rcu()
104 static void drm_sched_fence_release_scheduled(struct dma_fence *f) in drm_sched_fence_release_scheduled()
119 static void drm_sched_fence_release_finished(struct dma_fence *f) in drm_sched_fence_release_finished()
138 struct drm_sched_fence *to_drm_sched_fence(struct dma_fence *f) in to_drm_sched_fence()
/linux/drivers/gpu/host1x/
A 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/drivers/gpu/drm/msm/
A 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/drivers/gpu/drm/i915/gt/
A 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,

Completed in 37 milliseconds

12345678