| /linux/drivers/dma-buf/ |
| H A D | dma-fence-array.c | 76 for (i = 0; i < array->num_fences; ++i) { in dma_fence_array_enable_signaling() 129 for (i = 0; i < array->num_fences; ++i) { in dma_fence_array_signaled() 145 for (i = 0; i < array->num_fences; ++i) in dma_fence_array_release() 158 for (i = 0; i < array->num_fences; ++i) in dma_fence_array_set_deadline() 178 struct dma_fence_array *dma_fence_array_alloc(int num_fences) in dma_fence_array_alloc() argument 182 return kzalloc(struct_size(array, callbacks, num_fences), GFP_KERNEL); in dma_fence_array_alloc() 199 int num_fences, struct dma_fence **fences, in dma_fence_array_init() argument 203 WARN_ON(!num_fences || !fences); in dma_fence_array_init() 205 array->num_fences = num_fences; in dma_fence_array_init() 212 atomic_set(&array->num_pending, signal_on_any ? 1 : num_fences); in dma_fence_array_init() [all …]
|
| H A D | dma-resv.c | 65 u32 num_fences, max_fences; member 125 for (i = 0; i < list->num_fences; ++i) { in dma_resv_list_free() 182 int dma_resv_reserve_fences(struct dma_resv *obj, unsigned int num_fences) in dma_resv_reserve_fences() argument 193 if (WARN_ON(!num_fences)) in dma_resv_reserve_fences() 198 if ((old->num_fences + num_fences) <= old->max_fences) in dma_resv_reserve_fences() 200 max = max(old->num_fences + num_fences, old->max_fences * 2); in dma_resv_reserve_fences() 202 max = max(4ul, roundup_pow_of_two(num_fences)); in dma_resv_reserve_fences() 215 for (i = 0, j = 0, k = max; i < (old ? old->num_fences : 0); ++i) { in dma_resv_reserve_fences() 225 new->num_fences = j; in dma_resv_reserve_fences() 271 fences->max_fences = fences->num_fences; in dma_resv_reset_max_fences() [all …]
|
| /linux/tools/testing/selftests/sync/ |
| H A D | sync.c | 88 int err, num_fences; in sync_file_info() local 100 num_fences = info->num_fences; in sync_file_info() 102 if (num_fences) { in sync_file_info() 104 info->num_fences = num_fences; in sync_file_info() 106 fence_info = calloc(num_fences, sizeof(*fence_info)); in sync_file_info() 139 count = info->num_fences; in sync_fence_size() 156 for (i = 0 ; i < info->num_fences ; i++) { in sync_fence_count_with_status()
|
| /linux/include/linux/ |
| H A D | dma-fence-array.h | 42 unsigned num_fences; member 48 struct dma_fence_array_cb callbacks[] __counted_by(num_fences); 82 struct dma_fence_array *dma_fence_array_alloc(int num_fences); 84 int num_fences, struct dma_fence **fences, 88 struct dma_fence_array *dma_fence_array_create(int num_fences,
|
| /linux/include/drm/ |
| H A D | drm_exec.h | 144 unsigned int num_fences); 148 unsigned int num_fences);
|
| H A D | drm_gpuvm.h | 553 unsigned int num_fences; member 575 unsigned int num_fences); 579 unsigned int num_fences); 584 unsigned int num_fences); 1260 struct drm_exec *exec, unsigned int num_fences,
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_atomic_uapi.c | 1361 unsigned int *num_fences) in prepare_signaling() argument 1407 (*num_fences + 1), GFP_KERNEL); in prepare_signaling() 1411 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling() 1413 f[*num_fences].out_fence_ptr = fence_ptr; in prepare_signaling() 1420 ret = setup_out_fence(&f[(*num_fences)++], fence); in prepare_signaling() 1446 (*num_fences + 1), GFP_KERNEL); in prepare_signaling() 1450 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling() 1452 f[*num_fences].out_fence_ptr = fence_ptr; in prepare_signaling() 1460 ret = setup_out_fence(&f[(*num_fences)++], fence); in prepare_signaling() 1484 unsigned int num_fences, in complete_signaling() argument [all …]
|
| /linux/include/uapi/linux/ |
| H A D | sync_file.h | 73 __u32 num_fences; member
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_gt_types.h | 322 #define intel_gt_support_legacy_fencing(gt) ((gt)->ggtt->num_fences > 0)
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_vm.h | 266 unsigned int num_fences);
|
| /linux/drivers/gpu/drm/i915/gem/selftests/ |
| H A D | i915_gem_coherency.c | 264 return gt->ggtt->num_fences; in needs_fence_registers()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_sched.c | 282 .num_fences = 1, in nouveau_job_submit()
|
| /linux/include/uapi/drm/ |
| H A D | amdgpu_drm.h | 565 __u16 num_fences; member
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_vm.c | 460 unsigned int num_fences) in amdgpu_vm_lock_pd() argument 464 2 + num_fences); in amdgpu_vm_lock_pd() 476 unsigned int num_fences) in amdgpu_vm_lock_done_list() argument
|