/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
amdgpu_amdkfd_fence.c | 28 #include <linux/dma-fence.h> 40 /* Eviction Fence 41 * Fence helper functions to deal with KFD memory eviction. 45 * All the BOs in a process share an eviction fence. When process X wants 63 * user queues and signal fence. The work item will also start another delayed 70 struct amdgpu_amdkfd_fence *fence; local in function:amdgpu_amdkfd_fence_create 72 fence = kzalloc(sizeof(*fence), GFP_KERNEL); 73 if (fence == NULL) 78 fence->mm = mm 90 struct amdgpu_amdkfd_fence *fence; local in function:to_amdgpu_amdkfd_fence 109 struct amdgpu_amdkfd_fence *fence = to_amdgpu_amdkfd_fence(f); local in function:amdkfd_fence_get_timeline_name 122 struct amdgpu_amdkfd_fence *fence = to_amdgpu_amdkfd_fence(f); local in function:amdkfd_fence_enable_signaling 146 struct amdgpu_amdkfd_fence *fence = to_amdgpu_amdkfd_fence(f); local in function:amdkfd_fence_release 167 struct amdgpu_amdkfd_fence *fence = to_amdgpu_amdkfd_fence(f); local in function:amdkfd_fence_check_mm [all...] |
amdgpu_test.c | 94 struct dma_fence *fence = NULL; local in function:amdgpu_do_test_moves 132 size, NULL, &fence, false, false); 139 r = dma_fence_wait(fence, false); 141 DRM_ERROR("Failed to wait for GTT->VRAM fence %d\n", i); 145 dma_fence_put(fence); 146 fence = NULL; 178 size, NULL, &fence, false, false); 185 r = dma_fence_wait(fence, false); 187 DRM_ERROR("Failed to wait for VRAM->GTT fence %d\n", i); 191 dma_fence_put(fence); [all...] |
amdgpu_benchmark.c | 41 struct dma_fence *fence; local in function:amdgpu_benchmark_do_move 47 r = amdgpu_copy_buffer(ring, saddr, daddr, size, NULL, &fence, 51 r = dma_fence_wait(fence, false); 52 dma_fence_put(fence);
|
amdgpu_job.c | 116 /* use sched fence if available */ 117 f = job->base.s_fence ? &job->base.s_fence->finished : job->fence; 131 dma_fence_put(job->fence); 141 dma_fence_put(job->fence); 173 struct dma_fence **fence) 178 r = amdgpu_ib_schedule(ring, job->num_ibs, job->ibs, NULL, fence); 179 job->fence = dma_fence_get(*fence); 193 struct dma_fence *fence; local in function:amdgpu_job_dependency 197 fence = amdgpu_sync_get_fence(&job->sync, &explicit) 222 struct dma_fence *fence = NULL, *finished; local in function:amdgpu_job_run [all...] |
amdgpu_jpeg.c | 143 struct dma_fence **fence) 170 if (fence) 171 *fence = dma_fence_get(f); 186 struct dma_fence *fence = NULL; local in function:amdgpu_jpeg_dec_ring_test_ib 189 r = amdgpu_jpeg_dec_set_reg(ring, 1, &fence); 193 r = dma_fence_wait_timeout(fence, false, timeout); 213 dma_fence_put(fence);
|
/src/sys/external/bsd/drm2/dist/drm/radeon/ |
radeon_rv770_dma.c | 52 struct radeon_fence *fence; local in function:rv770_copy_dma 88 r = radeon_fence_emit(rdev, &fence, ring->idx); 96 radeon_sync_free(rdev, &sync, fence); 98 return fence;
|
radeon_evergreen_dma.c | 37 * evergreen_dma_fence_ring_emit - emit a fence on the DMA ring 40 * @fence: radeon fence object 42 * Add a DMA fence packet to the ring to write 43 * the fence seq number and DMA trap packet to generate 47 struct radeon_fence *fence) 49 struct radeon_ring *ring = &rdev->ring[fence->ring]; 50 u64 addr = rdev->fence_drv[fence->ring].gpu_addr; 51 /* write the fence */ 55 radeon_ring_write(ring, fence->seq) 118 struct radeon_fence *fence; local in function:evergreen_copy_dma [all...] |
radeon_sync.c | 60 * radeon_sync_fence - use the semaphore to sync to a fence 62 * @sync: sync object to add fence to 63 * @fence: fence to sync to 65 * Sync to the fence using the semaphore objects 68 struct radeon_fence *fence) 72 if (!fence) 75 other = sync->sync_to[fence->ring]; 76 sync->sync_to[fence->ring] = radeon_fence_later(fence, other) 100 struct radeon_fence *fence; local in function:radeon_sync_resv 149 struct radeon_fence *fence = sync->sync_to[i]; local in function:radeon_sync_rings [all...] |
radeon_si_dma.c | 241 struct radeon_fence *fence; local in function:si_copy_dma 277 r = radeon_fence_emit(rdev, &fence, ring->idx); 285 radeon_sync_free(rdev, &sync, fence); 287 return fence;
|
radeon_benchmark.c | 47 struct radeon_fence *fence = NULL; local in function:radeon_benchmark_do_move 54 fence = radeon_copy_dma(rdev, saddr, daddr, 59 fence = radeon_copy_blit(rdev, saddr, daddr, 67 if (IS_ERR(fence)) 68 return PTR_ERR(fence); 70 r = radeon_fence_wait(fence, false); 71 radeon_fence_unref(&fence);
|
radeon_r200.c | 95 struct radeon_fence *fence; local in function:r200_copy_dma 127 r = radeon_fence_emit(rdev, &fence, RADEON_RING_TYPE_GFX_INDEX); 133 return fence;
|
radeon_uvd_v1_0.c | 79 * uvd_v1_0_fence_emit - emit an fence & trap command 82 * @fence: fence to emit 84 * Write a fence and a trap command to the ring. 87 struct radeon_fence *fence) 89 struct radeon_ring *ring = &rdev->ring[fence->ring]; 90 uint64_t addr = rdev->fence_drv[fence->ring].gpu_addr; 95 radeon_ring_write(ring, fence->seq); 507 struct radeon_fence *fence = NULL; local in function:uvd_v1_0_ib_test 525 r = radeon_uvd_get_destroy_msg(rdev, ring->idx, 1, &fence); [all...] |
/src/sys/external/bsd/drm2/dist/include/drm/ |
drm_syncobj.h | 31 #include <linux/dma-fence.h> 32 #include <linux/dma-fence-chain.h> 47 * @fence: 48 * NULL or a pointer to the fence bound to this object. 53 struct dma_fence __rcu *fence; member in struct:drm_syncobj 55 * @cb_list: List of callbacks to call when the &fence gets replaced. 59 * @lock: Protects &cb_list and write-locks &fence. 94 * drm_syncobj_fence_get - get a reference to a fence in a sync object 97 * This acquires additional reference to &drm_syncobj.fence contained in @obj, 102 * Either the fence of @obj or NULL if there's none 107 struct dma_fence *fence; local in function:drm_syncobj_fence_get [all...] |
/src/sys/arch/hpcmips/stand/lcboot/ |
i28f128.c | 130 const u_int16_t *fence; local in function:block_write 146 fence = p + (I28F128_BLOCK_SIZE >> 1); 165 } while (p < fence);
|
/src/sys/external/bsd/drm2/dist/drm/i915/ |
i915_active.h | 23 * "fence registers" but pipeline synchronisation objects ala GL_ARB_sync. 32 * In order to use a fence, the object must track the fence it needs to 36 * complete, or waiting for the last GPU user of a "fence register". The 40 * track the most recent fence request, typically this is done as part of 50 void i915_active_noop(struct dma_fence *fence, struct dma_fence_cb *cb); 55 * @fence - initial fence to track, can be NULL 60 * an activity tracker, that is for tracking the last known active fence 61 * associated with it. When the last fence becomes idle, when it is retire 105 struct dma_fence *fence; local in function:i915_active_fence_get [all...] |
i915_active_types.h | 13 #include <linux/dma-fence.h> 25 struct dma_fence __rcu *fence; member in struct:i915_active_fence
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/ |
nouveau_vmm.h | 17 struct nouveau_fence *fence; member in struct:nouveau_vma
|
/src/sys/external/bsd/drm2/dist/drm/virtio/ |
virtgpu_fence.c | 50 struct virtio_gpu_fence *fence = to_virtio_fence(f); local in function:virtio_fence_signaled 52 if (WARN_ON_ONCE(fence->f.seqno == 0)) 53 /* leaked fence outside driver before completing 56 if (atomic64_read(&fence->drv->last_seq) >= fence->f.seqno) 68 struct virtio_gpu_fence *fence = to_virtio_fence(f); local in function:virtio_timeline_value_str 70 snprintf(str, size, "%llu", (u64)atomic64_read(&fence->drv->last_seq)); 84 struct virtio_gpu_fence *fence = kzalloc(sizeof(struct virtio_gpu_fence), local in function:virtio_gpu_fence_alloc 86 if (!fence) 87 return fence; 123 struct virtio_gpu_fence *fence, *tmp; local in function:virtio_gpu_fence_event_process [all...] |
/src/sys/external/bsd/drm2/dist/drm/vmwgfx/ |
vmwgfx_fence.h | 32 #include <linux/dma-fence.h> 33 #include <linux/dma-fence-array.h> 65 void (*destroy)(struct vmw_fence_obj *fence); 76 struct vmw_fence_obj *fence = *fence_p; local in function:vmw_fence_obj_unreference 79 if (fence) 80 dma_fence_put(&fence->base); 84 vmw_fence_obj_reference(struct vmw_fence_obj *fence) 86 if (fence) 87 dma_fence_get(&fence->base); 88 return fence; [all...] |
vmwgfx_reg.h | 50 u32 fence; member in struct:svga_fifo_cmd_fence
|
/src/sys/external/bsd/drm2/dist/include/uapi/drm/ |
vgem_drm.h | 56 __u32 fence; member in struct:drm_vgem_fence_signal
|
/src/sys/external/bsd/drm2/dist/drm/i915/gem/ |
i915_gem_busy.c | 44 __busy_set_if_active(const struct dma_fence *fence, u32 (*flag)(u16 id)) 49 * We have to check the current hw status of the fence as the uABI 56 if (!dma_fence_is_i915(fence)) 60 rq = const_container_of(fence, struct i915_request, fence); 70 busy_check_reader(const struct dma_fence *fence) 72 return __busy_set_if_active(fence, __busy_read_flag); 76 busy_check_writer(const struct dma_fence *fence) 78 if (!fence) 81 return __busy_set_if_active(fence, __busy_write_id) 130 struct dma_fence *fence = local in function:i915_gem_busy_ioctl [all...] |
/src/sys/external/bsd/drm2/linux/ |
linux_sync_file.c | 42 #include <linux/dma-fence.h> 48 sync_file_create(struct dma_fence *fence, struct file *fp) 59 sf->sf_fence = dma_fence_get(fence); 87 sync_file_fence_cb(struct dma_fence *fence, struct dma_fence_cb *fcb) 214 struct dma_fence *fence; local in function:sync_file_get_fence 219 fence = dma_fence_get(sf->sf_fence); 222 return fence;
|
/src/sys/external/bsd/drm2/dist/drm/i915/selftests/ |
lib_sw_fence.c | 32 /* Small library of different fence types useful for writing tests */ 35 nop_fence_notify(struct i915_sw_fence *fence, enum i915_sw_fence_notify state) 40 void __onstack_fence_init(struct i915_sw_fence *fence, 44 debug_fence_init_onstack(fence); 46 __init_waitqueue_head(&fence->wait, name, key); 47 atomic_set(&fence->pending, 1); 48 fence->error = 0; 49 fence->flags = (unsigned long)nop_fence_notify; 52 void onstack_fence_fini(struct i915_sw_fence *fence) 54 if (!fence->flags 90 struct i915_sw_fence fence; member in struct:heap_fence [all...] |
/src/sys/external/bsd/drm2/dist/drm/i915/gt/ |
intel_engine_pm.c | 104 static void duration(struct dma_fence *fence, struct dma_fence_cb *cb) 106 struct i915_request *rq = to_request(fence); 109 ktime_us_delta(rq->fence.timestamp, 213 dma_fence_add_callback(&rq->fence, &rq->duration.cb, duration); 231 struct i915_active_fence *fence = local in function:call_idle_barriers 234 fence->cb.func(ERR_PTR(-EAGAIN), &fence->cb);
|