···417417}418418419419/**420420- * amdgpu_fence_ref - take a ref on a fence421421- *422422- * @fence: amdgpu fence object423423- *424424- * Take a reference on a fence (all asics).425425- * Returns the fence.426426- */427427-struct amdgpu_fence *amdgpu_fence_ref(struct amdgpu_fence *fence)428428-{429429- fence_get(&fence->base);430430- return fence;431431-}432432-433433-/**434434- * amdgpu_fence_unref - remove a ref on a fence435435- *436436- * @fence: amdgpu fence object437437- *438438- * Remove a reference on a fence (all asics).439439- */440440-void amdgpu_fence_unref(struct amdgpu_fence **fence)441441-{442442- struct amdgpu_fence *tmp = *fence;443443-444444- *fence = NULL;445445- if (tmp)446446- fence_put(&tmp->base);447447-}448448-449449-/**450420 * amdgpu_fence_count_emitted - get the count of emitted fences451421 *452422 * @ring: ring the fence is associated with