Lines Matching refs:bos
244 static int panfrost_acquire_object_fences(struct drm_gem_object **bos, in panfrost_acquire_object_fences() argument
251 ret = dma_resv_reserve_fences(bos[i]->resv, 1); in panfrost_acquire_object_fences()
256 ret = drm_sched_job_add_implicit_dependencies(job, bos[i], in panfrost_acquire_object_fences()
265 static void panfrost_attach_object_fences(struct drm_gem_object **bos, in panfrost_attach_object_fences() argument
272 dma_resv_add_fence(bos[i]->resv, fence, DMA_RESV_USAGE_WRITE); in panfrost_attach_object_fences()
281 ret = drm_gem_lock_reservations(job->bos, job->bo_count, in panfrost_job_push()
291 ret = panfrost_acquire_object_fences(job->bos, job->bo_count, in panfrost_job_push()
304 panfrost_attach_object_fences(job->bos, job->bo_count, in panfrost_job_push()
308 drm_gem_unlock_reservations(job->bos, job->bo_count, &acquire_ctx); in panfrost_job_push()
333 if (job->bos) { in panfrost_job_cleanup()
335 drm_gem_object_put(job->bos[i]); in panfrost_job_cleanup()
337 kvfree(job->bos); in panfrost_job_cleanup()