/linux-6.1.9/drivers/dma-buf/ |
D | dma-resv.c | 65 u32 num_fences, max_fences; member 120 for (i = 0; i < list->num_fences; ++i) { in dma_resv_list_free() 177 int dma_resv_reserve_fences(struct dma_resv *obj, unsigned int num_fences) in dma_resv_reserve_fences() argument 186 if ((old->num_fences + num_fences) <= old->max_fences) in dma_resv_reserve_fences() 188 max = max(old->num_fences + num_fences, old->max_fences * 2); in dma_resv_reserve_fences() 190 max = max(4ul, roundup_pow_of_two(num_fences)); in dma_resv_reserve_fences() 203 for (i = 0, j = 0, k = max; i < (old ? old->num_fences : 0); ++i) { in dma_resv_reserve_fences() 213 new->num_fences = j; in dma_resv_reserve_fences() 259 fences->max_fences = fences->num_fences; in dma_resv_reset_max_fences() 292 count = fobj->num_fences; in dma_resv_add_fence() [all …]
|
D | dma-fence-array.c | 76 for (i = 0; i < array->num_fences; ++i) { in dma_fence_array_enable_signaling() 119 for (i = 0; i < array->num_fences; ++i) in dma_fence_array_release() 154 struct dma_fence_array *dma_fence_array_create(int num_fences, in dma_fence_array_create() argument 162 WARN_ON(!num_fences || !fences); in dma_fence_array_create() 165 size += num_fences * sizeof(struct dma_fence_array_cb); in dma_fence_array_create() 175 array->num_fences = num_fences; in dma_fence_array_create() 176 atomic_set(&array->num_pending, signal_on_any ? 1 : num_fences); in dma_fence_array_create() 192 while (num_fences--) in dma_fence_array_create() 193 WARN_ON(dma_fence_is_container(fences[num_fences])); in dma_fence_array_create() 216 for (i = 0; i < array->num_fences; i++) { in dma_fence_match_context() [all …]
|
D | sync_file.c | 288 unsigned int num_fences; in sync_file_ioctl_fence_info() local 299 num_fences = 0; in sync_file_ioctl_fence_info() 301 ++num_fences; in sync_file_ioctl_fence_info() 309 if (!info.num_fences) { in sync_file_ioctl_fence_info() 316 if (info.num_fences < num_fences) in sync_file_ioctl_fence_info() 319 size = num_fences * sizeof(*fence_info); in sync_file_ioctl_fence_info() 324 num_fences = 0; in sync_file_ioctl_fence_info() 328 status = sync_fill_fence_info(fence, &fence_info[num_fences++]); in sync_file_ioctl_fence_info() 340 info.num_fences = num_fences; in sync_file_ioctl_fence_info()
|
D | st-dma-fence-unwrap.c | 46 static struct dma_fence *mock_array(unsigned int num_fences, ...) in mock_array() argument 53 fences = kcalloc(num_fences, sizeof(*fences), GFP_KERNEL); in mock_array() 57 va_start(valist, num_fences); in mock_array() 58 for (i = 0; i < num_fences; ++i) in mock_array() 62 array = dma_fence_array_create(num_fences, fences, in mock_array() 73 va_start(valist, num_fences); in mock_array() 74 for (i = 0; i < num_fences; ++i) in mock_array()
|
D | dma-fence-unwrap.c | 63 struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences, in __dma_fence_unwrap_merge() argument 73 for (i = 0; i < num_fences; ++i) { in __dma_fence_unwrap_merge() 92 for (i = 0; i < num_fences; ++i) in __dma_fence_unwrap_merge() 101 for (i = 0; i < num_fences; ++i) { in __dma_fence_unwrap_merge()
|
D | dma-buf.c | 399 unsigned int num_fences; in dma_buf_import_sync_file() local 418 num_fences = 0; in dma_buf_import_sync_file() 420 ++num_fences; in dma_buf_import_sync_file() 422 if (num_fences > 0) { in dma_buf_import_sync_file() 425 ret = dma_resv_reserve_fences(dmabuf->resv, num_fences); in dma_buf_import_sync_file()
|
D | sync_debug.c | 134 for (i = 0; i < array->num_fences; ++i) in sync_print_sync_file()
|
/linux-6.1.9/tools/testing/selftests/sync/ |
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-6.1.9/drivers/gpu/drm/ttm/ |
D | ttm_execbuf_util.c | 93 unsigned int num_fences; in ttm_eu_reserve_buffers() local 104 num_fences = max(entry->num_shared, 1u); in ttm_eu_reserve_buffers() 107 num_fences); in ttm_eu_reserve_buffers() 124 num_fences); in ttm_eu_reserve_buffers()
|
/linux-6.1.9/drivers/gpu/drm/i915/gt/ |
D | intel_ggtt_fencing.c | 510 for (i = 0; i < ggtt->num_fences; i++) in intel_ggtt_restore_fences() 840 int num_fences; in intel_ggtt_init_fences() local 849 num_fences = 0; in intel_ggtt_init_fences() 852 num_fences = 32; in intel_ggtt_init_fences() 856 num_fences = 16; in intel_ggtt_init_fences() 858 num_fences = 8; in intel_ggtt_init_fences() 861 num_fences = intel_uncore_read(uncore, in intel_ggtt_init_fences() 863 ggtt->fence_regs = kcalloc(num_fences, in intel_ggtt_init_fences() 867 num_fences = 0; in intel_ggtt_init_fences() 870 for (i = 0; i < num_fences; i++) { in intel_ggtt_init_fences() [all …]
|
D | intel_gtt.h | 379 unsigned int num_fences; member
|
/linux-6.1.9/include/linux/ |
D | dma-fence-array.h | 41 unsigned num_fences; member 79 struct dma_fence_array *dma_fence_array_create(int num_fences,
|
D | dma-resv.h | 213 unsigned int num_fences; member 469 int dma_resv_reserve_fences(struct dma_resv *obj, unsigned int num_fences); 476 unsigned int *num_fences, struct dma_fence ***fences);
|
D | dma-fence-unwrap.h | 51 struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences,
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_atomic_uapi.c | 1113 unsigned int *num_fences) in prepare_signaling() argument 1159 (*num_fences + 1), GFP_KERNEL); in prepare_signaling() 1163 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling() 1165 f[*num_fences].out_fence_ptr = fence_ptr; in prepare_signaling() 1172 ret = setup_out_fence(&f[(*num_fences)++], fence); in prepare_signaling() 1198 (*num_fences + 1), GFP_KERNEL); in prepare_signaling() 1202 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling() 1204 f[*num_fences].out_fence_ptr = fence_ptr; in prepare_signaling() 1212 ret = setup_out_fence(&f[(*num_fences)++], fence); in prepare_signaling() 1234 unsigned int num_fences, in complete_signaling() argument [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_execbuffer.c | 312 unsigned long num_fences; member 2797 SIZE_MAX / sizeof(*f)) - eb->num_fences) in add_timeline_fence_array() 2809 (eb->num_fences + nfences) * sizeof(*f), in add_timeline_fence_array() 2815 f += eb->num_fences; in add_timeline_fence_array() 2902 eb->num_fences++; in add_timeline_fence_array() 2912 unsigned long num_fences = args->num_cliprects; in add_fence_array() local 2918 if (!num_fences) in add_fence_array() 2923 if (num_fences > min_t(unsigned long, in add_fence_array() 2925 SIZE_MAX / sizeof(*f) - eb->num_fences)) in add_fence_array() 2929 if (!access_ok(user, num_fences * sizeof(*user))) in add_fence_array() [all …]
|
D | i915_gem_busy.c | 64 unsigned int nchild = array->num_fences; in __busy_set_if_active()
|
D | i915_gem_tiling.c | 350 if (!to_gt(dev_priv)->ggtt->num_fences) in i915_gem_set_tiling_ioctl() 433 if (!to_gt(dev_priv)->ggtt->num_fences) in i915_gem_get_tiling_ioctl()
|
D | i915_gem_wait.c | 128 for (i = 0; i < array->num_fences; i++) in i915_gem_fence_wait_priority()
|
/linux-6.1.9/include/uapi/linux/ |
D | sync_file.h | 64 __u32 num_fences; member
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_getparam.c | 36 value = to_gt(i915)->ggtt->num_fences; in i915_getparam_ioctl()
|
D | i915_request.c | 1420 nchild = array->num_fences; in i915_request_await_execution() 1522 nchild = array->num_fences; in i915_request_await_dma_fence()
|
/linux-6.1.9/drivers/gpu/drm/i915/selftests/ |
D | i915_request.c | 285 atomic_long_t num_waits, num_fences; member 307 unsigned int num_waits = 0, num_fences = 0; in __igt_breadcrumbs_smoketest() local 428 num_fences += count; in __igt_breadcrumbs_smoketest() 434 atomic_long_add(num_fences, &t->num_fences); in __igt_breadcrumbs_smoketest() 507 atomic_long_read(&t.num_fences), in mock_breadcrumbs_smoketest() 1673 unsigned long num_waits, num_fences; in live_breadcrumbs_smoketest() local 1771 num_fences = 0; in live_breadcrumbs_smoketest() 1788 num_fences += atomic_long_read(&smoke[idx].num_fences); in live_breadcrumbs_smoketest() 1792 num_waits, num_fences, idx, ncpus); in live_breadcrumbs_smoketest()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_coherency.c | 268 return gt->ggtt->num_fences; in needs_fence_registers()
|
/linux-6.1.9/drivers/gpu/drm/i915/gvt/ |
D | gvt.h | 422 #define gvt_fence_sz(gvt) (gvt_to_ggtt(gvt)->num_fences)
|