Lines Matching defs:fence
330 * hl_ctx_get_fence_locked - get CS fence under CS lock
335 * @return valid fence pointer on success, NULL if fence is gone, otherwise
343 struct hl_fence *fence;
351 fence = ctx->cs_pending[seq & (asic_prop->max_pending_cs - 1)];
352 hl_fence_get(fence);
353 return fence;
358 struct hl_fence *fence;
362 fence = hl_ctx_get_fence_locked(ctx, seq);
366 return fence;
374 * @fence: fence array to store the CS fences
380 struct hl_fence **fence, u32 arr_len)
382 struct hl_fence **fence_arr_base = fence;
387 for (i = 0; i < arr_len; i++, fence++) {
390 *fence = hl_ctx_get_fence_locked(ctx, seq);
392 if (IS_ERR(*fence)) {
394 "Failed to get fence for CS with seq 0x%llx\n",
396 rc = PTR_ERR(*fence);