Home
last modified time | relevance | path

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

123456

/Linux-v4.19/include/linux/
Ddma-fence.h33 struct dma_fence;
73 struct dma_fence { struct
93 typedef void (*dma_fence_func_t)(struct dma_fence *fence, argument
123 const char * (*get_driver_name)(struct dma_fence *fence);
135 const char * (*get_timeline_name)(struct dma_fence *fence);
172 bool (*enable_signaling)(struct dma_fence *fence);
189 bool (*signaled)(struct dma_fence *fence);
211 signed long (*wait)(struct dma_fence *fence,
222 void (*release)(struct dma_fence *fence);
232 void (*fence_value_str)(struct dma_fence *fence, char *str, int size);
[all …]
Dreservation.h62 struct dma_fence __rcu *shared[];
77 struct dma_fence __rcu *fence_excl;
110 struct dma_fence *excl; in reservation_object_fini()
235 static inline struct dma_fence *
253 static inline struct dma_fence *
256 struct dma_fence *fence; in reservation_object_get_excl_rcu()
270 struct dma_fence *fence);
273 struct dma_fence *fence);
276 struct dma_fence **pfence_excl,
278 struct dma_fence ***pshared);
Ddma-fence-array.h45 struct dma_fence base;
50 struct dma_fence **fences;
63 static inline bool dma_fence_is_array(struct dma_fence *fence) in dma_fence_is_array()
76 to_dma_fence_array(struct dma_fence *fence) in to_dma_fence_array()
85 struct dma_fence **fences,
89 bool dma_fence_match_context(struct dma_fence *fence, u64 context);
Dsync_file.h52 struct dma_fence *fence;
58 struct sync_file *sync_file_create(struct dma_fence *fence);
59 struct dma_fence *sync_file_get_fence(int fd);
/Linux-v4.19/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-v4.19/drivers/dma-buf/
Dreservation.c105 struct dma_fence *fence) in reservation_object_add_shared_inplace()
107 struct dma_fence *signaled = NULL; in reservation_object_add_shared_inplace()
116 struct dma_fence *old_fence; in reservation_object_add_shared_inplace()
159 struct dma_fence *fence) in reservation_object_add_shared_replace()
178 struct dma_fence *check; in reservation_object_add_shared_replace()
209 struct dma_fence *f; in reservation_object_add_shared_replace()
227 struct dma_fence *fence) in reservation_object_add_shared_fence()
249 struct dma_fence *fence) in reservation_object_add_excl_fence()
251 struct dma_fence *old_fence = reservation_object_get_excl(obj); in reservation_object_add_excl_fence()
291 struct dma_fence *old, *new; in reservation_object_copy_fences()
[all …]
Ddma-fence.c102 int dma_fence_signal_locked(struct dma_fence *fence) in dma_fence_signal_locked()
146 int dma_fence_signal(struct dma_fence *fence) in dma_fence_signal()
193 dma_fence_wait_timeout(struct dma_fence *fence, bool intr, signed long timeout) in dma_fence_wait_timeout()
219 struct dma_fence *fence = in dma_fence_release()
220 container_of(kref, struct dma_fence, refcount); in dma_fence_release()
241 void dma_fence_free(struct dma_fence *fence) in dma_fence_free()
255 void dma_fence_enable_sw_signaling(struct dma_fence *fence) in dma_fence_enable_sw_signaling()
300 int dma_fence_add_callback(struct dma_fence *fence, struct dma_fence_cb *cb, in dma_fence_add_callback()
354 int dma_fence_get_status(struct dma_fence *fence) in dma_fence_get_status()
386 dma_fence_remove_callback(struct dma_fence *fence, struct dma_fence_cb *cb) in dma_fence_remove_callback()
[all …]
Dseqno-fence.c24 static const char *seqno_fence_get_driver_name(struct dma_fence *fence) in seqno_fence_get_driver_name()
31 static const char *seqno_fence_get_timeline_name(struct dma_fence *fence) in seqno_fence_get_timeline_name()
38 static bool seqno_enable_signaling(struct dma_fence *fence) in seqno_enable_signaling()
45 static bool seqno_signaled(struct dma_fence *fence) in seqno_signaled()
52 static void seqno_release(struct dma_fence *fence) in seqno_release()
63 static signed long seqno_wait(struct dma_fence *fence, bool intr, in seqno_wait()
Ddma-fence-array.c24 static const char *dma_fence_array_get_driver_name(struct dma_fence *fence) in dma_fence_array_get_driver_name()
29 static const char *dma_fence_array_get_timeline_name(struct dma_fence *fence) in dma_fence_array_get_timeline_name()
42 static void dma_fence_array_cb_func(struct dma_fence *f, in dma_fence_array_cb_func()
55 static bool dma_fence_array_enable_signaling(struct dma_fence *fence) in dma_fence_array_enable_signaling()
83 static bool dma_fence_array_signaled(struct dma_fence *fence) in dma_fence_array_signaled()
90 static void dma_fence_array_release(struct dma_fence *fence) in dma_fence_array_release()
131 struct dma_fence **fences, in dma_fence_array_create()
166 bool dma_fence_match_context(struct dma_fence *fence, u64 context) in dma_fence_match_context()
Dsync_file.c55 static void fence_check_cb_func(struct dma_fence *f, struct dma_fence_cb *cb) in fence_check_cb_func()
73 struct sync_file *sync_file_create(struct dma_fence *fence) in sync_file_create()
111 struct dma_fence *sync_file_get_fence(int fd) in sync_file_get_fence()
114 struct dma_fence *fence; in sync_file_get_fence()
145 struct dma_fence *fence = sync_file->fence; in sync_file_get_name()
158 struct dma_fence **fences, int num_fences) in sync_file_set_fence()
184 static struct dma_fence **get_fences(struct sync_file *sync_file, in get_fences()
198 static void add_fence(struct dma_fence **fences, in add_fence()
199 int *i, struct dma_fence *fence) in add_fence()
223 struct dma_fence **fences, **nfences, **a_fences, **b_fences; in sync_file_merge()
[all …]
/Linux-v4.19/include/drm/
Dgpu_scheduler.h85 struct dma_fence *dependency;
88 struct dma_fence *last_scheduled;
119 struct dma_fence scheduled;
131 struct dma_fence finished;
142 struct dma_fence *parent;
158 struct drm_sched_fence *to_drm_sched_fence(struct dma_fence *f);
216 struct dma_fence *(*dependency)(struct drm_sched_job *sched_job,
225 struct dma_fence *(*run_job)(struct drm_sched_job *sched_job);
307 bool drm_sched_dependency_optimized(struct dma_fence* fence,
Ddrm_syncobj.h50 struct dma_fence __rcu *fence;
120 static inline struct dma_fence *
123 struct dma_fence *fence; in drm_syncobj_fence_get()
140 struct dma_fence *fence);
143 struct dma_fence **fence);
146 struct dma_fence *fence);
/Linux-v4.19/drivers/gpu/drm/vgem/
Dvgem_fence.c31 struct dma_fence base;
36 static const char *vgem_fence_get_driver_name(struct dma_fence *fence) in vgem_fence_get_driver_name()
41 static const char *vgem_fence_get_timeline_name(struct dma_fence *fence) in vgem_fence_get_timeline_name()
46 static bool vgem_fence_signaled(struct dma_fence *fence) in vgem_fence_signaled()
51 static bool vgem_fence_enable_signaling(struct dma_fence *fence) in vgem_fence_enable_signaling()
56 static void vgem_fence_release(struct dma_fence *base) in vgem_fence_release()
64 static void vgem_fence_value_str(struct dma_fence *fence, char *str, int size) in vgem_fence_value_str()
69 static void vgem_fence_timeline_value_str(struct dma_fence *fence, char *str, in vgem_fence_timeline_value_str()
95 static struct dma_fence *vgem_fence_create(struct vgem_file *vfile, in vgem_fence_create()
160 struct dma_fence *fence; in vgem_fence_attach_ioctl()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sync.c38 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, bool explicit) in amdgpu_sync_add_later()
159 struct dma_fence *f, bool explicit) in amdgpu_sync_fence()
198 struct dma_fence *f; in amdgpu_sync_resv()
259 struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, in amdgpu_sync_peek_fence()
267 struct dma_fence *f = e->fence; in amdgpu_sync_peek_fence()
[all …]
Damdgpu_sync.h29 struct dma_fence;
39 struct dma_fence *last_vm_update;
44 struct dma_fence *f, bool explicit);
50 struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync,
52 struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync, bool *explicit);
Damdgpu_amdkfd_fence.c83 struct amdgpu_amdkfd_fence *to_amdgpu_amdkfd_fence(struct dma_fence *f) in to_amdgpu_amdkfd_fence()
97 static const char *amdkfd_fence_get_driver_name(struct dma_fence *f) in amdkfd_fence_get_driver_name()
102 static const char *amdkfd_fence_get_timeline_name(struct dma_fence *f) in amdkfd_fence_get_timeline_name()
115 static bool amdkfd_fence_enable_signaling(struct dma_fence *f) in amdkfd_fence_enable_signaling()
139 static void amdkfd_fence_release(struct dma_fence *f) in amdkfd_fence_release()
160 bool amdkfd_fence_check_mm(struct dma_fence *f, struct mm_struct *mm) in amdkfd_fence_check_mm()
Damdgpu_ids.h45 struct dma_fence *last_flush;
50 struct dma_fence *flushed_updates;
62 struct dma_fence *pasid_mapping;
87 struct amdgpu_sync *sync, struct dma_fence *fence,
Damdgpu_amdkfd.h74 struct dma_fence base;
82 bool amdkfd_fence_check_mm(struct dma_fence *f, struct mm_struct *mm);
83 struct amdgpu_amdkfd_fence *to_amdgpu_amdkfd_fence(struct dma_fence *f);
167 struct dma_fence **ef);
171 struct dma_fence **ef);
191 struct dma_fence **ef);
Damdgpu_fence.c51 struct dma_fence base;
78 static inline struct amdgpu_fence *to_amdgpu_fence(struct dma_fence *f) in to_amdgpu_fence()
134 int amdgpu_fence_emit(struct amdgpu_ring *ring, struct dma_fence **f, in amdgpu_fence_emit()
139 struct dma_fence *old, **ptr; in amdgpu_fence_emit()
242 struct dma_fence *fence, **ptr; in amdgpu_fence_process()
292 struct dma_fence *fence, **ptr; in amdgpu_fence_wait_empty()
586 static const char *amdgpu_fence_get_driver_name(struct dma_fence *fence) in amdgpu_fence_get_driver_name()
591 static const char *amdgpu_fence_get_timeline_name(struct dma_fence *f) in amdgpu_fence_get_timeline_name()
605 static bool amdgpu_fence_enable_signaling(struct dma_fence *f) in amdgpu_fence_enable_signaling()
627 struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); in amdgpu_fence_free()
[all …]
Damdgpu_job.c94 struct dma_fence *f; in amdgpu_job_free_resources()
127 void *owner, struct dma_fence **f) in amdgpu_job_submit()
153 struct dma_fence **fence) in amdgpu_job_submit_direct()
167 static struct dma_fence *amdgpu_job_dependency(struct drm_sched_job *sched_job, in amdgpu_job_dependency()
173 struct dma_fence *fence; in amdgpu_job_dependency()
200 static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job) in amdgpu_job_run()
203 struct dma_fence *fence = NULL, *finished; in amdgpu_job_run()
/Linux-v4.19/drivers/gpu/drm/scheduler/
Dsched_fence.c73 static const char *drm_sched_fence_get_driver_name(struct dma_fence *fence) in drm_sched_fence_get_driver_name()
78 static const char *drm_sched_fence_get_timeline_name(struct dma_fence *f) in drm_sched_fence_get_timeline_name()
93 struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); in drm_sched_fence_free()
107 static void drm_sched_fence_release_scheduled(struct dma_fence *f) in drm_sched_fence_release_scheduled()
122 static void drm_sched_fence_release_finished(struct dma_fence *f) in drm_sched_fence_release_finished()
141 struct drm_sched_fence *to_drm_sched_fence(struct dma_fence *f) in to_drm_sched_fence()
/Linux-v4.19/drivers/gpu/drm/msm/
Dmsm_fence.c102 struct dma_fence base;
106 static inline struct msm_fence *to_msm_fence(struct dma_fence *fence) in to_msm_fence()
111 static const char *msm_fence_get_driver_name(struct dma_fence *fence) in msm_fence_get_driver_name()
116 static const char *msm_fence_get_timeline_name(struct dma_fence *fence) in msm_fence_get_timeline_name()
122 static bool msm_fence_enable_signaling(struct dma_fence *fence) in msm_fence_enable_signaling()
127 static bool msm_fence_signaled(struct dma_fence *fence) in msm_fence_signaled()
142 struct dma_fence *
/Linux-v4.19/drivers/gpu/drm/virtio/
Dvirtgpu_fence.c29 static const char *virtio_get_driver_name(struct dma_fence *f) in virtio_get_driver_name()
34 static const char *virtio_get_timeline_name(struct dma_fence *f) in virtio_get_timeline_name()
39 static bool virtio_signaled(struct dma_fence *f) in virtio_signaled()
48 static void virtio_fence_value_str(struct dma_fence *f, char *str, int size) in virtio_fence_value_str()
55 static void virtio_timeline_value_str(struct dma_fence *f, char *str, int size) in virtio_timeline_value_str()
/Linux-v4.19/drivers/gpu/drm/vc4/
Dvc4_fence.c26 static const char *vc4_fence_get_driver_name(struct dma_fence *fence) in vc4_fence_get_driver_name()
31 static const char *vc4_fence_get_timeline_name(struct dma_fence *fence) in vc4_fence_get_timeline_name()
36 static bool vc4_fence_signaled(struct dma_fence *fence) in vc4_fence_signaled()
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_gem_clflush.c32 struct dma_fence dma; /* Must be first for dma_fence_free() */
38 static const char *i915_clflush_get_driver_name(struct dma_fence *fence) in i915_clflush_get_driver_name()
43 static const char *i915_clflush_get_timeline_name(struct dma_fence *fence) in i915_clflush_get_timeline_name()
48 static bool i915_clflush_enable_signaling(struct dma_fence *fence) in i915_clflush_enable_signaling()
53 static void i915_clflush_release(struct dma_fence *fence) in i915_clflush_release()

123456