Lines Matching refs:fences
185 ptr = &ring->fence_drv.fences[seq & ring->fence_drv.num_fences_mask];
299 ptr = &drv->fences[last_seq];
335 * amdgpu_fence_wait_empty - wait for all fences to signal
339 * Wait for all fences on the requested ring to signal (all asics).
340 * Returns 0 if the fences have passed, error for all other cases.
351 ptr = &ring->fence_drv.fences[seq & ring->fence_drv.num_fences_mask];
372 * Wait for all fences on the requested ring to signal (all asics).
387 * amdgpu_fence_count_emitted - get the count of emitted fences
391 * Get the number of fences emitted on the requested ring (all asics).
392 * Returns the number of emitted fences on the ring. Used by the
428 fence = drv->fences[last_seq];
452 fence = drv->fences[seq];
528 ring->fence_drv.fences = kcalloc(ring->num_hw_submission * 2, sizeof(void *),
531 if (!ring->fence_drv.fences)
665 dma_fence_put(ring->fence_drv.fences[j]);
666 kfree(ring->fence_drv.fences);
667 ring->fence_drv.fences = NULL;
703 * amdgpu_fence_driver_clear_job_fences - clear job embedded fences of ring
714 ptr = &ring->fence_drv.fences[i];
733 * amdgpu_fence_driver_set_error - set error code on fences
734 * @ring: the ring which contains the fences
737 * Set an error code to all the fences pending on the ring.
748 fence = rcu_dereference_protected(drv->fences[i],