/linux/include/linux/ |
A D | dma-fence.h | 25 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 D | dma-resv.h | 60 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 D | dma-fence-chain.h | 26 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 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);
|
/linux/include/trace/events/ |
A 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), 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 D | dma-fence-chain.c | 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() 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 D | st-dma-fence.c | 20 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 D | dma-fence.c | 27 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 D | dma-resv.c | 119 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 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() 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 D | sync_file.c | 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() 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 D | st-dma-fence-chain.c | 25 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 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() 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 D | amdgpu_sync.c | 39 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 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);
|
A D | amdgpu_fence.c | 53 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 D | amdgpu_amdkfd_fence.c | 85 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 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);
|
A D | gpu_scheduler.h | 152 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 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() 210 struct dma_fence *fence; in vgem_fence_signal_ioctl()
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_wait.c | 18 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 D | sched_fence.c | 61 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 D | fence.c | 21 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 D | msm_fence.c | 56 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 D | intel_migrate.h | 13 struct dma_fence; 26 struct dma_fence *await, 36 struct dma_fence *await, 48 struct dma_fence *await, 56 struct dma_fence *await,
|