/linux-master/drivers/dma-buf/ |
H A D | dma-resv.c | 65 u32 num_fences, max_fences; member in struct:dma_resv_list 125 for (i = 0; i < list->num_fences; ++i) { 170 * @num_fences: number of fences we want to add 182 int dma_resv_reserve_fences(struct dma_resv *obj, unsigned int num_fences) argument 191 if ((old->num_fences + num_fences) <= old->max_fences) 193 max = max(old->num_fences + num_fences, old->max_fences * 2); 195 max = max(4ul, roundup_pow_of_two(num_fences)); 208 for (i = 0, j = 0, k = max; i < (old ? old->num_fences 561 dma_resv_get_fences(struct dma_resv *obj, enum dma_resv_usage usage, unsigned int *num_fences, struct dma_fence ***fences) argument [all...] |
H A D | dma-fence-array.c | 76 for (i = 0; i < array->num_fences; ++i) { 119 for (i = 0; i < array->num_fences; ++i) 132 for (i = 0; i < array->num_fences; ++i) 148 * @num_fences: [in] number of fences to add in the array 158 * The caller should allocate the fences array with num_fences size 165 struct dma_fence_array *dma_fence_array_create(int num_fences, argument 173 WARN_ON(!num_fences || !fences); 176 size += num_fences * sizeof(struct dma_fence_array_cb); 186 array->num_fences = num_fences; [all...] |
H A D | sync_file.c | 285 unsigned int num_fences; local 296 num_fences = 0; 298 ++num_fences; 301 * Passing num_fences = 0 means that userspace doesn't want to 302 * retrieve any sync_fence_info. If num_fences = 0 we skip filling 304 * info->num_fences. 306 if (!info.num_fences) { 313 if (info.num_fences < num_fences) 316 size = num_fences * sizeo [all...] |
H A D | st-dma-fence-unwrap.c | 46 static struct dma_fence *mock_array(unsigned int num_fences, ...) argument 53 fences = kcalloc(num_fences, sizeof(*fences), GFP_KERNEL); 57 va_start(valist, num_fences); 58 for (i = 0; i < num_fences; ++i) 62 array = dma_fence_array_create(num_fences, fences, 73 va_start(valist, num_fences); 74 for (i = 0; i < num_fences; ++i)
|
H A D | dma-fence-unwrap.c | 63 struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences, argument 75 for (i = 0; i < num_fences; ++i) { 105 for (i = 0; i < num_fences; ++i) 114 for (i = 0; i < num_fences; ++i) {
|
H A D | sync_debug.c | 134 for (i = 0; i < array->num_fences; ++i)
|
H A D | dma-buf.c | 399 unsigned int num_fences; local 418 num_fences = 0; 420 ++num_fences; 422 if (num_fences > 0) { 425 ret = dma_resv_reserve_fences(dmabuf->resv, num_fences);
|
/linux-master/tools/testing/selftests/sync/ |
H A D | sync.c | 88 int err, num_fences; local 100 num_fences = info->num_fences; 102 if (num_fences) { 104 info->num_fences = num_fences; 106 fence_info = calloc(num_fences, sizeof(*fence_info)); 139 count = info->num_fences; 156 for (i = 0 ; i < info->num_fences ; i++) {
|
/linux-master/include/linux/ |
H A D | dma-fence-array.h | 32 * @num_fences: number of fences in the array 41 unsigned num_fences; member in struct:dma_fence_array 79 struct dma_fence_array *dma_fence_array_create(int num_fences,
|
H A D | dma-fence-unwrap.h | 51 struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences,
|
H A D | dma-resv.h | 212 /** @num_fences: number of fences */ 213 unsigned int num_fences; member in struct:dma_resv_iter 469 int dma_resv_reserve_fences(struct dma_resv *obj, unsigned int num_fences); 476 unsigned int *num_fences, struct dma_fence ***fences);
|
/linux-master/drivers/gpu/drm/ttm/ |
H A D | ttm_execbuf_util.c | 89 unsigned int num_fences; local 100 num_fences = max(entry->num_shared, 1u); 103 num_fences); 120 num_fences);
|
/linux-master/include/drm/ |
H A D | drm_exec.h | 144 unsigned int num_fences); 148 unsigned int num_fences);
|
H A D | drm_gpuvm.h | 529 * @num_fences: the number of fences to reserve for the &dma_resv of the 532 unsigned int num_fences; member in struct:drm_gpuvm_exec 554 unsigned int num_fences); 558 unsigned int num_fences); 563 unsigned int num_fences);
|
/linux-master/include/uapi/linux/ |
H A D | sync_file.h | 59 * @num_fences: number of fences in the sync_file 64 * Takes a struct sync_file_info. If num_fences is 0, the field is updated 65 * with the actual number of fences. If num_fences is > 0, the system will 66 * use the pointer provided on sync_fence_info to return up to num_fences of 73 __u32 num_fences; member in struct:sync_file_info
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_ggtt_fencing.c | 512 for (i = 0; i < ggtt->num_fences; i++) 842 int num_fences; local 851 num_fences = 0; 854 num_fences = 32; 858 num_fences = 16; 860 num_fences = 8; 863 num_fences = intel_uncore_read(uncore, 865 ggtt->fence_regs = kcalloc(num_fences, 869 num_fences = 0; 872 for (i = 0; i < num_fences; [all...] |
H A D | intel_gt_types.h | 312 #define intel_gt_support_legacy_fencing(gt) ((gt)->ggtt->num_fences > 0)
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_exec.c | 283 * @num_fences: how many fences to reserve 291 unsigned int num_fences) 299 ret = dma_resv_reserve_fences(obj->resv, num_fences); 314 * @num_fences: number of fences to reserve on each GEM object 317 * Reserves @num_fences on each GEM object after locking it. 325 unsigned int num_fences) 330 ret = drm_exec_prepare_obj(exec, objects[i], num_fences); 290 drm_exec_prepare_obj(struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences) argument 322 drm_exec_prepare_array(struct drm_exec *exec, struct drm_gem_object **objects, unsigned int num_objects, unsigned int num_fences) argument
|
H A D | drm_gpuvm.c | 1090 unsigned int num_fences) 1092 return num_fences ? drm_exec_prepare_obj(exec, obj, num_fences) : 1100 * @num_fences: the amount of &dma_fences to reserve 1103 * @num_fences is zero drm_exec_lock_obj() is called instead. 1113 unsigned int num_fences) 1115 return exec_prepare_obj(exec, gpuvm->r_obj, num_fences); 1122 unsigned int num_fences) 1129 ret = exec_prepare_obj(exec, vm_bo->obj, num_fences); 1143 unsigned int num_fences) 1089 exec_prepare_obj(struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences) argument 1111 drm_gpuvm_prepare_vm(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences) argument 1120 __drm_gpuvm_prepare_objects(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences) argument 1141 drm_gpuvm_prepare_objects_locked(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences) argument 1185 drm_gpuvm_prepare_objects(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences) argument 1212 drm_gpuvm_prepare_range(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 addr, u64 range, unsigned int num_fences) argument 1250 unsigned int num_fences = vm_exec->num_fences; local [all...] |
H A D | drm_atomic_uapi.c | 1179 unsigned int *num_fences) 1225 (*num_fences + 1), GFP_KERNEL); 1229 memset(&f[*num_fences], 0, sizeof(*f)); 1231 f[*num_fences].out_fence_ptr = fence_ptr; 1238 ret = setup_out_fence(&f[(*num_fences)++], fence); 1264 (*num_fences + 1), GFP_KERNEL); 1268 memset(&f[*num_fences], 0, sizeof(*f)); 1270 f[*num_fences].out_fence_ptr = fence_ptr; 1278 ret = setup_out_fence(&f[(*num_fences)++], fence); 1302 unsigned int num_fences, 1174 prepare_signaling(struct drm_device *dev, struct drm_atomic_state *state, struct drm_mode_atomic *arg, struct drm_file *file_priv, struct drm_out_fence_state **fence_state, unsigned int *num_fences) argument 1299 complete_signaling(struct drm_device *dev, struct drm_atomic_state *state, struct drm_out_fence_state *fence_state, unsigned int num_fences, bool install_fds) argument 1374 unsigned int i, j, num_fences; local [all...] |
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_busy.c | 64 unsigned int nchild = array->num_fences;
|
H A D | i915_gem_execbuffer.c | 316 unsigned long num_fences; member in struct:i915_execbuffer 2819 SIZE_MAX / sizeof(*f)) - eb->num_fences) 2831 (eb->num_fences + nfences) * sizeof(*f), 2837 f += eb->num_fences; 2929 eb->num_fences++; 2939 unsigned long num_fences = args->num_cliprects; local 2945 if (!num_fences) 2950 if (num_fences > min_t(unsigned long, 2952 SIZE_MAX / sizeof(*f) - eb->num_fences)) 2956 if (!access_ok(user, num_fences * sizeo 3009 put_fence_array(struct eb_fence *fences, int num_fences) argument [all...] |
H A D | i915_gem_wait.c | 128 for (i = 0; i < array->num_fences; i++)
|
H A D | i915_gem_tiling.c | 351 if (!to_gt(dev_priv)->ggtt->num_fences) 434 if (!to_gt(dev_priv)->ggtt->num_fences)
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_getparam.c | 38 value = to_gt(i915)->ggtt->num_fences;
|