Lines Matching refs:clean_job
533 struct v3d_job *clean_job = NULL; in v3d_submit_cl_ioctl() local
585 clean_job = kcalloc(1, sizeof(*clean_job), GFP_KERNEL); in v3d_submit_cl_ioctl()
586 if (!clean_job) { in v3d_submit_cl_ioctl()
591 ret = v3d_job_init(v3d, file_priv, clean_job, v3d_job_free, 0); in v3d_submit_cl_ioctl()
593 kfree(clean_job); in v3d_submit_cl_ioctl()
594 clean_job = NULL; in v3d_submit_cl_ioctl()
598 last_job = clean_job; in v3d_submit_cl_ioctl()
628 if (clean_job) { in v3d_submit_cl_ioctl()
631 ret = drm_gem_fence_array_add(&clean_job->deps, render_fence); in v3d_submit_cl_ioctl()
634 ret = v3d_push_job(v3d_priv, clean_job, V3D_CACHE_CLEAN); in v3d_submit_cl_ioctl()
650 if (clean_job) in v3d_submit_cl_ioctl()
651 v3d_job_put(clean_job); in v3d_submit_cl_ioctl()
663 if (clean_job) in v3d_submit_cl_ioctl()
664 v3d_job_put(clean_job); in v3d_submit_cl_ioctl()
781 struct v3d_job *clean_job; in v3d_submit_csd_ioctl() local
803 clean_job = kcalloc(1, sizeof(*clean_job), GFP_KERNEL); in v3d_submit_csd_ioctl()
804 if (!clean_job) { in v3d_submit_csd_ioctl()
810 ret = v3d_job_init(v3d, file_priv, clean_job, v3d_job_free, 0); in v3d_submit_csd_ioctl()
813 kfree(clean_job); in v3d_submit_csd_ioctl()
819 ret = v3d_lookup_bos(dev, file_priv, clean_job, in v3d_submit_csd_ioctl()
824 ret = v3d_lock_bo_reservations(clean_job, &acquire_ctx); in v3d_submit_csd_ioctl()
833 ret = drm_gem_fence_array_add(&clean_job->deps, in v3d_submit_csd_ioctl()
838 ret = v3d_push_job(v3d_priv, clean_job, V3D_CACHE_CLEAN); in v3d_submit_csd_ioctl()
844 clean_job, in v3d_submit_csd_ioctl()
847 clean_job->done_fence); in v3d_submit_csd_ioctl()
850 v3d_job_put(clean_job); in v3d_submit_csd_ioctl()
856 drm_gem_unlock_reservations(clean_job->bo, clean_job->bo_count, in v3d_submit_csd_ioctl()
860 v3d_job_put(clean_job); in v3d_submit_csd_ioctl()