/kernel/linux/linux-5.10/include/linux/ |
D | dma-fence.h | 25 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 …]
|
D | dma-fence-chain.h | 27 struct dma_fence base; 29 struct dma_fence __rcu *prev; 31 struct dma_fence *fence; 46 to_dma_fence_chain(struct dma_fence *fence) in to_dma_fence_chain() 66 struct dma_fence *dma_fence_chain_walk(struct dma_fence *fence); 67 int dma_fence_chain_find_seqno(struct dma_fence **pfence, uint64_t seqno); 69 struct dma_fence *prev, 70 struct dma_fence *fence,
|
D | dma-resv.h | 60 struct dma_fence __rcu *shared[]; 74 struct dma_fence __rcu *fence_excl; 241 static inline struct dma_fence * 259 static inline struct dma_fence * 262 struct dma_fence *fence; in dma_resv_get_excl_rcu() 277 void dma_resv_add_shared_fence(struct dma_resv *obj, struct dma_fence *fence); 279 void dma_resv_add_excl_fence(struct dma_resv *obj, struct dma_fence *fence); 282 struct dma_fence **pfence_excl, 284 struct dma_fence ***pshared);
|
D | dma-fence-array.h | 38 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);
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | dma_fence.h | 3 #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 …]
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | dma-fence-chain.c | 12 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 …]
|
D | st-dma-fence.c | 20 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 …]
|
D | dma-fence.c | 27 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() 128 struct dma_fence *dma_fence_get_stub(void) in dma_fence_get_stub() 330 int dma_fence_signal_locked(struct dma_fence *fence) in dma_fence_signal_locked() 370 int dma_fence_signal(struct dma_fence *fence) in dma_fence_signal() 410 dma_fence_wait_timeout(struct dma_fence *fence, bool intr, signed long timeout) in dma_fence_wait_timeout() 440 struct dma_fence *fence = in dma_fence_release() 441 container_of(kref, struct dma_fence, refcount); in dma_fence_release() 480 void dma_fence_free(struct dma_fence *fence) in dma_fence_free() 486 static bool __dma_fence_enable_signaling(struct dma_fence *fence) in __dma_fence_enable_signaling() [all …]
|
D | dma-resv.c | 159 struct dma_fence *excl; in dma_resv_fini() 217 struct dma_fence *fence; in dma_resv_reserve_shared() 243 struct dma_fence *fence; in dma_resv_reserve_shared() 263 void dma_resv_add_shared_fence(struct dma_resv *obj, struct dma_fence *fence) in dma_resv_add_shared_fence() 266 struct dma_fence *old; in dma_resv_add_shared_fence() 308 void dma_resv_add_excl_fence(struct dma_resv *obj, struct dma_fence *fence) in dma_resv_add_excl_fence() 310 struct dma_fence *old_fence = dma_resv_get_excl(obj); in dma_resv_add_excl_fence() 349 struct dma_fence *old, *new; in dma_resv_copy_fences() 376 struct dma_fence *fence; in dma_resv_copy_fences() 433 struct dma_fence **pfence_excl, in dma_resv_get_fences_rcu() [all …]
|
D | seqno-fence.c | 16 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()
|
D | dma-fence-array.c | 18 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() 114 static void dma_fence_array_release(struct dma_fence *fence) in dma_fence_array_release() 155 struct dma_fence **fences, in dma_fence_array_create() 192 bool dma_fence_match_context(struct dma_fence *fence, u64 context) in dma_fence_match_context()
|
D | sync_file.c | 46 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 …]
|
D | st-dma-fence-chain.c | 25 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() 63 } *to_mock_chain(struct dma_fence *f) { in to_mock_chain() 67 static struct dma_fence *mock_chain(struct dma_fence *prev, in mock_chain() 68 struct dma_fence *fence, in mock_chain() 87 struct dma_fence *f, *chain; in sanitycheck() 108 struct dma_fence **fences; [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_active.h | 48 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() 166 struct dma_fence * 167 __i915_active_ref(struct i915_active *ref, u64 idx, struct dma_fence *fence); 168 int i915_active_ref(struct i915_active *ref, u64 idx, struct dma_fence *fence); 178 struct dma_fence * 179 i915_active_set_exclusive(struct i915_active *ref, struct dma_fence *f); [all …]
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_syncobj.h | 51 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);
|
D | gpu_scheduler.h | 97 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); 221 struct dma_fence *(*dependency)(struct drm_sched_job *sched_job, 230 struct dma_fence *(*run_job)(struct drm_sched_job *sched_job); 312 bool drm_sched_dependency_optimized(struct dma_fence* fence,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_sync.c | 37 struct dma_fence *fence; 64 struct dma_fence *f) in amdgpu_sync_same_dev() 85 static void *amdgpu_sync_get_owner(struct dma_fence *f) in amdgpu_sync_get_owner() 112 static void amdgpu_sync_keep_later(struct dma_fence **keep, in amdgpu_sync_keep_later() 113 struct dma_fence *fence) in amdgpu_sync_keep_later() 131 static bool amdgpu_sync_add_later(struct amdgpu_sync *sync, struct dma_fence *f) in amdgpu_sync_add_later() 153 int amdgpu_sync_fence(struct amdgpu_sync *sync, struct dma_fence *f) in amdgpu_sync_fence() 181 int amdgpu_sync_vm_fence(struct amdgpu_sync *sync, struct dma_fence *fence) in amdgpu_sync_vm_fence() 205 struct dma_fence *f; in amdgpu_sync_resv() 286 struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, in amdgpu_sync_peek_fence() [all …]
|
D | amdgpu_sync.h | 29 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);
|
D | amdgpu_amdkfd_fence.c | 83 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vgem/ |
D | vgem_fence.c | 33 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() 211 struct dma_fence *fence; in vgem_fence_signal_ioctl()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/scheduler/ |
D | sched_fence.c | 75 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_fence.c | 11 struct dma_fence dma; 33 static const char *stub_driver_name(struct dma_fence *fence) in stub_driver_name() 38 static const char *stub_timeline_name(struct dma_fence *fence) in stub_timeline_name() 43 static void stub_release(struct dma_fence *fence) in stub_release() 59 struct dma_fence * 90 struct dma_fence *fence) in i915_gem_object_unlock_fence()
|
D | i915_gem_wait.c | 16 i915_gem_object_wait_fence(struct dma_fence *fence, in i915_gem_object_wait_fence() 38 struct dma_fence *excl; in i915_gem_object_wait_reservation() 42 struct dma_fence **shared; in i915_gem_object_wait_reservation() 96 static void __fence_set_priority(struct dma_fence *fence, in __fence_set_priority() 116 static void fence_set_priority(struct dma_fence *fence, in fence_set_priority() 136 struct dma_fence *excl; in i915_gem_object_wait_priority() 139 struct dma_fence **shared; in i915_gem_object_wait_priority()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
D | msm_fence.c | 91 struct dma_fence base; 95 static inline struct msm_fence *to_msm_fence(struct dma_fence *fence) in to_msm_fence() 100 static const char *msm_fence_get_driver_name(struct dma_fence *fence) in msm_fence_get_driver_name() 105 static const char *msm_fence_get_timeline_name(struct dma_fence *fence) in msm_fence_get_timeline_name() 111 static bool msm_fence_signaled(struct dma_fence *fence) in msm_fence_signaled() 123 struct dma_fence *
|
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/ |
D | panfrost_job.h | 23 struct dma_fence **in_fences; 27 struct dma_fence *done_fence; 34 struct dma_fence **implicit_fences; 40 struct dma_fence *render_done_fence;
|