Lines Matching defs:fence
63 to_panfrost_fence(struct dma_fence *fence)
65 return (struct panfrost_fence *)fence;
68 static const char *panfrost_fence_get_driver_name(struct dma_fence *fence)
73 static const char *panfrost_fence_get_timeline_name(struct dma_fence *fence)
75 struct panfrost_fence *f = to_panfrost_fence(fence);
96 struct panfrost_fence *fence;
99 fence = kzalloc(sizeof(*fence), GFP_KERNEL);
100 if (!fence)
103 fence->dev = pfdev->ddev;
104 fence->queue = js_num;
105 fence->seqno = ++js->queue[js_num].emit_seqno;
106 dma_fence_init(&fence->base, &panfrost_fence_ops, &js->job_lock,
107 js->queue[js_num].fence_context, fence->seqno);
109 return &fence->base;
211 struct dma_fence *fence)
216 dma_resv_add_excl_fence(bos[i]->resv, fence);
320 struct dma_fence *fence;
326 fence = job->in_fences[i];
328 return fence;
335 fence = job->implicit_fences[i];
337 return fence;
349 struct dma_fence *fence = NULL;
356 fence = panfrost_fence_create(pfdev, slot);
357 if (IS_ERR(fence))
362 job->done_fence = dma_fence_get(fence);
366 return fence;
442 * If the GPU managed to complete this jobs fence, the timeout is